/* ============================================================
   ALISTAIR NORFLEET — STYLESHEET
   Design System · Layout · Components · Animations
   ============================================================ */

/* ── 1. DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --navy-deep:    #07111f;
  --navy-mid:     #0c1929;
  --navy-card:    #101e34;
  --navy-lift:    #152338;
  --navy-border:  rgba(255, 255, 255, 0.07);
  --navy-glass:   rgba(7, 17, 31, 0.85);

  --orange:       #e07a3f;
  --orange-light: #ea9562;
  --orange-dim:   rgba(224, 122, 63, 0.18);
  --orange-glow:  rgba(224, 122, 63, 0.35);

  --text-primary:   #ece7df;
  --text-secondary: #d5dce4;
  --text-muted:     #8a9bb0;
  --text-orange:    var(--orange);

  --paper-bg:     #f8f4ee;
  --paper-text:   #1a1a1a;
  --paper-meta:   #5a5a5a;

  --header-h:     68px;
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-sm:    0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md:    0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:    0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-orange:0 0 30px rgba(224, 122, 63, 0.25);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--navy-deep);
  color: var(--text-primary);
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

/* ── 3. TYPOGRAPHY ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.font-barlow  { font-family: 'Barlow', sans-serif; }
.font-slab    { font-family: 'Roboto Slab', serif; }
.font-times   { font-family: 'Times New Roman', Times, serif; }

/* ── 4. SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar               { width: 6px; }
::-webkit-scrollbar-track         { background: var(--navy-deep); }
::-webkit-scrollbar-thumb         { background: var(--navy-lift); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover   { background: var(--orange); }

::selection {
  background: var(--orange-dim);
  color: var(--text-primary);
}

/* ── 5. HEADER ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--navy-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--navy-border);
  transition: background 0.4s var(--ease-in-out),
              border-color 0.4s var(--ease-in-out);
}

.site-header.scrolled {
  background: rgba(7, 17, 31, 0.97);
  border-color: rgba(255, 255, 255, 0.1);
}

.header-logo {
  display: flex;
  align-items: center;
  user-select: none;
  transition: opacity 0.2s;
}

.header-logo:hover { opacity: 0.8; }

.header-logo-img {
  height: 44px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--orange);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}

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

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-deep);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav .nav-link {
  font-size: 1.5rem;
  letter-spacing: 0.2em;
}

/* ── 6. FOOTER ──────────────────────────────────────────────── */
.site-footer {
  padding: 36px 48px;
  border-top: 1px solid var(--navy-border);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  background: var(--navy-mid);
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--orange); }

.footer-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.footer-link:hover svg { transform: scale(1.15); }

.footer-divider {
  width: 1px;
  height: 24px;
  background: var(--navy-border);
}

/* ── 7. LANDING — HERO LAYOUT ───────────────────────────────── */
.landing-hero {
  display: grid;
  grid-template-columns: 180px 1fr 300px;
  height: 100vh;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* ── 8. LANDING — ART SCROLL ────────────────────────────────── */
.art-scroll-col {
  border-right: 1px solid var(--navy-border);
  overflow: hidden;
  position: relative;
}

.art-scroll-col::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--navy-deep), transparent);
  z-index: 2;
  pointer-events: none;
}

.art-scroll-col::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, var(--navy-deep), transparent);
  z-index: 2;
  pointer-events: none;
}

.art-scroll-track {
  height: 100%;
  overflow: hidden;
}

.art-scroll-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  animation: scrollUp 55s linear infinite;
  will-change: transform;
}

.art-scroll-inner:hover { animation-play-state: paused; }

.art-scroll-item {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  transition: opacity 0.3s;
}

.art-scroll-item:hover { opacity: 0.75; }

.art-scroll-item .art-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-scroll-placeholder {
  width: 100%;
  height: 100%;
}

/* ── 9. LANDING — CENTER COLUMN ─────────────────────────────── */
.landing-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 56px 0;
  position: relative;
  overflow: hidden;
}

.greeting-text {
  margin-top: auto;
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 32px;
  min-height: 1.6em;
  transition: opacity 0.5s var(--ease-out);
}

.greeting-text.fade { opacity: 0; }

.hero-headshot-wrap {
  width: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--navy-border);
  box-shadow: 0 0 0 6px var(--navy-card), var(--shadow-md);
  margin-bottom: 28px;
  flex-shrink: 0;
}

.hero-headshot-wrap img,
.hero-headshot-wrap .headshot-placeholder {
  width: 100%;
  height: auto;
}

