/* =============================================
   Zachary Zieper Personal Website
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@700&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --navy:       #0f1e3d;
  --navy-mid:   #1a3260;
  --steel:      #4a7fc1;
  --steel-light:#7aaee0;
  --gold:       #c9a84c;
  --gold-light: #e2c97e;
  --off-white:  #f4f6fa;
  --white:      #ffffff;
  --text-dark:  #1a1a2e;
  --text-mid:   #4a4a6a;
  --border:     rgba(74,127,193,0.2);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-hamburger {
  display: none;
  background: none;
  border: 1.5px solid rgba(201,168,76,0.45);
  color: var(--gold);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.28rem 0.58rem;
  border-radius: 4px;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { border-color: var(--gold); }

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15,30,61,0.97);
  backdrop-filter: blur(10px);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  border-bottom: 1px solid rgba(201,168,76,0.25);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.2s;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  /* Use svh (small viewport height) where supported — excludes Android browser chrome */
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3f7a 100%);
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,127,193,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,127,193,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,127,193,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,127,193,0.04) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.4rem;
}

.hero-text .subtitle {
  font-size: 1.1rem;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 1.4rem;
  letter-spacing: 0.02em;
}

.hero-text .tagline {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.badge {
  background: rgba(74,127,193,0.15);
  border: 1px solid rgba(74,127,193,0.35);
  color: var(--steel-light);
  padding: 0.25rem 0.75rem;
  border-radius: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge.gold {
  background: rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.4);
  color: var(--gold-light);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  border-radius: 12px;
  border: 3px solid rgba(201,168,76,0.35);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: block;
}

.hero-photo::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px;
}

/* ── Section Base ── */
section {
  padding: 5rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-label::before {
  content: '// ';
  opacity: 0.5;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--navy);
  margin-bottom: 1rem;
}

.section-title.light { color: var(--white); }

.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 3rem;
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  left: 56px;
  top: 1px;
  width: 120px;
  height: 1px;
  background: var(--border);
}

/* ── About / Skills ── */
#about { background: var(--white); }

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

.about-text p {
  color: var(--text-mid);
  margin-bottom: 1.2rem;
  line-height: 1.75;
}

.skills-grid {
  display: grid;
  gap: 1.2rem;
}

.skill-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  display: block;
  margin-bottom: 0.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.skill-tag {
  background: var(--off-white);
  border: 1px solid var(--border);
  color: var(--text-mid);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* ── Experience ── */
#experience { background: var(--off-white); }

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--steel), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.4rem;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.25);
}

.timeline-company {
  font-weight: 700;
  color: var(--navy);
  font-size: 1rem;
}

.timeline-role {
  color: var(--steel);
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.1rem 0;
}

.timeline-period {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
}

.timeline-bullets {
  list-style: none;
  padding: 0;
}

.timeline-bullets li {
  color: var(--text-mid);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.15rem 0 0.15rem 1rem;
  position: relative;
}

.timeline-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--steel);
  font-weight: 700;
}

/* ── IPP Pages ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 7rem 2rem 4rem;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 0.8rem;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

.page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* IPP 43 Hints */
.hint-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hint-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.hint-card:hover { box-shadow: 0 4px 20px rgba(74,127,193,0.15); }

.hint-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  user-select: none;
}

.hint-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--steel));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hint-label {
  font-weight: 600;
  color: var(--navy);
  flex: 1;
}

.hint-chevron {
  color: var(--steel);
  transition: transform 0.3s;
  font-size: 1.2rem;
}

.hint-card.open .hint-chevron { transform: rotate(180deg); }

.hint-body {
  display: none;
  padding: 0 1.4rem 1.4rem;
  border-top: 1px solid var(--border);
}

.hint-card.open .hint-body { display: block; }

.hint-body img {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  display: block;
  margin: 1rem auto 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* Download section */
.download-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.download-card .icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.download-card h3 {
  color: var(--white);
  margin-bottom: 0.3rem;
}

.download-card p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-bottom: 0.8rem;
}

/* ── Coming Soon ── */
.coming-soon {
  text-align: center;
  padding: 6rem 2rem;
}

.coming-soon .gear {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  animation: spin 8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.coming-soon h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.coming-soon p { color: var(--text-mid); max-width: 400px; margin: 0 auto; }

/* ── Blueprint background for about section ── */
#about {
  background: var(--white);
  position: relative;
}

#about::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,127,193,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,127,193,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── Skill tag mono ── */
.skill-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

/* ── Experience section crosshatch ── */
#experience {
  background: var(--off-white);
  position: relative;
}

#experience::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 18px,
    rgba(74,127,193,0.025) 18px,
    rgba(74,127,193,0.025) 19px
  );
  pointer-events: none;
}

.timeline-company { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; }
.timeline-period   { font-family: 'JetBrains Mono', monospace; }

/* ── Portfolio Section ── */
#portfolio {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(74,127,193,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74,127,193,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.portfolio-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(74,127,193,0.2);
  cursor: pointer;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  aspect-ratio: 4/3;
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.3);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
  filter: brightness(0.88) saturate(0.9);
}

