/* ── Jake Morell Portfolio — Shared Styles ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --surface:   #f5f5f7;
  --text-1:    #1d1d1f;
  --text-2:    #6e6e73;
  --text-3:    #aeaeb2;
  --border:    #e5e5ea;
  --blue:      #007AFF;
  --blue-dark: #0071E3;

  /* Macintosh rainbow */
  --mac-green:  #61BB46;
  --mac-yellow: #FDB827;
  --mac-orange: #F5821F;
  --mac-red:    #E03A3E;
  --mac-purple: #963D97;
  --mac-blue:   #009DDC;

  --radius: 18px;
  --font:   -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

/* ── Retro Mac Cursors ── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  /* Retro Mac arrow cursor */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Cpolygon points='2,2 2,20 6,15 9,22 13,20 10,13 16,13' fill='white' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E") 2 2, auto;
}

/* Retro Mac hand/pointer cursor on interactive elements */
a, button, .chip, .project-card, [role="button"], label {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Crect x='5' y='1' width='4' height='11' rx='2' fill='white' stroke='black' stroke-width='1.5'/%3E%3Crect x='9' y='4' width='4' height='8' rx='2' fill='white' stroke='black' stroke-width='1.5'/%3E%3Crect x='13' y='6' width='4' height='6' rx='2' fill='white' stroke='black' stroke-width='1.5'/%3E%3Crect x='1' y='8' width='4' height='6' rx='2' fill='white' stroke='black' stroke-width='1.5'/%3E%3Crect x='1' y='12' width='16' height='8' rx='2' fill='white' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") 5 1, pointer;
}

/* Remove old dot/ring cursor elements entirely */
#c-dot, #c-ring { display: none !important; }

