/* =============================================
   LILY DYKSTRA PORTFOLIO — SHARED STYLESHEET
   ============================================= */

/* Fonts loaded via <link rel="preload"> in HTML with &display=swap for font-display:swap */

/* ─── CSS Variables ─── */
:root {
  /* Warm pastel palette */
  --cream:        #FDFAF5;
  --blush:        #F2A89A;
  --sage:         #A8C5A0;
  --butter:       #F5DFA0;
  --lavender:     #C4B5D4;
  --navy:         #2C3E50;
  --mid:          #6B7280;
  --light-border: #E8E4DC;

  /* Legacy aliases so old inline style var() references resolve correctly */
  --coral:        #F2A89A;
  --yellow:       #F5DFA0;
  --mint:         #A8C5A0;
  --white:        #FFFFFF;
  --off-white:    #FDFAF5;
  --light-gray:   #E8E4DC;
  --gray:         #6B7280;
  --dark-text:    #2C3E50;
  --body-text:    #4B5563;

  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 4px rgba(44,62,80,0.06);
  --shadow-md: 0 2px 12px rgba(44,62,80,0.08);
  --shadow-lg: 0 4px 24px rgba(44,62,80,0.10);

  --transition:      0.25s ease;
  --transition-slow: 0.4s ease;

  --nav-h: 68px;
}

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; font-size: 16px; }

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  animation: pageFadeIn 0.35s ease both;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ─── Typography ─── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
}

h1 { font-size: clamp(1.9rem, 4vw, 3rem);   font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem);   font-weight: 600; }
h3 { font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 500; }
h4 { font-size: 1rem; font-weight: 500; }

p { max-width: 68ch; }

.section-heading { text-align: center; margin-bottom: 0.5rem; }
.section-sub {
  text-align: center;
  color: var(--mid);
  font-size: 1rem;
  margin-bottom: 3rem;
}

/* ─── Container ─── */
.container { width: min(1160px, 92%); margin-inline: auto; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.68rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), border-color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--blush); color: var(--navy); }
.btn-primary:hover { background: #EE9A8B; box-shadow: var(--shadow-sm); }

.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--cream); box-shadow: var(--shadow-sm); }

.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--light-border); }
.btn-outline:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }

.btn-ghost { background: transparent; color: var(--blush); padding-inline: 0; font-weight: 500; }
.btn-ghost:hover { gap: 0.6rem; transform: none; box-shadow: none; }

/* ─── Tag Pills ─── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  align-self: flex-start;
}
.tag-ux     { background: #FADDD9; color: #7D3228; }
.tag-fab    { background: #D5E8D2; color: #2A5C30; }
.tag-hw     { background: #FAF0CC; color: #7A6000; }
.tag-design { background: #E8E0F0; color: #52447A; }

/* ─── Navigation ─── */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-color: var(--light-border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  width: min(1160px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.08em;
  flex-shrink: 0;
  background: none;
  -webkit-text-fill-color: unset;
}

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

.nav-links > li > a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.8rem;
  right: 0.8rem;
  height: 1.5px;
  background: var(--blush);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: center;
  border-radius: 2px;
}
.nav-links > li > a:hover { color: var(--blush); }
.nav-links > li > a:hover::after { transform: scaleX(1); }

/* Dropdown */
.nav-dropdown { position: relative; }

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform var(--transition);
  display: inline-block;
}
.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.open .dropdown-arrow { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--light-border);
  min-width: 240px;
  padding: 0.4rem;
  padding-top: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu li a {
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
}
.dropdown-menu li a::after { display: none; }
.dropdown-menu li a:hover { background: var(--cream); color: var(--blush); }
.dropdown-menu li:first-child a { font-weight: 500; color: var(--blush); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Footer ─── */
#footer {
  background: var(--white);
  color: var(--navy);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--light-border);
  margin-bottom: 1.5rem;
}

.footer-brand .nav-logo {
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--navy);
  background: none;
  -webkit-text-fill-color: unset;
  letter-spacing: 0.08em;
}

.footer-brand p { font-size: 0.88rem; color: var(--mid); max-width: 28ch; }

.footer-col h4 {
  color: var(--mid);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 600;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.87rem; color: var(--navy); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--blush); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--mid);
  padding-top: 0.5rem;
}

.social-links { display: flex; gap: 0.65rem; }
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--light-border);
  font-size: 0.85rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  color: var(--navy);
}
.social-link:hover { background: var(--blush); border-color: var(--blush); color: var(--navy); }

