:root {
  /* ── Canvas ── */
  --bg:        #F9F8F5;
  --bg-2:      #EFECEA;
  --surface:   #FFFFFF;
  --surface-2: #F5F3EF;

  /* ── Text ── */
  --ink:       #1B1916;
  --ink-2:     #3E3B35;
  --muted:     #7A7469;
  --muted-2:   #ABA59C;

  /* ── Structure ── */
  --border:    #E6E2DC;
  --border-2:  #CEC9C0;

  /* ── Primary accent — deep navy ── */
  --blue:       #1B3D78;
  --blue-light: #2E62B8;
  --blue-dim:   rgba(27, 61, 120, 0.08);
  --blue-mid:   rgba(27, 61, 120, 0.16);

  /* ── Secondary accent — warm amber ── */
  --amber:      #B5670E;
  --amber-dim:  rgba(181, 103, 14, 0.09);

  /* ── Status ── */
  --green:     #1A6647;
  --green-dim: rgba(26, 102, 71, 0.09);

  /* ── Tags ── */
  --tag-bg:    #EBE7E1;

  /* ── Backward compat aliases (used by older page styles) ── */
  --accent:        var(--blue);
  --accent-light:  var(--blue-dim);
  --accent2:       var(--green);
  --accent2-light: var(--green-dim);

  /* ── Fonts ── */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Figtree', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.026;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

::selection {
  background: rgba(181, 103, 14, 0.13);
  color: var(--ink);
}

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

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(249, 248, 245, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
}

.nav-brand {
  display: flex; align-items: center; gap: 0.55rem;
  flex-shrink: 0;
}
.nav-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.nav-sep {
  color: var(--border-2);
  font-size: 1rem;
  font-weight: 300;
}
.nav-role {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* legacy nav logo class */
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink);
}
.nav-logo .logo-star { color: var(--blue); font-size: 1.2rem; }

.nav-links { display: flex; gap: 0.1rem; list-style: none; }
.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-links a.active { color: var(--blue); background: var(--blue-dim); }

.nav-icons {
  display: flex; align-items: center; gap: 0.4rem;
  flex-shrink: 0;
}
.nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all 0.15s;
  overflow: hidden;
}
.nav-icon:hover {
  color: var(--blue);
  border-color: var(--blue-light);
  background: var(--blue-dim);
}

/* ── PAGE CONTAINER ── */
.page { max-width: 1140px; margin: 0 auto; padding: 84px 2rem 5rem; position: relative; }

/* ── TYPOGRAPHY ── */
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.07;
  color: var(--ink);
}
h1 em { font-style: italic; color: var(--amber); }

h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

h3 {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

p { color: var(--muted); line-height: 1.8; font-size: 0.95rem; }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.65rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 26px; height: 1.5px;
  background: var(--blue);
  flex-shrink: 0;
}

.section-head {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ── EYEBROW ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--blue);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px; height: 1.5px;
  background: var(--blue);
}

/* ── CURSOR BLINK ── */
.cursor-blink::after {
  content: '|';
  color: var(--blue);
  font-weight: 300;
  animation: blink 1.1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-2) 15%, var(--border) 50%, var(--border-2) 85%, transparent 100%);
  margin: 3rem 0;
}

/* ── ORG LOGO CHIP ── */
.logo-chip {
  --chip: 22px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  width: var(--chip); height: var(--chip);
  overflow: hidden;
  vertical-align: middle;
}
.logo-chip img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 0;
}

/* ── NAV ICON IMAGE ── */
.nav-icon img { width: 15px; height: 15px; object-fit: contain; }

/* ── TAG ── */
.tag {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  padding: 0.22rem 0.55rem;
  background: var(--tag-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--muted);
  letter-spacing: 0.04em;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.tag:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-dim); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.72rem 1.6rem;
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 0.87rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), 0 1px 3px rgba(27,61,120,0.18);
}
.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.11), 0 8px 28px rgba(27, 61, 120, 0.30);
}
.btn-outline {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--border-2);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-dim);
}

/* ── STATUS PILLS ── */
.proj-status {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.s-wip     { background: rgba(181,103,14,0.10); color: #8A4F0A; border: 1px solid rgba(181,103,14,0.22); }
.s-done    { background: var(--green-dim);       color: var(--green); border: 1px solid rgba(26,102,71,0.22); }
.s-private { background: var(--tag-bg);          color: var(--muted); border: 1px solid var(--border); }

/* ── AVAILABILITY PILL ── */
.avail-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--green-dim);
  border: 1px solid rgba(26,102,71,0.22);
  border-radius: 20px;
  padding: 0.45rem 1.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--green);
  align-self: flex-start;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  box-shadow: 0 1px 4px rgba(26,102,71,0.08);
}
.avail-pill.nyu {
  background: var(--blue-dim);
  border-color: rgba(27,61,120,0.2);
  color: var(--blue);
  box-shadow: 0 1px 4px rgba(27,61,120,0.08);
}
.avail-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

/* ── FADE ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade   { animation: fadeUp 0.5s ease both; }
.fade-2 { animation: fadeUp 0.5s 0.07s ease both; }
.fade-3 { animation: fadeUp 0.5s 0.14s ease both; }
.fade-4 { animation: fadeUp 0.5s 0.21s ease both; }
.fade-5 { animation: fadeUp 0.5s 0.28s ease both; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.61rem;
  color: var(--muted-2);
  letter-spacing: 0.05em;
}
.footer-mark {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--border-2);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1;
  user-select: none;
}
.footer-loc {
  font-family: var(--font-mono);
  font-size: 0.61rem;
  color: var(--muted-2);
  text-align: right;
  letter-spacing: 0.05em;
}

/* ── HAMBURGER BUTTON ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.nav-burger:hover {
  border-color: var(--blue);
  background: var(--blue-dim);
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}
nav.nav-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.nav-open .nav-burger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── MOBILE MENU DROPDOWN ── */
@media (max-width: 768px) {
  nav {
    padding: 0 1rem;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
  }
  .nav-brand { padding: 0.75rem 0; }
  .nav-role, .nav-sep { display: none; }
  .nav-links { display: none; }
  .nav-icons { display: none; }
  .nav-burger { display: flex; }

  nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0.5rem 0 0.75rem;
    gap: 0.1rem;
    border-top: 1px solid var(--border);
    list-style: none;
    order: 10;
  }
  nav.nav-open .nav-links a {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.7rem 0.75rem;
    border-radius: 7px;
    color: var(--muted);
    transition: color 0.15s, background 0.15s;
  }
  nav.nav-open .nav-links a:hover,
  nav.nav-open .nav-links a.active {
    color: var(--blue);
    background: var(--blue-dim);
  }

  html { scroll-padding-top: 56px; }
  .page { padding: 72px 1.25rem 4rem; }
  footer { grid-template-columns: 1fr; gap: 0.25rem; text-align: center; padding: 1.2rem; }
  .footer-loc { text-align: center; }
}
