/* ================================================
   Rori Lilac — In Memoriam
   Dark/Light Contrast · Animated Gradient · Bold
   ================================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --lilac: #deceff;
  --lilac-dark: #b666d2;
  --lilac-deep: #9040b0;
  --paper: #faf8f5;
  --paper-warm: #f5f2ed;
  --dark: #1a1520;
  --dark-mid: #2a2230;
  --dark-card: #322840;
  --ink: #2c2c2c;
  --ink-light: #e8e0f0;
  --muted: #8a8580;
  --muted-dark: #9a8fa0;
  --rule: #deceff;
  --rule-dark: #4a3d58;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-width: 740px;
}

html { scroll-behavior: smooth; font-size: 17px; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.3; }

a {
  color: var(--lilac-dark);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--lilac-deep); }

/* ================================================
   VERTICAL SLIDES SYSTEM
   ================================================ */

.slides { height: 100vh; height: 100dvh; overflow: hidden; position: relative; }

.slides__track {
  height: 100%;
  transition: transform 420ms ease;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .slides__track { transition: none; }
}

.slide { height: 100vh; height: 100dvh; overflow: hidden; }

.slide__frame {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--lilac) transparent;
}

.slide__frame::-webkit-scrollbar { width: 6px; }
.slide__frame::-webkit-scrollbar-track { background: transparent; }
.slide__frame::-webkit-scrollbar-thumb { background: var(--lilac); border-radius: 3px; }
.slide__frame::-webkit-scrollbar-thumb:hover { background: var(--lilac-dark); }

.slide__header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--paper);
  padding: 3vh 1.5rem 1rem;
  text-align: center;
}

.slide__header--dark {
  background: var(--dark);
}

.slide__body { flex: 1 0 auto; padding-bottom: 80px; }

.slide__body--hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
}

.section-inner--wide { max-width: 900px; }

/* Light / Dark section surfaces */
.section-light { background: var(--paper); color: var(--ink); }
.section-dark { background: var(--dark); color: var(--ink-light); }

.section-dark .slide__frame { scrollbar-color: var(--lilac-dark) transparent; }

/* Mobile fallback */
@media (max-width: 899px) {
  .slides { height: auto; overflow: visible; }
  .slides__track { transition: none !important; transform: none !important; }
  .slide { height: auto; overflow: visible; }
  .slide__frame { height: auto; overflow: visible; }
  .slide__header { position: relative; padding: 6vh 1.5rem 0; }
  .slide__body { padding-bottom: 120px; }
  .fixed-nav { right: 0; }
  .slide__body--hero { min-height: 100vh; min-height: 100dvh; padding-bottom: 0; }
}

/* ================================================
   SECTION HEADINGS
   ================================================ */

.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
  outline: none;
  margin-bottom: 0;
  letter-spacing: 0.03em;
}

.section-heading--light {
  color: var(--ink-light);
}

/* ================================================
   HERO — Dark, Duotone Portrait, Gradient Title
   ================================================ */

.hero-section {
  background: var(--dark);
  color: var(--ink-light);
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 1.5rem;
  max-width: 1150px;
  width: 100%;
  min-height: 420px;
  padding: 2rem;
}

.hero-portrait-duo {
  overflow: hidden;
  border: 1.5px solid rgba(222, 206, 255, 0.3);
  border-radius: 8px;
  position: relative;
}

.hero-portrait-duo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%) contrast(1.2);
  mix-blend-mode: luminosity;
}

.hero-identity {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1.2rem;
  border: 1.5px solid rgba(222, 206, 255, 0.3);
  border-radius: 8px;
}

.hero-portrait-duo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(182, 102, 210, 0.35), rgba(222, 206, 255, 0.15));
  mix-blend-mode: color;
  pointer-events: none;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.gradient-text {
  background: linear-gradient(135deg, var(--lilac), var(--lilac-dark), var(--lilac), var(--lilac-dark));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .gradient-text { animation: none; background-position: 0% 50%; }
}

.hero-dates {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--muted-dark);
  margin-bottom: 1.5rem;
}

.hero-bar {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--lilac-dark), var(--lilac));
  margin: 0 auto;
  border-radius: 2px;
}

/* ================================================
   MEMORIAL — Light Surface
   ================================================ */

.obituary-text p {
  margin-bottom: 1.25rem;
  text-align: left;
  font-size: 1rem;
}

.obituary-text p:last-child { margin-bottom: 0; }

/* ================================================
   SERVICE — Dark Surface
   ================================================ */

