/* ============================================
   ALEXANDER KALAMAROFF — SITE STYLESHEET
   ============================================ */

:root {
  --black:      #000000;
  --near-black: #121212;
  --off-black:  #1a1a1a;
  --purple:     #8058C7;
  --teal:       #56C79F;
  --gold:       #C7BB7F;
  --white:      #ffffff;
  --off-white:  #f9f9f7;
  --text:       #1a1a1a;
  --text-muted: #595959;
  --border:     #e0e0e0;
  --border-dark:#2a2a2a;

  --font-serif: Georgia, 'Times New Roman', serif;
  --font-ui:    'Helvetica Neue', Helvetica, Arial, sans-serif;

  --max-width:  920px;
  --nav-height: 130px;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--text);
  font-family: var(--font-serif);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ---- LINKS ---- */
a { color: var(--text); text-decoration: none; transition: color 0.2s; }
a:hover { color: #4A2A8A; }

/* ============================================
   HOME PAGE — full screen, no top nav
   ============================================ */
body.home {
  background: var(--gold);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(128, 88, 199, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(86, 199, 159, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 85%, rgba(128, 88, 199, 0.10) 0%, transparent 45%);
  background-color: var(--gold);
}

.home-card {
  background: var(--white);
  /* background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('texture.png') center / auto repeat; */
  padding: 0;
  max-width: 480px;
  width: 100%;
  text-align: center;
  border: 2px solid #2a2a2a;
  overflow: hidden;
}

.home-name {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 7vw, 2.2rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  color: var(--near-black);
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  text-align: center;
  width: 100%;
  display: block;
  padding: 0;
  word-break: break-word;
}

.home-tagline {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.home-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-nav-list li a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  transition: color 0.2s;
}
.home-nav-list li:last-child a { border-bottom: 1px solid var(--border); }
.home-nav-list li a:hover { color: var(--near-black); }

.home-footer {
  margin-top: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: rgba(0,0,0,0.3);
  text-align: center;
}

/* ============================================
   INNER PAGES — top nav + white background
   ============================================ */

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 5px; left: 0; right: 0;
  background: var(--white);
  /* background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('texture.png') center / auto repeat; */
  border: none;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
}

nav::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--max-width));
  height: 2px;
  background: linear-gradient(to right, var(--purple), var(--teal));
  z-index: 100;
  will-change: transform;
  backface-visibility: hidden;
}

.nav-fixed-row {
  height: var(--nav-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  flex-shrink: 0;
  gap: 0.75rem;
  padding: 20px 2.5rem 14px;
}

@media (max-width: 700px) {
  .nav-fixed-row {
    height: auto;
    flex-direction: column;
    justify-content: center;
    padding: 1.4rem 0 0.4rem;
    gap: 0.6rem;
  }
}

.nav-name {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: normal;
  color: var(--near-black);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  display: block;
  width: 100%;
  line-height: 1;
}
.nav-name:hover { color: #4A2A8A; }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  width: 100%;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2a2a2a;
  padding: 0.25rem 1.2rem;
  display: block;
  transition: color 0.2s;
}
.nav-links a:hover { color: #4A2A8A; }
.nav-links a.active { color: #4A2A8A; font-weight: bold; }

/* Projects dropdown */
.nav-links .has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.55rem;
  opacity: 0.5;
}
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  min-width: 180px;
  padding: 0.4rem 0;
  z-index: 200;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}
.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown a {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.55rem 1.1rem;
  color: #2a2a2a;
  display: block;
}
.dropdown a:hover { color: #4A2A8A; background: var(--off-white); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.4rem;
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 700px) {
  .nav-hamburger {
    position: static;
    transform: none;
  }
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--near-black);
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
}
.mobile-menu.open { grid-template-rows: 1fr; }
.mobile-menu-inner { overflow: hidden; }
.mobile-menu a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.85rem 2rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover { color: #4A2A8A; }
.mobile-menu a.active { color: #4A2A8A; font-weight: bold; }
.mobile-menu a.sub { padding-left: 3rem; font-size: 3rem; color: var(--text-muted); }

/* ---- PAGE LAYOUT ---- */
.page {
  padding-top: calc(var(--nav-height) + 5px + 1.50rem);
  padding-bottom: 5rem;
  min-height: auto;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- PAGE HEADER ---- */
.page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: normal;
  color: var(--near-black);
  letter-spacing: 0.02em;
}

.page-title-stripe {
  height: 1px;
  width: 100%;
  margin-top: 0.8rem;
  background: linear-gradient(to right, var(--purple), var(--teal));
}

/* ---- TYPOGRAPHY ---- */
h2 {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--near-black);
  margin: 2.5rem 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: normal;
  color: var(--near-black);
  margin: 2rem 0 0.5rem;
}

p { font-size: 0.975rem; margin-bottom: 1.2rem; color: var(--text); }
em { font-style: italic; }
strong { font-weight: bold; }

/* ---- BLOCKQUOTE / POEM ---- */
blockquote {
  border-left: 2px solid var(--purple);
  margin: 2rem 0;
  padding: 0.3rem 0 0.3rem 1.5rem;
  font-style: italic;
  font-size: 0.95rem;
  color: #444;
}
blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-style: normal;
  color: var(--text-muted);
}