.portfolio-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.7) saturate(0.8);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,50,0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

/* always show label at bottom */
.portfolio-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.5rem 0.8rem;
  background: linear-gradient(to top, rgba(10,20,50,0.85), transparent);
}

.portfolio-label .cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.15rem;
}

.portfolio-label .title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
}

.portfolio-overlay .desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-top: 0.4rem;
}

/* corner bracket accent on cards */
.portfolio-card::before,
.portfolio-card::after {
  content: '';
  position: absolute;
  width: 14px; height: 14px;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}

.portfolio-card:hover::before,
.portfolio-card:hover::after { opacity: 1; }

.portfolio-card::before {
  top: 6px; left: 6px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.portfolio-card::after {
  bottom: 6px; right: 6px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
}

/* puzzle accent divider */
.puzzle-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.puzzle-divider .bar {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(201,168,76,0.6), rgba(201,168,76,0.05));
}

.puzzle-divider .bar.rev {
  background: linear-gradient(to left, rgba(201,168,76,0.6), rgba(201,168,76,0.05));
}

.puzzle-divider .icon {
  font-size: 1.1rem;
  opacity: 0.7;
}

/* ── Footer ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
}

footer a { color: var(--gold); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

/* ── Easter Egg ── */

/* Louie — bottom RIGHT */
#easter-egg-zone {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#louie-drop {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: default;
}

#louie-drop canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#louie-drop.drag-over {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201,168,76,0.6);
}


/* "Good boy" proximity hint */
#good-boy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}
#good-boy.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0s;
}

/* Cube — bottom LEFT (width/height driven by canvas inline style set in JS) */
#puzzle-cube {
  width: auto;
  height: auto;
  cursor: grab;
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 201;
  user-select: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.45));
  transition: filter 0.2s;
}

#puzzle-cube:hover {
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.55));
}

#puzzle-cube.dragging {
  cursor: grabbing;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.6));
}

/* Flash overlay on success */
#flash {
  position: fixed;
  inset: 0;
  background: var(--gold);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.3s;
}
#flash.go { opacity: 0.6; }

/* ── Secret Page ── */
.secret-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #1a0a2e 0%, #0f1e3d 50%, #1e1a3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.secret-hero::before {
  content: '🐾';
  position: absolute;
  font-size: 8rem;
  opacity: 0.04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.secret-louie {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 0 40px rgba(201,168,76,0.4);
  margin-bottom: 2rem;
  animation: pulse 2s ease-in-out infinite;
}

.secret-louie img { width: 100%; height: 100%; object-fit: cover; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 40px rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 60px rgba(201,168,76,0.7); }
}

.secret-hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.secret-hero p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 2rem;
  max-width: 440px;
}

/* ── Responsive ── */
@media (max-width: 768px) {

  /* ── Nav: hamburger replaces inline links ── */
  nav { padding: 0 1rem; }
  .nav-hamburger { display: flex; align-items: center; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    background: rgba(10,18,45,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
    gap: 1.2rem;
    flex-wrap: nowrap;
    max-width: 100%;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    z-index: 99;
    /* hidden by default */
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links li  { width: 100%; text-align: center; }
  .nav-links a   { font-size: 0.95rem; display: block; padding: 0.25rem 0; }

  /* ── Hero — single column, centred ── */
  .hero {
    min-height: unset;
    padding-top: 64px;
    padding-bottom: 3rem;
    align-items: flex-start;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.5rem 0;
    gap: 2rem;
  }
  /* Show photo above the text on mobile */
  .hero-photo {
    display: block;
    order: -1;
  }
  .hero-photo img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
    display: block;
  }
  .hero-photo::before { display: none; } /* hide the decorative border frame */
  .hero-text .tagline { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-badges { justify-content: center; }
  .hero-cta    { justify-content: center; }

  /* ── Section headers centred ── */
  .section-label,
  .section-title { text-align: center; }
  .divider { margin-left: auto; margin-right: auto; }

  /* ── About ── */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-text { text-align: center; }
  .skill-group label { text-align: center; }
  .skill-tags { justify-content: center; }

  /* ── Experience ── */
  .timeline { padding-left: 1.5rem; }

  /* ── Portfolio ── */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

  /* ── Easter egg alignment ──
     #good-boy is position:absolute so it no longer pushes Louie up.
     Louie: height 70px, bottom 16px → centre = 16+35 = 51px from bottom
     Cube:  height 52px (set by JS), bottom 25px → centre = 25+26 = 51px ✓  */
  #easter-egg-zone { bottom: 16px; right: 16px; gap: 0; }
  #louie-drop      { width: 70px; height: 70px; }
  #puzzle-cube     { bottom: 25px; left: 16px; }

  /* Float good-boy absolutely below Louie so it never shifts Louie's position */
  #good-boy {
    position: absolute;
    bottom: -22px;
    left: 50%;
    font-size: 0.65rem;
    transform: translateX(-50%) translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  }
  #good-boy.visible {
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
}

/* ── Very small screens ── */
@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-inner     { padding: 2rem 1rem; }
}
