/* Marissa Mak , Portfolio */

:root {
  --text: #594a4e;
  --text-muted: rgba(89, 74, 78, 0.62);
  --bg: #ffffff;
  --bg-soft: #f7f6f4;
  --accent: #dfdcd0;
  --accent-dark: #cfcbc0;
  --black: #0a0a0a;
  --white: #ffffff;
  --max-width: 1080px;
  --section-pad: clamp(2.75rem, 6vw, 4.5rem);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: "Poppins", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.875rem;
  border-radius: 2px;
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.125rem clamp(1.25rem, 4vw, 2.5rem);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(89, 74, 78, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-desktop {
  display: flex;
  gap: 2.5rem;
}

.nav-desktop a {
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease);
}

.nav-desktop a:hover,
.nav-desktop a:focus-visible {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  position: relative;
  z-index: 110;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--text);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}

.menu-toggle span:nth-child(1) {
  top: 0.65rem;
}

.menu-toggle span:nth-child(2) {
  top: 1rem;
}

.menu-toggle span:nth-child(3) {
  top: 1.35rem;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 1rem;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 1rem;
  transform: rotate(-45deg);
}

.nav-mobile {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}

.nav-mobile.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

/* Layout */
.section {
  padding: var(--section-pad) clamp(1.5rem, 5vw, 3rem);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

/* Hero */
.hero {
  padding: clamp(4.25rem, 7vh, 4.75rem) clamp(1.25rem, 4vw, 2.5rem) clamp(1.75rem, 3.5vw, 2.25rem);
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 55%);
}

.hero-split {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.hero-location {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 0.85rem;
}

.hero-lead {
  max-width: 28rem;
  font-size: clamp(0.875rem, 1.6vw, 0.9375rem);
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
}

.hero-cta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--text);
  transition: opacity 0.25s;
}

.hero-cta--secondary {
  opacity: 0.55;
  border-bottom-color: var(--accent-dark);
}

.hero-cta:hover,
.hero-cta--secondary:hover {
  opacity: 0.65;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-bottom: 1.5rem;
  max-width: 26rem;
}

.hero-services li {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--accent-dark);
  border-radius: 3px;
  color: var(--text-muted);
}

.hero-photo {
  aspect-ratio: 4 / 5;
  max-height: min(52vh, 25.5rem);
  margin-left: auto;
  width: 100%;
  max-width: min(100%, 23rem);
  background: var(--accent);
  overflow: hidden;
}

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

/* About */
.about {
  background: var(--bg-soft);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.about-inner {
  max-width: 40rem;
}

.about-inner .section-title {
  margin-bottom: 1.5rem;
}

.about-text p + p {
  margin-top: 1.25rem;
}

.about-text p {
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

.about-text a {
  border-bottom: 1px solid var(--accent-dark);
  transition: opacity 0.25s;
}

.about-text a:hover {
  opacity: 0.7;
}

/* Work */
.work-header {
  margin-bottom: 2rem;
}

.work-header__lead {
  max-width: 32rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

.work-portfolio-note {
  max-width: 36rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 300;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.65;
}

.work-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 2.5rem;
}

.work-jump-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.55rem 1.05rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--accent-dark);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
}

.work-jump-nav a:hover,
.work-jump-nav a:focus-visible {
  background: var(--bg-soft);
  border-color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.work-jump-nav a:active {
  transform: translateY(1px);
}

.work-jump-nav a.is-active {
  background: var(--text);
  color: var(--white);
  border-color: var(--text);
  box-shadow: none;
}

.work-catalog {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 8vw, 4.5rem);
}

.work-category__title {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--accent-dark);
}

.work-category__star {
  color: var(--text);
  opacity: 0.85;
  margin-right: 0.15em;
}

.work-category__lead {
  max-width: 36rem;
  margin: -0.75rem 0 1.75rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

.work-category__lead a {
  color: var(--text);
  font-weight: 400;
  border-bottom: 1px solid var(--accent-dark);
}

.work-category__subtitle {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1.25rem;
}

.case-study__name {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.case-study__context {
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.case-study__live-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--text);
  border-radius: 999px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.case-study__live-link:hover,
.case-study__live-link:focus-visible {
  background: var(--text);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.case-study__live-link::after {
  content: "↗";
  font-size: 0.85em;
  line-height: 1;
}

.case-study--featured {
  padding: 1.5rem 1.25rem;
  background: var(--bg-soft);
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
}

.case-study__meta {
  margin-top: 1.25rem;
  max-width: 40rem;
}

.case-study__row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--accent);
}

.case-study__row:first-child {
  border-top: none;
  padding-top: 0;
}

.case-study__meta dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.case-study__meta dd {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

.web-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1.2vw, 0.75rem);
  max-width: 44rem;
  margin-bottom: 0.25rem;
}