/* ─── Scroll Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

.fade-in {
  opacity: 0;
  transition: opacity 0.65s ease;
}
.fade-in.visible { opacity: 1; }

.stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.stagger > *.visible { opacity: 1; transform: translateY(0); }

/* ─── Project Cards ─── */
.project-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-border);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.project-card-img { height: 220px; overflow: hidden; position: relative; }
.project-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--transition-slow);
}
.project-card:hover .project-card-img img { transform: scale(1.03); }

.project-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(44,62,80,0.4);
  letter-spacing: 0.02em;
}

.project-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.project-card-body h3 { font-size: 1.05rem; line-height: 1.35; }
.project-card-body p  { font-size: 0.85rem; color: var(--mid); line-height: 1.65; flex: 1; }

.project-card-footer {
  padding: 0 1.4rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ─── Section Spacing ─── */
section { padding: 5rem 0; }
section:nth-child(even) { background: var(--white); }

/* ─── Divider ─── */
.divider {
  width: 36px;
  height: 2px;
  border-radius: 2px;
  background: var(--blush);
  margin: 0.6rem auto 0;
}
.divider-left { margin-left: 0; }

/* ─── Back Link ─── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--mid);
  padding: 0.5rem 0;
  transition: color var(--transition), gap var(--transition);
  margin-bottom: 1rem;
}
.back-link:hover { color: var(--blush); gap: 0.6rem; }

/* =============================================
   HOME PAGE
   ============================================= */

.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
  background: var(--cream);
}

/* Hide the old dark gradient background and blobs entirely */
.hero-bg, .hero-blob { display: none; }

/* ─── Hero decorative elements ─── */
.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-soft-blob {
  position: absolute;
  border-radius: 50%;
}
.hero-soft-blob-1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, #FAD9D5 0%, transparent 68%);
  top: -90px; right: -80px;
  opacity: 0.7;
}
.hero-soft-blob-2 {
  width: 220px; height: 220px;
  background: radial-gradient(circle, #F5DFA0 0%, transparent 68%);
  bottom: 100px; left: 3%;
  opacity: 0.55;
}
.hero-soft-blob-3 {
  width: 160px; height: 160px;
  background: radial-gradient(circle, #C8E6C3 0%, transparent 68%);
  top: 38%; right: 22%;
  opacity: 0.45;
}

/* Small hand-drawn squiggle doodles */
.hero-scribble {
  position: absolute;
  overflow: visible;
}
.hero-scribble-1 {
  width: 80px;
  top: 18%; left: 4%;
  opacity: 0.45;
  transform: rotate(-8deg);
}
.hero-scribble-2 {
  width: 64px;
  bottom: 22%; right: 5%;
  opacity: 0.4;
  transform: rotate(12deg);
}
.hero-scribble-3 {
  width: 52px;
  top: 12%; right: 28%;
  opacity: 0.3;
  transform: rotate(-4deg);
}

/* Squiggly wave divider at the bottom of the hero */
.hero-wave-bottom {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.hero-wave-bottom svg { display: block; width: 100%; height: auto; }

@media (max-width: 600px) {
  .hero-scribble { display: none; }
  .hero-soft-blob-1 { width: 180px; height: 180px; opacity: 0.4; }
  .hero-soft-blob-2 { display: none; }
  .hero-soft-blob-3 { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-text { max-width: 560px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid var(--light-border);
  color: var(--mid);
  border-radius: 100px;
  padding: 0.28rem 0.85rem;
  font-size: 0.76rem;
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.hero-text h1 {
  color: var(--navy);
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 0.75rem;
  line-height: 1.2;
  font-weight: 600;
}

.hero-text h1 span {
  color: var(--blush);
  background: none;
  -webkit-text-fill-color: unset;
  text-decoration: underline wavy rgba(242,168,154,0.55);
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.hero-subhead {
  color: var(--mid);
  font-size: 1rem;
  font-family: var(--font-head);
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.hero-tagline {
  color: var(--mid);
  font-size: 0.92rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.hero-ctas { display: flex; gap: 0.85rem; flex-wrap: wrap; }

/* Headshot — simple circle, no morphing */
.hero-photo { flex-shrink: 0; position: relative; }

.headshot-frame {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.headshot-frame img { width: 100%; height: 100%; object-fit: cover; }

.headshot-frame-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #F8EDEA, #EDE8F5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.headshot-border {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--blush);
  opacity: 0.75;
  /* no animation */
}

.headshot-accent {
  position: absolute;
  width: 42px;
  height: 42px;
  background: var(--butter);
  border-radius: 50%;
  bottom: 12px;
  right: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: var(--shadow-sm);
  /* no bounce animation */
}

/* Stats strip */
.stats-strip {
  background: #FAF3E5;
  padding: 3rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.stats-wave-bottom {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 2;
  line-height: 0;
}
.stats-wave-bottom svg { display: block; width: 100%; height: auto; }

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid #EDE5D4;
  box-shadow: none;
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.stat-item {
  padding: 2rem 1.5rem;
  text-align: center;
  background: transparent;
  border-right: 1px solid #EDE5D4;
  transition: background var(--transition);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.45); }

.stat-icon { font-size: 1.7rem; margin-bottom: 0.5rem; display: block; }
.stat-item h4 { font-size: 0.95rem; color: var(--navy); margin-bottom: 0.2rem; }
.stat-item p  { font-size: 0.78rem; color: var(--mid); max-width: none; }

/* Featured works */
.featured-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }

/* =============================================
   ABOUT PAGE
   ============================================= */

.about-hero {
  background: var(--cream);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--light-border);
}
.about-hero::before { display: none; }
.about-hero h1 { color: var(--navy); }
.about-hero p  { color: var(--mid); }

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

.bio-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--body-text);
  margin-bottom: 1.25rem;
}

.bio-photo {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.bio-photo-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
}
.bio-photo-frame img { width: 100%; height: 100%; object-fit: cover; }

.bio-photo-accent {
  position: absolute;
  bottom: -12px;
  right: -12px;
  width: 60px;
  height: 60px;
  background: var(--butter);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* Skills */
.skills-section { background: var(--white); }

.skills-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.skill-group h4 {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
  font-weight: 500;
}

.skill-list { display: flex; flex-direction: column; gap: 0.4rem; }

.skill-chip {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.52rem 0.85rem;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--navy);
  border: none;
  transition: background var(--transition), transform var(--transition);
  cursor: default;
}
.skill-chip:hover { background: #F4EBE0; transform: translateY(-1px); }
.skill-chip .skill-icon { font-size: 1rem; flex-shrink: 0; }

/* Timeline */
.timeline-section { background: var(--cream); }

.timeline { position: relative; max-width: 800px; margin: 0 auto; }

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--light-border);
  transform: translateX(-50%);
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr 40px 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}

.timeline-item:nth-child(odd) .timeline-content  { grid-column: 1; text-align: right; }
.timeline-item:nth-child(odd) .timeline-dot      { grid-column: 2; }
.timeline-item:nth-child(odd) .timeline-empty    { grid-column: 3; }
.timeline-item:nth-child(even) .timeline-empty   { grid-column: 1; }
.timeline-item:nth-child(even) .timeline-dot     { grid-column: 2; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; text-align: left; }

.timeline-dot {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.45rem;
}

.timeline-dot-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blush);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1.5px var(--blush);
  flex-shrink: 0;
}

.timeline-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-border);
  transition: box-shadow var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-md); }

