/**
 * Light theme — semantic tokens + comprehensive component polish.
 * Loaded after connor-freelance-portfolio-23-24.webflow.css
 */

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

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

::selection {
  background-color: rgba(61, 92, 64, 0.2);
  color: var(--text-primary);
}

:root {
  --bg-page: #e6ebe8;
  --bg-elevated: #f3f1ec;
  --bg-panel: #faf8f4;
  --bg-muted: #d8e0dc;
  --bg-subtle: #ecefe9;
  --bg-invert: #142023;
  --text-primary: #1a282c;
  --text-secondary: #33484d;
  --text-muted: #4a5f64;
  --text-on-brand: #ffffff;
  --border-subtle: rgba(26, 40, 44, 0.14);
  --border-default: #b4c3bc;
  --border-strong: #95a9a1;
  --shadow-sm: 0 2px 8px rgba(20, 32, 35, 0.06);
  --shadow-md: 0 12px 32px rgba(20, 32, 35, 0.1);
  --shadow-lg: 0 20px 48px rgba(20, 32, 35, 0.12);
  --focus-ring: 0 0 0 3px rgba(61, 92, 64, 0.22);
  --accent-cta: #3a5c3e;
  --accent-cta-hover: #2d4a31;
  --accent-soft: #d8ead9;
  --accent-soft-hover: #c8dfc9;
  --accent-link: #4a7350;
  --nav-quote-size: 17px;
  --nav-quote-author-size: 11px;
  --photo-editorial: saturate(0.9) contrast(1.05) brightness(1.02);

  /* Legacy variable remap */
  --neutral-950: var(--bg-page);
  --neutral-50-501: var(--border-default);
  --white: var(--text-primary);
  --neutral-200: var(--text-secondary);
  --neutral-300: var(--text-muted);
}

/* ——— Base ——— */
body {
  background-color: var(--bg-page);
  color: var(--text-primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-primary);
}

a {
  color: var(--text-primary);
}

