@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --font-heading: "DM Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  /* ...existing vars... */
  --side-fade-color: #5e3a75;
}

/* ====== Base ====== */
:root {
  --bg: #0f0f10;
  --panel: #111116;
  --text: #f2f2f2;
  --muted: #a8a8ad;
  --line: #2a2a2f;
  --accent: #f2a3a3;
  --btn: rgba(255,255,255,0.08);
  --btnHover: rgba(255,255,255,0.12);
  --radius: 16px;
  --radius-sm: 12px;
  --max: 1080px;
  --maxNarrow: 720px;
  --font-heading: "DM Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --ease-brand: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 180ms;
  --t-brand: 260ms; /* nav hover timing */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-family: var(--font-body);
}

h1, h2, h3, .section-title {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }

/* Containers */
.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.container.narrow {
  width: min(100% - 2rem, var(--maxNarrow));
}

/* ===== Typography ===== */

.page-lede{
  margin: 0.75rem 0 1rem;
  font-style: italic;
  opacity: 0.75;
}

.aside{
  margin-top: 1.25rem;
  font-style: italic;
  opacity: 0.85;
}

.site-title {
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  margin: 2rem 0 1rem;
}
h1, h2 {
  margin: 1.5rem 0 0.75rem;
  line-height: 1.15;
}
.lede { font-size: 1.1rem; color: var(--text); margin-top: 0; }
p { color: var(--muted); }

.ethics-reminder{
  margin-top: 2rem;
  font-size: 0.85rem;
  opacity: 0.9;
}

.soft{ opacity: 0.75; }

.contact-email a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
}

.contact-email a:hover{
  border-bottom-color: rgba(255,255,255,0.45);
}

/* Notes */
.notes{
  margin-top: 2.5rem;
}

.notes h2{
  margin-bottom: 0.5rem;
}

.note-form{
  margin-top: 1rem;
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
}

.note-name,
.note-text{
  width: 100%;
  font: inherit;
  color: rgba(255,255,255,0.9);

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;

  padding: 0.7rem 0.85rem;
  outline: none;

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.note-text{
  min-height: 86px;
  resize: vertical;
}

.note-name:focus,
.note-text:focus{
  border-color: rgba(255,0,180,0.28);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.10),
    0 0 0 6px rgba(255,0,180,0.10);
}

.note-row{
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.note-count{
  font-variant-numeric: tabular-nums;
  opacity: 0.7;
}

.note-count.over{
  opacity: 1;
  color: rgba(255,140,200,0.95);
}

.note-submit{
  margin-left: auto;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  font: inherit;
  cursor: pointer;

  transition:
    transform var(--t-brand) var(--ease-brand),
    background-color var(--t-brand) var(--ease-brand),
    box-shadow var(--t-brand) var(--ease-brand),
    border-color var(--t-brand) var(--ease-brand);
}

.note-submit:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.note-status{
  margin-top: 0.75rem;
  opacity: 0.8;
}

.notes-display{
  margin-top: 2.25rem;
}

.notes-display h2{
  margin-bottom: 0.75rem;
}

.notes-list{
  margin-top: 0.75rem;
  display: grid;
  gap: 0.65rem;
  max-width: 44rem;
}

.note-line{
  padding: 0.7rem 0.9rem;
  border-radius: 16px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  line-height: 1.35;
  animation: noteIn 260ms ease-out both;
}

@keyframes noteIn{
  from{
    opacity: 0;
    transform: translateY(4px);
  }
  to{
    opacity: 1;
    transform: none;
  }
}

.note-who{
  opacity: 0.62;
  font-style: italic;
  font-size: 0.9rem;
  margin-right: 0.15rem;
}

.note-who.anon{
  font-style: italic;
}

.note-body{
  opacity: 0.9;
  color: rgba(255,255,255,0.90);
}

.notes-display .dot{
  opacity: 0.35;
  margin: 0 0.35rem;
}

/* Card */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

/* Buttons */
.actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--btn);
  color: var(--text);
  font-weight: 600;
}
.btn:hover { background: var(--btnHover); }
.btn.primary {
  background: rgba(255,255,255,0.16);
}
.btn.primary:hover { background: rgba(255,255,255,0.20); }
.btn.ghost {
  background: transparent;
}