.timeline-date {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.74rem;
  color: var(--navy);
  background: var(--butter);
  border-radius: 100px;
  padding: 0.16rem 0.6rem;
  margin-bottom: 0.4rem;
}

.timeline-content h4 { font-size: 0.94rem; margin-bottom: 0.3rem; color: var(--navy); }
.timeline-content p  { font-size: 0.82rem; color: var(--mid); line-height: 1.65; max-width: none; }

/* =============================================
   PROJECTS PAGE
   ============================================= */

.projects-hero {
  background: var(--cream);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--light-border);
}
.projects-hero::before { display: none; }
.projects-hero h1 { color: var(--navy); }
.projects-hero p  { color: var(--mid); }

.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.filter-btn {
  padding: 0.38rem 1rem;
  border-radius: 100px;
  border: 1px solid var(--light-border);
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--mid);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--blush); color: var(--blush); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: var(--cream); }

.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.project-card[data-hidden] { display: none; }

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

.project-hero-banner { width: 100%; height: 380px; position: relative; overflow: hidden; background: var(--cream); display: flex; align-items: center; justify-content: center; }
.project-hero-banner img { width: 100%; height: 100%; object-fit: contain; }

.project-hero-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-family: var(--font-head);
  font-weight: 500;
  color: rgba(44,62,80,0.4);
  letter-spacing: 0.03em;
}

.project-header { padding: 2.5rem 0 1.5rem; }
.project-header h1 { margin: 0.6rem 0 0.4rem; }

.project-body { padding: 0 0 5rem; }

