@import url('data:text/css,');

:root {
  --paper: #f8f5f0;
  --paper-light: #fffdfb;
  --ink: #303129;
  --muted: #686960;
  --accent: #666956;
  --accent-dark: #505344;
  --accent-soft: #ffe5e4;
  --olive: #8d8e7c;
  --olive-soft: #e6e6df;
  --rose-muted: #b18b82;
  --rose: #dfaaa2;
  --blush: #ffe5e4;
  --line: #ded5d0;
  --shadow: 0 22px 60px rgba(102, 105, 86, .12);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.paper-noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background-image: radial-gradient(rgba(102, 105, 86, .16) .55px, transparent .6px);
  background-size: 5px 5px;
}

.lock-screen {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 15% 20%, rgba(141, 142, 124, .23), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(223, 170, 162, .22), transparent 38%);
}
.lock-card {
  width: min(100%, 500px);
  padding: 46px 42px 42px;
  border: 1px solid rgba(177, 139, 130, .34);
  border-radius: 28px;
  background: rgba(255, 253, 249, .91);
  box-shadow: var(--shadow);
  text-align: center;
  backdrop-filter: blur(12px);
}
.monogram {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rose);
  border-radius: 50%;
  color: var(--accent);
}
.monogram svg { width: 42px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.eyebrow, .section-kicker {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.lock-card h1, .hero h1, .section-heading h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.08;
}
.lock-card h1 { margin: 0; font-size: clamp(2rem, 8vw, 3rem); }
.lock-copy { margin: 18px auto 28px; max-width: 370px; color: var(--muted); line-height: 1.65; }
.lock-card label { display: block; margin-bottom: 8px; text-align: left; font-size: .8rem; font-weight: 700; }
.code-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input[type='password'], input[type='text'] {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: var(--paper-light);
  color: var(--ink);
  padding: 0 15px;
  transition: border .2s, box-shadow .2s;
}
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(102, 105, 86, .16); }
.form-error { min-height: 20px; margin: 10px 0 0; color: #a02f3f; font-size: .82rem; text-align: left; }

.button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  padding: 0 22px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .15s, background .2s, opacity .2s;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: wait; opacity: .62; transform: none; }
.button-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(102, 105, 86, .24); }
.button-primary:hover { background: var(--accent-dark); }
.button-secondary { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper-light); color: var(--accent); box-shadow: none; }
.button-secondary:hover { border-color: var(--rose-muted); background: #fff5f4; }

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100% - 1120px) / 2));
  border-bottom: 1px solid rgba(141, 142, 124, .2);
  background: rgba(248, 245, 240, .88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.1rem; }
.brand b { color: var(--accent); font-weight: 400; font-style: italic; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--blush); color: var(--accent); }
.brand-mark svg { width: 20px; fill: currentColor; }
.quiet-button, .text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
}
.quiet-button:hover, .text-button:hover { color: var(--accent); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 62px 24px 52px;
  text-align: center;
}
.hero > :not(.botanical) { position: relative; z-index: 1; }
.hero h1 { margin: 0; font-size: clamp(2.65rem, 7vw, 5.3rem); letter-spacing: -.04em; }
.names { margin: 13px 0 0; color: var(--accent); font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.9rem); font-style: italic; }
.hero-copy { max-width: 520px; margin: 18px 0 0; color: var(--muted); line-height: 1.65; }
.botanical { position: absolute; z-index: 0; width: 170px; height: 250px; color: var(--olive); opacity: .46; transform: rotate(-18deg); pointer-events: none; }
.botanical-left { left: max(-58px, calc(50% - 700px)); bottom: -2px; }
.botanical-right { right: max(-58px, calc(50% - 700px)); top: 8px; transform: scaleX(-1) rotate(-18deg); }
.botanical svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.botanical path { vector-effect: non-scaling-stroke; }
.botanical-leaf { fill: rgba(255, 229, 228, .62); }
.botanical-vein { opacity: .7; }

.section-tabs {
  width: min(calc(100% - 32px), 640px);
  margin: 0 auto 52px;
  padding: 5px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 249, .65);
}
.tab { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-weight: 720; cursor: pointer; }
.tab svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tab.is-active { background: var(--paper-light); color: var(--accent); box-shadow: 0 4px 14px rgba(102, 105, 86, .1); }

.view { width: min(calc(100% - 36px), 920px); margin: 0 auto; animation: appear .32s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } }
.section-heading { max-width: 680px; margin: 0 auto 28px; text-align: center; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.025em; }
.section-heading > p:last-child, .gallery-heading-row > div > p:last-child { margin: 14px auto 0; color: var(--muted); line-height: 1.65; }

