/* Base */
html { box-sizing: border-box; font-size: 62.5%; scroll-behavior: smooth; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; font: inherit; vertical-align: baseline; }

@font-face {
  font-family: 'Basteleur';
  src: url('/assets/fonts/Basteleur-Bold.woff2') format('woff2'),
       url('/assets/fonts/Basteleur-Bold.woff')  format('woff');
  font-weight: 700;       /* it's a Bold cut */
  font-style: normal;
  font-display: swap;
}

*{
    /* border: red dotted 1px; */
}

html, body { min-height: 100%; }

body {
  font-family: 'Basteleur', serif;
  font-size: 1.6rem;
  line-height: 1.6;
  margin: 0;
  overscroll-behavior-y: auto;
  height: auto;
  width: 100%;
     background-color: #f9f6ee;
    color: #11120D;
    font-family: 'Basteleur', serif;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #11120D;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;  /* reveal when focused */
}




/* Header / Nav */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  min-height: 100vh;
}

nav { width: 100%; 
  padding: 0.5rem 0;
  max-width: 60ch; 
  margin-inline: auto;
  position: relative; }
nav ul { display: flex; justify-content: space-around; padding-top: 2rem; list-style: none; }

a, nav a {
  text-transform: lowercase;
  color: blue;
  transition: color 0.3s ease;
  white-space: nowrap;
}
a:hover, nav a:hover { text-transform: uppercase; color: blueviolet; text-decoration: none; }
a:visited, nav a:visited { color: blue; }
a:visited:hover, nav a:visited:hover { color: blueviolet; }


/* Links and buttons show pointer */
a, button {
  cursor: pointer;
}

/* Text inputs, editable areas show I-beam */
input[type="text"], textarea, [contenteditable="true"] {
  cursor: text;
}


/* Site Title */
.site-title { position: relative; display: grid; place-items: center; width: 100%; }
.site-title h1 {
  font-size: clamp(2.5rem, 10vw, 5.5ch);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  margin: 1rem 0;
  text-transform: uppercase;
  color: #11120D;
}

.site-title.stuck h1{
  position: fixed;
  top: clamp(14px, 2.6vw, 30px);
  right: clamp(16px, 3vw, 36px);
  z-index: 1000;
  margin: 0;
  background: none;
  -webkit-text-fill-color: initial;
  color: #11120D;
  text-align: center;
  text-shadow: 0 0 .5px rgba(0,0,0,.4);  
}



.initials { display: none; }
.site-title.stuck .full-name { display: none; }
.site-title.stuck .initials { display: inline; }
.initials a { display: inline-block; padding: 0.25em 0.5em; color: inherit; ;}
.vert { display: inline-block; line-height: 1; text-align: center; letter-spacing: 0.05em; }


/* enlarge the click target when stuck */
.site-title.stuck .initials .home-link {
  display: inline-grid;
  place-items: center;
  padding: 2rem 2rem;       
  border-radius: 2rem;
  text-decoration: none;
  text-transform: uppercase;
  align-items: center;
}

/* focus ring for keyboard users */
.site-title.stuck .initials .home-link:focus-visible {
  outline: 2px solid #6a5acd;  
  outline-offset: 2px;
}


/* smooth fade/slide for the sticky DB badge */
.site-title h1 {
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: opacity, transform;
}

/* when we first enter "stuck", start from slightly lifted + transparent */
.site-title.stuck h1 {
  opacity: 0;
  transform: translateY(-0.35rem) scale(0.98);
}

/* one tick later we add .reveal → fade/slide to final */
.site-title.stuck.reveal h1 {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* D/B vertical stack in the badge — calmer scale */
.vert{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  letter-spacing: 0.04em;
  gap: clamp(.18rem, .6vw, .5rem);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);  /* ↓ from 2.2–4rem */
  text-align: center;
}


.site-title.stuck .initials .home-link::after{
  content: "✶";
  display: block;
  margin-top: clamp(.25rem, .8vw, .6rem);
  font-size: clamp(1.8rem, 3.6vw, 3rem);   /* smaller to match D/B */
  line-height: 1;
  color: #565449;
  text-shadow: 0 0 0.5px rgba(0,0,0,.4);
}



/* Utilities */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* === Marquee (JS-driven, even spacing) === */
#marquee { width: 100%; margin-top: 6rem; }
.marquee-viewport { position: relative; overflow: hidden; width: 100%; }

