@import url('https://fonts.googleapis.com/css2?family=Just+Me+Again+Down+Here&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:           #ffffff;
  --fg:           #111111;
  --accent:       #c8a45e;
  --accent-dark:  #9e7d3e;
  --cream:        #f8f6f1;
  --light:        #eeeeee;
  --mid:          #999999;
  --font-hand:    'Just Me Again Down Here', cursive;
  --font-mono:    'Space Mono', monospace;
  --font-sans:    'Inter', sans-serif;
  --font-display: 'Bebas Neue', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-mono);
  overflow-x: hidden;
}

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 72px;
  padding: 22px 48px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

nav a {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: var(--fg);
  text-transform: uppercase;
  transition: opacity 0.2s;
}

nav a:hover { opacity: 0.4; }

nav a.active { border-bottom: 1.5px solid var(--fg); }

/* Dropdown */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s;
}

.nav-dropdown-toggle:hover { opacity: 0.4; }

.nav-dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid var(--fg);
  border-bottom: 1.5px solid var(--fg);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.nav-dropdown:hover .nav-dropdown-toggle::after {
  transform: rotate(-135deg) translateY(-2px);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  min-width: 192px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  flex-direction: column;
  display: flex;
  /* invisible top padding bridges the gap so the mouse never leaves */
  padding-top: 20px;
}

/* visible border sits below the invisible bridge */
.nav-dropdown-menu::after {
  content: '';
  position: absolute;
  top: 20px; left: 0; right: 0; bottom: 0;
  border: 1px solid var(--fg);
  pointer-events: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  pointer-events: all;
}

.nav-dropdown-menu a {
  padding: 13px 22px;
  font-size: 11px;
  letter-spacing: 0.14em;
  border-bottom: 1px solid var(--light);
  white-space: nowrap;
  display: block;
}

.nav-dropdown-menu a:last-child { border-bottom: none; }

.nav-dropdown-menu a:hover {
  background: var(--cream);
  opacity: 1;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-title {
  font-family: var(--font-hand);
  font-size: clamp(56px, 8.5vw, 116px);
  font-weight: 700;
  line-height: 1.08;
  text-align: center;
  pointer-events: none;
  user-select: none;
  z-index: 2;
  position: relative;
}

/* ─────────────────────────────────────────
   DRAGGABLES
───────────────────────────────────────── */
.draggable {
  position: absolute;
  cursor: grab;
  user-select: none;
  z-index: 10;
  will-change: transform;
  transition: box-shadow 0.15s;
}

.draggable:active,
.draggable.dragging {
  cursor: grabbing;
  z-index: 50;
}

/* Photo card */
.photo-card {
  width: 170px;
  height: 220px;
  background: var(--light);
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid);
  text-align: center;
  line-height: 1.6;
  padding: 12px;
  transform: rotate(-2deg);
}

/* Sticky note */
.sticky-note {
  background: #fafaf8;
  border: 1px solid #e0e0e0;
  padding: 22px 26px;
  max-width: 230px;
  box-shadow: 3px 4px 14px rgba(0,0,0,0.07);
  transform: rotate(1.5deg);
}

.sticky-note p {
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.75;
  color: var(--fg);
}

.sticky-note .cursive {
  font-family: var(--font-hand);
  font-size: 16px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
}

.sticky-note hr {
  border: none;
  border-top: 1px solid #e8e8e8;
  margin: 10px 0;
}

/* Gold star */
.gold-star svg {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 3px 8px rgba(160,120,30,0.25));
}

/* Sticker / logo placeholder */
.sticker-circle {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 2px dashed #ccc;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--mid);
  text-align: center;
  padding: 22px;
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────── */
.about-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 100px 120px;
  gap: 80px;
  border-top: 1px solid var(--light);
}

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

.about-photo-placeholder {
  width: 310px;
  height: 470px;
  background: var(--light);
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid);
  text-align: center;
  line-height: 1.6;
}

.about-text h2 {
  font-family: var(--font-hand);
  font-size: clamp(44px, 6vw, 74px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.1;
}

.about-text .tagline {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.75;
  margin-bottom: 28px;
  color: var(--fg);
}

.about-text p {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 2;
  color: #444;
  margin-bottom: 18px;
}

/* ─────────────────────────────────────────
   WORK PAGE HERO
───────────────────────────────────────── */
.work-header {
  padding: 120px 80px 56px;
  border-bottom: 1px solid var(--light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.work-header-left .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 14px;
}

.work-header-left h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 112px);
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--fg);
}

.work-header-right {
  text-align: right;
  padding-bottom: 8px;
}