.web-screenshots-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: contain;
  object-position: center center;
  background: var(--bg-soft);
  border: 1px solid var(--accent);
  padding: 0.35rem;
  box-sizing: border-box;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
}

.web-screenshots-grid img:hover {
  border-color: var(--accent-dark);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
}

.web-screenshots-grid--featured {
  max-width: 48rem;
  margin-bottom: 0.5rem;
}

.work-category__lead--emphasis {
  max-width: 40rem;
  margin: -0.5rem 0 1.75rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
}

.work-category--legacy {
  padding: 1.75rem 1.35rem 0.5rem;
  background: var(--bg-soft);
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
}

.legacy-case-study--featured {
  margin-bottom: 2rem;
  padding: 1.5rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--text);
  border-radius: 4px;
  box-shadow: 0 8px 28px rgba(89, 74, 78, 0.06);
}

.legacy-case-study__intro {
  max-width: 40rem;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.7;
}

.work-category__subtitle--legacy {
  margin-top: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.projects-grid--legacy {
  margin-top: 0.5rem;
}

#web-development .case-study + .case-study {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--accent-dark);
}

.featured-callout {
  margin-bottom: 2.5rem;
  padding: 1.5rem 1.35rem;
  background: var(--bg-soft);
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
}

.featured-callout__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.featured-callout__title {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

.featured-callout__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 40rem;
  margin-bottom: 1rem;
}

.featured-callout__cta {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  background: var(--text);
  color: var(--white);
  border-radius: 2px;
  transition: opacity 0.25s var(--ease);
}

.featured-callout__cta:hover {
  opacity: 0.88;
}

.work-nav {
  margin-bottom: 2.5rem;
}

.work-nav__hint {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 1rem;
}

.work-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.work-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  text-align: left;
  border: 2px solid var(--accent-dark);
  border-radius: 4px;
  background: var(--white);
  color: var(--text);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.work-tab:hover {
  border-color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(89, 74, 78, 0.1);
}

.work-tab.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(89, 74, 78, 0.18);
}

.work-tab__label {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.work-tab__sub {
  font-size: 0.75rem;
  font-weight: 300;
  line-height: 1.35;
  opacity: 0.75;
}

.work-tab.is-active .work-tab__sub {
  opacity: 0.85;
}

.work-subtabs {
  display: none;
  gap: 0.5rem;
  margin-bottom: 2.75rem;
  padding: 0.4rem;
  background: var(--bg-soft);
  border-radius: 6px;
}

.work-subtabs.is-visible {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.work-subtab {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
  padding: 0.75rem 0.6rem;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  opacity: 0.5;
  transition:
    opacity 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}

.work-subtab:hover {
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.7);
}

.work-subtab.is-active {
  opacity: 1;
  background: var(--white);
  border-color: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(89, 74, 78, 0.1);
  transform: translateY(-1px);
}

.work-panel {
  display: none;
  content-visibility: hidden;
}

.work-panel.is-active {
  display: block;
  content-visibility: visible;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.work-samples-note,
.legacy-case-study {
  grid-column: 1 / -1;
}

.work-samples-note[data-hidden="true"],
.legacy-case-study[data-hidden="true"] {
  display: none;
}

.legacy-case-study:not(.legacy-case-study--featured) {
  margin: 0.5rem 0 1.5rem;
  padding: 1.5rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--accent-dark);
  border-radius: 4px;
}

.legacy-case-study__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.legacy-case-study__title {
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.legacy-case-study__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 42rem;
}

.project-card__featured-tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.project-card--featured .project-card__image {
  outline: 1px solid var(--accent-dark);
  outline-offset: 4px;
}

.projects-grid .project-card,
.creative-list .creative-project.project-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.projects-grid .project-card.is-visible,
.creative-list .creative-project.project-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project-card__link,
.project-card__body {
  display: block;
}

.project-card__image {
  aspect-ratio: 4 / 3;
  background: var(--accent);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.project-card__image:hover img {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.project-card__image--screenshot {
  background: var(--bg-soft);
}

.project-card__image--screenshot img {
  object-fit: contain;
  padding: 0.75rem;
}

.project-card__category {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.project-card__title {
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.project-card__desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-card__desc--full {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.project-card__site {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--text);
  color: var(--text);
  transition: opacity 0.25s;
}

.project-card__site:hover {
  opacity: 0.65;
}

.skill-item strong {
  font-weight: 500;
  color: var(--text);
}

/* Creative projects , full-width showcase (reference layout) */
.creative-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.75rem, 7vw, 4.5rem);
}

.creative-project {
  width: 100%;
}

.creative-project__title {
  font-size: clamp(1.125rem, 2.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: clamp(0.75rem, 2vw, 1.125rem);
  color: var(--text);
}

.creative-project__images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.35rem, 1vw, 0.5rem);
  background: var(--white);
  width: 100%;
  min-width: 0;
}

.creative-project__images img {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: var(--accent);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
}

.creative-project__images img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.creative-project .project-card__swatches {
  margin-top: clamp(0.875rem, 2vw, 1.25rem);
}

.creative-project .case-study__meta {
  margin-top: 1rem;
}

.project-card__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

.project-card__swatch {
  position: relative;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 4px;
  border: 1px solid rgba(89, 74, 78, 0.12);
  cursor: default;
  flex-shrink: 0;
}

.project-card__swatch::after {
  content: attr(data-hex);
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 0.35rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--accent-dark);
  border-radius: 2px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(89, 74, 78, 0.1);
}

.project-card__swatch:hover::after,
.project-card__swatch:focus-visible::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.project-card[data-hidden="true"] {
  display: none;
}

/* Skills */
.skills {
  background: var(--bg-soft);
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
}

.skills-intro {
  max-width: 36rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.skill-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--accent-dark);
}