.headshot-placeholder {
  background: linear-gradient(135deg, #1a2a40 0%, #243650 50%, #1a2a40 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.headshot-placeholder svg {
  width: 80px;
  height: 80px;
  fill: var(--text-muted);
}

.hero-name {
  font-family: 'Roboto Slab', serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 8px;
}

.hero-tagline {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--text-secondary);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ── 10. LANDING — ESSAY PEEK ───────────────────────────────── */
.essay-peek-wrap {
  width: 100%;
  position: relative;
  cursor: pointer;
  margin-top: auto;
  padding-top: 20px;
}

.essay-peek-scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: nudgeDown 2.5s ease-in-out infinite;
}

.essay-peek-scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background: var(--text-muted);
}

.essay-peek-card {
  background: var(--paper-bg);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 28px 32px 0;
  position: relative;
  box-shadow: var(--shadow-md);
  max-height: 200px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.essay-peek-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), var(--shadow-orange);
}

.essay-peek-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--paper-bg), transparent);
  pointer-events: none;
}

.peek-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.peek-title {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  font-size: 1rem;
  color: var(--paper-text);
  line-height: 1.3;
  margin-bottom: 8px;
}

.peek-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  color: var(--paper-meta);
  margin-bottom: 16px;
}

.peek-body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.85rem;
  color: var(--paper-text);
  line-height: 1.65;
}

/* ── 11. LANDING — BIBLIOGRAPHY ─────────────────────────────── */
.landing-biblio {
  border-left: 1px solid var(--navy-border);
  padding: 40px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.biblio-header {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--navy-border);
}

.biblio-year-group {
  margin-bottom: 24px;
}

.biblio-year {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}

.biblio-entry {
  display: block;
  font-family: 'Barlow', sans-serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: color 0.2s, padding-left 0.25s var(--ease-out);
  position: relative;
}

.biblio-entry::before {
  content: '→';
  position: absolute;
  left: -16px;
  opacity: 0;
  transition: opacity 0.2s, left 0.25s var(--ease-out);
  color: var(--orange);
  font-size: 0.75rem;
}

.biblio-entry:hover {
  color: var(--text-primary);
  padding-left: 6px;
}

.biblio-entry:hover::before {
  opacity: 1;
  left: -12px;
}

/* ── 12. PROJECTS PAGE ──────────────────────────────────────── */
.projects-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  min-height: calc(100vh - var(--header-h));
  padding-top: var(--header-h);
}

.projects-main {
  padding: 40px 48px;
  border-right: 1px solid var(--navy-border);
  overflow-y: auto;
}

.projects-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-bottom: 28px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid var(--orange);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.download-btn:hover {
  background: var(--orange);
  color: var(--navy-deep);
  box-shadow: var(--shadow-orange);
  transform: translateY(-1px);
}

.download-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.2s var(--ease-out);
}

.download-btn:hover svg { transform: translateY(2px); }

/* Essay document display */
.essay-document {
  background: var(--paper-bg);
  border-radius: var(--radius-md);
  padding: 64px 72px;
  box-shadow: var(--shadow-md);
  max-width: 740px;
  margin: 0 auto;
  transition: opacity 0.3s var(--ease-out);
}

.essay-document.loading { opacity: 0; }

.essay-doc-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}

.essay-doc-title {
  font-family: 'Roboto Slab', serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--paper-text);
  line-height: 1.3;
  margin-bottom: 12px;
}

.essay-doc-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: var(--paper-meta);
  margin-bottom: 8px;
}

.essay-doc-author {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--paper-text);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #d0cbc2;
}

.essay-doc-abstract {
  font-family: 'Barlow', sans-serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--paper-meta);
  line-height: 1.7;
  border-left: 2px solid #c8c0b4;
  padding-left: 16px;
  margin-bottom: 32px;
}

.essay-doc-body {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: var(--paper-text);
  line-height: 1.85;
}

.essay-doc-body p {
  margin-bottom: 1.4em;
  text-indent: 2em;
}

.essay-doc-body p:first-child { text-indent: 0; }

.essay-pdf-frame {
  width: 100%;
  height: 80vh;
  border: none;
  border-radius: var(--radius-md);
  display: none;
}

/* Projects sidebar */
.projects-sidebar {
  padding: 40px 24px;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.sidebar-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.sidebar-essay-item {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  position: relative;
}

.sidebar-essay-item:hover {
  background: var(--navy-card);
}

.sidebar-essay-item.active {
  background: var(--navy-lift);
}

.sidebar-essay-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--orange);
  border-radius: 0 2px 2px 0;
}

.sidebar-essay-title {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.sidebar-essay-item:hover .sidebar-essay-title,
.sidebar-essay-item.active .sidebar-essay-title {
  color: var(--text-primary);
}

.sidebar-essay-year {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  color: var(--orange);
  margin-top: 3px;
  font-weight: 600;
}

/* ── 13. ART GALLERY PAGE ───────────────────────────────────── */
.art-page {
  padding-top: var(--header-h);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Animated background */
.art-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(14, 28, 58, 0.6) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(20, 14, 40, 0.5) 0%, transparent 55%),
    var(--navy-deep);
  animation: bgShift 20s ease-in-out infinite alternate;
}