a.link {
  color: var(--accent-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a.link:hover {
  color: var(--accent-cta);
}

label {
  color: var(--text-secondary);
}

/* ——— Navigation ——— */
.w-nav,
.navigation,
.container.navigation,
.container.navigation.w-container,
nav.navigation,
[class*='navigation'] {
  background: var(--bg-page) !important;
  background-color: var(--bg-page) !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navigation {
  min-height: 0;
}

.container.navigation {
  position: relative;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 88px;
  padding-top: 14px;
  padding-bottom: 14px;
  container-type: inline-size;
  container-name: site-nav;
}

.logo-link-block {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.nav-menu-button-wrapper {
  flex: 0 0 auto;
  margin-left: auto;
  position: relative;
  z-index: 2;
}

.navigation {
  border-bottom-color: var(--border-default);
  color: var(--text-primary);
}

.nav-menu {
  background-color: var(--bg-elevated) !important;
  border-top-color: var(--border-default);
  box-shadow: var(--shadow-lg);
}

.navlink,
.navlink.w--current {
  color: var(--text-primary);
}

.navlink:hover {
  color: var(--accent-cta);
}

.navlink.mobile:hover {
  color: var(--accent-cta);
}

.nav-quote-wrapper {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: none !important;
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  max-width: none;
  padding: 0 12px;
  pointer-events: none;
  z-index: 1;
}

.nav-quote {
  margin: 0 auto;
  padding: 0;
  border: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 42rem;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.nav-quote.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-quote-text {
  margin: 0;
  padding: 0;
  color: var(--text-primary);
  font-family: Manrope, Arial, sans-serif;
  font-size: var(--nav-quote-size);
  font-weight: 400;
  font-style: normal;
  hyphens: auto;
  letter-spacing: -0.015em;
  line-height: 1.3;
  overflow-wrap: break-word;
  text-align: center;
  text-wrap: balance;
  word-break: normal;
}

.nav-quote-text::before {
  content: '\201C';
  margin-right: 0.12em;
  color: var(--accent-cta);
  font-size: 1.15em;
  font-weight: 500;
  line-height: 0;
  opacity: 0.9;
  vertical-align: -0.08em;
}

.nav-quote-author {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-family: Manrope, Arial, sans-serif;
  font-size: var(--nav-quote-author-size);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

@container site-nav (max-width: 720px) {
  .nav-quote-wrapper {
    flex: 1 1 100%;
    order: 3;
    padding: 2px 8px 0;
  }

  .nav-quote {
    max-width: none;
  }

  .nav-quote-author {
    margin-top: 4px;
    letter-spacing: 0.1em;
  }
}

@container site-nav (max-width: 480px) {
  .container.navigation {
    --nav-quote-size: 16px;
    --nav-quote-author-size: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px 12px;
  }

  .nav-quote-text {
    line-height: 1.28;
  }

  .nav-quote-author {
    letter-spacing: 0.08em;
  }
}

.nav-quote-author:empty {
  display: none;
}

.line {
  background-color: var(--text-primary);
}

.container {
  border-right-color: var(--border-default);
  border-bottom-color: var(--border-default);
  border-left-color: var(--border-default);
}

/* ——— Buttons ——— */
.button {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background-color: transparent;
}

.button:hover {
  color: var(--text-primary);
  background-color: var(--bg-muted);
  border-color: var(--border-strong);
}

.button.primary,
.button-service.primary,
.dev-button-service.primary,
.data-button-service.primary,
.ux-button-service.primary {
  border-color: var(--accent-cta);
  outline-color: var(--accent-cta);
  color: var(--text-on-brand);
  background-color: var(--accent-cta);
  box-shadow: var(--shadow-sm);
}

.button.primary:hover,
.button-service.primary:hover,
.dev-button-service.primary:hover,
.data-button-service.primary:hover,
.ux-button-service.primary:hover {
  border-color: var(--accent-cta-hover);
  color: var(--text-on-brand);
  background-color: var(--accent-cta-hover);
  box-shadow: var(--shadow-sm);
}

.button.secondary {
  border-color: var(--accent-soft-hover);
  color: var(--accent-cta);
  background-color: var(--accent-soft);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: var(--accent-cta);
  color: var(--accent-cta-hover);
  background-color: var(--accent-soft-hover);
}

.button-service,
.dev-button-service,
.data-button-service,
.ux-button-service {
  border-color: var(--border-default);
  color: var(--text-primary);
  background-color: var(--bg-elevated);
}

.button-service:hover,
.dev-button-service:hover,
.data-button-service:hover,
.ux-button-service:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

.button-service.primary:hover,
.dev-button-service.primary:hover {
  background-color: var(--accent-cta-hover);
  color: var(--text-on-brand);
}

.data-button-service:hover {
  background-color: var(--bg-muted);
  color: var(--text-primary);
}

.pricing-button {
  color: var(--text-on-brand);
  background-color: var(--accent-cta);
  box-shadow: var(--shadow-sm);
}

.pricing-button:hover {
  background-color: var(--accent-cta-hover);
}

/* ——— Hero ——— */
#home-section .hero-grid.w-layout-grid {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  min-height: auto;
  grid-template-columns: none;
  grid-template-rows: none;
  grid-auto-flow: unset;
  grid-column-gap: 0;
  grid-row-gap: 0;
}

#home-section .hero-content-wrapper {
  flex: 1.15 1 0;
  min-width: 0;
  border-right: 1px solid var(--border-default);
  border-right-color: var(--border-default);
  padding: 40px 24px;
  justify-content: center;
}

#home-section .hero-heading {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 0 14px;
  padding: 0;
  cursor: default;
}

#home-section .hero-avatar-link {
  flex-shrink: 0;
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border-strong);
  background-color: #1a2e22;
  box-shadow:
    0 0 0 3px var(--accent-soft),
    var(--shadow-sm);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

#home-section .hero-avatar-link:hover {
  border-color: var(--accent-cta);
  box-shadow:
    0 0 0 4px color-mix(in srgb, var(--accent-soft) 80%, transparent),
    var(--shadow-md);
  transform: scale(1.03);
}

#home-section .hero-avatar-link:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 3px;
}

#home-section .hero-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transform: scale(1.15);
  filter: invert(1);
}

#home-section .hero-heading-text {
  font-size: clamp(2.25rem, 4.2vw, 3rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

#home-section .hero-heading-role {
  display: block;
  margin-top: 0.4em;
  font-size: 0.52em;
  font-weight: 200;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--text-secondary);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 38ch;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

.hero-button-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

#home-section .hero-image-wrapper.hero-image-stack {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  align-self: stretch;
  height: auto;
  min-height: auto;
  max-height: none;
  position: relative;
  overflow: hidden;
}

#home-section .hero-image-wrapper.hero-image-stack > .hero-image-stacked {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1) contrast(1.04) brightness(1.02);
  transform: scale(1.05);
  transition: filter 0.35s ease, transform 0.35s ease, opacity 0.35s ease;
  opacity: 1;
  mix-blend-mode: normal;
}