/* Footer */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 3rem;
  padding-bottom: 3rem;
}

.footer-link{
  color: inherit;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(255,255,255,0.25);
  transition: opacity 160ms ease, border-color 160ms ease;
}

.footer-link:hover{
  opacity: 0.9;
  border-color: rgba(255,255,255,0.45);
}

.social-link {
  margin-left: 0.4rem;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
#  border-bottom: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.7);
  transition:
    color var(--t-brand) var(--ease-brand),
    transform var(--t-brand) var(--ease-brand),
    box-shadow var(--t-brand) var(--ease-brand);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
  color: rgba(255,255,255,0.95);
  transform: translateY(-1px);
  box-shadow:
    0 0 14px rgba(255,0,180,0.22),
    0 0 8px rgba(0,255,200,0.16);
}

.social-link:focus-visible {
  outline: none;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  border-bottom: 1px solid var(--line);
  background: none;
  width: 100%;
}

.hero-media {
  width: 100%;
}

/* Mobile: force 4:5 crop */
@media (max-width: 767px) {
  .hero-media {
    aspect-ratio: 4 / 5;
    overflow: hidden;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

/* Desktop: full-bleed banner, no crop */
@media (min-width: 768px) {
  /* Box the hero image to the same width as your content */
  .hero-media {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;

    position: relative;
    overflow: hidden;     /* clips the overlay to the image */
    background: #000;     /* matte behind the banner */
  }

  .hero-media img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    z-index: 1;
  }

  /* Side fade overlay: fades to transparent ~15% into the image */
  .hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;

    background: linear-gradient(
      90deg,
      rgba(94,58,117,0.85) 0%,
      rgba(94,58,117,0.45) 6%,
      rgba(94,58,117,0.00) 15%,
      rgba(94,58,117,0.00) 85%,
      rgba(94,58,117,0.45) 94%,
      rgba(94,58,117,0.85) 100%
    );

    /* More reliable than soft-light across images */
    mix-blend-mode: multiply;
    opacity: 1;
  }
}

.hero { position: relative; }

.hero-lockup{
  position: absolute;
  z-index: 31;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  right: max(1rem, calc((100vw - var(--max)) / 2 + 1rem));
  bottom: 1.1rem;

  text-align: right;
  pointer-events: none;
}

.hero-lockup .brand{
  pointer-events: auto; /* clickable */
  display: inline-block;
}

.hero-lockup .hero-kicker{
  position: static;      /* IMPORTANT: stop absolute */
  left: auto;
  bottom: auto;
  z-index: auto;

  margin: 0.35rem 0 0;   /* replaces your -1.25rem hack */
}

.brand{
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: clamp(0.08em, 0.25vw, 0.16em);
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  color: rgba(255,255,255,0.96);
  filter: brightness(1.05);
  text-decoration: none;
  line-height: 1.5;
  text-shadow:
    0 2px 10px rgba(0,0,0,0.9),
    0 0 28px rgba(255,0,180,0.22);
  opacity: 0;
  transform: translateY(8px);
  animation: brandReveal 4.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: 0.25s;
}

@keyframes brandReveal{
  0%{
    opacity: 0;
    transform: translateY(8px);
  }
  60%{
    opacity: 0.85;
  }
  100%{
    opacity: 1;
    transform: none;
  }
}

.brand { position: relative; }

.brand::before{
  content:"";
  position:absolute;
  inset:-0.15em -0.25em;
  border-radius: 14px;

  /* no blend mode here: keeps the core from washing out */
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.18),
    rgba(255,0,180,0.32),
    transparent 60%
  );

  filter: blur(8px);
  z-index:-1;
  pointer-events:none;
}

.brand::after{
  content:"";
  position:absolute;
  inset: -0.8em -1.1em;
  border-radius: 22px;
  mix-blend-mode: screen;

  background: radial-gradient(
    ellipse at center,
    rgba(255,0,180,0.50) 0%,
    rgba(255,0,180,0.26) 35%,
    rgba(0,255,200,0.22) 55%,
    transparent 75%
  );

  filter: blur(28px);
  z-index:-1;
  pointer-events:none;

  animation: glowBloom 4.2s ease-out both;
}

@keyframes glowBloom{
  from{ opacity: 0; }
  to{ opacity: 1; }
}