.work-header-right .year-range {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mid);
  letter-spacing: 0.06em;
}

.work-header-right .work-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid);
  max-width: 320px;
  line-height: 1.8;
  margin-top: 10px;
}

/* ─────────────────────────────────────────
   HORIZONTAL SCROLL SECTION
───────────────────────────────────────── */
.scroll-section {
  padding: 72px 0;
}

.scroll-section-label {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.1em;
  margin-bottom: 36px;
  color: var(--mid);
  padding: 0 80px;
}

.scroll-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-bottom: 28px;
  scrollbar-width: none;
  cursor: default;
  -webkit-overflow-scrolling: touch;
}

.scroll-track::-webkit-scrollbar { display: none; }

/* ─────────────────────────────────────────
   PHONE MOCKUP
───────────────────────────────────────── */
.phone-mockup {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 190px;
}

.phone-frame {
  width: 190px;
  height: 385px;
  background: #1a1a1a;
  border-radius: 32px;
  padding: 14px 10px;
  box-shadow:
    0 0 0 1px #333,
    0 12px 40px rgba(0,0,0,0.3);
  position: relative;
}

/* notch */
.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 6px;
  background: #111;
  border-radius: 3px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--light);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--mid);
  text-align: center;
  line-height: 1.7;
  padding: 12px;
}

.phone-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   DESKTOP / iMAC MOCKUP
───────────────────────────────────────── */
.desktop-mockup {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 500px;
}

.imac-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.imac-body {
  width: 500px;
  background: linear-gradient(180deg, #d8d8d8 0%, #c4c4c4 100%);
  border-radius: 18px 18px 6px 6px;
  padding: 14px 14px 0;
  box-shadow:
    0 0 0 1px #bbb,
    0 12px 40px rgba(0,0,0,0.2);
}

.imac-screen {
  width: 100%;
  height: 300px;
  background: var(--light);
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mid);
  text-align: center;
  line-height: 1.7;
  padding: 16px;
}

.imac-chin {
  width: 500px;
  height: 28px;
  background: linear-gradient(180deg, #c4c4c4 0%, #b8b8b8 100%);
  border-radius: 0 0 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.imac-chin::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #aaa;
  border: 1px solid #999;
}

.imac-neck {
  width: 56px; height: 30px;
  background: linear-gradient(180deg, #b8b8b8, #a8a8a8);
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0% 100%);
}

.imac-foot {
  width: 160px; height: 8px;
  background: #aaa;
  border-radius: 4px;
}

.desktop-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   DEVELOPMENT — PROJECT CARDS
───────────────────────────────────────── */
.projects-section {
  padding: 72px 80px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  border: 1px solid var(--fg);
}

.project-card {
  padding: 40px 36px;
  border-right: 1px solid var(--fg);
  border-bottom: 1px solid var(--fg);
  transition: background 0.2s;
}

.project-card:hover {
  background: var(--cream);
}

.project-card .eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 14px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  line-height: 1;
}

.project-card p {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.9;
  color: #555;
  margin-bottom: 22px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid #ddd;
  color: var(--mid);
}

.project-link {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--fg);
  padding-bottom: 2px;
  transition: opacity 0.2s;
}

.project-link:hover { opacity: 0.4; }

/* ─────────────────────────────────────────
   BACK LINK (work pages)
───────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}

.back-link:hover { color: var(--fg); }

.back-link::before {
  content: '←';
  font-size: 14px;
}

/* ─────────────────────────────────────────
   BOTTOM NAV (mirrors top nav, static)
───────────────────────────────────────── */
.bottom-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 72px;
  padding: 22px 48px;
  border-top: 1px solid var(--light);
  background: var(--bg);
}

/* dropdown opens upward */
.nav-dropdown-menu--up {
  top: auto;
  bottom: 100%;
  padding-top: 0;
  padding-bottom: 20px;
}

.nav-dropdown-menu--up::after {
  top: 0;
  bottom: 20px;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--light);
  padding: 44px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-name {
  font-family: var(--font-hand);
  font-size: 26px;
  font-weight: 700;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mid);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--fg); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mid);
}

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  nav { gap: 32px; padding: 18px 24px; }
  .about-section { grid-template-columns: 1fr; padding: 80px 32px; gap: 40px; }
  .work-header { flex-direction: column; gap: 24px; align-items: flex-start; padding: 120px 32px 40px; }
  .scroll-section { padding: 48px 0; }
  .scroll-section-label { padding: 0 32px; }
  .projects-section { padding: 48px 32px; }
  footer { padding: 36px 32px; }
  .bottom-nav { gap: 32px; padding: 18px 24px; }
}
