:root {
  --chocolate-950: #0b0604;
  --chocolate-900: #130b07;
  --chocolate-850: #1a0f0a;
  --chocolate-800: #23150e;
  --chocolate-700: #332016;
  --chocolate-600: #4a2f21;
  --copper-400: #d6a260;
  --copper-500: #b8793d;
  --gold-300: #f3d79a;
  --cream-100: #fff4df;
  --cream-200: #efd8b6;
  --muted: #bda789;
  --line: rgba(243, 215, 154, 0.2);
  --glass: rgba(35, 21, 14, 0.72);
  --glass-strong: rgba(26, 15, 10, 0.9);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.44);
  --shadow-soft: 0 8px 20px rgba(0, 0, 0, 0.28);
  --radius: 4px;
  --radius-lg: 8px;
  --max-width: 1000px;
  --header-height: 60px;
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body { 
  margin: 0; 
  min-height: 100vh; 
  background: radial-gradient(circle at 15% 12%, rgba(184, 121, 61, 0.15), transparent 28rem), linear-gradient(135deg, var(--chocolate-950), var(--chocolate-850) 44%, #100805); 
  color: var(--cream-100); 
  font-family: var(--font-body); 
  font-size: 0.8rem; 
  line-height: 1.5; 
  overflow-x: hidden; 
  /* DISABLE TEXT HIGHLIGHTING SITE-WIDE */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

body.menu-open, body.login-active { overflow: hidden; }
button, input, a { font: inherit; }

/* PHOTO PROTECTION: STOPS DRAGGING & STOPS MOBILE LONG-PRESS MENU */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}

/* RE-ENABLE TEXT SELECTION FOR INPUTS SO THE LOGIN FORM WORKS */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

a { color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(214, 162, 96, 0.34); color: var(--cream-100); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ================= LOGIN ================= */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: flex-end; padding: 2vw 6vw; background: linear-gradient(90deg, rgba(11, 6, 4, 0.08), rgba(11, 6, 4, 0.2) 48%, rgba(11, 6, 4, 0.88)), url("BACKGROUND001.jpg") left center / cover no-repeat; }
.login-panel { width: min(380px, 100%); padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(50, 30, 19, 0.82), rgba(17, 9, 5, 0.92)), rgba(19, 11, 7, 0.86); box-shadow: var(--shadow); backdrop-filter: blur(18px); animation: loginReveal 900ms ease both; }
.login-mark, .brand-seal, .mini-seal { display: inline-grid; place-items: center; border: 1px solid rgba(243, 215, 154, 0.52); background: linear-gradient(145deg, rgba(214, 162, 96, 0.22), rgba(184, 121, 61, 0.08)); color: var(--gold-300); font-family: var(--font-display); letter-spacing: 0; }
.login-mark { width: 36px; height: 36px; margin-bottom: 4px; border-radius: 50%; font-size: 0.85rem; }
.eyebrow { margin: 0 0 4px; color: var(--copper-400); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.login-panel h1, .hero h1, .section-heading h2 { margin: 0; font-family: var(--font-display); line-height: 1.08; letter-spacing: 0; }
.login-panel h1 { max-width: 8ch; font-size: clamp(1.1rem, 2vw, 1.5rem); }
.login-byline { margin: 2px 0 8px; color: var(--cream-200); font-size: 0.8rem; }
.login-form { display: grid; gap: 6px; }
.login-form label { color: var(--muted); font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; }
.login-form input { width: 100%; min-height: 30px; border: 1px solid rgba(243, 215, 154, 0.18); border-radius: var(--radius); outline: none; padding: 0 10px; background: rgba(8, 4, 2, 0.46); color: var(--cream-100); font-size: 0.8rem; transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease; }
.login-form input::placeholder { color: rgba(239, 216, 182, 0.5); }
.login-form input:focus-visible { border-color: rgba(243, 215, 154, 0.7); background: rgba(8, 4, 2, 0.68); box-shadow: 0 0 0 4px rgba(214, 162, 96, 0.14); }
.enter, .btn, .logout, .top-btn, .menu-toggle { border: 0; border-radius: var(--radius); transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease; }
.enter { min-height: 32px; margin-top: 2px; background: linear-gradient(135deg, var(--gold-300), var(--copper-500)); color: #160b05; font-size: 0.8rem; font-weight: 800; box-shadow: 0 8px 20px rgba(184, 121, 61, 0.28); }
.enter:hover, .enter:focus-visible, .btn:hover, .btn:focus-visible, .logout:hover, .logout:focus-visible, .top-btn:hover, .top-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(184, 121, 61, 0.28); }
.identity { margin: 6px 0 0; color: var(--muted); font-size: 0.65rem; line-height: 1.3; }

/* ================= SITE SHELL & HEADER ================= */
.site-shell { display: none; min-height: 100vh; }
.site-header { position: sticky; z-index: 20; top: 0; min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px clamp(16px, 4vw, 40px); border-bottom: 1px solid rgba(243, 215, 154, 0.14); background: rgba(12, 7, 4, 0.82); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream-100); text-decoration: none; min-width: max-content; }
.brand-seal { width: 30px; height: 30px; border-radius: 50%; font-size: 0.65rem; }
.brand-title, .brand-sub { display: block; }
.brand-title { color: var(--gold-300); font-family: var(--font-display); font-size: clamp(0.85rem, 1.5vw, 1rem); font-weight: 700; }
.brand-sub { margin-top: 1px; color: var(--muted); font-size: 0.65rem; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a, .logout { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); padding: 0 10px; color: var(--cream-200); font-size: 0.75rem; font-weight: 600; text-decoration: none; }
.site-nav a { border: 1px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.active { border-color: rgba(243, 215, 154, 0.18); background: rgba(214, 162, 96, 0.1); color: var(--gold-300); }
.logout { margin-left: 4px; background: linear-gradient(135deg, var(--gold-300), var(--copper-500)); color: #170c06; }
.menu-toggle { display: none; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(243, 215, 154, 0.2); background: rgba(255, 255, 255, 0.04); color: var(--gold-300); }
.menu-toggle .icon-menu-close { display: none; }

/* ================= MAIN CONTENT SECTIONS ================= */
.content-section { width: min(var(--max-width), calc(100% - 32px)); margin: 0 auto; padding: 18vh 0 20vh 0; min-height: calc(100vh - var(--header-height)); display: flex; flex-direction: column; justify-content: center; }
.hero { position: relative; min-height: calc(100vh - var(--header-height)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); align-items: center; gap: 30px; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 60px); overflow: hidden; isolation: isolate; background: linear-gradient(90deg, rgba(11, 6, 4, 0.42), rgba(11, 6, 4, 0.72) 46%, rgba(11, 6, 4, 0.96)), url("BACKGROUND001.jpg") left center / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 36%; z-index: -1; background: linear-gradient(0deg, var(--chocolate-950), transparent); }
.hero-content { max-width: 600px; animation: slideUp 900ms ease both; }
.hero h1 { max-width: 9ch; font-size: clamp(1.2rem, 2.5vw, 2rem); color: var(--cream-100); text-shadow: 0 16px 42px rgba(0, 0, 0, 0.5); }
.hero-copy { max-width: 500px; margin: 14px 0 0; color: var(--cream-200); font-size: clamp(0.8rem, 1.5vw, 0.9rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { min-height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; font-size: 0.75rem; font-weight: 700; text-decoration: none; }
.btn.primary { background: linear-gradient(135deg, var(--gold-300), var(--copper-500)); color: #160b05; }
.btn.ghost { border: 1px solid rgba(243, 215, 154, 0.22); background: rgba(255, 255, 255, 0.04); color: var(--cream-100); }
.glass-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)), var(--glass); box-shadow: var(--shadow-soft); backdrop-filter: blur(12px); }
.hero-card { align-self: end; padding: 16px; animation: floatIn 1s ease 180ms both; }
.hero-card-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.7rem; }
.mini-seal { width: 24px; height: 24px; border-radius: 50%; }
.hero-card strong { display: block; margin-top: 14px; color: var(--gold-300); font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.8rem); line-height: 1; }
.hero-card p { margin: 8px 0 0; color: var(--cream-200); font-size: 0.75rem; }
.section-heading { max-width: 600px; margin-bottom: 20px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading h2 { color: var(--cream-100); font-size: clamp(1rem, 1.5vw, 1.4rem); }
.section-heading p:not(.eyebrow) { margin: 8px 0 0; color: var(--muted); font-size: 0.8rem; }
.about-grid, .tech-grid, .contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.profile-card, .tech-card, .contact-card { min-width: 0; padding: 16px; transition: transform 260ms ease, border-color 260ms ease, background 260ms ease; }
.profile-card:hover, .tech-card:hover, .contact-card:hover, .gallery-card:hover, .featured-book:hover { transform: translateY(-2px); border-color: rgba(243, 215, 154, 0.42); }
.card-icon { width: 28px; height: 28px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid rgba(243, 215, 154, 0.24); border-radius: 50%; background: rgba(214, 162, 96, 0.12); color: var(--gold-300); }
.profile-card h3, .tech-card h3, .contact-card h3, .timeline-item h3, .book-details h3, .gallery-card h3 { margin: 0; color: var(--cream-100); font-family: var(--font-display); font-size: 0.9rem; line-height: 1.25; }
.profile-card p, .tech-card p, .timeline-item p, .book-details p { margin: 6px 0 0; color: var(--muted); font-size: 0.75rem; }
.skill-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 24px; }
.skill-badges span, .book-meta span { display: inline-flex; align-items: center; min-height: 24px; border: 1px solid rgba(243, 215, 154, 0.18); border-radius: 999px; padding: 0 10px; background: rgba(214, 162, 96, 0.06); color: var(--cream-200); font-size: 0.65rem; font-weight: 600; }
.timeline { position: relative; display: grid; gap: 10px; }
.timeline::before { content: ""; position: absolute; left: 100px; top: 14px; bottom: 14px; width: 1px; background: linear-gradient(var(--copper-400), rgba(214, 162, 96, 0.05)); }
.timeline-item { position: relative; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px; padding: 12px 0; }
.timeline-item::before { content: ""; position: absolute; left: 96px; top: 18px; width: 8px; height: 8px; border: 2px solid var(--gold-300); border-radius: 50%; background: var(--chocolate-900); box-shadow: 0 0 0 4px rgba(214, 162, 96, 0.08); }
.timeline-year { color: var(--gold-300); font-family: var(--font-display); font-size: 0.8rem; font-weight: 700; }