/* ── Navigation ── */
nav {
  position:fixed; top:0; left:0; right:0; z-index:900;
  display:flex; align-items:center; justify-content:space-between;
  padding:0 52px; height:64px;
  transition: background .35s var(--ease), border-color .35s;
}
nav.scrolled {
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.nav-brand {
  font-size:17px; font-weight:600; letter-spacing:-.02em;
  color:var(--text-1); text-decoration:none;
}
.nav-links { display:flex; align-items:center; gap:32px; list-style:none; }
.nav-links a {
  font-size:14px; color:var(--text-2); text-decoration:none;
  letter-spacing:-.01em; transition:color .2s;
}
.nav-links a:hover { color:var(--text-1); }

/* ── Hamburger (mobile) ── */
.nav-hamburger {
  display:none; flex-direction:column; gap:5px;
  background:none; border:none; padding:4px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='24' viewBox='0 0 20 24'%3E%3Crect x='5' y='1' width='4' height='11' rx='2' fill='white' stroke='black' stroke-width='1.5'/%3E%3Crect x='9' y='4' width='4' height='8' rx='2' fill='white' stroke='black' stroke-width='1.5'/%3E%3Crect x='13' y='6' width='4' height='6' rx='2' fill='white' stroke='black' stroke-width='1.5'/%3E%3Crect x='1' y='8' width='4' height='6' rx='2' fill='white' stroke='black' stroke-width='1.5'/%3E%3Crect x='1' y='12' width='16' height='8' rx='2' fill='white' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") 5 1, pointer;
}
.nav-hamburger span {
  display:block; width:22px; height:2px;
  background:var(--text-1); border-radius:2px;
  transition:transform .3s var(--ease), opacity .2s;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display:none; position:fixed; top:64px; left:0; right:0;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border-bottom:1px solid var(--border);
  padding:20px 24px 32px;
  flex-direction:column; align-items:stretch; gap:0; z-index:850;
}
.mobile-menu.open { display:flex; }
.mobile-menu a {
  font-size:18px; font-weight:500; color:var(--text-1) !important;
  text-decoration:none; padding:14px 0;
  border-bottom:1px solid var(--border); letter-spacing:-.01em;
  text-align:left; background:none !important;
  box-shadow:none !important; transform:none !important;
  border-radius:0 !important;
}
.mobile-menu a:last-child {
  border-bottom:none;
  margin-top:16px;
  display:flex; justify-content:center; align-items:center;
  padding:13px 22px !important;
  background:var(--blue) !important;
  color:#fff !important;
  border-radius:980px !important;
  font-size:15px !important;
  text-align:center !important;
}

/* ── Buttons ── */
.pill {
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:11px 22px; border-radius:980px;
  font-size:15px; font-weight:500; letter-spacing:-.01em;
  text-decoration:none; transition:transform .25s var(--ease), background .2s, box-shadow .2s;
  white-space:nowrap;
}
.pill:hover { transform:scale(1.04); }
.pill-blue   { background:var(--blue) !important; color:#fff !important; border:none; }
.pill-blue:hover { background:var(--blue-dark) !important; box-shadow:0 4px 16px rgba(0,122,255,.3); }
.pill-outline-blue {
  border:1.5px solid var(--blue); color:var(--blue); background:transparent;
}
.pill-outline-blue:hover { background:rgba(0,122,255,.05); }
.pill-dark   { background:var(--text-1); color:#fff; }
.pill-dark:hover { background:#333; }
.pill-outline {
  border:1.5px solid var(--border); color:var(--text-1); background:transparent;
}
.pill-outline:hover { border-color:var(--text-2); }
.pill-sm { padding:8px 16px; font-size:13px; }

/* ── Section utils ── */
.wrap { max-width:1200px; margin:0 auto; padding:120px 52px; }
.wrap-narrow { max-width:800px; margin:0 auto; padding:120px 52px; }
.section-label {
  font-size:11px; font-weight:700; letter-spacing:.1em;
  text-transform:uppercase; color:var(--text-3); margin-bottom:12px;
}
.section-title {
  font-size:clamp(34px,4vw,52px);
  font-weight:700; letter-spacing:-.03em; line-height:1.08;
}
.section-head {
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom:64px;
}

/* ── Project Card ── */
.project-card {
  display:block; text-decoration:none; color:inherit;
  background:var(--surface); border-radius:var(--radius);
  overflow:hidden; position:relative;
  transition:transform .35s var(--ease), box-shadow .35s var(--ease);
}
.project-card:hover { transform:translateY(-7px); box-shadow:0 28px 64px rgba(0,0,0,.09); }
.card-stripe { height:3px; width:100%; }
.card-thumb { width:100%; overflow:hidden; position:relative; }
.card-thumb-inner {
  position:absolute; inset:0;
  transition:transform .55s var(--ease);
  display:flex; align-items:center; justify-content:center;
}
.project-card:hover .card-thumb-inner { transform:scale(1.04); }
.card-body { padding:28px 32px 36px; }
.card-tags { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:12px; }
.tag {
  font-size:10px; font-weight:600; letter-spacing:.06em; text-transform:uppercase;
  padding:4px 10px; border-radius:980px;
  background:var(--border); color:var(--text-2);
}
.card-title  { font-size:21px; font-weight:600; letter-spacing:-.02em; margin-bottom:8px; }
.card-desc   { font-size:14px; color:var(--text-2); line-height:1.55; max-width:560px; }
.card-arrow {
  position:absolute; bottom:28px; right:28px;
  width:34px; height:34px; border-radius:50%;
  background:var(--text-1); display:flex; align-items:center; justify-content:center;
  opacity:0; transform:translateY(10px);
  transition:opacity .3s var(--ease), transform .3s var(--ease);
}
.project-card:hover .card-arrow { opacity:1; transform:translateY(0); }
.card-arrow svg { width:13px; height:13px; stroke:#fff; fill:none; stroke-width:2; }

/* ── Reveal animations ── */
.reveal {
  opacity:0; transform:translateX(-32px);
  transition:opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.in { opacity:1; transform:translateX(0); }
.d1 { transition-delay:.08s; } .d2 { transition-delay:.16s; }
.d3 { transition-delay:.24s; } .d4 { transition-delay:.32s; }

/* ── Footer ── */
.site-footer { border-top:1px solid var(--border); }
.footer-inner {
  max-width:1200px; margin:0 auto; padding:28px 52px;
  display:flex; align-items:center; justify-content:space-between;
}
.footer-text { font-size:12px; color:var(--text-3); }
.rainbow-dots { display:flex; gap:5px; justify-content:center; }
.rainbow-dots span { display:block; width:18px; height:3px; border-radius:2px; }

/* ── Back link ── */
.back-link {
  display:inline-flex; align-items:center; gap:8px;
  font-size:14px; color:var(--text-2); text-decoration:none;
  transition:color .2s; margin-bottom:48px;
}
.back-link:hover { color:var(--text-1); }
.back-link svg { width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:1.5; }

/* ── Case study specific ── */
.cs-hero { padding:140px 52px 80px; max-width:1200px; margin:0 auto; }
.cs-hero-label {
  font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color:var(--blue); margin-bottom:16px;
}
.cs-hero-title {
  font-size:clamp(48px,6vw,80px); font-weight:700;
  letter-spacing:-.04em; line-height:1; margin-bottom:24px;
}
.cs-hero-sub {
  font-size:clamp(17px,1.8vw,22px); color:var(--text-2);
  line-height:1.55; max-width:540px; letter-spacing:-.01em; margin-bottom:48px;
}
.cs-meta {
  display:flex; gap:48px; flex-wrap:wrap;
  padding:32px 0; margin-top:48px;
  border-top:1px solid var(--border); border-bottom:1px solid var(--border);
}
.cs-meta-item h4 { font-size:11px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--text-3); margin-bottom:6px; }
.cs-meta-item p  { font-size:15px; font-weight:500; }
.cs-section { padding:80px 52px; max-width:1200px; margin:0 auto; }
.cs-section-title { font-size:clamp(28px,3vw,38px); font-weight:700; letter-spacing:-.03em; margin-bottom:24px; }
.cs-body { font-size:17px; line-height:1.75; color:var(--text-2); margin-bottom:20px; }
.cs-screen { border-radius:16px; overflow:hidden; margin:40px 0; box-shadow:0 20px 60px rgba(0,0,0,.1); }

/* Stats row */
.stats-row { display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin:48px 0; }
.stat-card { background:var(--surface); border-radius:var(--radius); padding:32px; text-align:center; }
.stat-num { font-size:42px; font-weight:700; letter-spacing:-.04em; color:var(--blue); }
.stat-label { font-size:14px; color:var(--text-2); margin-top:4px; }

/* ── Responsive ── */
@media (max-width:860px) {
  nav               { padding:0 24px; }
  .nav-links        { display:none; }
  .nav-hamburger    { display:flex; }
  .wrap, .cs-hero, .cs-section { padding:80px 24px; }
  .wrap-narrow      { padding:80px 24px; }
  .section-head     { flex-direction:column; align-items:flex-start; gap:20px; }
  .cs-hero          { padding:110px 24px 60px; }
  .stats-row        { grid-template-columns:1fr 1fr; }
  .cs-meta          { gap:24px; }
  .footer-inner     { flex-direction:column; gap:16px; text-align:center; padding:24px; }
}
@media (max-width:580px) {
  .stats-row        { grid-template-columns:1fr; }
}