/* Flat list belt moved by JS */
#marquee ul.marquee-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6rem;                 /* 6rem BEFORE each following item */
  padding-block: 0.5rem;
  transform: translate3d(0,0,0);
  will-change: transform;
}

/* Items inline, no wrapping */
.marquee-track > li { display: inline-block; white-space: nowrap; text-transform: capitalize; }

:root { --marquee-paused: 0; }


/* pause ONLY on hover */
.marquee-viewport:hover .marquee-track {
  --marquee-paused: 1;
}



/* ✶ on every item after the first: 6rem after the star to next text */
.marquee-track > li + li::before {
  content: "✶";
  display: inline-block;
  margin-right: 6rem;
  transform: translateY(-0.05em);
}

/* A11y: static list for reduced motion */
#marquee-a11y { display: none; }
@media (prefers-reduced-motion: reduce) {
  .marquee-viewport { display: none; }
  #marquee-a11y { display: block; text-align: center; padding-block: 0.5rem; }
  #marquee-a11y ul { list-style: none; margin: 0; padding: 0; }
  #marquee-a11y li + li { margin-top: 0.5rem; }
}

/* Idle veil */
#fog-overlay {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0;
  transition: opacity 1s ease;
  display: grid;
  place-items: center;
}

#fog-overlay.active { opacity: 0.6; }
#fog-overlay .glyph {
  font-size: 65vh;
  color: rgba(0, 0, 0, 0.3);
  background-color: #35332dc4;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}


/* Responsive */
@media (max-width: 768px) { .panel { padding: 1rem; } }
@media (max-width: 480px) { .panel-content { font-size: 1.4rem; padding: 0.75rem; } }



/* Make the actual link explicitly interactive */
.site-title.stuck .initials .home-link {
  pointer-events: auto;
}



/* Independent, always-on-top initials button (hidden by default) */
#fixed-initials {
  position: fixed;
  top: clamp(14px, 2.6vw, 30px);
  right: clamp(16px, 3vw, 36px);
  z-index: 2147483000;         /* comfortably above any effect/overlay */
  display: none;               /* shown only when body gets .show-initials */
  text-decoration: none;
  color: #11120D;
  text-transform: uppercase;
  line-height: 1;
  padding: 2rem 2rem;          /* generous click target */
  border-radius: 2rem;
}

/* Typography for the stacked D/B */
#fixed-initials .vert {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(.18rem, .6vw, .5rem);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  letter-spacing: 0.04em;
  text-align: center;
}

/* subtle star under D/B, matches your existing badge style */
#fixed-initials::after {
  content: "✶";
  display: block;
  margin-top: clamp(.25rem, .8vw, .6rem);
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  line-height: 1;
}

/* Reveal the fixed badge when scrolled past the header */
body.show-initials #fixed-initials { display: inline-grid; place-items: center; }

/* When the fixed badge is showing, visually hide the in-header initials to avoid duplicate focus/announcement */
body.show-initials .site-title .initials { 
  visibility: hidden; 
  pointer-events: none;
}

/* Keep decorative layers click-through, just in case */
#vanta-bg > canvas,
body > canvas,
#fog-overlay { pointer-events: none; }




/* Section Styles  */
/* Panels */
.panel {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
}

.panel-content {
  width: 100%;
  padding: 1rem;
}

/* Shared column for header, main, and footer */
.panel-content {
  max-width: 60ch;   /* this is what kept nav/footer aligned with the title */
  width: 100%;
  padding: 1rem;
  margin-inline: auto;   /* center the column */

}

main section .panel-content {
  max-width: 825px;    
  margin-inline: auto;  
  /* padding-inline: 1.5rem;   */
}


@media (min-width: 1000px) {
  #about .panel-content {
    column-count: 2;
    column-gap: 6rem;  /* space between the columns */
  }


  #about .panel-content p {
    break-inside: avoid; /* prevent ugly splits mid-paragraph */
    text-align: left;
  }
}







/* ========== Base: centered chapter header (quiet) ========== */
.panel-content h2, .panel > h2 {
  text-align: center;
  text-transform: uppercase;
  line-height: 1.1;
  padding-block: clamp(1.25rem, 6vw, 6rem);
  gap: clamp(.18rem, .6vw, .5rem);
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  letter-spacing: 2px;
}

/* Draw a rule exactly as wide as the h2 text, 1rem below */
h2::after {
  content: "";
  display: block;
  height: 2px;                  
  background: currentColor;     
  margin-top: 1rem;             
}