.upload-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--paper-light); box-shadow: var(--shadow); }
.drop-zone { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 14px; padding: 36px 24px; border: 1.5px dashed var(--rose-muted); border-radius: 17px; cursor: pointer; text-align: center; transition: background .2s, border .2s, transform .2s; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--accent); background: #fff5f4; transform: scale(.997); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-icon { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 20px; border-radius: 50%; background: var(--blush); color: var(--accent); }
.upload-icon svg { width: 38px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.drop-zone strong { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.mobile-hint { display: none; margin-top: 7px; color: var(--accent); font-size: .82rem; }
.desktop-hint { margin-top: 7px; color: var(--muted); font-size: .9rem; }
.file-hint { margin-top: 19px; color: var(--olive); font-size: .73rem; }
.archive-picker { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 28px 22px; }
.archive-picker > div { min-width: 0; }
.archive-picker strong, .archive-picker span { display: block; }
.archive-picker strong { margin-bottom: 4px; font-size: .82rem; }
.archive-picker span { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.archive-picker label { flex: 0 0 auto; min-height: 42px; padding-inline: 16px; cursor: pointer; font-size: .78rem; }
.archive-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.selection { padding: 24px; border-top: 1px solid var(--line); }
.selection-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.selection-head div { display: flex; flex-direction: column; gap: 4px; }
.selection-head span { color: var(--muted); font-size: .78rem; }
.text-button { color: var(--accent); }
.file-list { max-height: 330px; overflow: auto; display: grid; gap: 9px; padding-right: 4px; }
.file-item { display: grid; grid-template-columns: 48px 1fr 36px; align-items: center; gap: 12px; min-width: 0; padding: 8px; border-radius: 12px; background: #fbf3f2; }
.file-preview { width: 48px; height: 48px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: var(--olive-soft); color: var(--accent); font-size: .7rem; font-weight: 800; }
.file-preview img, .file-preview video { width: 100%; height: 100%; object-fit: cover; }
.file-info { min-width: 0; }
.file-info strong { display: block; overflow: hidden; font-size: .83rem; text-overflow: ellipsis; white-space: nowrap; }
.file-info span { display: block; margin-top: 5px; color: var(--muted); font-size: .7rem; }
.file-progress { height: 3px; overflow: hidden; margin-top: 7px; border-radius: 3px; background: #e6d7d3; }
.file-progress i { display: block; width: 0; height: 100%; background: var(--rose-muted); transition: width .2s; }
.file-item.is-done .file-progress i { background: var(--accent); }
.file-item.is-error .file-progress i { background: #b73945; }
.remove-file { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: #958b82; cursor: pointer; font-size: 1.2rem; }
.remove-file:hover { background: var(--blush); color: var(--accent); }
.name-field { display: block; margin: 22px 0 16px; }
.name-field > span { display: block; margin-bottom: 8px; font-size: .8rem; font-weight: 700; }
.name-field small { color: var(--muted); font-weight: 400; }
.upload-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; }
.upload-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.upload-note { margin: 10px 0 0; color: var(--muted); font-size: .72rem; text-align: center; }

.trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 26px 0 78px; }
.trust-row > div { display: flex; gap: 13px; align-items: flex-start; padding: 15px; }
.trust-row svg { flex: 0 0 auto; width: 25px; fill: none; stroke: var(--olive); stroke-width: 1.7; }
.trust-row p { margin: 0; }
.trust-row strong, .trust-row span { display: block; }
.trust-row strong { margin-bottom: 4px; font-size: .82rem; }
.trust-row span { color: var(--muted); font-size: .75rem; line-height: 1.45; }

.gallery-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 30px; text-align: left; }
.gallery-heading-row > div { max-width: 680px; }
.refresh-button { padding: 10px 0; color: var(--accent); }
.gallery-status { padding: 80px 20px; color: var(--muted); text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 80px; }
.gallery-item { position: relative; width: 100%; aspect-ratio: 4 / 3; display: block; overflow: hidden; border: 0; border-radius: 15px; padding: 0; background: var(--blush); cursor: zoom-in; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.025); }
.video-badge { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 20px; background: rgba(25, 22, 20, .72); color: white; font-size: .7rem; }
.empty-gallery { max-width: 500px; margin: 20px auto 100px; padding: 50px 28px; border: 1px dashed var(--line); border-radius: 20px; color: var(--muted); text-align: center; line-height: 1.6; }

footer { padding: 40px 20px calc(42px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(141, 142, 124, .2); color: var(--muted); text-align: center; }
footer p { margin: 8px 0 0; font-family: var(--serif); font-style: italic; }
.footer-heart { color: var(--rose-muted); }

.lightbox { width: 100dvw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; padding: 0; overflow: hidden; background: rgba(28, 25, 23, .94); }
.lightbox::backdrop { background: transparent; }
.lightbox-close { position: fixed; z-index: 3; top: 10px; right: 14px; width: 42px; height: 42px; border: 0; background: transparent; color: white; font-size: 2rem; cursor: pointer; }
.lightbox-download { position: fixed; z-index: 3; top: 14px; left: 18px; min-height: 40px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: 0 13px; background: rgba(255, 255, 255, .09); color: white; text-decoration: none; font-size: .78rem; font-weight: 700; }
.lightbox-download:hover { background: rgba(255, 255, 255, .18); }
.lightbox-download svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#lightbox-content { width: 100%; height: 100%; min-width: 0; min-height: 0; display: grid; place-items: center; padding: 48px 85px; touch-action: pan-y pinch-zoom; }
#lightbox-content img, #lightbox-content video { display: block; width: auto; height: auto; max-width: calc(100dvw - 170px); max-height: calc(100dvh - 96px); object-fit: contain; }
.lightbox-nav { position: fixed; z-index: 2; top: 50%; width: 52px; height: 70px; display: grid; place-items: center; transform: translateY(-50%); border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: rgba(255, 255, 255, .09); color: white; cursor: pointer; transition: background .2s, transform .2s; }
.lightbox-nav:hover { background: rgba(255, 255, 255, .18); transform: translateY(-50%) scale(1.03); }
.lightbox-nav:focus-visible, .lightbox-close:focus-visible, .lightbox-download:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.lightbox-nav svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
.lightbox-counter { position: fixed; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); color: rgba(255, 255, 255, .74); font-size: .76rem; letter-spacing: .08em; }
.completion-dialog { width: min(calc(100% - 32px), 520px); border: 0; border-radius: 26px; padding: 0; background: transparent; color: var(--ink); box-shadow: var(--shadow); }
.completion-dialog::backdrop { background: rgba(48, 49, 41, .48); backdrop-filter: blur(4px); }
.completion-card { padding: 42px 38px 36px; border: 1px solid rgba(177, 139, 130, .36); border-radius: 26px; background: var(--paper-light); text-align: center; }
.completion-check { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 50%; background: var(--blush); color: var(--accent); }
.completion-check svg { width: 46px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.completion-card h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 7vw, 2.7rem); font-weight: 400; line-height: 1.08; }
.completion-card > p:not(.eyebrow) { margin: 18px auto 28px; color: var(--muted); line-height: 1.65; }
.completion-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); max-width: calc(100% - 32px); transform: translate(-50%, 20px); padding: 13px 18px; border-radius: 12px; background: var(--accent-dark); color: white; box-shadow: 0 12px 30px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; text-align: center; font-size: .85rem; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 680px) {
  .lock-card { padding: 38px 22px 30px; border-radius: 22px; }
  .code-row { grid-template-columns: 1fr; }
  .code-row .button { width: 100%; }
  .site-header { height: 62px; padding-inline: 17px; }
  .quiet-button { padding-right: 0; }
  .hero { min-height: 310px; padding: 48px 22px 38px; }
  .botanical { width: 142px; height: 218px; opacity: .3; }
  .section-tabs { position: sticky; top: 70px; z-index: 15; margin-bottom: 42px; backdrop-filter: blur(14px); }
  .tab { padding: 0 7px; font-size: .78rem; }
  .tab svg { width: 17px; }
  .section-heading { margin-bottom: 22px; }
  .section-heading > p:last-child { font-size: .9rem; }
  .upload-card { border-radius: 19px; }
  .drop-zone { min-height: 265px; margin: 9px; padding: 28px 16px; }
  .upload-icon { width: 64px; height: 64px; }
  .mobile-hint { display: block; }
  .desktop-hint { display: none; }
  .archive-picker { padding: 5px 18px 18px; }
  .archive-picker label { min-height: 44px; }
  .selection { padding: 17px 14px; }
  .trust-row { grid-template-columns: 1fr; gap: 0; margin-bottom: 55px; }
  .gallery-heading-row { display: block; }
  .refresh-button { margin-top: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .gallery-item { border-radius: 10px; }
  #lightbox-content { padding: 44px 8px 28px; }
  #lightbox-content img, #lightbox-content video { max-width: calc(100dvw - 16px); max-height: calc(100dvh - 72px); }
  .lightbox-nav { width: 42px; height: 58px; border: 0; border-radius: 12px; background: rgba(20, 18, 17, .38); }
  .lightbox-prev { left: 7px; }
  .lightbox-next { right: 7px; }
  .lightbox-counter { bottom: calc(8px + env(safe-area-inset-bottom)); }
  .lightbox-download { top: 9px; left: 9px; min-height: 38px; padding-inline: 10px; }
  .completion-card { padding: 34px 22px 24px; }
  .completion-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