.project-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.project-main > section {
  padding: 0 0 2.5rem;
  border-bottom: 1px solid var(--light-border);
  margin-bottom: 2.5rem;
  background: transparent;
}
.project-main > section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-main h2 { font-size: 1.12rem; margin-bottom: 0.85rem; color: var(--navy); font-weight: 600; }

.project-main p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--body-text);
  margin-bottom: 0.75rem;
  max-width: 70ch;
}

.project-main ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.project-main ul li {
  font-size: 0.9rem;
  color: var(--body-text);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.65;
}
.project-main ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--blush);
}

.process-images { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; margin-top: 1rem; }

.process-img-box {
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--cream);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-img-box img { width: 100%; height: 100%; object-fit: contain; }

.process-img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--mid);
  font-family: var(--font-head);
  padding: 1rem;
  text-align: center;
}

/* Sidebar */
.project-sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); }

.sidebar-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--light-border);
}

.sidebar-card h3 {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--light-border);
  color: var(--navy);
}

.sidebar-detail { display: flex; flex-direction: column; gap: 0.85rem; }
.sidebar-row { display: flex; flex-direction: column; gap: 0.2rem; }

.sidebar-label { font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--mid); font-weight: 500; }
.sidebar-value { font-size: 0.87rem; color: var(--navy); font-weight: 400; }

.tools-list { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.2rem; }

.tool-chip {
  background: var(--white);
  border: 1px solid var(--light-border);
  border-radius: 100px;
  padding: 0.16rem 0.6rem;
  font-size: 0.71rem;
  color: var(--navy);
  font-weight: 400;
}

/* Next Project */
.next-project-section {
  background: var(--cream);
  padding: 3rem 0;
  border-top: 1px solid var(--light-border);
}

.next-project-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--light-border);
  transition: box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
}
.next-project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.next-project-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mid);
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.next-project-title { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy); }

.next-project-arrow { font-size: 1.4rem; color: var(--blush); transition: transform var(--transition); }
.next-project-card:hover .next-project-arrow { transform: translateX(5px); }

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

.contact-hero {
  background: var(--cream);
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--light-border);
}
.contact-hero h1 { color: var(--navy); }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3.5rem;
  padding: 4rem 0 5rem;
  align-items: start;
}

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

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

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

.form-group label {
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.form-input,
.form-textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--light-border);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-input::placeholder,
.form-textarea::placeholder { color: #B0ADA8; }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--blush);
  box-shadow: 0 0 0 3px rgba(242,168,154,0.15);
}

.form-textarea { resize: vertical; min-height: 140px; line-height: 1.65; }

.form-options { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.15rem; }

.form-option {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.form-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-option span {
  display: inline-block;
  padding: 0.38rem 1rem;
  border-radius: 100px;
  border: 1.5px solid var(--light-border);
  background: var(--white);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mid);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.form-option:hover span { border-color: var(--blush); color: var(--blush); }
.form-option input[type="radio"]:checked + span {
  background: var(--blush);
  border-color: var(--blush);
  color: var(--navy);
}

.form-submit {
  align-self: flex-start;
  min-width: 160px;
  justify-content: center;
  font-size: 0.92rem;
  padding: 0.78rem 2rem;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.form-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 2.5rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid var(--light-border);
}
.form-success-icon { font-size: 2.5rem; }
.form-success h3   { color: var(--navy); }
.form-success p    { color: var(--mid); font-size: 0.95rem; max-width: 44ch; }

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
}

.contact-info-card,
.contact-open-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
}

.contact-info-card h3,
.contact-open-card h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mid);
  margin-bottom: 1.1rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--light-border);
}
.contact-info-item:first-of-type { padding-top: 0; }
.contact-info-item:last-child    { border-bottom: none; padding-bottom: 0; }

.contact-info-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.1rem; }

.contact-info-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mid);
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.contact-info-value { font-size: 0.88rem; color: var(--navy); font-weight: 400; word-break: break-all; }
a.contact-info-value:hover { color: var(--blush); text-decoration: underline; }