/* panel-content that's a direct child of #contact */
#contact > .panel-content { 
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}



.svgs {
  vertical-align: middle;
  padding-top: 6rem;
}


 svg {
    width: 2rem;
    height: 2rem;
    stroke-width: 3;    /* thinner stroke for a more delicate feel */
}



@media (max-width: 900px) {
  #contact .svgs svg { padding: 0 !important; }
}













/* ===== Portfolio archive list ===== */
#portfolio .exhibition-list.cards-archive {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;   
  gap: 0;  
  margin-bottom: 30vh;  
  margin-top: 5vh;
}

/* Full-row link; 5 “cells”: idx | year | title | type */
#portfolio .exh-row {
  display: flex;
  align-items: center;      
  gap: 2rem;                
  width: 100%;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: inherit;
  position: relative;
  outline-offset: 4px;
  overflow: hidden;
}



/* Subtle manuscript-y hover cloud */
#portfolio .exh-row::before {
  content: "";
  position: absolute;
  inset: -15%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,0.08), transparent 70%);
  opacity: 0;
  transition: opacity 160ms ease;
}

#portfolio .exh-row:hover::before,
#portfolio .exh-row:focus-visible::before { opacity: 1; }

#portfolio .exh-row:focus-visible {
  outline: 2px dashed currentColor;  /* keyboard focus visible */
}


/* ===== Cells (fixed widths except title) ===== */
#portfolio .exh-idx {
  flex: 0 0 3.5ch;                   
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  letter-spacing: 3px;
  /* font-weight: bold; */
}

#portfolio .exh-year {
 
 min-width: 10ch;
  flex: 0 0 3.5ch;                   
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  letter-spacing: 4px;
  flex: 0 0 auto;
  min-width: 6ch;               /* enough for 4 digits + letterspacing */
  text-align: center;


}

#portfolio .exhibition-list.ledger .exh-row { 
  gap: .5rem;                       /* kill the right-side bias */
}

#portfolio .exh-title {
  flex: 1 1 auto;                    
  min-width: 0;                      
  text-align: center;   
  text-transform: uppercase;  
  font-weight: bold;           
  line-height: 1.2;
  letter-spacing: 2px;
  text-wrap: balance;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);  /* medium-big */
}

#portfolio .exh-type {
 flex: 0 0 3.5ch;                   
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: clamp(0.85rem, 1vw, 0.95rem);
  letter-spacing: 3px;
  min-width: 20ch;
}

/* title reacts on hover/focus */
#portfolio .exh-row:hover .exh-title,
#portfolio .exh-row:focus-visible .exh-title {
  font-style: italic;
}


/* ===== Ledger rules (rows + columns) ===== */
/* Add classes on <ul>: .ledger .ledger--hair OR .ledger--dotted OR .ledger--double */

#portfolio .exhibition-list.ledger > li:not(:last-child) .exh-row {
  border-bottom: 1px solid black;     /* row separators */
}

#portfolio .exhibition-list.ledger .exh-year,
#portfolio .exhibition-list.ledger .exh-title,
#portfolio .exhibition-list.ledger .exh-collab,
#portfolio .exhibition-list.ledger .exh-type {
  border-left: 1px solid black;       /* column separators */
  padding-left: 1rem;                       
}





/* ===== Small screens ===== */
@media (max-width: 560px) {
  #portfolio .exhibition-list.cards-archive {
  margin-bottom: 10vh;  
  margin-top: 1vh;
}
  
  
  #portfolio .exh-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 2rem;
  }

  /* drop fixed widths; let meta flow inline with separators */
  #portfolio .exh-idx,
  #portfolio .exh-year,
  #portfolio .exh-type {
    flex: 0 0 auto;
    border-left: 0;
    padding-left: 0;
    text-align: left;
  }

  /* order: idx+year line, then title, then collab+type inline */
  #portfolio .exh-idx   { order: 1; display: inline; margin: 0 0.25ch; }
  #portfolio .exh-year  { order: 1; display: inline; margin: 0 0.25ch; }
  #portfolio .exh-title { order: 2; text-align: left;line-height: 1.6;}
  #portfolio .exh-type  { order: 3; display: inline; margin: 0 0.25ch; }