#home-section .hero-image-wrapper.hero-image-stack > .hero-image-stacked:hover {
  filter: invert(1) saturate(1) contrast(1.04) brightness(1.02);
  transform: scale(1.05);
  opacity: 1;
}

.hero-image {
  opacity: 1;
  mix-blend-mode: normal;
}

/* ——— Social pills ——— */
.hero-social-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-social-links .social-link.x-pill,
.hero-social-links .social-link.instagram-pill,
.hero-social-links .social-link.github-pill,
.hero-social-links .social-link.linkedin-pill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 52px;
  padding: 11px 14px;
  gap: 12px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  background-color: transparent;
  box-shadow: none;
}

.hero-social-links .social-link.x-pill::before,
.hero-social-links .social-link.instagram-pill::before,
.hero-social-links .social-link.github-pill::before,
.hero-social-links .social-link.linkedin-pill::before {
  content: '';
  position: absolute;
  inset: -48px;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(44px) saturate(0.8) brightness(1.28);
  opacity: 0.62;
  z-index: 0;
  pointer-events: none;
}

.hero-social-links .social-link.x-pill::before {
  background-image: url('../images/hero-citrus-grove.jpg');
  background-position: 18% 22%;
}

.hero-social-links .social-link.instagram-pill::before {
  background-image: url('../images/hero-citrus-ripe.jpg');
  background-position: 78% 40%;
}

.hero-social-links .social-link.github-pill::before {
  background-image: url('../images/GreatBasinBristol.jpg');
  background-position: 48% 28%;
}

.hero-social-links .social-link.linkedin-pill::before {
  background-image: url('../images/colombia-market-bread.jpg');
  background-position: 42% 62%;
}

.hero-social-links .social-link.x-pill:hover,
.hero-social-links .social-link.instagram-pill:hover,
.hero-social-links .social-link.github-pill:hover,
.hero-social-links .social-link.linkedin-pill:hover {
  border-color: var(--border-strong);
  background-color: transparent;
  box-shadow: none;
  transform: none;
}

.hero-social-links .social-link.x-pill:hover::before,
.hero-social-links .social-link.instagram-pill:hover::before,
.hero-social-links .social-link.github-pill:hover::before,
.hero-social-links .social-link.linkedin-pill:hover::before {
  opacity: 0.82;
  filter: blur(36px) saturate(0.9) brightness(1.32);
}

.hero-social-links .social-link.x-pill > *,
.hero-social-links .social-link.instagram-pill > *,
.hero-social-links .social-link.github-pill > *,
.hero-social-links .social-link.linkedin-pill > * {
  position: relative;
  z-index: 1;
}

.hero-social-links .social-icon-wrapper {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  flex-shrink: 0;
}

.hero-social-links .social-icon-wrapper svg {
  width: 20px;
  height: 20px;
  display: block;
}

.hero-social-links .social-text {
  color: var(--text-secondary);
  font-weight: 400;
}

.hero-social-links .social-link:hover .social-text {
  color: var(--text-primary);
}

.hero-social-links .social-link .social-icon-wrapper {
  color: var(--text-primary);
}

.hero-social-links .social-link svg path {
  fill: currentColor;
}

/* ——— Schedule / Cal ——— */
.schedule-section {
  padding: 0;
  background: var(--bg-page);
}

.schedule-section .about-1-2-grid {
  align-items: stretch;
}

.schedule-section .work-wrapper {
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-default);
}

.schedule-section .paragraph-2 {
  color: var(--text-secondary);
}

.schedule-new-tab {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-link);
  text-decoration: none;
}

.schedule-new-tab:hover {
  color: var(--accent-cta);
}

.cal-embed-wrapper {
  position: relative;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: var(--bg-panel);
  box-shadow: none;
  padding: 20px 24px 28px;
  overflow: visible;
}

.cal-inline-host {
  min-height: 560px;
  overflow: visible;
  background: var(--bg-panel);
}

.cal-embed-wrapper iframe {
  display: block;
  width: 100% !important;
  border: 0 !important;
  background: var(--bg-panel) !important;
  margin: 0;
  min-height: 560px;
}

#cal-booking-link {
  margin-top: 16px;
}

/* ——— Typography blocks ——— */
.paragraph.large {
  color: var(--text-secondary);
}

.paragraph-2,
.green-label {
  color: var(--text-muted);
}

.footer-text {
  color: var(--text-muted);
}

