/* ============================================================
   Tanhya Bascombe — Portfolio v3
   style.css — shared design system
   ============================================================ */

/* ==== 1. DESIGN TOKENS ==== */
:root {
  /* Backgrounds */
  --bg:           #ffffff;
  --bg-alt:       #f8f8f6;
  --bg-dark:      #111111;

  /* Text */
  --text:         #1a1a1a;
  --text-muted:   #6b6b6b;
  --text-on-dark: #f5f5f3;

  /* Borders */
  --border:       #e8e8e5;

  /* Accent colours */
  --pink:         #b85c8a;
  --green:        #3d8c6a;
  --blue:         #4a6db8;
  --pink-light:   rgba(184, 92, 138, 0.09);
  --green-light:  rgba(61, 140, 106, 0.09);
  --blue-light:   rgba(74, 109, 184, 0.09);

  /* Typography */
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --container:    1160px;
  --nav-height:   68px;
  --radius:       6px;
  --radius-lg:    12px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ==== 2. RESET & BASE ==== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}


/* ==== 3. LAYOUT ==== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}


/* ==== 4. BUTTONS ==== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background 0.22s var(--ease),
              color 0.22s var(--ease),
              border-color 0.22s var(--ease),
              transform 0.15s var(--ease),
              box-shadow 0.22s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Dark filled button */
.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover {
  background: #333;
  border-color: #333;
}

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--text); }

/* Ghost / subtle button */
.btn-ghost {
  background: var(--bg-alt);
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--border);
  color: var(--text);
}

/* SVG icons inside buttons pick up the button text colour */
.btn svg path,
.btn svg polygon,
.btn svg rect,
.btn svg circle,
.btn svg line {
  fill: currentColor;
}


/* ==== 5. NAVIGATION ==== */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-wrapper.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Logo: SVG mark + text */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  flex-shrink: 0;
  color: var(--text);
  overflow: visible;
}

/* Compass idle spin: one full rotation at 12 s, then holds */
.logo-spinner {
  transform-origin: 12px 12px;
  animation: compass-idle 12s linear infinite;
}

@keyframes compass-idle {
  0%     { transform: rotate(0deg); }
  8.33%  { transform: rotate(360deg); }
  100%   { transform: rotate(360deg); }
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text);
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* Hamburger — mobile only */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.bar {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: width 0.25s, transform 0.25s, opacity 0.25s;
}
.bar:nth-child(1) { width: 24px; }
.bar:nth-child(2) { width: 18px; }
.bar:nth-child(3) { width: 24px; }

.hamburger.is-open .bar:nth-child(1) {
  width: 24px;
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger.is-open .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.is-open .bar:nth-child(3) {
  width: 24px;
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Scroll offset for sticky nav */
section[id] {
  scroll-margin-top: var(--nav-height);
}


/* ==== 6. SCROLL ANIMATIONS ==== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Page-load sequential fade-in (applied via JS) */
.load-in {
  opacity: 0;
  transform: translateY(18px);
  animation: load-in-anim 0.7s var(--ease) forwards;
}
@keyframes load-in-anim {
  to { opacity: 1; transform: translateY(0); }
}


/* ==== 7. TYPOGRAPHY UTILITIES ==== */
.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 32px;
  line-height: 1.2;
}


/* ==== 8. HERO ==== */
main {
  padding-top: var(--nav-height);
}

.hero {
  padding: 80px 0 64px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

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

.hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4.8vw, 3.875rem);
  font-weight: 400;
  line-height: 1.13;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-heading .hero-italic {
  font-style: italic;
  color: var(--pink);
}

.hero-tagline {
  font-size: 1.0625rem;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Photo */
.hero-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}

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

.hero-photo-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}


/* ==== 9. STATS BAR ==== */
.hero-stats {
  margin-top: 56px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-row {
  display: flex;
  align-items: stretch;
}

/* Bordered box stats */
.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 28px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-right: none;
}
.stat:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat:last-child  { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1px solid var(--border); }

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 3.8vw, 2.75rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Stat divider — hidden in new design (kept for compatibility) */
.stat-divider { display: none; }