#portfolio .exhibition-list.ledger .exh-year,
#portfolio .exhibition-list.ledger .exh-title,
#portfolio .exhibition-list.ledger .exh-type {
  border-left: none;       /* column separators */
  padding-left: 0;         /* no padding on small screens */
  text-decoration: none;
  list-style: none;
}
}

/* Motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  #portfolio .exh-row::before { transition: none; }
}



/* About Styles */
#about .panel-content p:first-of-type {
  padding-top: 8rem;   /* or whatever spacing feels right */
}

/* Default: single column (mobile-first) */
#about .panel-content {
  display: block;
}

h3 {
  /* Smaller on phones, grow with viewport, cap at your desktop values */
  margin-top:    clamp(4rem, 5vw, 6rem);
  margin-bottom: clamp(4rem,  10vw, 12rem);
  text-transform: lowercase;
  letter-spacing: 3px;
}




/* Fine-tune wrap so blocky caps (M/W/A) don't leave a gap */
#about .dropcap > p:first-of-type {
  position: relative;
}

/* keep your visual dropcap */
#about .dropcap > p:first-of-type::first-letter {
  float: left;
  font-size: clamp(2.5rem, 10vw, 5.5ch);
  line-height: 0.85;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  margin: 0.08em 0.40em 0 0.06em;  /* gentle breathing room */
  background: linear-gradient(to bottom, #f0f0f0 0%, #c0c0c0 50%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 #11120D, 0 -1px 0 #11120D;
}

/* invisible “companion” float that sculpts the wrap on the first line */
#about .dropcap > p:first-of-type::before {
  content: "";
  float: left;
  /* approx width/height of the dropcap box (in em so it scales with it) */
  width: 0.72em;
  height: 0.95em;

  /* let the first line tuck in at the top-right but give space lower down */
  shape-outside: polygon(
    0 0, 82% 0,     /* tighter at the very top */
    68% 35%,        /* ease out as we go down */
    68% 100%, 
    0 100%
  );
  shape-margin: 0.06em;  /* tiny buffer so glyphs don’t collide */
  /* invisible and non-interfering */
  pointer-events: none;
}


#about h3 {
  text-align: center;         /* center the line */
  width: 100%;
}




 .panel-content2 {
  display: flex;
  flex-direction: column;
  max-width: 800px;
 }

 .panel-content2 p{
  padding-bottom: 1rem;
  padding-bottom: 2rem;
  text-align: left;
 }

 .pbottom{
  margin-bottom: 6rem;
 }

/* About: Two columns for wider screens */
@media (min-width: 800px) {
  #about .panel-content {
    display: flex;
    gap: 3rem;                 /* space between columns */
    align-items: flex-end;     /* bottom-align the two <p> blocks */
  }

  #about .panel-content p {
    flex: 1;                   /* equal width columns */
  }
}

@media (max-width: 660px) {
    .panel-content2 p{
    text-align: left;
  } 
}








/* Footer Styles */

footer {
  display: grid;
  align-items: end;          
  justify-items: center;     
  padding-bottom: 6rem;
  background: transparent;
  height: 50vh;
  font-size: 1.4rem;
  letter-spacing: 2px;
}

.site-credits { 
  text-align: center; 
  font-size: 1rem; 
  line-height: 1.5;  
}

footer .panel-content {
  max-width: 80ch;
  margin-inline: auto;   /* center horizontally */
  text-align: center;    /* ensure text lines center */
}


.site-credits p { 
  margin-top: 2rem;
  text-align: center; 
}



/* footer stars match marquee size */
.site-credits .star {
  font-size: 1.6rem;
  line-height: 1;
  margin: .5rem;
}

/* Your weird lil margin thing for phonesxs */
@media (max-width: 900px) {
  main section .panel-content, footer .panel-content, main section .panel-content2, h2, h3, .contact p, #about .panel-content2 p, svg{
    padding-right: 6rem; /* extra gutter on right to accommodate badge */
    padding-left: 2rem;
  }

    #about h3 {
    padding-right: 6rem;  /* same gutter as contact p */
    padding-left: 2rem;
  }
}

  footer .site-credits {
    padding: 2rem;
  }













/* ===== Work (portfolio item) pages ===== */
body.work-page main > * {
  max-width: 900px;          /* content column */
  margin-inline: auto;
  padding-inline: 1.5rem;    /* breathing room, like index */
  padding-bottom: 6rem;
}

/* Always show the DB badge on portfolio (work) pages */
body.work-page #fixed-initials {
  display: inline-grid;       /* override the default 'none' */
  place-items: center;
}