/* ——— Work & projects ——— */
#work-section .paragraph-2,
#work-section .work-content-wrapper .paragraph-2 {
  color: var(--text-secondary);
}

#work-section .about-1-2-grid {
  align-items: stretch;
}

#work-section .work-wrapper {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-default);
}

#work-section .project-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  padding: 12px;
}

#work-section .project-item {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 32px;
  overflow: hidden;
  background: transparent;
}

#work-section .project-item::before {
  content: '';
  position: absolute;
  inset: -80%;
  z-index: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: blur(44px) saturate(1.15) brightness(1.02);
  pointer-events: none;
}

#work-section .project-item::after {
  content: '';
  position: absolute;
  inset: 4px;
  z-index: 0;
  background: var(--bg-panel);
  pointer-events: none;
}

#work-section .project-item[data-project="travel"]::before {
  background-image: url('../images/hero-citrus-grove.jpg');
  background-position: 35% 40%;
}

#work-section .project-item[data-project="webchella"]::before {
  background-image: url('../images/colombia-market-bread.jpg');
  background-position: 50% 55%;
}

#work-section .project-item[data-project="pinkys"]::before {
  background-image: url('../images/hero-citrus-ripe.jpg');
  background-position: 60% 30%;
}

#work-section .project-item[data-project="finsight"]::before {
  background-image: url('../images/GreatBasinBristol.jpg');
  background-position: 45% 20%;
}

#work-section .project-item > * {
  position: relative;
  z-index: 1;
}

#work-section .project-item h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

#work-section .project-item p {
  margin: 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

#work-section .project-item-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-link);
  text-decoration: none;
}

#work-section .project-item-link:hover {
  color: var(--accent-cta);
}

.work-project-wrapper {
  border: 1px solid transparent;
  border-radius: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.work-project-wrapper:hover {
  background-color: rgba(76, 98, 78, 0.05);
  border-color: transparent;
  box-shadow: inset 0 0 0 1px rgba(76, 98, 78, 0.16);
  transform: none;
}

.work-project-wrapper:hover .paragraph.large {
  color: var(--text-primary);
}

/* ——— Skills list (matches blog / projects grid) ——— */
#technical-skills-section .about-1-2-grid {
  align-items: stretch;
}

#technical-skills-section .paragraph-2 {
  color: var(--text-secondary);
}

#technical-skills-section .work-wrapper {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-default);
}

#technical-skills-section .skills-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

#technical-skills-section .skills-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 36px;
  border-bottom: 1px solid var(--border-subtle);
}

#technical-skills-section .skills-item:last-child {
  border-bottom: none;
}

#technical-skills-section .skills-item h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

#technical-skills-section .skills-item p {
  margin: 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.data-pricing-block,
.ux-pricing-block,
.web-dev-pricing-block {
  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.project-item,
.project-preview-image,
.service-wrapper.left,
.service-wrapper.right,
.about-row-wrapper.middle,
.contact-middle-block,
.contact-left-block.form,
.pricing-link-block.middle,
.service-block.center,
.pricing-block.center,
.web-dev-pricing-block.middle,
.data-pricing-block.middle,
.ux-pricing-block.middle,
.featured-post-wrapper,
.blog-posts-wrapper,
.hero-content-wrapper {
  border-color: var(--border-default);
}

/* ——— DYK / articles ——— */
.dyk-section .work-section-wrapper::before {
  background: linear-gradient(
    135deg,
    rgba(187, 135, 89, 0.08) 0%,
    rgba(201, 149, 110, 0.1) 50%,
    rgba(187, 135, 89, 0.06) 100%
  );
}

.dyk-section .article-entry .experience-section {
  background: transparent !important;
  margin-bottom: 0;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
}

.dyk-section .article-entry:last-child .experience-section {
  border-bottom: none;
}

.dyk-section .experience-section {
  border-radius: 0;
  overflow: visible;
}

.dyk-section .work-project-wrapper.dyk-coming-soon,
.dyk-section .work-project-wrapper.dyk-coming-soon:hover {
  background-color: var(--bg-panel);
  box-shadow: none;
  transform: none;
}

.experience-section {
  border-color: var(--border-default);
}

.experience-toggle,
.article-toggle {
  background-color: var(--bg-elevated);
  border: none;
  border-radius: 0;
}

.dyk-section .experience-toggle:hover,
.dyk-section .article-toggle:hover {
  background-color: rgba(187, 135, 89, 0.045);
}

.article-share-button {
  border-radius: 0;
}

.dyk-section .article-share-button:hover {
  background-color: rgba(187, 135, 89, 0.045);
}

.current-role {
  background-color: var(--bg-subtle);
}

.experience-title,
.experience-title-static {
  color: var(--text-primary);
}

.experience-content,
.experience-content-static {
  background-color: var(--bg-elevated);
  border-bottom-color: var(--border-default);
  color: var(--text-secondary);
}

.experience-caret {
  color: var(--text-muted);
}

.article-share-button {
  color: var(--text-muted);
}

.article-share-button:hover {
  color: var(--text-secondary);
  background-color: var(--bg-muted);
}

.article-share-button.copied {
  color: var(--accent-link);
}

/* ——— Forms ——— */
.text-input,
.text-dropdown {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background-color: var(--bg-panel);
}

.text-input:focus,
.text-input.-wfp-focus,
.text-dropdown:focus {
  border-color: var(--accent-cta);
  color: var(--text-primary);
  box-shadow: var(--focus-ring);
  outline: none;
}

.text-input::placeholder,
.text-dropdown::placeholder {
  color: var(--text-muted);
}

.text-dropdown:active {
  color: var(--text-primary);
}

/* ——— Footer ——— */
.clean-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: var(--bg-page);
  padding: 28px 0 40px;
}