.service-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.service-card {
  background: var(--dark-card);
  border: 1px solid var(--rule-dark);
  border-radius: 8px;
  padding: 1.5rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--lilac-dark), var(--lilac));
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.service-role {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--lilac);
}

.service-org {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted-dark);
  margin-bottom: 1rem;
}

.service-text p {
  margin-bottom: 0.85rem;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--ink-light);
  opacity: 0.9;
}

.service-text p:last-child { margin-bottom: 0; }

/* ================================================
   GALLERY — Light Surface, Bordered Cards
   ================================================ */

.gallery-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.gallery-item {
  background: #fff;
  border: 1px solid #e8e4df;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.gallery-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--lilac-dark), var(--lilac));
}

.gallery-item-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 1.25rem 0;
  color: var(--ink);
}

.gallery-item-desc {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #555;
}

.gallery-item-desc p { margin-bottom: 0.35rem; }
.gallery-item-desc p:last-child { margin-bottom: 0; }

.gallery-item-stack {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.5rem 1.25rem 1rem;
  letter-spacing: 0.01em;
  border-top: 1px solid #f0ece8;
  background: #faf8f5;
  margin-top: auto;
}

/* ================================================
   TESTIMONIALS — Dark Surface
   ================================================ */

.testimonial-entries { margin-bottom: 2.5rem; }

.testimonial-entry {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--dark-card);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.testimonial-entry::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--lilac-dark), var(--lilac));
}

.testimonial-entry:last-child { margin-bottom: 0; }

.testimonial-entry-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--lilac);
  margin-bottom: 0.15rem;
}

.testimonial-entry-date {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: var(--muted-dark);
  margin-bottom: 0.75rem;
}

.testimonial-entry-message {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--ink-light);
  opacity: 0.9;
}

.testimonial-entry-message p { margin-bottom: 0.5rem; }
.testimonial-entry-message p:last-child { margin-bottom: 0; }

.testimonial-images {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.testimonial-image-btn {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule-dark);
  transition: border-color 0.2s;
  background: none;
  padding: 0;
  cursor: pointer;
}

.testimonial-image-btn:hover { border-color: var(--lilac-dark); }

.testimonial-images img {
  display: block;
  max-width: 160px;
  max-height: 120px;
  object-fit: cover;
}

.testimonial-empty {
  color: var(--muted-dark);
  font-style: italic;
  font-size: 0.95rem;
}

/* ================================================
   FORMS — Dark variant for dark sections
   ================================================ */

.testimonial-form-wrapper {
  margin-top: 2rem;
  background: var(--dark-card);
  border: 1px solid var(--rule-dark);
  border-radius: 8px;
  padding: 1.5rem;
}

.contact-form-wrapper {
  margin-top: 2rem;
  background: var(--paper-warm);
  border: 1px solid #e0ddd8;
  border-radius: 8px;
  padding: 1.5rem;
}

.form-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

/* Dark form context */
.section-dark .form-title { color: var(--ink-light); }

.memorial-form { position: relative; }
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-dark .form-group label { color: var(--muted-dark); }

.form-hint {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
}

.section-dark .form-hint { color: var(--muted-dark); }

.form-group input,
.form-group textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d4d0ca;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s;
  line-height: 1.6;
}

.section-dark .form-group input,
.section-dark .form-group textarea {
  background: var(--dark-mid);
  color: var(--ink-light);
  border-color: var(--rule-dark);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--lilac-dark);
  box-shadow: 0 0 0 3px rgba(182, 102, 210, 0.25);
}

.btn-submit {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.65rem 2rem;
  background: var(--lilac-dark);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}

.btn-submit:hover { background: var(--lilac-deep); transform: translateY(-1px); }

.form-status {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  min-height: 1.25em;
  color: var(--muted);
}