/* Keep it keyboard-visible */
body.work-page #fixed-initials:focus-visible {
  outline: 2px solid #6a5acd;
  outline-offset: 2px;
}


/* ===== Work header spacing + typography ===== */
body.work-page .work-header {
  margin-inline: auto;
  padding-inline: 1.5rem;
  padding-top: clamp(4rem, 8vw, 8rem); 
  padding-bottom: clamp(0.5rem, 2vw, 1.5rem); 
  text-align: center;
  display: block;
  width: 100%;
  min-height: 35vh;
}

/* ===== Work page title (match index H1 style) ===== */
/* Work page H1 styled like index H2s */
body.work-page .work-header h1 {
  text-align: center;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 2px;
  font-size: clamp(1.45rem, 2.6vw, 2.3rem);
  margin: 0 auto;
  padding-block: clamp(1.25rem, 6vw, 6rem); 
}

body.work-page .work-header h1 {
  display: inline-block;   /* let pseudo-element measure against text */
  position: relative;
}

body.work-page .work-header h1::after {
  content: "";
  display: block;
  height: 2px;
  background: currentColor;
  margin: 1rem auto 0 auto; /* centers underline */
  width: 100%;
}


body.work-page .work-meta {
  font-size: 0.95em;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 1rem;
  opacity: 0.9;
  text-transform: capitalize;
}

body.work-page .work-meta .star-sep {
  line-height: 1;
  margin-left: 2rem;
  margin-right: 2rem;
}

body.work-page .work-venue {
  font-size: 0.85em;
  opacity: 0.7;
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: lowercase;
  margin-top: 4rem;
}

/* Media stack */
body.work-page .work-content figure {
  /* margin-block: clamp(1.25rem, 3vw, 2.25rem); */
}
body.work-page .work-content img,
body.work-page .work-content video,
body.work-page .work-content audio {
  display: block;
  width: 100%;
  height: auto;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
body.work-page .work-content figcaption {
  font-size: 0.7em;
  opacity: .75;
  text-align: center;
}

body.work-page .work-content img{
  margin-top: .25rem;
  margin-bottom: .25rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Downloads + longform essay blocks */
body.work-page .work-downloads,
body.work-page .work-essay {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  margin-block: clamp(2rem, 6vw, 4rem);
}

/* Work page: downloads list (no bullets, horizontal, wraps on small) */
body.work-page .work-downloads ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2rem;          /* row gap, column gap */
}

/* When there are 2+ items, spread them across the line */
body.work-page .work-downloads ul:has(li + li) {
  justify-content: space-between;
}

/* Each item stays compact but flex-ready */
body.work-page .work-downloads li {
  display: flex;
  align-items: center;
}


/* Respect keyboard users */
body.work-page .work-downloads a:focus-visible {
  outline: 2px dashed currentColor;
  outline-offset: 2px;
}

/* Work page footer: simple centered glyph */
body.work-page .work-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 25vh;
  /* padding-block: 2rem;    */
}

body.work-page .work-footer .star {
  font-size: 1.8rem;     /* tune size to taste */
  line-height: 1;
  opacity: 1;            /* full opacity */
  margin: 0;             /* strip <p> margins */
}




/* Mobile gutter: match index extra right padding */
@media (max-width: 900px) {
  body.work-page main > *,
  body.work-page .work-downloads,
  body.work-page .work-essay {
  padding-right: 6rem;   
  padding-left: 2rem;
  }
}






/* ===== Work essay drop cap (portfolio only) ===== */
body.work-page .work-essay { text-align: left; }  /* ensure body text isn’t centered */

body.work-page .work-essay.dropcap > p:first-of-type {
  position: relative;   /* anchor for the sculpting float */
}