.art-page-content {
  position: relative;
  z-index: 1;
}

.gallery-header {
  text-align: center;
  padding: 60px 48px 40px;
}

.gallery-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.gallery-header p {
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  color: var(--text-secondary);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 60px;
  gap: 16px;
  padding: 0 48px 80px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transform-origin: center;
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out),
              box-shadow 0.3s;
  animation: floatGently var(--float-duration, 6s) ease-in-out infinite alternate;
  animation-delay: var(--float-delay, 0s);
}

.gallery-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gallery-item:hover {
  box-shadow: 0 0 0 2px var(--orange), var(--shadow-lg), var(--shadow-orange);
  z-index: 2;
  transform: scale(1.02) !important;
}

/* Grid sizing variants */
.gallery-item[data-size="large"]   { grid-column: span 5; grid-row: span 8; }
.gallery-item[data-size="standard"]{ grid-column: span 4; grid-row: span 6; }
.gallery-item[data-size="portrait"]{ grid-column: span 3; grid-row: span 8; }
.gallery-item[data-size="wide"]    { grid-column: span 6; grid-row: span 5; }

.gallery-item-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.gallery-item:hover .gallery-item-art {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 17, 31, 0.92) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-title {
  font-family: 'Roboto Slab', serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.gallery-item-meta {
  font-family: 'Barlow', sans-serif;
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.gallery-item-year {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 17, 31, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1100px;
  width: 90%;
  max-height: 90vh;
  transform: scale(0.95);
  transition: transform 0.35s var(--ease-out);
}

.lightbox.open .lightbox-inner {
  transform: scale(1);
}

.lightbox-art-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 85vh;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lightbox-art-img {
  max-width: 100%;
  max-height: 85vh;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-art-placeholder {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: var(--radius-md);
}

.lightbox-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 0;
}

.lightbox-year {
  font-family: 'Barlow', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 12px;
}

.lightbox-title {
  font-family: 'Roboto Slab', serif;
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.2;
}

.lightbox-medium,
.lightbox-dims {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.lightbox-desc {
  font-family: 'Times New Roman', Times, serif;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--navy-border);
}

.lightbox-nav {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.lightbox-nav-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--navy-border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lightbox-nav-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-dim);
}

.lightbox-nav-btn svg { width: 16px; height: 16px; fill: currentColor; }

.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  border: 1px solid var(--navy-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
  z-index: 10;
}

.lightbox-close:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.lightbox-close svg { width: 14px; height: 14px; fill: currentColor; }

/* ── 14. ABOUT PAGE ─────────────────────────────────────────── */
.about-page {
  padding-top: var(--header-h);
  min-height: 100vh;
}

.about-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  grid-template-rows: auto 1fr;
  gap: 0;
  padding: 56px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h));
}

/* Contact panel — top left */
.about-contact {
  grid-column: 1;
  grid-row: 1 / 3;
  padding-right: 40px;
}