/* ==== 10. PROJECTS ==== */
.projects-section {
  padding: 96px 0;
}

/* 2-card grid */
.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.project-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.project-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-card-image img {
  transform: scale(1.03);
}

.project-card-image .placeholder-icon {
  width: 44px;
  height: 44px;
  opacity: 0.2;
  color: var(--text-muted);
}

.project-card-image .placeholder-label {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.project-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Category tags */
.project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  align-self: flex-start;
}
.project-tag--pink    { background: var(--pink-light);  color: var(--pink);  }
.project-tag--green   { background: var(--green-light); color: var(--green); }
.project-tag--blue    { background: var(--blue-light);  color: var(--blue);  }
.project-tag--neutral { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }

.project-card-title {
  font-family: var(--font-heading);
  font-size: 1.3125rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-card-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex: 1;
}

/* Shimmer "in progress" image area */
@keyframes shimmer-sweep {
  0%   { transform: translateX(-150%); }
  100% { transform: translateX(400%); }
}

.project-card-image--shimmer {
  background: linear-gradient(135deg, #f7f7f7, #f0f0f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-image--shimmer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 35%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
  animation: shimmer-sweep 2.8s ease-in-out infinite;
}

.shimmer-label {
  font-family: var(--font-body);
  font-size: 11px;
  color: #bbb;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

/* Disabled "Coming Soon" button */
.project-card-cta--disabled {
  border: 1px solid #e8e8e8;
  color: #bbb;
  background: var(--bg);
  cursor: default;
  pointer-events: none;
  display: inline-block;
}

/* Wide single-row card (Quick Links) */
.project-wide {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.project-wide:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.07);
  transform: translateY(-2px);
}

.project-wide-body {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-wide-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.25;
}

.project-wide-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.project-wide-image {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border-left: 1px solid var(--border);
}

.project-wide-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 0% 15%;
  display: block;
}

.project-wide-image .placeholder-icon {
  width: 52px;
  height: 52px;
  opacity: 0.18;
  color: var(--text-muted);
}

.project-wide-image .placeholder-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Decorative circles */
.placeholder-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}
.placeholder-circle--tl { width: 130px; height: 130px; top: -44px; left: -44px; }
.placeholder-circle--br { width: 170px; height: 170px; bottom: -60px; right: -60px; opacity: 0.6; }


/* ==== 11. SKILLS ==== */
.skills-section {
  padding: 80px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.skill-tag {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 40px;
  border: 1px solid transparent;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.skill-tag:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.skill-tag--pink    { background: var(--pink-light);  color: var(--pink);  border-color: rgba(184,92,138,0.2);  }
.skill-tag--green   { background: var(--green-light); color: var(--green); border-color: rgba(61,140,106,0.2);  }
.skill-tag--blue    { background: var(--blue-light);  color: var(--blue);  border-color: rgba(74,109,184,0.2);  }
.skill-tag--neutral { background: var(--bg); color: var(--text-muted); border-color: var(--border); }


/* ==== 12. CONTACT ==== */
.contact-section {
  padding: 96px 0;
}

.contact-container { text-align: center; }

.contact-subtext {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-weight: 300;
}

.contact-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-btn {
  min-width: 140px;
  justify-content: center;
}


/* ==== 13. ABOUT PAGE ==== */
.about-pg-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--border);
}

.about-pg-hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-pg-photo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-pg-photo-circle {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #f0dbe8;
  box-shadow: 0 8px 32px rgba(184, 92, 138, 0.12);
  z-index: 1;
  position: relative;
}

.about-pg-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 50%;
}

.about-pg-photo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}

.about-pg-hero-text .hero-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.about-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}

.about-pg-happy-section {
  padding: 80px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.about-pg-happy-text {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  max-width: 720px;
}

.about-pg-how-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.about-pg-how-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 48px;
  font-weight: 300;
}

.about-pg-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-pg-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.about-pg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