.poem {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 2px solid var(--purple);
  font-style: italic;
  font-size: 0.95rem;
  color: #444;
  line-height: 1.9;
}
.poem .attribution {
  margin-top: 0.7rem;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ---- WRITING LIST ---- */
.writing-section { margin-bottom: 2.5rem; }
.writing-list { list-style: none; padding: 0; }
.writing-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}
.writing-list li:last-child { border-bottom: none; }
.writing-list .pub { color: var(--text-muted); font-style: italic; font-size: 0.82rem; }

/* ---- UPCOMING BLOCK ---- */
.upcoming-block {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  padding: 1.5rem 1.8rem;
  margin-bottom: 2.5rem;
}
.upcoming-label {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.7rem;
}

/* ---- SUBSTACK LINE ---- */
.substack-line {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.substack-line span { color: var(--near-black); }

/* ---- ABOUT LAYOUT ---- */
.about-grid {
  display: grid;
  margin-top: 0;
  grid-template-columns: 200px 1fr;
  gap: 3rem;
  align-items: start;
}
.about-photo {
  width: 100%;
  display: block;
  border: 1px solid var(--border);
  filter: grayscale(100%);
}


/* ---- CONTACT ---- */
.contact-email-link {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--purple);
  border-bottom: 1px solid var(--purple);
  padding-bottom: 2px;
  margin-bottom: 2.5rem;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email-link:hover { color: #4A2A8A; border-color: #4A2A8A; }

.contact-form { max-width: 520px; }
.form-group { margin-bottom: 1.4rem; }
.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--near-black);
  color: var(--near-black);
  padding: 0.65rem 1.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.form-submit:hover { background: var(--near-black); color: var(--white); }

/* ---- HOBBY SECTIONS ---- */
.hobby-section { margin-bottom: 3.5rem; }
.hobby-section h3 { color: var(--near-black); }
.hobby-image-placeholder {
  width: 100%; height: 280px;
  background: var(--off-white);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ---- QUOTE TROVE ---- */
.quote-entry { padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.quote-entry:last-child { border-bottom: none; }
.quote-number {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 0.4rem;
}
.quote-text {
  font-size: 0.975rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 0.4rem;
}
.quote-source { font-size: 0.78rem; color: var(--text-muted); font-style: normal; }

/* ---- FOOTER ---- */
footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
  text-align: center;
  margin-bottom: 2px;
}
footer p {
  font-family: var(--font-ui);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: #bbb;
  margin: 0;
}

/* Gold bars */
.gold-bar-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--gold);
  z-index: 9999;
}
.gold-bar-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gold);
  z-index: 9999;
}

/* Gold flood defaults */
.gold-flood-top {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 0;
  background: var(--gold);
  z-index: 9998;
  pointer-events: none;
}
.gold-flood-bottom {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 0;
  background: var(--gold);
  z-index: 9998;
  pointer-events: none;
}

/* ---- BACK LINK ---- */
.back-link {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  transition: color 0.2s;
}
.back-link:hover { color: #4A2A8A; }

/* ---- FADE IN ---- */
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.45s ease forwards;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.15s; }
.fade-in:nth-child(4) { animation-delay: 0.2s; }
.fade-in:nth-child(5) { animation-delay: 0.25s; }

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  nav { padding: 0 1.2rem; height: auto; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .container { padding: 0 1.2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-grid > div:first-child { display: flex; justify-content: center; }
  .about-photo { max-width: 200px; }
  .slide img { height: 260px; }
  .slide-placeholder { height: 260px; }
  .hobby-image-placeholder { height: 200px; }
  .home-card { padding: 2.5rem 2rem; }
}


/* ---- SUBSTACK PLAIN TEXT NOTE ---- */
.substack-note {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
}
.substack-note span { color: var(--near-black); text-transform: none; }

/* ---- GOLD WARMTH ON INNER PAGES ---- */
body:not(.home) { background: var(--white); }
body:not(.home) nav {
  background: var(--white);
  /* background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('texture.png') center / auto repeat; */
}
body:not(.home) .mobile-menu {
  background: var(--white);
  /* background: linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)), url('texture.png') center / auto repeat; */
}

/* ---- ABOUT SECONDARY PHOTO ---- */
.about-secondary { margin-top: 3rem; text-align: center; }
.about-secondary-photo {
  max-width: 220px;
  width: 100%;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--border);
}
.about-caption {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
}