.contact-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.contact-name {
  font-family: 'Roboto Slab', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
  line-height: 1.3;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item-icon {
  width: 16px;
  height: 16px;
  fill: var(--orange);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-item-label {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-item-value {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

a.contact-item-value:hover { color: var(--orange); }

.contact-instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  margin-top: 8px;
}

.contact-instagram-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-instagram-link:hover { color: var(--orange); }

/* Headshot — center */
.about-photo-section {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}

.about-headshot-wrap {
  width: 280px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 2px solid var(--navy-border);
  box-shadow: 0 0 0 8px var(--navy-card), var(--shadow-lg);
  margin-bottom: 36px;
  flex-shrink: 0;
}

.about-headshot-wrap img,
.about-headshot-wrap .headshot-placeholder {
  width: 100%;
  height: auto;
}

.about-bio-name {
  font-family: 'Roboto Slab', serif;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 6px;
  text-align: center;
}

.about-bio-role {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 32px;
  text-align: center;
}

.about-bio-text {
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.85;
  text-align: center;
  max-width: 480px;
}

.about-bio-text p { margin-bottom: 1.2em; }

/* Resume button — top right */
.about-resume-section {
  grid-column: 3;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-left: 40px;
  padding-top: 4px;
}

.resume-prompt {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  text-align: center;
}

.resume-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 32px;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3060 0%, #2a4a90 40%, #1e3870 70%, #142858 100%);
  border: 1px solid rgba(100, 140, 220, 0.3);
  box-shadow:
    0 0 0 1px rgba(100, 150, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    var(--shadow-md);
  animation: resumePulse 3s ease-in-out infinite;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
  width: 100%;
}

.resume-btn::before {
  content: '';
  position: absolute;
  top: -50%; left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
  animation: shimmer 3.5s ease-in-out infinite;
}

.resume-btn:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(100, 150, 255, 0.25),
    0 0 30px rgba(60, 100, 200, 0.3),
    0 0 60px rgba(60, 100, 200, 0.15),
    var(--shadow-lg);
}

.resume-btn-icon {
  width: 32px;
  height: 32px;
  fill: rgba(180, 200, 255, 0.9);
  filter: drop-shadow(0 0 6px rgba(100, 150, 255, 0.5));
  animation: iconFloat 4s ease-in-out infinite;
}

.resume-btn-text {
  font-family: 'Roboto Slab', serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(200, 215, 255, 0.95);
  text-align: center;
  line-height: 1.3;
}

.resume-btn-sub {
  font-family: 'Barlow', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(150, 170, 220, 0.7);
  text-align: center;
}

/* ── 15. UTILITIES ──────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  clip: rect(0,0,0,0);
  overflow: hidden;
}

.page-enter {
  animation: pageEnter 0.5s var(--ease-out) both;
}

/* ── 16. KEYFRAMES ──────────────────────────────────────────── */
@keyframes scrollUp {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes floatGently {
  from { transform: translateY(0px); }
  to   { transform: translateY(-8px); }
}

@keyframes nudgeDown {
  0%, 100% { transform: translateY(0);  opacity: 0.5; }
  50%       { transform: translateY(5px); opacity: 1; }
}

@keyframes resumePulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(100,150,255,0.1), inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 32px rgba(0,0,0,0.45); }
  50%       { box-shadow: 0 0 0 1px rgba(100,150,255,0.2), inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 32px rgba(0,0,0,0.45), 0 0 20px rgba(60,100,200,0.2); }
}

@keyframes shimmer {
  0%   { left: -60%; }
  100% { left: 120%; }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

@keyframes bgShift {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

@keyframes pageEnter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* Loading spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--navy-border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ── 17. RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .landing-hero {
    grid-template-columns: 140px 1fr 240px;
  }
  .landing-center { padding: 32px 36px 0; }
  .gallery-item[data-size="large"]    { grid-column: span 6; grid-row: span 8; }
  .gallery-item[data-size="standard"] { grid-column: span 6; grid-row: span 6; }
  .gallery-item[data-size="portrait"] { grid-column: span 4; grid-row: span 8; }
  .gallery-item[data-size="wide"]     { grid-column: span 8; grid-row: span 5; }
}

@media (max-width: 860px) {
  .site-header { padding: 0 24px; }
  .header-nav  { display: none; }
  .hamburger   { display: flex; }
  .mobile-nav  { display: flex; }

  .landing-hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
    min-height: 100vh;
  }

  .art-scroll-col { display: none; }

  .landing-center {
    padding: 56px 28px 0;
    min-height: calc(100vh - var(--header-h));
  }

  .landing-biblio {
    border-left: none;
    border-top: 1px solid var(--navy-border);
    padding: 32px 24px;
    max-height: 50vh;
  }

  .projects-layout {
    grid-template-columns: 1fr;
  }

  .projects-sidebar {
    position: static;
    height: auto;
    border-top: 1px solid var(--navy-border);
    order: -1;
  }

  .projects-main { padding: 24px; }
  .essay-document { padding: 32px 24px; }

  .about-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    padding: 32px 24px 60px;
    gap: 40px;
  }

  .about-contact,
  .about-photo-section,
  .about-resume-section {
    grid-column: 1;
    grid-row: auto;
    padding: 0;
  }

  .about-resume-section {
    align-items: stretch;
    padding: 0;
  }

  .resume-btn { width: 100%; }

  .gallery-grid {
    grid-template-columns: repeat(6, 1fr);
    padding: 0 24px 60px;
    gap: 12px;
  }

  .gallery-item[data-size="large"],
  .gallery-item[data-size="wide"]     { grid-column: span 6; grid-row: span 6; }
  .gallery-item[data-size="standard"],
  .gallery-item[data-size="portrait"] { grid-column: span 3; grid-row: span 5; }

  .lightbox-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-y: auto;
    padding: 20px;
  }

  .lightbox-info { padding: 0; }
}

@media (max-width: 480px) {
  .site-header { padding: 0 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); padding: 0 16px 60px; }
  .gallery-item[data-size] { grid-column: span 2; grid-row: span 5; }
  .essay-document { padding: 24px 16px; }
  .about-layout { padding: 24px 16px 60px; }
  .site-footer { padding: 28px 24px; flex-direction: column; gap: 20px; }
  .footer-divider { width: 40px; height: 1px; }
}