.clean-footer .container.w-container {
  border: none;
  margin-bottom: 0;
  padding-left: 24px;
  padding-right: 24px;
}

.clean-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: none;
  margin: 0;
}

.clean-footer .footer-text {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.clean-footer .footer-text:hover {
  color: var(--text-muted);
}

.services-section.footer {
  border-top-color: var(--border-default);
}

/* Contact → footer: one continuous column, no extra bottom band */
.container.contact.bottom {
  border-bottom: none;
}

#contact-section .technical-skills-section {
  border-bottom: none;
}

/* ——— Cart / misc ——— */
.cart-quantity {
  background-color: var(--accent-cta);
  color: var(--text-on-brand);
}

.cart-header,
.cart-form-wrapper {
  background-color: var(--bg-elevated);
  border-color: var(--border-default);
}

.checkout-form {
  background-color: var(--bg-page);
}

.utility-page-content {
  border-color: var(--border-default);
  background-color: var(--bg-elevated);
}

.navlink-small {
  color: var(--text-muted);
}

.navlink-small:hover {
  color: var(--text-primary);
}

.label {
  color: var(--text-muted);
}

/* ——— Hardcoded dark fills from Webflow export ——— */
.button:hover {
  background-color: var(--bg-muted);
}

.button-service,
.dev-button-service,
.data-button-service,
.ux-button-service {
  background-color: var(--bg-elevated);
}

/* ——— Page wrapper depth ——— */
.page-wrapper {
  background-color: var(--bg-page);
  padding-bottom: 0;
}

.heading {
  color: var(--text-primary);
}

.about-heading {
  color: var(--accent-link);
}

.about-me-text-block,
.about-me-left-text-block {
  color: var(--text-on-brand);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.success-message,
.error-message {
  color: var(--text-on-brand);
}

.work-section-wrapper h2,
.contact-top-header h2 {
  color: var(--text-primary);
}

blockquote {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
}

.dev-pricing-title {
  color: var(--dark-sea-green);
}

.text-button {
  color: var(--dark-goldenrod);
}

.text-button:hover {
  color: var(--peru);
}

.featured-label {
  color: var(--peru);
}

.blog-title,
.blog-title.large {
  color: var(--text-primary);
}

@media screen and (max-width: 767px) {
  .cal-inline-host,
  .cal-embed-wrapper iframe {
    min-height: 520px;
  }

  #technical-skills-section .skills-item,
  #work-section .project-item {
    padding: 24px 20px;
  }
}

@media screen and (max-width: 991px) {
  #home-section .hero-grid.w-layout-grid {
    display: block;
  }

  #home-section .hero-image-wrapper.hero-image-stack {
    display: none;
  }

  #home-section .hero-content-wrapper {
    flex: none;
    width: 100%;
    padding: 80px 24px 40px;
    border-right: none;
    border-bottom: 1px solid var(--border-default);
  }

  #home-section .hero-heading {
    gap: 14px;
  }

  #home-section .hero-avatar-link {
    width: 68px;
    height: 68px;
  }

  #home-section .hero-subtitle {
    max-width: none;
  }

  .hero-button-wrapper {
    width: 100%;
  }

  .hero-button-wrapper .button.w-button {
    flex: 1 1 calc(50% - 6px);
    min-width: 0;
    text-align: center;
  }
}