.open-to-list { display: flex; flex-direction: column; gap: 0.5rem; }
.open-to-list li {
  font-size: 0.88rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.open-to-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

.contact-response-note { font-size: 0.78rem; color: var(--mid); text-align: center; max-width: none; }

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

/* ── Laptop edge (≤1100px): tighten hero gap + headshot ── */
@media (max-width: 1100px) {
  .hero-inner { gap: 3rem; }
  .headshot-frame { width: 260px; height: 260px; }
  .project-layout { grid-template-columns: 1fr 240px; gap: 2rem; }
}

/* ── Tablet landscape / small laptop (≤900px) ── */
@media (max-width: 900px) {
  section { padding: 4rem 0; }

  .hero { padding: 4rem 0 5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
  .hero-photo { margin: 0 auto; }
  .hero-ctas  { justify-content: center; }
  .headshot-frame { width: 220px; height: 220px; }

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

  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { position: static; }

  .skills-groups { grid-template-columns: repeat(2, 1fr); }

  .timeline::before { left: 20px; transform: none; }
  .timeline-item { grid-template-columns: 40px 1fr; }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content { grid-column: 2; text-align: left; }
  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot { grid-column: 1; }
  .timeline-empty { display: none; }

  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }

  .project-layout { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }

  .contact-layout  { grid-template-columns: 1fr; }
  .contact-sidebar { position: static; }

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── Tablet portrait (≤768px): hamburger nav + stacked layouts ── */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Show hamburger, hide inline links */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem;
    gap: 0.2rem;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--light-border);
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 0.65rem 0.85rem; }
  .nav-links > li > a::after { display: none; }

  /* ── Mobile dropdown: reset ALL desktop positioning/visibility tricks ── */
  .dropdown-menu {
    /* layout */
    position: static !important;
    width: 100%;
    min-width: 0;
    /* appearance */
    background: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    /* visibility — override desktop opacity/transform trick */
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
    z-index: auto !important;
    /* hidden by default; shown by .open below */
    display: none !important;
  }
  /* Show submenu when parent has .open */
  .nav-dropdown.open > .dropdown-menu {
    display: block !important;
    transform: none !important;
    opacity: 1 !important;
  }
  /* Submenu items — indented under Projects */
  .dropdown-menu li a {
    padding: 0.45rem 0.85rem 0.45rem 2rem;
    font-size: 0.85rem;
    color: var(--mid);
    border-radius: var(--radius-sm);
  }
  .dropdown-menu li:first-child a {
    color: var(--blush);
    font-weight: 500;
    padding-left: 2rem;
  }
  .dropdown-menu li a:hover { background: var(--cream); color: var(--blush); }

  section { padding: 3.5rem 0; }

  .hero { padding: 3rem 0 4.5rem; }
  .headshot-frame { width: 200px; height: 200px; }

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

  /* Footer: single column, left-aligned */
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    text-align: left;
  }
}

/* ── Mobile (≤600px) ── */
@media (max-width: 600px) {
  section { padding: 3rem 0; }

  .hero { padding: 2.5rem 0 3.5rem; min-height: auto; }
  .headshot-frame { width: 170px; height: 170px; }

  .project-hero-banner { height: 220px; }

  .stats-inner { grid-template-columns: 1fr; border-radius: var(--radius-lg); }
  .stat-item { border-right: none; border-bottom: 1px solid #EDE5D4; }
  .stat-item:last-child { border-bottom: none; }

  .skills-groups { grid-template-columns: 1fr; }
  .process-images { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }

  .next-project-card { flex-direction: column; gap: 0.85rem; text-align: center; }

  .filter-bar { gap: 0.35rem; }
  .filter-btn { font-size: 0.75rem; padding: 0.32rem 0.75rem; }

  /* Footer mobile */
  #footer { padding: 2.5rem 0 1.5rem; }
  .footer-inner { gap: 1.25rem; }
  .footer-bottom { overflow-wrap: break-word; word-break: break-word; }
}

/* ── Small mobile (≤420px) ── */
@media (max-width: 420px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .headshot-frame { width: 150px; height: 150px; }
  .hero-subhead { font-size: 0.88rem; }
}

/* ── Modal image grid ── */
.modal-image-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  background: none;
  padding: 0;
}

.modal-image-grid.g1 { grid-template-columns: 1fr; }
.modal-image-grid.g2 { grid-template-columns: 1fr 1fr; }
.modal-image-grid.g3 { grid-template-columns: 1fr 1fr 1fr; }

.modal-image-grid.g4 {
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.modal-image-grid.g4 img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 6px;
}

/* ── Modal horizontal image scroll strip ── */
.modal-image-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.modal-image-scroll img {
  flex-shrink: 0;
  width: 220px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  scroll-snap-align: start;
}

.modal-image-scroll img:first-child {
  scroll-snap-align: start;
}

.modal-image-scroll::-webkit-scrollbar { height: 4px; }
.modal-image-scroll::-webkit-scrollbar-track { background: var(--cream); }
.modal-image-scroll::-webkit-scrollbar-thumb { background: var(--blush); border-radius: 4px; }

.modal-image-grid img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 8px;
  background: none;
}