.skill-item h3 {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.skill-item p {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Connect */
.connect {
  text-align: center;
  padding-top: clamp(1.75rem, 4vw, 3rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
  background: var(--bg-soft);
}

.connect-lead {
  max-width: 28rem;
  margin: 0 auto 2rem;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.75;
}

.connect-lead a {
  border-bottom: 1px solid var(--accent-dark);
  transition: opacity 0.25s;
}

.connect-lead a:hover {
  opacity: 0.7;
}

.connect-availability {
  max-width: 28rem;
  margin: -0.5rem auto 1.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
}

.connect-form {
  max-width: 28rem;
  margin: 0 auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.connect-form input,
.connect-form textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--accent-dark);
  padding: 0.9rem 1rem;
  border-radius: 2px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.connect-form input::placeholder,
.connect-form textarea::placeholder {
  color: var(--text-muted);
}

.connect-form input:focus,
.connect-form textarea:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.connect-form textarea {
  resize: vertical;
  min-height: 10rem;
}

.connect-form__submit {
  margin-top: 0.5rem;
  padding: 1rem 1.5rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--text);
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.connect-form__submit:hover {
  opacity: 0.88;
}

.connect-form__submit:active {
  transform: scale(0.99);
}

.connect-form__note {
  max-width: 28rem;
  margin: 1.25rem auto 0;
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Footer */
.site-footer {
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--accent);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Floating actions */
.floating-actions {
  position: fixed;
  bottom: clamp(1rem, 3vw, 1.5rem);
  right: clamp(1rem, 3vw, 1.5rem);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--accent-dark);
  color: var(--text);
  box-shadow: 0 4px 14px rgba(89, 74, 78, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(0.35rem);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.back-to-top.is-visible {
  opacity: 0.88;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  opacity: 1;
  background: var(--bg-soft);
  border-color: var(--text);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.back-to-top__icon {
  display: block;
}

.floating-connect {
  width: clamp(4.5rem, 14vw, 5.75rem);
  height: clamp(4.5rem, 14vw, 5.75rem);
  opacity: 0.72;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
  filter: drop-shadow(0 6px 16px rgba(89, 74, 78, 0.16));
}

.floating-connect:hover,
.floating-connect:focus-visible {
  opacity: 1;
  transform: scale(1.05);
}

.floating-connect:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
  border-radius: 50%;
}

.floating-connect img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Fallback if connect-button.png is not uploaded yet */
.floating-connect.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.35;
  padding: 0.75rem;
  box-shadow: 0 8px 24px rgba(89, 74, 78, 0.12);
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* Responsive */
@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-width: 16rem;
    order: -1;
    max-height: 20rem;
    aspect-ratio: 1 / 1;
    margin-left: 0;
  }

  .hero-split {
    align-items: center;
  }

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

/* Keep personal project thumbnails in 3 columns on small screens */
@media (max-width: 768px) {
  .creative-project__images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
  }

  .creative-project__images img {
    min-width: 0;
    width: 100%;
    max-height: none;
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 768px) {
  .reveal,
  .projects-grid .project-card,
  .creative-list .creative-project.project-card {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

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

  .work-tabs {
    grid-template-columns: 1fr;
  }

  .work-tab {
    padding: 1.15rem 1.25rem;
  }

  .work-tab__label {
    font-size: 1rem;
  }

  .work-subtab {
    font-size: 0.8125rem;
    padding: 0.8rem 0.45rem;
  }

  .case-study__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .web-screenshots-grid,
  .web-screenshots-grid--featured {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }
}

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

  .reveal,
  .projects-grid .project-card,
  .creative-list .creative-project.project-card {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .project-card__image img {
    transition: none;
  }

  .back-to-top,
  .floating-connect {
    transition: none;
  }
}

main {
  padding-bottom: 5rem;
}