@media screen and (max-width: 767px) {
  .nav-quote-author {
    margin-top: 6px;
  }

  #home-section .hero-content-wrapper {
    padding: 72px 20px 36px;
  }
}

@media screen and (max-width: 479px) {
  #home-section .hero-content-wrapper {
    padding: 68px 16px 32px;
  }

  #home-section .hero-avatar-link {
    width: 60px;
    height: 60px;
    border-width: 2px;
    box-shadow:
      0 0 0 2px var(--accent-soft),
      var(--shadow-sm);
  }

  #home-section .hero-heading {
    gap: 14px;
  }

  .hero-social-links {
    gap: 10px;
  }

  .hero-social-links .social-link.x-pill,
  .hero-social-links .social-link.instagram-pill,
  .hero-social-links .social-link.github-pill,
  .hero-social-links .social-link.linkedin-pill {
    min-height: 46px;
    padding: 10px 12px;
    gap: 10px;
  }

  .hero-social-links .social-text {
    font-size: 12px;
  }

  .hero-button-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .hero-button-wrapper .button.w-button {
    flex: none;
    width: 100%;
  }

  .nav-quote-text::before {
    font-size: 1.45em;
    margin-bottom: 0;
  }

  .nav-quote-author {
    letter-spacing: 0.12em;
  }

  .cal-inline-host {
    min-height: 580px;
  }

  .cal-embed-wrapper iframe {
    min-height: 600px;
  }
}

/* ——— Cohesion pass: anchors, focus, contact photos ——— */
#home-section,
#schedule-section,
#about-me-section,
#technical-skills-section,
#work-section,
#thoughts-section,
#contact-section {
  scroll-margin-top: 88px;
}

.navlink:focus-visible,
.social-link:focus-visible,
.button:focus-visible,
.text-input:focus-visible,
.experience-toggle:focus-visible,
.article-toggle:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 2px;
}

.contact-middle-block {
  background-color: var(--bg-elevated);
}

.contact-image-left-bg,
.contact-image-right-bg {
  filter: blur(2px) saturate(0.85);
  mix-blend-mode: normal;
  opacity: 0.55;
}

.contact-image-left,
.contact-image-right {
  filter: saturate(0.95) contrast(1.04);
  opacity: 1;
  mix-blend-mode: normal;
}

.logo-link-block:focus-visible {
  outline: 2px solid var(--accent-cta);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ——— Blog empty state ——— */
#thoughts-section .about-1-2-grid {
  align-items: stretch;
}

#thoughts-section .work-wrapper {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: 100%;
  min-height: 100%;
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-default);
}

#thoughts-section .work-wrapper > .blog-feed,
#thoughts-section .work-wrapper > .blog-empty {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-bottom: none;
}

#thoughts-section .blog-empty {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: 40px 36px;
  box-sizing: border-box;
}

#thoughts-section .blog-feed {
  justify-content: flex-start;
  min-height: 240px;
  padding: 8px 0;
}

#thoughts-section .blog-empty-text {
  margin: 0;
  max-width: 18rem;
  color: var(--text-muted);
  font-family: Manrope, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.blog-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px 36px;
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.25s ease;
}

.blog-item:last-child {
  border-bottom: none;
}

.blog-item:hover {
  background-color: rgba(76, 98, 78, 0.05);
}