/* ---- MOBILE PROJECTS SUB-MENU ---- */
.mobile-projects-toggle {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.mobile-projects-toggle:hover { color: #4A2A8A; }
.mobile-projects-sub { display: none; background: var(--white); }
.mobile-projects-sub.open { display: block; }
.mobile-projects-sub a.sub { padding-left: 3rem; font-size: 0.65rem; color: var(--text-muted); }

/* ---- HOME PAGE PROJECTS DROPDOWN ---- */
.home-projects-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  width: 100%;
  transition: color 0.2s;
}
.home-projects-toggle:hover { color: var(--near-black); }
.home-projects-toggle::after { content: '▾'; font-size: 0.6rem; opacity: 0.5; }

.home-projects-sub {
  display: none;
  list-style: none;
  border-top: 1px solid var(--border);
  background: var(--off-white);
  margin: 0 -4rem;
  padding: 0.3rem 4rem;
}
.home-projects-sub.open { display: block; }
.home-projects-sub li a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.home-projects-sub li:last-child a { border-bottom: none; }
.home-projects-sub li a:hover { color: var(--near-black); }

/* ============================================
   POSTCARD SLIDESHOW
   ============================================ */
.ss-wrap {
  position: relative;
  margin: 2rem 0;
  border: 1px solid var(--border);
  background: var(--off-white);
}
.ss-outer { width: 100%; overflow: hidden; }
.ss-inner {
  display: flex;
  width: 500%;
  transition: transform 0.45s ease;
  will-change: transform;
}
.ss-slide {
  width: 20%;
  flex-shrink: 0;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}
.ss-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}
.ss-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--border);
  color: var(--near-black);
  width: 38px; height: 38px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 5;
}
.ss-prev { left: 0.6rem; }
.ss-next { right: 0.6rem; }
.ss-wrap:hover .ss-btn { opacity: 1; }
.ss-btn:hover { background: rgba(255,255,255,0.97); }
.ss-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
}
.ss-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.ss-dot.active { background: var(--teal); }

/* ============================================
   HOME PAGE — card halves + drawer
   ============================================ */
.home-card-top { padding: 9% 10% 4%; text-align: center; }
.home-card-bottom { padding: 0 10% 13%; }

.home-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.home-nav-list > li > a {
  display: block;
  font-family: var(--font-ui);
  font-size: clamp(0.78rem, 2.5vw, 0.88rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2a2a2a;
  padding: 0.85rem 0;
  border: none;
  transition: color 0.2s;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

/* Stripes via ::before on each li */
.home-nav-list > li::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(to right, #8058C7, #56C79F);
  margin: 0 auto;
  transform: scaleY(1);
  will-change: transform;
  backface-visibility: hidden;
}
.home-nav-list > li:last-child::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(to right, #8058C7, #56C79F);
  margin: 0 auto;
  width: 100%;
  transform: scaleY(1);
  will-change: transform;
  backface-visibility: hidden;
}

/* Fanlight cascade widths */
.home-nav-list > li:nth-child(1)::before { width: 38%; }
.home-nav-list > li:nth-child(2)::before { width: 83%; }
.home-nav-list > li:nth-child(3)::before { width: 100%; }
.home-nav-list > li:nth-child(4)::before { width: 100%; }
.home-nav-list > li > a:hover { color: #4A2A8A; }

/* Projects toggle */
.home-nav-list li a.projects-toggle::after { content: ' ▾'; font-size: 0.55rem; opacity: 0.4; }
.home-nav-list li a.projects-toggle.open::after { content: ' ▴'; }

/* Projects drawer */
.home-projects-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
  margin: 0 -8%;
}
.home-projects-drawer > ul { overflow: hidden; }
.home-projects-drawer.open { grid-template-rows: 1fr; }
.home-projects-drawer ul { list-style: none; padding: 0; margin: 0; }
.home-projects-drawer ul li a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2a2a2a;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  border-image: none;
  text-align: center;
  transition: color 0.2s;
}
.home-projects-drawer ul li:last-child a { border-bottom: none; }
.home-projects-drawer ul li a:hover { color: #4A2A8A; }

/* ============================================
   GOLD DRAIN ANIMATION
   ============================================ */
.gold-drain-top,
.gold-drain-bottom {
  position: fixed;
  left: 0; right: 0;
  background: var(--gold);
  z-index: 9999;
  pointer-events: none;
}
.gold-drain-top {
  top: 0;
  height: 50vh;
  animation: drainTop 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.gold-drain-bottom {
  bottom: 0;
  height: 50vh;
  animation: drainBottom 0.95s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes drainTop {
  0%   { height: 50vh; opacity: 1; }
  60%  { height: 5px;  opacity: 0.85; }
  80%  { height: 5px;  opacity: 0.4; }
  100% { height: 5px;  opacity: 0; }
}
@keyframes drainBottom {
  0%   { height: 50vh; opacity: 1; }
  60%  { height: 5px;  opacity: 0.85; }
  80%  { height: 5px;  opacity: 0.4; }
  100% { height: 0;    opacity: 0; }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-form { width: 100%; text-align: left; }
.contact-email-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0.5rem 0;
  cursor: pointer;
  margin-bottom: 2rem;
  gap: 0.5rem;
  transition: color 0.2s;
}
.contact-email-btn:hover { color: #4A2A8A; }
.contact-email-btn svg { display: block; }