/* the decorative first letter (matches your About dropcap look) */
body.work-page .work-essay.dropcap > p:first-of-type::first-letter {
  float: left;
  font-size: clamp(2.5rem, 10vw, 5.5ch);
  line-height: 0.85;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  margin: 0.08em 0.40em 0 0.06em;

  /* paper/ink treatment to match your site H1 aesthetic */
  background: linear-gradient(to bottom, #f0f0f0 0%, #c0c0c0 50%, #f0f0f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 #11120D, 0 -1px 0 #11120D;
}

body.work-page .work-essay p{
  padding-top: 6rem;
  padding-bottom: 6rem;
}
/* invisible companion float to shape the first line nicely around the cap */
body.work-page .work-essay.dropcap > p:first-of-type::before {
  content: "";
  float: left;

  /* approx box of the drop cap; scales with it */
  width: 0.72em;
  height: 0.95em;

  /* lets the first line tuck in at the top-right, then ease out */
  shape-outside: polygon(
    0 0, 82% 0,
    68% 35%,
    68% 100%,
    0 100%
  );
  shape-margin: 0.06em;
  pointer-events: none;
}



@media (max-width: 680px) {
  body.work-page main > *,
  body.work-page
  body.work-page .work-essay {
    padding-inline: 1.2rem;     /* compact, equal padding */
  }
  /* figures sit flush with the text column */
  body.work-page .work-content figure { margin-inline: 0; }
}

@media (max-width: 680px) {

  #portfolio .exh-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 2.2rem 1.5rem;
  }

  /* scale up all the cells */
  #portfolio .exh-idx,
  #portfolio .exh-year,
  #portfolio .exh-type {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }

  #portfolio .exh-title {
    font-size: clamp(1.3rem, 5vw, 1.6rem);
    line-height: 1.4;
    text-align: left;
    font-weight: normal;
  }

  /* give the block more vertical rhythm */
  #portfolio .exhibition-list.cards-archive {
    gap: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 8vh;
  }
 

  #about .panel-content p,
  #about .panel-content2 p  {
    font-size: clamp(1.45rem, 4vw, 1.75rem); 
    line-height: 1.5;
    text-align: left;
    padding: 0; 
    padding-bottom: 1.5rem;                    
  }

  body.work-page .work-essay {
    font-size: clamp(1.45rem, 4vw, 1.75rem); 
    line-height: 1.5;
    text-align: left;
    padding-right: 6rem;                      /* room for DB badge overlay */
  }

  /* keep figures full to the text column; captions centered */
  body.work-page .work-content figure { margin-inline: 0; }
  body.work-page .work-content figcaption { text-align: center; }

  body:not(.work-page) footer {
      padding-block: 1.5rem;        /* modest breathing space */
      margin: 0;                    /* avoid margin collapse */
      background: transparent;
    }


  .panel:last-of-type {
    padding-bottom: 1.5rem;
  }


  body:not(.work-page) footer {
    height: auto;                 /* stop the big 50vh footer */
    min-height: 0;
    padding-block: 1.5rem;        /* modest breathing space */
    margin: 0;                    /* avoid margin collapse */
    background: transparent;
  }

  /* tighten credits block */
  body:not(.work-page) footer .site-credits {
    padding: 0 1.5rem;
  }

  /* ensure last credit line doesn't add extra gap */
  body:not(.work-page) footer .site-credits > *:last-child {
    margin-bottom: 0;
  }

  /* respect iOS safe area so no phantom band appears */
  body:not(.work-page) footer {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
}


/* --- kill phantom horizontal scroll on ultra-narrow screens (<320px) --- */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* make sure panels, sections, and footer don’t push wider than the viewport */
.panel,
.panel-content,
footer,
#vanta-bg {
  max-width: 100%;
}

/* Gentle vignette so the fog keeps presence on tiny screens */
#vanta-bg::after {
  content: "";
  position: fixed;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(120% 80% at 50% -10%,
              rgba(0,0,0,0.06), rgba(0,0,0,0) 58%);
}
@media (min-width: 721px) {
  #vanta-bg::after {
    background: radial-gradient(120% 80% at 50% 0%,
                rgba(0,0,0,0.045), rgba(0,0,0,0) 60%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }          /* stop smooth scrolling */
  .site-title h1,
  .site-title.stuck h1,
  #fog-overlay { transition: none !important; }
}


html { font-synthesis-weight: none; }
body.work-page .work-header h1,
body.work-page .work-meta,
body.work-page .work-venue { font-weight: 400; }


/* Stop synthetic bolding across the site */
html { font-synthesis-weight: none; }

/* Normalize weights on the work page so headings/meta aren’t faux-bold */
body.work-page .work-header h1,
body.work-page .work-meta,
body.work-page .work-venue {
  font-weight: 400;
}


/* Pin the Vanta canvas to the viewport so it never "runs out" on long pages */
#vanta-bg > canvas {
  position: fixed !important;
  inset: 0 !important;
  z-index: -1;              /* keep it behind content */
}