/* Staggered scroll-in delay per card */
.about-pg-cards-grid .about-pg-card:nth-child(2) { transition-delay: 0.15s; }
.about-pg-cards-grid .about-pg-card:nth-child(3) { transition-delay: 0.30s; }
.about-pg-cards-grid .about-pg-card:nth-child(4) { transition-delay: 0.45s; }

/* Reset delay on hover so the lift is instant */
.about-pg-card:hover { transition-delay: 0s; }

.about-pg-card-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}

.about-pg-card-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-pg-photos-section {
  padding: 80px 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.about-pg-masonry {
  columns: 3;
  column-gap: 12px;
}

.about-pg-masonry-img {
  width: 100%;
  margin-bottom: 12px;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  break-inside: avoid;
}

.about-pg-quote-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.about-pg-quote {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}

.about-pg-quote-mark {
  display: block;
  font-family: var(--font-heading);
  font-size: 5rem;
  line-height: 1;
  color: var(--pink);
  margin-bottom: -4px;
  opacity: 0.35;
}

.about-pg-quote-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 20px;
}

.about-pg-quote-attribution {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-pg-clocked-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.about-pg-clocked-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.about-pg-clocked-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.about-pg-clocked-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.about-pg-clocked-card:hover { transition-delay: 0s; }

.about-pg-clocked-card-title {
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text);
}

.about-pg-clocked-card-text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* ==== 14. PASSWORD PAGE ==== */
.password-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.password-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.password-lock-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
}

.password-project-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.password-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 12px;
  line-height: 1.2;
}

.password-subtext {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

.password-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  text-align: center;
  letter-spacing: 0.05em;
}

.password-input::placeholder {
  letter-spacing: 0;
  color: var(--text-muted);
}

.password-input:focus { border-color: var(--text); }

.password-input.shake {
  animation: shake 0.45s var(--ease);
  border-color: #d94040;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%       { transform: translateX(-8px); }
  30%       { transform: translateX(7px); }
  45%       { transform: translateX(-6px); }
  60%       { transform: translateX(5px); }
  75%       { transform: translateX(-3px); }
  90%       { transform: translateX(2px); }
}

.password-error {
  font-size: 0.875rem;
  color: #d94040;
  min-height: 1.25em;
  opacity: 0;
  transition: opacity 0.2s;
}
.password-error.is-visible { opacity: 1; }

.password-submit {
  width: 100%;
  justify-content: center;
  padding: 14px;
}

.password-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin: 8px 0;
}
.password-divider::before,
.password-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.password-back-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.password-back-link:hover { color: var(--text); }


/* ==== 15. FOOTER ==== */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--text);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
}


/* ==== 16. RESPONSIVE ==== */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-text { max-width: 100%; order: 1; }
  .hero-photo-wrap { order: 0; }
  .hero-photo { width: 280px; height: 280px; margin: 0 auto; }
  .hero-ctas { justify-content: center; }

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

  .about-pg-hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .about-pg-photo-circle { margin-inline: auto; }
  .about-pg-cards-grid { grid-template-columns: 1fr; }
  .about-pg-clocked-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Hamburger */
  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px 20px;
    gap: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.25s var(--ease);
    z-index: 99;
    backdrop-filter: blur(8px);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 13px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links li:last-child a { border-bottom: none; }

  /* Stats stack vertically */
  .stats-row { flex-direction: column; }
  .stat {
    border-radius: var(--radius) !important;
    border-right: 1px solid var(--border) !important;
  }
  .stat + .stat { margin-top: 8px; }

  .contact-links { flex-direction: column; align-items: center; }
  .contact-btn { width: 100%; max-width: 300px; }

  .footer-inner { flex-direction: column; text-align: center; gap: 4px; }
}

@media (max-width: 540px) {
  .hero-photo { width: 220px; height: 220px; }
  .logo-text  { font-size: 1rem; }
  .about-pg-clocked-grid { grid-template-columns: 1fr; }
  .about-pg-masonry { columns: 2; }
}