/* ================= BOOKS ================= */
.featured-book { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); gap: clamp(16px, 3vw, 28px); align-items: center; padding: clamp(14px, 2vw, 24px); transition: transform 260ms ease, border-color 260ms ease; }
.book-cover { position: relative; overflow: hidden; border: 1px solid rgba(243, 215, 154, 0.28); border-radius: var(--radius); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.34); }
.book-cover img { display: block; width: 100%; height: auto; object-fit: cover; }
.book-details { min-width: 0; }
.book-details h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.book-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; }

/* ================= PHOTOGRAPHY / GALLERY ================= */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gallery-card { position: relative; height: auto; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(243, 215, 154, 0.16); border-radius: var(--radius-lg); padding: 14px; background: var(--chocolate-700); box-shadow: var(--shadow-soft); transition: transform 260ms ease, border-color 260ms ease, filter 260ms ease; }
.gallery-card::before, .gallery-card::after { content: ""; position: absolute; inset: 0; transition: transform 440ms ease, opacity 320ms ease; }
.gallery-card::before { background: linear-gradient(180deg, rgba(11, 6, 4, 0.12), rgba(11, 6, 4, 0.88)); z-index: 1; }
.gallery-card::after { background: radial-gradient(circle at 30% 22%, rgba(243, 215, 154, 0.24), transparent 10rem), linear-gradient(145deg, rgba(122, 78, 46, 0.65), rgba(19, 11, 7, 0.92)); }
.gallery-card.nature::after { background: linear-gradient(180deg, rgba(19, 11, 7, 0.1), rgba(19, 11, 7, 0.9)), linear-gradient(135deg, #365141, #8d7044 52%, #1d120b); }
.gallery-card.travel::after { background: linear-gradient(180deg, rgba(19, 11, 7, 0.1), rgba(19, 11, 7, 0.9)), linear-gradient(135deg, #385069, #b8793d 52%, #160c07); }
.gallery-card.mumbai::after { background: linear-gradient(180deg, rgba(19, 11, 7, 0.1), rgba(19, 11, 7, 0.9)), linear-gradient(135deg, #3f354e, #9b5735 52%, #100805); }
.gallery-card.memories::after { background: linear-gradient(180deg, rgba(19, 11, 7, 0.1), rgba(19, 11, 7, 0.9)), linear-gradient(135deg, #4e3f36, #c18f55 52%, #130b07); }
.gallery-card:hover::after { transform: scale(1.04); }
.card-content-wrapper { position: relative; z-index: 2; display: flex; flex-direction: column; height: 100%; }
.gallery-card span, .gallery-card h3 { position: relative; }
.gallery-card span { margin-bottom: 2px; color: var(--gold-300); font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; }
.gallery-card p.card-note { position: relative; margin: 4px 0 0 0; font-size: 0.65rem; color: var(--muted); line-height: 1.3; opacity: 0.8; padding-bottom: 12px;}
.gallery-card-thumbnails { margin-top: auto; border-top: 1px solid rgba(243, 215, 154, 0.15); padding-top: 12px; }

/* ================= TECH & CONTACT ================= */
.tech-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tech-card .icon { width: 24px; height: 24px; margin-bottom: 12px; color: var(--gold-300); }
.contact-section { padding-bottom: clamp(60px, 8vw, 100px); }
.contact-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.contact-card { display: flex; min-height: 120px; padding: 16px; flex-direction: column; }
.contact-card a { display: block; min-width: 0; margin-top: 6px; color: var(--gold-300); font-weight: 600; font-size: 0.75rem; line-height: 1.4; overflow-wrap: anywhere; word-break: break-word; text-decoration-color: rgba(243, 215, 154, 0.32); text-underline-offset: 4px; }

/* ================= FOOTER ================= */
.site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 24px clamp(16px, 4vw, 40px); border-top: 1px solid rgba(243, 215, 154, 0.14); background: #090503; }
.footer-brand { color: var(--gold-300); font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; text-decoration: none; }
.site-footer p { margin: 4px 0 0; color: var(--muted); font-size: 0.7rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.footer-links a { min-height: 28px; display: inline-flex; align-items: center; border: 1px solid rgba(243, 215, 154, 0.18); border-radius: var(--radius); padding: 0 8px; color: var(--cream-200); font-size: 0.7rem; font-weight: 600; text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { background: rgba(214, 162, 96, 0.1); color: var(--gold-300); }

/* ================= LEGAL LINKS AS PREMIUM BUTTONS ================= */
.legal-links { grid-column: 1 / -1; margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.legal-links a { 
  min-height: 28px; 
  display: inline-flex; 
  align-items: center; 
  border: 1px solid rgba(243, 215, 154, 0.18); 
  border-radius: var(--radius); 
  padding: 0 10px; 
  background: rgba(255, 255, 255, 0.02);
  color: var(--cream-200); 
  font-size: 0.7rem; 
  font-weight: 600; 
  text-decoration: none; 
  transition: all 220ms ease; 
  cursor: pointer; 
}
.legal-links a:hover { 
  background: rgba(214, 162, 96, 0.12); 
  border-color: var(--gold-300);
  color: var(--gold-300); 
  transform: translateY(-2px);
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(8, 4, 2, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  padding: 20px;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
  position: relative;
  width: min(500px, 100%);
  background: linear-gradient(145deg, rgba(35, 21, 14, 0.95), rgba(19, 11, 7, 0.98));
  border: 1px solid rgba(243, 215, 154, 0.2);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: transform 300ms ease;
  max-height: 85vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--gold-300);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 200ms ease;
  padding: 0;
  z-index: 10;
}
.modal-close:hover { opacity: 1; }
.modal-content h3 {
  color: var(--gold-300);
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(243, 215, 154, 0.1);
  padding-bottom: 8px;
}
.modal-content p { color: var(--cream-200); font-size: 0.75rem; margin-bottom: 10px; line-height: 1.5; }
.modal-content a { color: var(--copper-400); text-decoration: underline; text-decoration-color: rgba(214, 162, 96, 0.3); }
.modal-signature { margin-top: 20px; color: var(--muted); font-size: 0.75rem; font-style: italic; text-align: right; line-height: 1.4; }

.copyright { grid-column: 1 / -1; font-size: 0.65rem; margin-top: 6px;}
.top-btn { position: fixed; right: 16px; bottom: 16px; z-index: 18; display: none; align-items: center; gap: 4px; min-height: 32px; border: 1px solid rgba(243, 215, 154, 0.28); padding: 0 10px; background: linear-gradient(135deg, var(--gold-300), var(--copper-500)); color: #160b05; font-weight: 800; font-size: 0.7rem; }
.section-observe { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 500ms ease; }
.section-observe.in-view { opacity: 1; transform: translateY(0); }
@keyframes loginReveal { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; } .section-observe { opacity: 1; transform: none; } }

@media (max-width: 1080px) {
  .site-header { align-items: flex-start; }
  .menu-toggle { display: grid; flex: 0 0 auto; }
  .site-nav { position: fixed; top: var(--header-height); right: 18px; left: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 16px; border: 1px solid rgba(243, 215, 154, 0.18); border-radius: var(--radius-lg); background: rgba(13, 7, 4, 0.96); box-shadow: var(--shadow); backdrop-filter: blur(18px); opacity: 0; pointer-events: none; transform: translateY(-14px); transition: opacity 220ms ease, transform 220ms ease; }
  .site-nav.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .menu-toggle[aria-expanded="true"] .icon-menu-open { display: none; }
  .menu-toggle[aria-expanded="true"] .icon-menu-close { display: block; }
  .logout { margin-left: 0; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-card { max-width: 400px; align-self: auto; }
  .about-grid, .tech-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --header-height: 54px; }
  body.login-active { overflow: auto; }
  .login-page { justify-content: center; padding: 16px; background: linear-gradient(180deg, rgba(11, 6, 4, 0.26), rgba(11, 6, 4, 0.92)), url("BACKGROUND001.jpg") 28% center / cover no-repeat; }
  .login-panel { padding: 20px 16px; }
  .login-panel h1 { max-width: 100%; }
  .site-header { padding: 8px 12px; }
  .brand { min-width: 0; }
  .brand-title { font-size: 0.8rem; }
  .brand-sub { font-size: 0.6rem; }
  .hero { padding: 40px 16px 32px; background: linear-gradient(180deg, rgba(11, 6, 4, 0.42), rgba(11, 6, 4, 0.93)), url("BACKGROUND001.jpg") 24% center / cover no-repeat; }
  .hero h1 { max-width: 100%; }
  .hero-actions, .footer-links { align-items: stretch; flex-direction: column; }
  .btn, .footer-links a { width: 100%; }
  .content-section { width: min(100% - 24px, var(--max-width)); padding: 12vh 0 16vh 0; }
  .about-grid, .tech-grid, .contact-grid, .gallery-grid, .featured-book { grid-template-columns: 1fr; }
  .book-cover { min-height: 240px; }
  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; padding-left: 24px; }
  .timeline-item::before { left: 3px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: stretch; }
}

@media (max-width: 480px) {
  .site-nav { grid-template-columns: 1fr; }
  .hero-copy, .section-heading p:not(.eyebrow), .profile-card p, .tech-card p, .timeline-item p, .book-details p { font-size: 0.75rem; }
  .profile-card, .tech-card, .contact-card, .hero-card, .featured-book { padding: 14px; }
  .gallery-card { min-height: 140px; }
  .top-btn { right: 10px; bottom: 10px; }
}

/* ================= THUMBNAILS ================= */
.book-memories { margin: 16px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.memory-thumbnails { display: flex; gap: 10px; margin-top: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: var(--copper-500) transparent; }
.memory-thumbnails::-webkit-scrollbar { height: 6px; }
.memory-thumbnails::-webkit-scrollbar-thumb { background: var(--copper-500); border-radius: 4px; }
.memory-thumbnails img { width: 60px; height: 60px; object-fit: cover; flex-shrink: 0; border-radius: var(--radius); border: 1px solid rgba(243, 215, 154, 0.28); transition: transform 200ms ease, border-color 200ms ease; }
.memory-thumbnails img:hover { transform: scale(1.1); border-color: var(--gold-300); cursor: pointer; }

/* ================= IMAGE LIGHTBOX ================= */
.image-modal-box {
  position: relative;
  width: 92vw;
  max-width: 1000px;
  height: 82vh;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible !important;
}
.image-modal-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.85);
  position: relative;
  z-index: 10001;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(19, 11, 7, 0.85);
  color: var(--gold-300);
  border: 2px solid rgba(243, 215, 154, 0.45);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 200ms ease;
  z-index: 10005;
  user-select: none;
}
.lightbox-nav:hover { background: var(--copper-500); color: #fff; border-color: var(--gold-300); transform: translateY(-50%) scale(1.1); }
.lightbox-nav.prev { left: -65px; }
.lightbox-nav.next { right: -65px; }

.lightbox-close {
  position: absolute;
  top: -45px;
  right: -5px;
  background: rgba(19, 11, 7, 0.85);
  border: 1px solid rgba(243, 215, 154, 0.4);
  color: var(--gold-300);
  font-size: 2rem;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 200ms ease;
  z-index: 10005;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

@media (max-width: 820px) {
  .image-modal-box { width: 95vw; height: 75vh; }
  .lightbox-nav.prev { left: 10px; background: rgba(11, 6, 4, 0.9); }
  .lightbox-nav.next { right: 10px; background: rgba(11, 6, 4, 0.9); }
  .lightbox-close { top: -45px; right: 5px; }
}