.section-dark .form-status { color: var(--muted-dark); }
.form-status.success { color: #6aaf7a; }
.form-status.error { color: #d06060; }

/* ================================================
   RICH TEXT EDITOR (Light)
   ================================================ */

.richtext-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0.35rem 0.5rem;
  background: #f0ede8;
  border: 1px solid #d4d0ca;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
}

.section-dark .richtext-toolbar {
  background: var(--dark);
  border-color: var(--rule-dark);
}

.richtext-toolbar button {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s;
}

.richtext-toolbar button svg { display: block; flex-shrink: 0; }

.btn-attach svg { display: inline-block; vertical-align: -2px; margin-right: 2px; }

.section-dark .richtext-toolbar button { color: var(--ink-light); }
.richtext-toolbar button:hover { background: #e4e0da; }
.section-dark .richtext-toolbar button:hover { background: var(--dark-card); }
.richtext-toolbar button.active { background: #dad6cf; }
.section-dark .richtext-toolbar button.active { background: var(--dark-card); }

.toolbar-sep {
  width: 1px;
  height: 1.2rem;
  background: #ccc9c2;
  margin: 0 0.25rem;
}

.section-dark .toolbar-sep { background: var(--rule-dark); }

.richtext-editor {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid #d4d0ca;
  border-radius: 0 0 5px 5px;
  background: #fff;
  color: var(--ink);
  min-height: 120px;
  max-height: 350px;
  overflow-y: auto;
  line-height: 1.6;
  outline: none;
  transition: border-color 0.2s;
}

.section-dark .richtext-editor {
  background: var(--dark-mid);
  color: var(--ink-light);
  border-color: var(--rule-dark);
}

.richtext-editor:focus {
  border-color: var(--lilac-dark);
  box-shadow: 0 0 0 3px rgba(182, 102, 210, 0.25);
}

.richtext-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}

.section-dark .richtext-editor:empty::before { color: var(--muted-dark); }

.richtext-editor img { max-width: 100%; height: auto; border-radius: 4px; margin: 0.5rem 0; display: block; }
.richtext-editor ul, .richtext-editor ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.richtext-editor a { color: var(--lilac-dark); text-decoration: underline; }

/* ================================================
   LINK POPOVER
   ================================================ */

.link-popover { position: absolute; top: 100%; left: 0; z-index: 50; background: #fff; border: 1px solid #d4d0ca; border-radius: 6px; box-shadow: 0 4px 20px rgba(0,0,0,0.12); padding: 0.75rem; min-width: 300px; width: max-content; max-width: 90vw; display: flex; flex-direction: column; gap: 0.5rem; box-sizing: border-box; }
.link-popover-row { display: flex; align-items: center; gap: 0.5rem; }
.link-popover-row label { font-family: var(--font-ui); font-size: 0.75rem; font-weight: 500; color: var(--muted); min-width: 32px; }
.link-popover-row input { flex: 1; font-family: var(--font-body); font-size: 0.85rem; padding: 0.35rem 0.5rem; border: 1px solid #d4d0ca; border-radius: 4px; outline: none; }
.link-popover-row input:focus { border-color: var(--lilac-dark); }
.link-popover-actions { display: flex; gap: 0.5rem; justify-content: flex-end; flex-shrink: 0; }
.link-popover-actions button { font-family: var(--font-ui); font-size: 0.78rem; padding: 0.3rem 0.75rem; border-radius: 4px; cursor: pointer; border: 1px solid #d4d0ca; background: var(--paper); color: var(--ink); white-space: nowrap; line-height: 1.3; flex-shrink: 0; overflow: visible; min-width: fit-content; }
.link-popover-ok { background: var(--lilac-dark) !important; color: #fff !important; border-color: var(--lilac-dark) !important; }
.link-popover-cancel:hover { background: #eee; }

/* ================================================
   IMAGE LIGHTBOX
   ================================================ */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.lightbox-overlay.visible { opacity: 1; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 2;
}
.lightbox-close:hover { opacity: 1; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
  transition: opacity 0.2s ease;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  z-index: 2;
}
.lightbox-nav:hover { opacity: 1; background: rgba(255, 255, 255, 0.22); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

/* ================================================
   IMAGE MODAL
   ================================================ */

.img-modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.img-modal { background: #fff; border-radius: 10px; max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 40px rgba(0,0,0,0.25); }
.img-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid #eee; }
.img-modal-header h3 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; margin: 0; }
.img-modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); line-height: 1; padding: 0 0.25rem; }
.img-modal-close:hover { color: var(--ink); }
.img-modal-body { padding: 1.25rem; }
.img-modal-url-row { display: flex; gap: 0.5rem; }
.img-modal-url { flex: 1; font-family: var(--font-body); font-size: 0.9rem; padding: 0.45rem 0.6rem; border: 1px solid #d4d0ca; border-radius: 4px; outline: none; }
.img-modal-url:focus { border-color: var(--lilac-dark); }
.img-modal-url-add { font-family: var(--font-ui); font-size: 0.82rem; padding: 0.45rem 1rem; background: var(--lilac-dark); color: #fff; border: 1px solid var(--lilac-dark); border-radius: 4px; cursor: pointer; }
.img-modal-divider { text-align: center; margin: 1rem 0; position: relative; }
.img-modal-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #e0ddd8; }
.img-modal-divider span { position: relative; background: #fff; padding: 0 0.75rem; font-family: var(--font-ui); font-size: 0.78rem; color: var(--muted); }
.img-modal-dropzone { border: 2px dashed #d4d0ca; border-radius: 8px; padding: 2rem 1rem; text-align: center; color: var(--muted); font-family: var(--font-ui); font-size: 0.85rem; transition: border-color 0.2s, background 0.2s; cursor: pointer; }
.img-modal-dropzone.dragover { border-color: var(--lilac-dark); background: rgba(222,206,255,0.1); }
.img-modal-dropzone p { margin-bottom: 0.25rem; }
.img-modal-browse-btn { background: none; border: none; color: var(--lilac-dark); cursor: pointer; font-family: var(--font-ui); font-size: 0.85rem; text-decoration: underline; padding: 0; }
.img-modal-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.img-modal-thumb { position: relative; width: 80px; height: 80px; border-radius: 6px; overflow: hidden; border: 1px solid #d4d0ca; }
.img-modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.img-modal-thumb-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.img-modal-limit { font-family: var(--font-ui); font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; }
.img-modal-footer { padding: 0.75rem 1.25rem; border-top: 1px solid #eee; text-align: right; }

/* ================================================
   ATTACHMENT PICKER
   ================================================ */

.image-attachments { border: 1px dashed var(--rule); border-radius: 8px; padding: 0.75rem; background: rgba(222, 206, 255, 0.05); transition: border-color 0.2s, background 0.2s; }
.image-attachments.dragover { border-color: var(--lilac-dark); background: rgba(222, 206, 255, 0.15); }
.section-dark .image-attachments.dragover { border-color: var(--lilac); background: rgba(222, 206, 255, 0.08); }
.section-dark .image-attachments { border-color: var(--rule-dark); background: rgba(222, 206, 255, 0.04); }
.image-attach-actions { display: flex; gap: 0.5rem; }
.image-attach-preview:empty { display: none; }
.image-attach-preview { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.attach-thumb { position: relative; border-radius: 6px; overflow: hidden; border: 1px solid var(--rule); }
.section-dark .attach-thumb { border-color: var(--rule-dark); }
.attach-thumb img { display: block; width: 80px; height: 60px; object-fit: cover; }
.attach-thumb-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 14px; line-height: 20px; text-align: center; cursor: pointer; padding: 0; }
.attach-thumb-remove:hover { background: rgba(200,0,0,0.8); }
.btn-attach { font-family: var(--font-ui); font-size: 0.8rem; padding: 0.35rem 0.75rem; border: 1px solid var(--rule); border-radius: 5px; background: #fff; cursor: pointer; color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.section-dark .btn-attach { background: var(--dark-mid); color: var(--ink-light); border-color: var(--rule-dark); }
.btn-attach:hover { border-color: var(--lilac-dark); background: #f3eaff; }
.section-dark .btn-attach:hover { background: var(--dark-card); }

/* ================================================
   IN LIEU (Light surface)
   ================================================ */

.email-reveal {
  text-align: center;
  margin-bottom: 1.5rem;
  background: #fff;
  border: 1px solid #e0ddd8;
  border-radius: 8px;
  padding: 2rem;
}

.email-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.email-block { margin-bottom: 0.75rem; }

.email-redacted {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--muted);
  filter: blur(4px);
  user-select: none;
  transition: filter 0.3s;
}

.email-link { font-family: var(--font-ui); font-size: 1.1rem; }

.btn-show {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  padding: 0.5rem 1.5rem;
  background: var(--lilac-dark);
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-show:hover { background: var(--lilac-deep); }

.sub-rule { border: none; border-top: 1px solid #e0ddd8; margin: 2.5rem 0; opacity: 0.6; }

/* ================================================
   FIXED NAVIGATION
   ================================================ */

.fixed-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 6px;
  z-index: 100;
  background: rgba(26, 21, 32, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule-dark);
  display: flex;
  justify-content: center;
  padding: 0;
}

.nav-btn {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.8rem 1rem;
  color: var(--muted-dark);
  border: none;
  background: transparent;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-btn:hover { color: var(--lilac); }

.nav-btn.active {
  color: var(--lilac);
  font-weight: 600;
}

/* ================================================
   FOOTER
   ================================================ */

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 0 1rem;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 640px) {
  html { font-size: 16px; }
  .hero-card { grid-template-columns: 1fr; gap: 1rem; min-height: auto; }
  .hero-portrait-duo { height: 280px; }
  .hero-identity { padding: 2rem 1.5rem; }
  .hero-title { font-size: 2rem; }
  .nav-btn { font-size: 0.65rem; padding: 0.6rem 0.65rem; }
}