.blog-item-date {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.blog-item-title {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.blog-item-excerpt {
  margin: 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.blog-post-section .work-wrapper {
  background-color: var(--bg-panel);
  border-bottom: 1px solid var(--border-default);
}

.blog-post {
  padding: 40px 36px 48px;
}

.blog-post-date {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.blog-post-title {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.blog-post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin: -12px 0 28px;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
}

.blog-share-copy,
.blog-share-x {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
}

.blog-share-copy:hover,
.blog-share-x:hover {
  color: var(--accent-cta);
}

.blog-share-sep {
  color: var(--border-strong);
}

.blog-prose {
  max-width: 62ch;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
}

.blog-prose > *:first-child {
  margin-top: 0;
}

.blog-prose p,
.blog-prose ul,
.blog-prose ol {
  margin: 0 0 1em;
}

.blog-prose h2,
.blog-prose h3 {
  margin: 1.6em 0 0.5em;
  font-weight: 500;
  color: var(--text-primary);
}

.blog-prose a {
  color: var(--accent-link);
}

.blog-prose a:hover {
  color: var(--accent-cta);
}

@media screen and (max-width: 991px) {
  #thoughts-section .work-wrapper {
    height: auto;
    min-height: 200px;
  }

  #thoughts-section .blog-empty,
  .blog-item,
  #technical-skills-section .skills-item,
  #work-section .project-item {
    padding-left: 24px;
    padding-right: 24px;
  }

  #thoughts-section .blog-empty {
    min-height: 200px;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .blog-post {
    padding: 32px 24px 40px;
  }

  .blog-post-title {
    font-size: 26px;
  }
}

@media screen and (max-width: 767px) {
  #thoughts-section .blog-empty {
    min-height: 180px;
    padding: 28px 20px;
  }

  .blog-item,
  .blog-post {
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* ——— Footer sloth entry ——— */
.footer-sloth {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 999px;
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  opacity: 0.45;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.footer-sloth:hover,
.footer-sloth:focus-visible {
  opacity: 1;
  transform: translateY(-1px);
  background-color: var(--accent-soft);
  outline: none;
}

.footer-sloth:focus-visible {
  box-shadow: var(--focus-ring);
}

/* ——— Biodiversity page ——— */
.bio-page .nav-menu-button-wrapper {
  display: none;
}

.bio-page .nav-quote-wrapper {
  padding-right: 8px;
}

.bio-nav-back {
  position: relative;
  z-index: 2;
  margin-left: auto;
  padding: 8px 14px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-family: Manrope, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.bio-nav-back:hover,
.bio-nav-back:focus-visible {
  background: var(--accent-soft);
  border-color: var(--border-strong);
  color: var(--accent-cta-hover);
  outline: none;
}

.bio-essays-section .about-1-2-grid {
  align-items: stretch;
}

.bio-essays-section .work-section-wrapper {
  background: transparent;
}

.bio-essays-section .heading-2 {
  margin: 0 0 12px;
}

.bio-essays-section .paragraph-2 {
  max-width: 18rem;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.bio-essays-section .work-wrapper {
  background: transparent;
  border-bottom: none;
}

.bio-essays-section .work-wrapper > .work-grid {
  border-bottom: none;
  height: 100%;
}

.bio-essays-section .work-project-wrapper,
.bio-essays-section .work-project-wrapper:hover,
.bio-essays-panel,
.bio-essays-panel:hover {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
  animation: none !important;
}

.bio-reading-list {
  margin: 0;
  padding: 4px 0;
}

.bio-reading-list .article-entry,
.bio-reading-list .experience-section.article-entry {
  margin: 0;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-radius: 0;
  overflow: visible;
  scroll-margin-top: 96px;
  box-shadow: none;
}

.bio-reading-list .article-entry:last-child {
  border-bottom: none !important;
}

.bio-reading-list .article-entry:nth-child(odd) .experience-section,
.bio-reading-list .article-entry:nth-child(even) .experience-section {
  background: transparent !important;
}

.bio-reading-list .article-header {
  gap: 4px;
  align-items: center;
}

.bio-reading-list .experience-toggle,
.bio-reading-list .article-toggle {
  background-color: transparent !important;
  padding: 20px 20px 20px 24px;
  cursor: pointer;
  text-align: left;
  border-radius: 0;
}

.bio-reading-list .article-entry:hover .experience-toggle,
.bio-reading-list .article-entry:hover .article-toggle {
  background-color: transparent !important;
}

.bio-reading-list .article-entry:hover {
  background-color: rgba(58, 92, 62, 0.045) !important;
}

.bio-reading-list .article-date {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.bio-reading-list .experience-title {
  color: var(--text-primary);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.bio-reading-list .experience-caret {
  color: var(--text-muted);
  flex-shrink: 0;
}

.bio-reading-list .article-share-button {
  align-self: center;
  margin: 0 16px 0 0;
  padding: 8px;
  color: var(--text-muted);
  opacity: 0.4;
  background: transparent;
  border-radius: 4px;
}

.bio-reading-list .article-share-button:hover,
.bio-reading-list .article-share-button.copied {
  color: var(--accent-cta);
  opacity: 1;
  background-color: transparent;
}

.bio-reading-list .experience-content {
  background-color: transparent !important;
  border: none !important;
  padding: 0 24px 28px;
  color: var(--text-secondary);
}

.bio-reading-list .experience-content .paragraph,
.bio-reading-list .experience-content .paragraph.large,
.bio-reading-list .experience-content p {
  margin: 0 0 1.1em;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.bio-reading-list .experience-content h4 {
  margin: 1.5em 0 0.6em;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.bio-reading-list .experience-content strong {
  color: var(--text-primary);
  font-weight: 500;
}

.bio-page .footer-sloth {
  pointer-events: none;
  cursor: default;
}

.bio-page .footer-sloth:hover {
  transform: none;
  background: transparent;
}

@media screen and (max-width: 767px) {
  .bio-reading-list .experience-toggle,
  .bio-reading-list .article-toggle {
    padding: 16px 16px 16px 18px;
  }

  .bio-reading-list .experience-content {
    padding: 0 18px 24px;
  }

  .bio-nav-back {
    padding: 7px 12px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-image-stacked:hover {
    transform: none;
  }
}

/* Biodiversity list — beat leftover card/hover styles */
.bio-page .bio-essays-section .work-wrapper,
.bio-page .bio-essays-section .work-grid,
.bio-page .bio-reading-list,
.bio-page .bio-reading-list .div-block-2 {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.bio-page .bio-reading-list .experience-section,
.bio-page .bio-reading-list .article-entry,
.bio-page .bio-reading-list .experience-section.article-entry {
  background: transparent !important;
  margin: 0 !important;
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  overflow: visible !important;
  box-shadow: none !important;
}

.bio-page .bio-reading-list .article-entry:last-child {
  border-bottom: none !important;
}

.bio-page .bio-reading-list .article-header,
.bio-page .bio-reading-list .experience-toggle,
.bio-page .bio-reading-list .article-toggle,
.bio-page .bio-reading-list .experience-toggle.article-toggle,
.bio-page .bio-reading-list .article-share-button,
.bio-page .bio-reading-list .experience-content {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.bio-page .bio-reading-list .experience-toggle,
.bio-page .bio-reading-list .article-toggle,
.bio-page .bio-reading-list .experience-toggle.article-toggle {
  border: none !important;
}

.bio-page .bio-reading-list .article-share-button {
  border: none !important;
  border-left: none !important;
  border-radius: 0 !important;
  align-self: center;
  height: auto;
  margin: 0 12px 0 0;
  padding: 8px;
}

.bio-page .bio-reading-list .article-entry:hover,
.bio-page .bio-reading-list .article-entry:hover .experience-toggle,
.bio-page .bio-reading-list .article-entry:hover .article-toggle,
.bio-page .bio-reading-list .article-entry:hover .article-share-button {
  background: transparent !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.bio-page .bio-reading-list .article-entry:hover {
  background-color: rgba(26, 40, 44, 0.035) !important;
}

/* Frog stays inverted until hover. Editorial photos are natural, invert on hover, and never stay faded. */
.hero-avatar {
  filter: invert(1);
}

.hero-image,
.hero-image-stacked,
.clean-about-image,
.about-top-image,
.about-image-left,
.about-image-right,
.contact-image-left,
.contact-image-right,
.blog-prose img {
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.hero-image,
.hero-image-stacked,
.clean-about-image,
.about-top-image,
.about-image-left,
.about-image-right,
.contact-image-left,
.contact-image-right,
.contact-image-left-bg,
.contact-image-right-bg,
.blog-prose img {
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

#home-section .hero-avatar-link:hover .hero-avatar,
#home-section .hero-avatar-link:focus-visible .hero-avatar,
.hero-avatar-link:hover .hero-avatar,
.hero-avatar-link:focus-visible .hero-avatar,
.hero-avatar:hover {
  filter: none;
}

.hero-image:hover,
.hero-image-stacked:hover,
.clean-about-image-container:hover .clean-about-image,
.clean-about-image:hover,
.about-top-image:hover,
.about-image-left:hover,
.about-image-right:hover,
.blog-prose img:hover {
  filter: invert(1);
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.contact-left-block:hover .contact-image-left,
.contact-right-block:hover .contact-image-right,
.contact-image-left:hover,
.contact-image-right:hover {
  filter: invert(1) saturate(0.95) contrast(1.04);
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.contact-left-block:hover .contact-image-left-bg,
.contact-right-block:hover .contact-image-right-bg,
.contact-image-left-bg:hover,
.contact-image-right-bg:hover {
  filter: invert(1) blur(2px) saturate(0.85);
  opacity: 1;
  mix-blend-mode: normal;
}

@media (prefers-reduced-motion: reduce) {
  .hero-avatar,
  .hero-image,
  .hero-image-stacked,
  .clean-about-image,
  .about-top-image,
  .about-image-left,
  .about-image-right,
  .contact-image-left,
  .contact-image-right,
  .contact-image-left-bg,
  .contact-image-right-bg,
  .blog-prose img {
    transition: none;
  }
}
