:root {
  color-scheme: dark;
  --ink: #101313;
  --ink-soft: #151a19;
  --ink-raised: #1b2220;
  --paper: #f2efe7;
  --muted: #a9aaa1;
  --line: rgba(242, 239, 231, .15);
  --lime: #d4f36a;
  --lime-deep: #bde653;
  --warning: #f3b16a;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-family: var(--sans);
  background: var(--ink);
  color: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.noise { position: fixed; z-index: 0; inset: 0; pointer-events: none; opacity: .14; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.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; }

.app { position: relative; z-index: 1; width: min(1440px, calc(100% - 64px)); margin: 0 auto; padding: 23px 0 32px; transition: opacity .35s ease, filter .35s ease; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 50px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: .9rem; font-weight: 670; letter-spacing: -.02em; text-decoration: none; }
.brand-mark, .gate-mark { display: inline-flex; gap: 3px; align-items: end; height: 17px; }
.brand-mark i, .gate-mark i { display: block; width: 4px; background: var(--lime); border-radius: 99px; }
.brand-mark i:nth-child(1), .gate-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2), .gate-mark i:nth-child(2) { height: 17px; }
.brand-mark i:nth-child(3), .gate-mark i:nth-child(3) { height: 12px; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.media-count { color: var(--muted); font-size: .77rem; }
.icon-button, .viewer-close { display: grid; place-items: center; width: 36px; height: 36px; color: var(--paper); border: 1px solid var(--line); border-radius: 50%; background: transparent; transition: background .2s, color .2s, transform .2s; }
.icon-button:hover, .viewer-close:hover { background: var(--lime); color: var(--ink); transform: rotate(-7deg); }
.icon-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; min-height: 168px; padding: 48px 0 34px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 17px; color: var(--lime); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 18px; height: 1px; background: currentColor; }
h1, h2, p { margin-top: 0; }
.intro h1 { max-width: 780px; margin: 0; font-family: var(--serif); font-size: clamp(1.5rem, 2.35vw, 2.45rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.gate-card h1 { max-width: 780px; margin-bottom: 18px; font-family: var(--serif); font-size: clamp(3.5rem, 9vw, 5.4rem); font-weight: 400; letter-spacing: -.065em; line-height: .88; }
.intro-copy { max-width: 455px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.intro-note { display: flex; gap: 13px; align-items: flex-start; max-width: 200px; padding-bottom: 4px; color: var(--muted); font-size: .69rem; line-height: 1.55; }
.intro-note-line { width: 32px; height: 1px; margin-top: 6px; background: var(--lime); flex: 0 0 auto; }
.intro-note p { margin: 0; }

.gallery-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 13px 0 22px; border-top: 1px solid var(--line); }
.filter-group { display: flex; gap: 4px; align-items: center; }
.filter-button, .text-button { padding: 7px 11px; border: 0; border-radius: 99px; color: var(--muted); background: transparent; font-size: .75rem; transition: background .2s, color .2s; }
.filter-button:hover, .text-button:hover { color: var(--paper); background: rgba(242,239,231,.06); }
.filter-button.is-active { background: var(--paper); color: var(--ink); font-weight: 700; }
.text-button { text-decoration: underline; text-decoration-color: rgba(212,243,106,.55); text-underline-offset: 4px; }

.gallery { min-height: 280px; }
.timeline-day + .timeline-day { margin-top: 43px; }
.timeline-marker { display: flex; align-items: center; gap: 13px; margin: 0 0 11px; }
.timeline-date { margin: 0; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
.timeline-line { height: 1px; flex: 1; background: var(--line); }
.timeline-day-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; }
.media-card, .media-card[data-landscape='true'], .media-card[data-portrait='true'] { position: relative; grid-column: span 1; display: block; min-width: 0; aspect-ratio: 1 / 1; overflow: hidden; border: 0; border-radius: 3px; background: var(--ink-raised); color: var(--paper); text-align: left; isolation: isolate; }
.media-card img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transform: scale(1.005); transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .35s; }
.media-card.is-unavailable { background: linear-gradient(135deg, #1c2521, #121716); }
.media-card.is-unavailable img { display: none; }
.unavailable-overlay { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: 18px; color: var(--muted); font-size: .72rem; line-height: 1.45; text-align: center; }
.media-card:hover img, .media-card:focus-visible img { filter: brightness(.77); transform: scale(1.055); }
.media-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.media-overlay { position: absolute; z-index: 2; inset: 0; display: flex; align-items: end; justify-content: flex-end; padding: 8px; pointer-events: none; }
.media-label { display: none; }
.media-type { display: grid; place-items: center; width: 19px; height: 19px; color: rgba(242,239,231,.82); border: 1px solid rgba(242,239,231,.3); border-radius: 50%; background: rgba(10,13,12,.35); font-size: .49rem; line-height: 1; opacity: .72; backdrop-filter: blur(4px); }
.video-tint { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(0,0,0,.05), rgba(0,0,0,.42)); }
.demo-visual { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #3b5f4e, #153333 52%, #1d2222); }
.demo-visual::before, .demo-visual::after { position: absolute; content: ''; border-radius: 50%; filter: blur(1px); }
.demo-visual::before { width: 70%; height: 70%; right: -19%; bottom: -22%; background: #d4f36a; opacity: .54; }
.demo-visual::after { width: 46%; height: 46%; left: -12%; top: -13%; border: 1px solid rgba(242,239,231,.7); }
.demo-visual[data-tone='rose'] { background: linear-gradient(145deg, #8e5b54, #332023 57%, #171416); }
.demo-visual[data-tone='violet'] { background: linear-gradient(135deg, #6d69a2, #262338 52%, #131419); }
.demo-visual[data-tone='sand'] { background: linear-gradient(145deg, #9c7543, #44432d 50%, #1a1d19); }
.demo-visual[data-tone='blue'] { background: linear-gradient(145deg, #365f78, #18333c 55%, #131b1d); }

.status-panel { min-height: 280px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 4px; }
.status-panel[hidden] { display: none; }
.status-inner { width: min(480px, 100%); display: grid; grid-template-columns: 35px 1fr auto; gap: 15px; align-items: center; padding: 26px; }
.status-symbol { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--lime); border-radius: 50%; }
.status-symbol::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.status-panel.is-error .status-symbol { border-color: var(--warning); }
.status-panel.is-error .status-symbol::after { background: var(--warning); box-shadow: 0 0 18px var(--warning); }
.status-inner h2 { margin: 0 0 4px; font-size: .88rem; }
.status-inner p { margin: 0; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.status-retry { padding: 8px 11px; color: var(--ink); border: 0; border-radius: 99px; background: var(--lime); font-size: .72rem; font-weight: 700; white-space: nowrap; }

.site-footer { display: flex; align-items: center; gap: 9px; padding-top: 58px; color: var(--muted); font-size: .65rem; letter-spacing: .045em; text-transform: uppercase; }
.footer-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--lime); }

.access-gate { position: fixed; z-index: 10; inset: 0; display: grid; place-items: center; overflow: hidden; padding: 28px; background: radial-gradient(circle at 50% 32%, #202925 0%, #111615 42%, #0d1010 76%); transition: opacity .55s ease, visibility .55s; }
.access-gate.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.gate-orbit { position: absolute; left: 50%; top: 50%; width: min(85vw, 920px); aspect-ratio: 1; border: 1px solid rgba(212,243,106,.12); border-radius: 50%; transform: translate(-50%,-50%); animation: breathe 8s ease-in-out infinite; }
.orbit-two { width: min(52vw, 560px); border-color: rgba(242,239,231,.1); animation-delay: -4s; }
.gate-card { position: relative; z-index: 1; width: min(100%, 420px); padding: 17px; }
.gate-mark { height: 25px; margin-bottom: 46px; }
.gate-mark i { width: 6px; }
.gate-mark i:nth-child(1) { height: 11px; }.gate-mark i:nth-child(2) { height: 25px; }.gate-mark i:nth-child(3) { height: 17px; }
.gate-card h1 { margin-bottom: 18px; font-size: clamp(3.5rem, 9vw, 5.4rem); }
.gate-copy { max-width: 330px; margin-bottom: 32px; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.access-form { display: grid; gap: 11px; }
.password-field { display: flex; align-items: center; border-bottom: 1px solid rgba(242,239,231,.48); transition: border-color .2s; }
.password-field:focus-within { border-color: var(--lime); }
.password-field input { min-width: 0; flex: 1; padding: 13px 2px; border: 0; outline: 0; color: var(--paper); background: transparent; font-size: .92rem; }
.password-field input::placeholder { color: #82877e; }
.password-toggle { display: grid; place-items: center; width: 35px; height: 35px; color: var(--muted); border: 0; background: transparent; }
.password-toggle:hover { color: var(--lime); }
.password-toggle svg { width: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 7px; padding: 14px 16px; color: var(--ink); border: 0; background: var(--lime); font-size: .79rem; font-weight: 780; transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--lime-deep); transform: translateY(-2px); }
.primary-button:active { transform: translateY(0); }
.form-message { min-height: 18px; margin: 0; color: var(--warning); font-size: .73rem; }
.gate-footnote { margin: 32px 0 0; color: #8e968d; font-size: .64rem; letter-spacing: .05em; text-transform: uppercase; }

.viewer { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; }
.viewer[hidden] { display: none; }
.viewer-backdrop { position: absolute; inset: 0; background: rgba(6,8,8,.92); backdrop-filter: blur(9px); }
.viewer-frame { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(1280px, 100%); height: min(820px, calc(100vh - 40px)); padding: 15px 15px 13px; overflow: hidden; border: 1px solid rgba(242,239,231,.17); border-radius: 5px; background: #101414; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.viewer-header, .viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.viewer-meta { margin: 0; color: rgba(169,170,161,.76); font-size: .56rem; text-transform: uppercase; letter-spacing: .08em; }
.viewer-actions { display: flex; align-items: center; gap: 12px; }
.viewer-action-link { color: var(--lime); font-size: .66rem; text-decoration: none; white-space: nowrap; }
.viewer-action-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.viewer-download-link { color: var(--paper); }
.viewer-close { width: 34px; height: 34px; font-size: 1.55rem; font-weight: 200; line-height: 1; }
.viewer-content { position: relative; display: grid; place-items: center; min-height: 0; overflow: hidden; margin: 4px 0; background: #090c0b; }
.viewer-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.viewer-video { display: block; width: 100%; height: 100%; border: 0; background: #000; object-fit: contain; }
.viewer-edge-button { position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; color: var(--paper); border: 1px solid rgba(242,239,231,.4); border-radius: 50%; background: rgba(16,20,19,.72); box-shadow: 0 8px 22px rgba(0,0,0,.22); backdrop-filter: blur(7px); font-size: 1.35rem; line-height: 1; transform: translateY(-50%); transition: background .2s, color .2s, transform .2s; }
.viewer-edge-button--previous { left: 27px; }
.viewer-edge-button--next { right: 27px; }
.viewer-edge-button:hover { color: var(--ink); background: var(--lime); transform: translateY(-50%) scale(1.07); }
.viewer-edge-button:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.viewer-edge-button:disabled { opacity: 0; pointer-events: none; }
.viewer-video-shell { position: relative; width: 100%; height: 100%; min-height: 0; background: #000; }
.viewer-video-toggle { position: absolute; z-index: 2; left: 50%; bottom: 22px; display: grid; place-items: center; width: 66px; height: 66px; padding: 0; color: var(--ink); border: 0; border-radius: 50%; background: var(--lime); box-shadow: 0 10px 28px rgba(0,0,0,.35); font-size: 1.45rem; line-height: 1; transform: translateX(-50%); transition: transform .2s, background .2s, opacity .2s; }
.viewer-video-toggle:hover { background: var(--lime-deep); transform: translateX(-50%) scale(1.07); }
.viewer-video-toggle.is-playing { color: var(--paper); background: rgba(16,20,19,.78); border: 1px solid rgba(242,239,231,.45); }
.viewer-video-toggle:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
.viewer-fallback a { color: var(--lime); }
.viewer-fallback { display: grid; justify-items: center; gap: 11px; padding: 24px; color: var(--muted); font-size: .8rem; text-align: center; }
.viewer-fallback p { margin: 0; }
.demo-view { position: relative; width: min(90%, 760px); aspect-ratio: 16/10; overflow: hidden; border-radius: 3px; }
.demo-view .demo-visual { position: absolute; }
.demo-view-note { position: absolute; z-index: 2; left: 23px; bottom: 20px; margin: 0; font-family: var(--serif); font-size: 1.6rem; }
.viewer-bottom { justify-content: flex-end; min-height: 25px; padding: 5px 2px 0; }
.viewer-position { color: var(--muted); font-size: .68rem; }

@keyframes breathe { 0%, 100% { transform: translate(-50%,-50%) scale(.97); opacity: .65; } 50% { transform: translate(-50%,-50%) scale(1.03); opacity: 1; } }
@media (max-width: 760px) {
  .app { width: min(100% - 32px, 1440px); padding-top: 12px; }
  .site-header { min-height: 54px; }
  .intro { display: block; min-height: auto; padding: 45px 0 28px; }
  .intro h1 { font-size: clamp(1.5rem, 7.2vw, 2rem); }
  .intro-note { margin-top: 30px; }
  .gallery-toolbar { padding-bottom: 15px; }
  .timeline-day + .timeline-day { margin-top: 32px; }
  .timeline-marker { gap: 10px; margin-bottom: 8px; }
  .timeline-date { font-size: .56rem; letter-spacing: .075em; }
  .timeline-day-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .media-card, .media-card[data-landscape='true'], .media-card[data-portrait='true'] { grid-column: span 1; }
  .media-overlay { padding: 7px; }
  .media-type { width: 18px; height: 18px; font-size: .47rem; }
  .status-inner { grid-template-columns: 32px 1fr; }
  .status-retry { grid-column: 2; justify-self: start; }
  .viewer { padding: 8px; }
  .viewer-frame { height: calc(100vh - 16px); padding: 10px; }
  .viewer-actions { gap: 8px; }
  .viewer-action-link { font-size: .58rem; }
  .viewer-edge-button { width: 40px; height: 40px; font-size: 1.1rem; }
  .viewer-edge-button--previous { left: 16px; }
  .viewer-edge-button--next { right: 16px; }
  .viewer-video-toggle { bottom: 16px; width: 58px; height: 58px; font-size: 1.25rem; }
}
@media (max-width: 420px) {
  .media-count { display: none; }
  .gallery { gap: 5px; }
  .filter-button { padding-inline: 9px; }
  .gate-card { padding: 5px; }
  .gate-mark { margin-bottom: 36px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