.hero-kicker{
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  opacity: 0;
  filter: blur(2px);
  animation: kickerBloom 1.4s cubic-bezier(0.22,0.61,0.36,1) forwards;
  animation-delay: 1.1s;

  max-width: 34rem;
  padding: 0.55rem 0.7rem;
  border-radius: 12px;
  background: rgba(0,0,0,0.22);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: rgba(255,255,255,0.80);
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

@keyframes kickerBloom{
  0%{
    opacity: 0;
    filter: blur(2px);
    transform: translateY(6px);
  }
  60%{
    opacity: 0.75;
    filter: blur(0);
    transform: translateY(1px); /* optional: smoother */
  }
  100%{
    opacity: 0.85;
    filter: blur(0);
    transform: none;
  }
}

.hero-lockup .hero-kicker{
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;

  margin: 0.35rem 0 0;
}

/* ====== Nav buttons ====== */
.navgrid {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}

/* Nav links as pills (Fix B) */
.navgrid a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--btn);
  font-weight: 650;
  text-decoration: none;
  transition:
    background-color var(--t-brand) var(--ease-brand),
    border-color     var(--t-brand) var(--ease-brand),
    transform        var(--t-brand) var(--ease-brand),
    box-shadow       var(--t-brand) var(--ease-brand),
    color            var(--t-brand) var(--ease-brand);
  will-change: transform;
}

.navgrid a:hover {
  background: var(--btnHover);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.navgrid a:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.18),
    0 0 0 6px rgba(255,0,180,0.14);
}

@media (min-width: 768px) {
  .navgrid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
  }
}

/* ====== Page nav ====== */
.page-nav{
  margin-top: 3rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.85rem;
}

.page-nav a{
  color: inherit;
  text-decoration: none;
  opacity: 0.75;
  transition: opacity 160ms ease;
}

.page-nav a:hover{ opacity: 1; }

/* if only one link exists, keep it from looking weird */
.page-nav:empty{ display: none; }

.to-top{
  display: inline-block;
  margin-top: 2rem;
  font-size: 0.85rem;
  text-decoration: none;
  opacity: 0.65;
  font-style: italic;
  transition: opacity 160ms ease, border-color 160ms ease;
}

.to-top:hover{
  opacity: 1;
  border-bottom-color: rgba(255,255,255,0.45);
}

.page-footer-nav{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3rem;
}

/* ====== Img gall ====== */
.image-frame{
  position: relative;
}

.img-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.28);

  color: rgba(255,255,255,0.85);
  text-decoration: none;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  opacity: 0.0;
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.image-frame:hover .img-nav{
  opacity: 1;
}

.img-prev{ left: -56px; }
.img-next{ right: -56px; }

.img-nav:hover{
  background: rgba(0,0,0,0.38);
  transform: translateY(-50%) scale(1.04);
}

/* If the container is narrow, tuck them in */
@media (max-width: 820px){
  .img-prev{ left: 10px; }
  .img-next{ right: 10px; }
}

/* ====== Latest grid ====== */
.section { margin: 1.5rem 0 0.5rem; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-link {
  color: var(--muted);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.section-link:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--btn);
}

/* Simple page header used on interior pages */
.pagehead {
  margin: 1.5rem 0 1rem;
}
.pagehead h1 {
  margin: 0.25rem 0 0.25rem;
}
.pagehead p {
  margin: 0;
  color: var(--muted);
}

.page .container{
  padding-top: 1.75rem;
}

.backlink{
  font-size: 0.85rem;
  opacity: 0.75;
}

/* A calm divider block for sections */
.hr {
  height: 1px;
  background: var(--line);
  margin: 1.25rem 0;
}

.section-title { margin: 0; font-size: 1.1rem; color: var(--text); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}
.tile {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.tile img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.tile:hover img {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* ====== Notes ====== */
.note-hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ====== Responsive breakpoints ====== */
@media (min-width: 768px) {
  .actions { grid-template-columns: 1fr 1fr; }
  .navgrid { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .hero img { max-height: 55vh; }
}

@media (min-width: 1024px) {
  .navgrid { grid-template-columns: repeat(7, 1fr); }
  .grid { grid-template-columns: repeat(4, 1fr); }
}

