/* Thomas Schmid Pictures — Studio Noir */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700-normal.woff2") format("woff2");
}

:root {
  --bg: #0b0b0c;
  --panel: #121214;
  --panel-up: #1a1a1e;
  --text: #f0eeea;
  --muted: #96938c;
  --gold: #c6a043;
  --gold-soft: rgba(198, 160, 67, 0.12);
  --line: rgba(255, 255, 255, 0.1);
  --line-hi: rgba(255, 255, 255, 0.2);
  --max: 960px;
  --feed: 520px;
  --sidebar: 15.5rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header: 5.25rem;
  --post-gap: clamp(1.5rem, 3vw, 2.5rem);
  --ease: cubic-bezier(0.33, 1, 0.68, 1);
  --font: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 0.5rem);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-width: 0;
  overflow-x: clip;
}

img, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 9999;
  padding: 0.5rem 1rem; background: var(--gold); color: var(--bg); font-weight: 600;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* ── Shell ── */
.shell {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── Story navigation (site header) ── */
.story-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11, 11, 12, 0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.story-brand {
  display: none;
}
.story-bar {
  display: flex; gap: 0.75rem; overflow-x: auto;
  padding: 0.75rem var(--gutter) 0.9rem;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.story-bar::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
  .story-bar {
    justify-content: center;
    gap: 1.25rem;
    padding: 0.9rem var(--gutter) 1.05rem;
  }
  :root { --header: 5.75rem; }
}
@media (min-width: 900px) {
  .story-bar { gap: 1.5rem; padding: 1rem var(--gutter) 1.15rem; }
  :root { --header: 6rem; }
}
@media (min-width: 1024px) {
  body:has(> .story-nav) {
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
  }
  body:has(> .story-nav) > .story-nav {
    position: sticky;
    top: 0;
    align-self: start;
    max-height: 100vh;
    max-height: 100dvh;
    height: auto;
    min-height: 0;
    border-bottom: none;
    border-right: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 0.85rem 1.5rem;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body:has(> .story-nav) > main {
    min-width: 0;
    overflow-x: clip;
    border-left: 1px solid var(--line);
  }
  .story-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0 0.55rem 1.15rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    flex-shrink: 0;
    text-align: center;
  }
  .story-brand:hover { color: var(--text); }
  .story-brand img {
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
    flex-shrink: 0;
  }
  .story-brand span {
    font-size: 0.58rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.35;
    max-width: 100%;
  }
  .story-bar {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.2rem;
    padding: 0;
    margin: 0;
    max-width: none;
    overflow-x: hidden;
    overflow-y: auto;
  }
  :root { --header: 1.25rem; }
}
.story-pill {
  display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
  flex: 0 0 auto; color: var(--text); text-decoration: none;
  min-width: 3.75rem;
}
@media (min-width: 1024px) {
  .story-pill {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
  }
  .story-pill:hover { background: var(--panel-up); }
  .story-pill.is-active { background: var(--gold-soft); }
}
.story-pill__ring {
  display: block; width: 2.85rem; height: 2.85rem;
  border-radius: 50%; overflow: hidden;
  border: 2px solid var(--line);
  background: var(--panel-up);
  transition: border-color 0.2s, transform 0.2s;
}
@media (min-width: 640px) {
  .story-pill__ring { width: 3.25rem; height: 3.25rem; }
  .story-pill { min-width: 4rem; }
}
@media (min-width: 900px) {
  .story-pill__ring { width: 3.6rem; height: 3.6rem; }
  .story-pill { min-width: 4.25rem; gap: 0.4rem; }
}
@media (min-width: 1024px) {
  .story-pill__ring { width: 2.65rem; height: 2.65rem; flex-shrink: 0; }
  .story-pill { min-width: 0; gap: 0.75rem; }
  .story-pill:hover .story-pill__ring { transform: none; }
}
.story-pill__ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: var(--panel-up);
}
.story-pill__ring--photo {
  background: var(--panel-up);
}
.story-pill__label {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
  transition: color 0.2s;
}
@media (min-width: 640px) {
  .story-pill__label { font-size: 0.62rem; }
}
@media (min-width: 1024px) {
  .story-pill__label {
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    line-height: 1.25;
  }
}
.story-pill:hover .story-pill__label { color: var(--text); }
.story-pill:hover .story-pill__ring { transform: scale(1.04); }
.story-pill.is-active .story-pill__ring { border-color: var(--gold); }
.story-pill.is-active .story-pill__label { color: var(--gold); }

.story-pill--external {
  min-width: 2.75rem;
}
.story-pill__ring--icon {
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.story-pill__nav-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--text);
  transition: color 0.2s;
}
.story-pill:hover .story-pill__nav-icon { color: var(--gold); }
.story-pill.is-active .story-pill__nav-icon { color: var(--gold); }
.story-pill--external .story-pill__ring--icon {
  overflow: visible;
}
.story-pill__ig-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--text);
  transition: color 0.2s;
}
.story-pill__link-icon {
  position: absolute;
  right: -0.1rem;
  bottom: -0.1rem;
  width: 0.72rem;
  height: 0.72rem;
  padding: 0.12rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--muted);
  box-sizing: content-box;
  transition: color 0.2s, border-color 0.2s;
}
.story-pill--external .story-pill__label--external {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.story-pill--external:hover .story-pill__ig-icon { color: var(--gold); }
.story-pill--external:hover .story-pill__link-icon {
  color: var(--gold);
  border-color: rgba(198, 160, 67, 0.45);
}
.story-pill--external:hover .story-pill__label--external { color: var(--text); }
.story-pill--external:hover .story-pill__ring { transform: scale(1.04); border-color: rgba(198, 160, 67, 0.45); }
@media (min-width: 640px) {
  .story-pill--external { min-width: 3rem; }
  .story-pill__ig-icon { width: 1.45rem; height: 1.45rem; }
  .story-pill__nav-icon { width: 1.45rem; height: 1.45rem; }
  .story-pill--external .story-pill__label--external { font-size: 0.62rem; }
}
@media (min-width: 1024px) {
  .story-pill--external {
    min-width: 0;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid var(--line);
  }
  .story-pill--external .story-pill__label--external {
    font-size: 0.82rem;
    letter-spacing: 0;
    text-transform: none;
    white-space: normal;
    line-height: 1.25;
  }
  .story-pill--external:hover { background: var(--panel-up); }
}

.foot {
  padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  background: transparent;
}
.foot .feed-stream {
  padding-bottom: 0;
  padding-top: 0;
}
.foot-post {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.foot-post__panorama {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: clamp(0.55rem, 1.4vw, 0.85rem) clamp(0.75rem, 2vw, 1.15rem);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(198, 160, 67, 0.07), transparent 65%),
    linear-gradient(165deg, var(--panel-up), var(--panel));
  border-bottom: 1px solid rgba(255,255,255,0.04);
  text-decoration: none;
  transition: background 0.25s;
}
.foot-post__panorama:hover {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(198, 160, 67, 0.11), transparent 65%),
    linear-gradient(165deg, var(--panel-up), var(--panel));
}
.foot-post__panorama img {
  display: block;
  width: min(100%, 52rem);
  height: auto;
  max-height: clamp(5.5rem, 28vw, 9.5rem);
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  opacity: 0.92;
  transition: opacity 0.25s;
}
.foot-post__panorama:hover img { opacity: 1; }
.foot-post__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem 1.05rem;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}
.foot-post__caption p {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.foot-post__links {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}
.foot-post__links .post-link {
  margin-top: 0;
  white-space: nowrap;
}
.foot-login-link {
  margin-top: 0;
}
.foot-cookie-link {
  margin-top: 0;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: var(--gold);
}
.foot-cookie-link:hover {
  color: var(--text);
}

/* ── Cookie banner ── */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 10001;
  padding: var(--gutter);
  padding-bottom: max(var(--gutter), env(safe-area-inset-bottom));
  pointer-events: none;
}
.cookie-banner.is-hidden {
  display: none !important;
}
.cookie-banner__panel {
  pointer-events: auto;
  max-width: min(42rem, 100%);
  margin: 0 auto;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--line-hi);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}
.cookie-banner__title {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  font-weight: 600;
}
.cookie-banner__text {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}
.cookie-banner__link {
  color: var(--gold);
  text-decoration: none;
}
.cookie-banner__link:hover {
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cookie-banner__btn {
  flex: 1 1 auto;
  min-width: min(100%, 9rem);
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel-up);
  color: var(--text);
}
.cookie-banner__btn--primary {
  background: var(--gold-soft);
  border-color: rgba(198, 160, 67, 0.45);
  color: var(--text);
}
.cookie-banner__btn--ghost:hover,
.cookie-banner__btn--primary:hover {
  border-color: var(--line-hi);
}
.admin-analytics {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.5rem;
}
.admin-analytics__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.admin-analytics__stat {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.admin-analytics__stat strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.admin-analytics__stat span {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.admin-analytics__list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.admin-analytics__list li {
  margin-bottom: 0.25rem;
  word-break: break-word;
}

@media (min-width: 1024px) {
  .foot-post { border-radius: 18px; }
  .foot-post__panorama {
    padding: clamp(0.45rem, 0.8vw, 0.65rem) clamp(1rem, 2.5vw, 1.5rem);
  }
  .foot-post__panorama img {
    width: min(100%, 56rem);
    max-height: 3.5rem;
  }
  .foot-post__caption { padding: 1rem 1.15rem 1.15rem; }
}

/* ── Typography ── */
.eyebrow {
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 0.6rem;
}
.headline {
  font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.06; margin: 0 0 0.85rem;
}
.lead { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.75; max-width: 38rem; }
.section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem); font-weight: 600;
  letter-spacing: -0.02em; margin: 0 0 0.5rem;
}

/* ── Layout system ── */
.layout-rail {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 820px) {
  .layout-rail {
    grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
  }
}
@media (min-width: 1024px) {
  .layout-rail {
    grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
  .page-body {
    padding-top: 1.5rem;
  }
}
.rail {
  display: flex; flex-direction: column; gap: 0.85rem;
}
@media (min-width: 820px) {
  .rail {
    position: sticky;
    top: calc(var(--header) + 1.75rem);
  }
}
.rail-note {
  margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65;
}
.rail-link { margin-top: 0.35rem; }
.layout-main { min-width: 0; }

/* ── Home ── */
.mast {
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  max-width: 40rem;
}
.mast-lead { margin-top: 0.25rem; }

.showcase {
  padding: clamp(2.75rem, 5vw, 4rem) 0;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}
.showcase-main { min-width: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chips--stack { flex-direction: column; align-items: stretch; }
.chips--stack .chip { text-align: left; }
.chip {
  font-family: var(--font); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.42rem 0.8rem; border: 1px solid var(--line);
  background: var(--bg); color: var(--muted); cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.chip:hover { color: var(--text); border-color: var(--line-hi); }
.chip.is-on { color: var(--gold); border-color: rgba(198, 160, 67, 0.4); background: var(--gold-soft); }

.more-link { font-size: 0.85rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.more-link:hover { color: var(--gold); border-color: var(--gold); }
.block-link { margin-top: 1.25rem; }

@media (min-width: 1200px) {
  :root { --max: 1040px; --gutter: clamp(2rem, 5vw, 3.5rem); }
}

@media (min-width: 1600px) {
  :root { --max: 1080px; --gutter: clamp(2.5rem, 6vw, 5rem); }
}

@media (min-width: 2000px) {
  :root { --max: 1120px; --gutter: clamp(3rem, 8vw, 7rem); }
}

.grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem;
}
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; } }

.grid--editorial .tile.is-featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}
@media (max-width: 599px) {
  .grid--editorial .tile.is-featured {
    grid-row: span 1;
    aspect-ratio: 4/3;
  }
}

.tile {
  position: relative; overflow: hidden; background: var(--panel-up);
  border: 1px solid var(--line); aspect-ratio: 3/4; cursor: zoom-in;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.tile::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(198,160,67,0.2);
  transition: opacity 0.35s;
}
.tile:hover { border-color: rgba(255,255,255,0.14); box-shadow: 0 8px 28px rgba(0,0,0,0.3); }
.tile:hover::after { opacity: 1; }
.tile.is-wide { aspect-ratio: 16/9; grid-column: span 2; }
.tile img,
.tile .photo-protect-display {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.tile:hover img,
.tile:hover .photo-protect-display { transform: scale(1.05); }

.grid-empty { color: var(--muted); text-align: center; padding: 2.5rem 0; font-size: 0.92rem; }

.nav-cards {
  display: grid; gap: 0;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4rem);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 600px) { .nav-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .nav-cards { grid-template-columns: repeat(4, 1fr); } }

.nav-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: background 0.35s, padding-left 0.25s var(--ease);
}
.nav-card-label {
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
}
.nav-card-title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.nav-card-desc { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

/* ── Feed layout (Referenzen reference) ── */
.page-feed {
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 0;
}
.feed-stream {
  width: 100%;
  max-width: var(--feed);
  margin-inline: auto;
  padding-inline: var(--gutter);
  min-width: 0;
}
.page-feed .feed-stream,
.page-feed .foot .feed-stream {
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}
.page-feed .feed-stream {
  max-width: var(--feed);
}
.page-feed .foot .feed-stream {
  max-width: var(--feed);
}
.page-feed .feed-stream {
  padding: clamp(0.85rem, 2.5vw, 1.15rem) var(--gutter) clamp(2rem, 4vw, 3rem);
}
.page-feed .foot .feed-stream {
  padding-inline: var(--gutter);
}
.feed-post {
  padding: clamp(0.85rem, 2.5vw, 1.15rem) 0 clamp(1rem, 2.5vw, 1.35rem);
  scroll-margin-top: calc(var(--header) + 0.5rem);
}
.feed-post + .feed-post {
  border-top: 0;
}
.feed-posts .feed-post:first-child {
  border-top: 0;
  padding-top: clamp(0.65rem, 2vw, 0.85rem);
}
.feed-posts + .feed-post {
  border-top: 0;
}

/* Shared post grids */
.ref-chapter-feed,
.page-home .feed-posts,
.page-about .feed-posts {
  scroll-margin-top: calc(var(--header) + 0.75rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--post-gap);
  align-items: start;
}
.ref-chapter-feed .feed-post,
.page-home .feed-posts .feed-post,
.page-home #about-post,
.page-about .feed-posts .feed-post,
.page-contact .feed-post,
.page-legal .feed-post {
  padding: 0;
  margin: 0;
  align-self: start;
  height: auto;
  border-top: 0;
}
.page-home {
  --post-grid-cols: 3;
}
.page-home .feed-stream {
  display: flex;
  flex-direction: column;
  gap: var(--post-gap);
}
.page-home #about-post {
  padding-top: clamp(0.65rem, 2vw, 0.85rem);
}
.page-home #about-post + .feed-posts {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  gap: var(--post-gap);
}
.page-about .feed-posts .feed-post {
  width: 100%;
  min-width: 0;
}
.page-posts {
  display: flex;
  flex-direction: column;
  gap: var(--post-gap);
}
.page-posts .feed-post + .feed-post {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}
.page-posts .feed-post:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.feed-posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--post-gap);
}
.post-card {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.post-head {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.post-avatar {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
  background: var(--panel-up);
}
.post-head__meta { display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.post-user {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.2;
}
.post-label {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.post-event {
  font-size: 0.78rem; font-weight: 500; color: var(--muted);
  letter-spacing: -0.01em; line-height: 1.25;
}
.post-event--link {
  display: inline;
  max-width: 100%;
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.post-event__text {
  display: inline;
}
.post-event__link-icon {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  margin-left: 0.22rem;
  vertical-align: -0.1em;
  color: currentColor;
  opacity: 0.88;
  transition: color 0.2s, opacity 0.2s;
}
.post-event--link:hover {
  color: var(--text);
}
.post-event--link:hover .post-event__link-icon {
  opacity: 1;
  color: var(--gold);
}
.post-event--link:hover .post-event__text {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.post-shooting {
  font-size: 0.82rem; font-weight: 600; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.25;
}
.post-media {
  margin: 0; background: var(--panel-up);
  position: relative;
  overflow: hidden;
}
.post-media[data-lightbox] {
  cursor: zoom-in;
}
.post-media:not(.post-media--symbol) {
  height: auto;
}
.post-media picture {
  display: block;
  line-height: 0;
}
.post-media img,
.post-media .photo-protect-display {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
}
.post-media .photo-protect-display {
  background-size: contain;
}
.post-card--featured .post-media {
  align-self: start;
}
.post-caption {
  padding: 0.85rem 0.95rem 1.05rem;
  font-size: 0.88rem; line-height: 1.62; color: var(--muted);
}
.post-caption p { margin: 0; }
.post-caption strong {
  display: block;
  color: var(--text); font-weight: 600;
  margin: 0 0 0.35rem;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
}
.post-link {
  display: inline-flex; align-items: center; gap: 0.25rem;
  margin-top: 0.75rem;
  padding: 0.45rem 0;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--gold); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.post-link:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

.post-card--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.post-card--link.post-card--featured:hover {
  border-color: rgba(198, 160, 67, 0.35);
}
.post-card--link:hover {
  border-color: rgba(198, 160, 67, 0.35);
}
.post-card--link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.post-card--link .post-media img {
  pointer-events: none;
}
.ref-chapter-head {
  margin: 0;
  padding: 0 0.15rem;
  grid-column: 1 / -1;
  scroll-margin-top: calc(var(--header) + 0.5rem);
}
.ref-chapter-kicker {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.ref-chapter-feed + .ref-chapter-feed {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.post-caption--rich p + p { margin-top: 0.85rem; }
.post-caption--rich strong { display: inline; margin: 0; font-size: inherit; }
.post-card--text .post-caption { flex: 1; }
.post-card--text .post-head + .post-caption { border-top: none; }

.post-gallery {
  padding: 0.75rem 0.85rem 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(0,0,0,0.12);
}
.post-gallery .ref-sub {
  margin: 0.75rem 0 0.5rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
}
.post-gallery .ref-sub:first-child { margin-top: 0; }

.post-steps { display: flex; flex-direction: column; gap: 1.1rem; }
.post-step__num {
  display: block; margin-bottom: 0.35rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
}
.post-step p { margin: 0; }
.post-step strong { color: var(--text); }

.post-media--symbol-wide { aspect-ratio: 21/8; }
.post-media--symbol-sm { aspect-ratio: 16/9; }
.post-media--symbol-sm .post-symbol { gap: 0; padding: 1.25rem; }
.post-media--symbol-sm .post-symbol svg { width: 3rem; }
.post-symbol__tri { width: min(100%, 7.5rem); height: auto; }
.post-card--service .post-caption { flex: 1; }

.post-card--services {
  max-width: min(100%, var(--photo-card-max, 880px));
  margin-inline: auto;
}
.services-carousel {
  border-bottom: none;
}
.services-carousel .shoot-carousel__thumbs {
  display: none !important;
}
.services-carousel .shoot-carousel__stage {
  overflow: visible;
  height: auto;
}
.services-carousel .shoot-slide.services-slide {
  display: block;
  box-sizing: border-box;
  overflow: visible;
  cursor: default;
}
.services-slide__visual {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(198, 160, 67, 0.12), transparent 58%),
    linear-gradient(180deg, var(--panel-up) 0%, var(--panel) 100%);
}
.services-slide__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1.35rem 1.1rem 1rem;
  text-align: center;
  min-height: 0;
}
.services-slide__icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  color: var(--gold);
  flex-shrink: 0;
}
.services-slide__icon svg {
  width: 3.25rem;
  height: 3.25rem;
}
.services-slide__copy {
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}
.services-slide__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.services-slide__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}
.services-slide__cta {
  margin: 0;
  width: 100%;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  min-width: 0;
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
}
.post-services-cta {
  padding: 0.85rem 0.95rem 1.15rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.08);
}
.post-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 16rem);
  padding: 0.78rem 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(198, 160, 67, 0.45);
  background: rgba(198, 160, 67, 0.12);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.post-cta:hover {
  background: rgba(198, 160, 67, 0.22);
  color: var(--text);
  border-color: var(--gold);
}
.post-cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.post-card--service-compact .post-caption--service {
  padding-top: 0.65rem;
}
.post-service-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.45rem;
}
.post-service-top p {
  margin: 0;
}
.post-service-top strong {
  display: inline;
  margin: 0;
  font-size: 0.96rem;
}
.post-service-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  color: var(--gold);
  opacity: 0.92;
}
.post-service-icon svg {
  width: 1.65rem;
  height: 1.65rem;
}
.post-caption--service > p:last-child {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
}

.grid--post {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.35rem;
}
@media (min-width: 768px) {
  .grid--post { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}
.post-gallery .grid--post .tile {
  aspect-ratio: 1;
  border-radius: 10px;
}
.post-gallery .grid--post .tile.is-wide {
  grid-column: span 2;
  aspect-ratio: 16/10;
}
.tile--instant img,
.tile--instant .photo-protect-display,
.tile--instant.tile--pop img,
.tile--instant.tile--pop .photo-protect-display {
  opacity: 1;
  transform: none;
  animation: none !important;
}
.post-card--link.post-card--shoot .shoot-slide {
  cursor: pointer;
}
.post-card--link.post-card--shoot .shoot-slide img,
.post-card--link.post-card--shoot .shoot-slide .photo-protect-display,
.post-card--link.post-card--shoot .shoot-video {
  pointer-events: none;
}
.post-card--link.post-card--shoot .shoot-video-host,
.post-card--link.post-card--shoot .shoot-video-host .shoot-video,
.post-card--link.post-card--shoot .shoot-video-ui,
.post-card--link.post-card--shoot .shoot-video-ui *,
.post-card--link.post-card--shoot .shoot-carousel__nav,
.post-card--link.post-card--shoot .shoot-carousel__thumbs,
.post-card--link.post-card--shoot .shoot-carousel__thumbs .shoot-thumb {
  pointer-events: auto;
}
.post-card--shoot .shoot-carousel {
  border-bottom: 0;
}
.post-card--shoot {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: auto;
  align-self: start;
}
.page-home #about-post .post-card--shoot .post-caption {
  flex: 0 0 auto;
}
.post-card--shoot .shoot-carousel {
  width: 100%;
  max-width: 100%;
  align-items: center;
}
.post-card--shoot .shoot-carousel__stage {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
}
.post-card--shoot .shoot-carousel__track {
  width: 100%;
  max-width: 100%;
}
.post-card--link.post-card--shoot:hover {
  border-color: rgba(198, 160, 67, 0.35);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.38);
}

/* ── Shooting carousel (Referenzen posts) ── */
.shoot-carousel {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: var(--panel);
}
.shoot-carousel__stage {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  transition: width 0.38s var(--ease), height 0.38s var(--ease);
  contain: layout paint;
}
.shoot-carousel.is-sliding .shoot-carousel__stage {
  transition: width 0.46s var(--ease), height 0.46s var(--ease);
}
.shoot-carousel__track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.shoot-carousel.is-sliding .shoot-carousel__track {
  scroll-snap-type: none;
}
.shoot-carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) {
  .post-card--shoot .shoot-carousel__track {
    overflow-x: hidden;
  }
}
.shoot-slide {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  align-self: flex-start;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0;
  background: var(--panel);
  cursor: zoom-in;
  overflow: hidden;
}
.shoot-slide picture {
  display: block;
  line-height: 0;
  width: 100%;
  height: 100%;
}
.shoot-slide img,
.shoot-slide .photo-protect-display {
  display: block;
  object-position: center center;
  object-fit: contain;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform: translateZ(0);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  -webkit-user-drag: none;
}
.tile img,
.tile .photo-protect-display,
.shoot-thumb img,
.shoot-thumb-display,
.post-media img,
.post-media .photo-protect-display {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  -webkit-user-drag: none;
}
body.is-video-playing .feed-post {
  overflow-anchor: none;
}
.shoot-slide--video {
  cursor: default;
  background: #0b0d12;
}

/* Photo tags (Instagram-style) */
@keyframes photo-tag-pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70% {
    opacity: 0;
    transform: scale(2.1);
  }
  100% {
    opacity: 0;
    transform: scale(2.1);
  }
}
.photo-tag-host {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
  -webkit-touch-callout: none;
}
.photo-protect-shield {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: block;
  background: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}
.photo-protect-display,
.shoot-thumb-display {
  display: block;
  background-repeat: no-repeat;
  background-position: center center;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
.photo-protect-display {
  background-size: contain;
}
.shoot-thumb-display {
  width: 100%;
  height: 100%;
  background-size: cover;
}
.tile .photo-tag-host {
  width: 100%;
  height: 100%;
  display: block;
}
.tile .photo-protect-display {
  background-size: cover;
}
.photo-tag-host picture,
.photo-tag-host > img,
.photo-tag-host > .photo-protect-display {
  display: block;
  max-width: 100%;
  pointer-events: none;
  -webkit-user-drag: none;
}
.photo-tag-host--lightbox {
  position: relative;
  line-height: 0;
}
.photo-tag {
  position: absolute;
  z-index: 9;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.photo-tag__anchor {
  position: relative;
  display: block;
  width: 0;
  height: 0;
}
.photo-tag__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 0.95rem;
  height: 0.95rem;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.18s ease;
}
.photo-tag__dot::before {
  content: "";
  position: absolute;
  inset: -0.42rem;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  animation: photo-tag-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.photo-tag__label {
  position: absolute;
  left: 0.72rem;
  top: 0;
  transform: translateY(-50%) translateX(-6px);
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: min(13rem, 62vw);
  padding: 0.34rem 0.62rem;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease, color 0.16s ease;
}
.photo-tag__label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-tag__link-icon {
  flex: 0 0 auto;
  width: 0.72rem;
  height: 0.72rem;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.16s ease, transform 0.16s ease;
}
.photo-tag--linked:hover .photo-tag__link-icon,
.photo-tag--linked:focus-visible .photo-tag__link-icon,
.photo-tag--linked.is-active .photo-tag__link-icon {
  color: var(--gold);
}
.photo-tag:hover .photo-tag__dot,
.photo-tag:focus-visible .photo-tag__dot,
.photo-tag.is-active .photo-tag__dot {
  transform: translate(-50%, -50%) scale(1.08);
}
@media (hover: hover) and (pointer: fine) {
  .photo-tag:hover .photo-tag__label,
  .photo-tag:focus-visible .photo-tag__label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}
.photo-tag.is-active .photo-tag__label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
@media (hover: none), (pointer: coarse) {
  .photo-tag {
    padding: 0.7rem;
    margin: -0.7rem;
  }
  .photo-tag.is-active .photo-tag__label {
    pointer-events: auto;
  }
}
.shoot-slide .photo-tag-host {
  width: 100%;
  height: auto;
  display: block;
  line-height: 0;
  max-width: 100%;
}
.shoot-slide .photo-tag-host picture {
  display: block;
  width: 100%;
  height: auto;
  line-height: 0;
}
.shoot-slide .photo-tag-host > img,
.shoot-slide .photo-tag-host picture img,
.shoot-slide .photo-tag-host > .photo-protect-display {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center center;
}
.shoot-lightbox-btn {
  display: none;
}
@media (hover: none), (pointer: coarse) {
  .shoot-lightbox-btn {
    display: inline-flex;
    position: absolute;
    right: 0.55rem;
    bottom: 0.55rem;
    z-index: 9;
    width: 2.15rem;
    height: 2.15rem;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(11, 11, 12, 0.78);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .shoot-lightbox-btn svg {
    display: block;
    width: 1rem;
    height: 1rem;
  }
  .shoot-lightbox-btn:active {
    transform: scale(0.96);
  }
  .shoot-slide[data-lightbox] {
    cursor: default;
  }
}
.shoot-slide.is-lightbox-tap[data-lightbox] {
  cursor: zoom-in;
}
.lightbox-stage .photo-tag-host--lightbox {
  position: relative;
}
.lightbox-stage .photo-tag-host--lightbox .lightbox-canvas {
  display: block;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.lightbox-stage .photo-protect-shield {
  z-index: 10;
}

.shoot-video-host {
  position: relative;
  width: 100%;
  height: 100%;
  background: #0b0d12;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: auto;
}
.shoot-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0b0d12;
  -webkit-touch-callout: none;
  pointer-events: auto;
}
.shoot-video::-webkit-media-controls-enclosure,
.shoot-video::-webkit-media-controls {
  display: none !important;
}
.shoot-video-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.55rem;
  background: linear-gradient(to top, rgba(8, 10, 14, 0.92), rgba(8, 10, 14, 0.55), transparent);
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.shoot-video-ui__btn {
  flex: 0 0 auto;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: 1px solid rgba(198, 160, 67, 0.45);
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.82);
  color: var(--gold);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1;
}
.shoot-video-ui__btn svg {
  width: 0.9rem;
  height: 0.9rem;
}
.shoot-video-ui__btn:hover {
  background: var(--gold-soft);
}
.shoot-video-ui__seek {
  flex: 1 1 auto;
  min-width: 0;
  accent-color: var(--gold);
}
.shoot-video-ui__time {
  flex: 0 0 auto;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.82);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.shoot-video-ui__close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 4;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.82);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.shoot-video-ui__close:hover {
  background: rgba(198, 160, 67, 0.22);
}
.shoot-video-host.is-ui-hidden .shoot-video-ui,
.shoot-video-host.is-ui-hidden .shoot-video-ui__close {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.post-card--shoot.is-video-expanded {
  isolation: isolate;
}
.shoot-video-host.is-expanded,
.shoot-video-host:fullscreen,
.shoot-video-host:-webkit-full-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  box-sizing: border-box;
  background: #000;
  width: 100%;
  height: 100%;
}
.shoot-video-host.is-expanded .shoot-video,
.shoot-video-host:fullscreen .shoot-video,
.shoot-video-host:-webkit-full-screen .shoot-video {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
}
.shoot-video-host.is-expanded .shoot-video-ui,
.shoot-video-host:fullscreen .shoot-video-ui,
.shoot-video-host:-webkit-full-screen .shoot-video-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin-top: 0;
  padding-bottom: max(0.55rem, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(8, 10, 14, 0.96), rgba(8, 10, 14, 0.55), transparent);
}
.shoot-video-host.is-expanded .shoot-video-ui__close,
.shoot-video-host:fullscreen .shoot-video-ui__close,
.shoot-video-host:-webkit-full-screen .shoot-video-ui__close {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 3;
}
body.shoot-video-expanded-open {
  overflow: hidden;
}
.shoot-thumb--video {
  position: relative;
}
.shoot-thumb--video::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(11, 11, 12, 0.72);
  border: 1px solid rgba(198, 160, 67, 0.55);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.shoot-thumb--video::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-38%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.28rem 0 0.28rem 0.48rem;
  border-color: transparent transparent transparent var(--gold);
  z-index: 1;
  pointer-events: none;
}
.shoot-carousel__count {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.shoot-carousel__nav {
  display: none;
}
.shoot-carousel__thumbs {
  display: none;
}
@media (min-width: 768px) {
  .shoot-carousel__nav {
    display: grid;
    place-items: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 12;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    background: rgba(11, 11, 12, 0.78);
    backdrop-filter: blur(8px);
    color: var(--text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
  }
  .shoot-carousel__nav:hover {
    background: rgba(198, 160, 67, 0.2);
    border-color: rgba(198, 160, 67, 0.45);
    color: var(--gold);
  }
  .shoot-carousel__nav--prev { left: 0.65rem; }
  .shoot-carousel__nav--next { right: 0.65rem; }
  .shoot-carousel__thumbs {
    display: flex;
    gap: 0.4rem;
    padding: 0.65rem 0.75rem 0.75rem;
    overflow-x: auto;
    scrollbar-width: none;
    border-top: 1px solid rgba(255,255,255,0.04);
  }
  .shoot-carousel__thumbs::-webkit-scrollbar { display: none; }
  .shoot-thumb {
    flex: 0 0 auto;
    width: 3.1rem;
    height: 3.1rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: var(--panel);
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
  }
  .shoot-thumb:hover { opacity: 0.85; }
  .shoot-thumb.is-on {
    opacity: 1;
    border-color: var(--gold);
    transform: scale(1.04);
  }
  .shoot-thumb img,
  .shoot-thumb-display {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
}

.post-contact-links {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 1rem; border-top: 1px solid var(--line);
}
.post-contact-links a {
  padding: 0.85rem 0;
  font-size: 0.92rem; font-weight: 500; color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s, padding-left 0.2s;
}
.post-contact-links a:last-child { border-bottom: 0; }
.post-contact-links a:hover { color: var(--gold); padding-left: 0.25rem; }

.post-head--center {
  justify-content: center;
  text-align: center;
}
.post-head--center .post-head__meta {
  align-items: center;
}
.post-caption--center {
  text-align: center;
}
.post-caption--center p {
  margin-inline: auto;
  max-width: 32ch;
}
.feed-post--contact {
  padding-top: clamp(0.65rem, 2vw, 0.85rem);
}
.post-card--contact,
.post-card--legal {
  width: 100%;
  max-width: min(100%, var(--photo-card-max, 640px));
  margin-inline: auto;
}
.post-card--legal {
  max-width: 100%;
}
.post-card--contact .post-head {
  padding: 0.65rem 0.85rem 0.55rem;
  border-bottom: 0;
}
.post-card--contact .post-caption {
  padding: 0.35rem 0.85rem 0.85rem;
}
.post-card--contact .post-caption--center p {
  max-width: 26ch;
  font-size: 0.86rem;
  line-height: 1.55;
}
.post-card--contact .post-caption strong {
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: min(100%, 20rem);
  margin: 0.85rem auto 0;
  text-align: left;
}
.contact-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.62rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-up);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.contact-btn:hover {
  border-color: rgba(198, 160, 67, 0.45);
  background: rgba(198, 160, 67, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
.contact-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.contact-btn__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--gold);
}
.contact-btn__icon svg {
  width: 1.1rem;
  height: 1.1rem;
}
.contact-btn__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}
.contact-btn__label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-btn__value {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.contact-btn--wa .contact-btn__icon {
  color: #6fcf97;
}
.contact-btn--wa:hover {
  border-color: rgba(111, 207, 151, 0.35);
  background: rgba(111, 207, 151, 0.08);
}
@media (min-width: 640px) {
  .post-card--contact .post-caption {
    padding: 0.45rem 1rem 1rem;
  }
  .contact-actions {
    gap: 0.5rem;
    margin-top: 1rem;
  }
}

/* ── Login ── */
.page-login .feed-stream {
  max-width: min(420px, 100%);
}
.post-card--login {
  border-radius: 18px;
}
.login-panel {
  padding-bottom: 1.15rem !important;
}
.login-hint {
  font-size: 0.84rem;
  margin: 0 0 1rem;
  color: var(--muted);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
  text-align: left;
}
.login-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.login-input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-hi);
  background: var(--panel-up);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}
.login-input:focus {
  outline: 2px solid rgba(198, 160, 67, 0.45);
  outline-offset: 1px;
  border-color: rgba(198, 160, 67, 0.35);
}
.login-input--totp {
  font-size: 1.35rem;
  letter-spacing: 0.35em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.login-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.login-btn {
  flex: 1 1 auto;
  min-width: 7rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(198, 160, 67, 0.35);
  border-radius: 10px;
  background: rgba(198, 160, 67, 0.12);
  color: var(--gold);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.login-btn:hover {
  background: rgba(198, 160, 67, 0.2);
  color: var(--text);
}
.login-btn--secondary {
  background: transparent;
  border-color: var(--line-hi);
  color: var(--muted);
}
.login-btn--secondary:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}
.login-msg {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.5;
  text-align: left;
}
.login-msg.hidden,
.hidden {
  display: none !important;
}
.login-msg--error {
  color: #f0b4b4;
  background: rgba(224, 112, 112, 0.12);
  border: 1px solid rgba(224, 112, 112, 0.25);
}
.login-msg--warn {
  color: #e8d4a8;
  background: rgba(198, 160, 67, 0.1);
  border: 1px solid rgba(198, 160, 67, 0.25);
}

.page-home #about-post .post-card,
.page-home .feed-posts .post-card,
.page-about .feed-posts .post-card,
.page-about .post-card--services,
.page-contact .post-card,
.page-legal .post-card,
.page-refs .post-card--shoot {
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

.feed-cluster__title {
  margin: 0 0 0.85rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.feed-cluster__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feed-cluster__grid .feed-post + .feed-post {
  border-top: 0;
}
.feed-cluster--more .feed-cluster__grid .feed-post:first-child {
  border-top: 0;
}
.feed-cluster--refs.feed-cluster--posts .feed-cluster__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.feed-cluster--refs.feed-cluster--posts .feed-cluster__grid .feed-post + .feed-post {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.feed-cluster--refs.feed-cluster--posts .post-card--shoot {
  border-radius: 18px;
}

.post-media--symbol {
  display: grid;
  place-items: center;
  aspect-ratio: 4/5;
  background:
    radial-gradient(circle at 50% 35%, rgba(198, 160, 67, 0.08), transparent 55%),
    linear-gradient(165deg, var(--panel-up), var(--panel));
}
.post-symbol {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  color: var(--gold);
  text-align: center;
}
.post-symbol svg {
  width: clamp(3.25rem, 16vw, 4.25rem);
  height: auto;
  opacity: 0.92;
}
.post-symbol__label {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}

.post-card--contact-teaser .post-caption {
  padding: 0.75rem 0.85rem 0.95rem;
}
.post-card--contact-teaser .post-caption p + p {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.post-media--contact-teaser {
  display: grid;
  place-items: center;
  aspect-ratio: 4/5;
  padding: 1rem 0.85rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(198, 160, 67, 0.08), transparent 55%),
    linear-gradient(165deg, var(--panel-up), var(--panel));
}
.contact-actions--teaser {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.contact-btn--teaser {
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0.35rem;
  text-align: center;
}
.contact-btn--teaser .contact-btn__icon {
  width: 2.5rem;
  height: 2.5rem;
}
.contact-btn--teaser .contact-btn__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.contact-btn--teaser .contact-btn__text {
  align-items: center;
}
.contact-btn--teaser .contact-btn__label {
  font-size: 0.52rem;
  letter-spacing: 0.08em;
}
.page-home .post-card--contact-teaser {
  max-width: min(100%, var(--photo-card-max, 420px));
}

@media (min-width: 1400px) {
  .page-home {
    --post-grid-cols: 4;
  }
}

@media (min-width: 1024px) {
  :root {
    --photo-max-h: min(62dvh, 560px);
    --photo-card-max: 420px;
  }
  .page-home .page-feed {
    background:
      linear-gradient(90deg, rgba(255,255,255,0.015), transparent 18%, transparent 82%, rgba(255,255,255,0.015));
  }
  .feed-stream {
    max-width: min(1180px, calc(100% - 2 * var(--gutter)));
    padding: 1.5rem var(--gutter) 2rem;
  }
  .feed-post {
    padding: 0 0 1.25rem;
  }
  .feed-post + .feed-post {
    border-top: 0;
  }
  .feed-posts .feed-post:first-child {
    padding-top: 0;
  }
  .page-home #about-post + .feed-posts {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
    gap: var(--post-gap);
  }
  .page-home .feed-stream,
  .page-refs .ref-chapter-feed,
  .page-about .feed-posts {
    --post-grid-item: calc((100% - (var(--post-grid-cols) - 1) * var(--post-gap)) / var(--post-grid-cols));
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--post-gap);
    align-items: start;
  }
  .page-refs .ref-chapter-feed,
  .page-about .feed-posts {
    --post-grid-cols: 3;
  }
  .page-home .feed-stream .feed-post,
  .page-home .foot-post,
  .page-refs .ref-chapter-feed > .feed-post,
  .page-about .feed-posts > .feed-post {
    flex: 0 1 var(--post-grid-item);
    max-width: var(--photo-card-max);
    min-width: 0;
  }
  .page-home .feed-posts {
    display: contents;
  }
  .page-home #about-post {
    padding-top: 0;
  }
  .page-home .foot {
    display: contents;
  }

  .page-home .feed-posts .feed-post + .feed-post {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .feed-posts {
    gap: var(--post-gap);
  }
  .feed-cluster__grid {
    display: grid;
    gap: 1.25rem;
    align-items: start;
  }
  .feed-cluster__grid .feed-post {
    padding: 0;
    border-top: 0 !important;
  }
  .feed-cluster--refs:not(.feed-cluster--posts) .feed-cluster__grid {
    grid-template-columns: repeat(var(--ref-count, 3), minmax(0, 1fr));
  }
  .feed-cluster--refs.feed-cluster--posts .feed-cluster__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: min(640px, 100%);
    margin-inline: auto;
  }
  .feed-cluster--refs.feed-cluster--posts .feed-cluster__grid .feed-post {
    padding: 0;
    border-top: 0 !important;
    margin-top: 0 !important;
  }
  .feed-cluster--refs.feed-cluster--posts .feed-cluster__grid .feed-post + .feed-post {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
  }
  .feed-cluster--more .feed-cluster__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feed-cluster--refs .post-card--ref,
  .feed-cluster--more .post-card {
    display: flex;
    flex-direction: column;
  }
  .feed-cluster--refs .post-caption,
  .post-card--link.post-card--ref .post-caption {
    flex: 0 0 auto;
  }
  .post-card--shoot .post-media,
  .post-card--shoot .shoot-carousel {
    flex: 0 0 auto;
  }
  .feed-cluster--more .post-media--symbol {
    aspect-ratio: 5/6;
  }
  .post-card {
    border-radius: 18px;
    display: flex;
    flex-direction: column;
  }
  .post-card:hover {
    border-color: rgba(255,255,255,0.14);
    box-shadow: 0 14px 44px rgba(0,0,0,0.38);
  }
  .post-head { padding: 0.9rem 1rem; }
  .post-avatar { width: 2.5rem; height: 2.5rem; }
  .post-user { font-size: 0.88rem; }
  .post-label { font-size: 0.6rem; }
  .post-event { font-size: 0.78rem; }
  .post-caption {
    padding: 1rem 1.05rem 1.15rem;
    font-size: 0.92rem;
    line-height: 1.68;
    flex: 1;
  }
  .post-caption strong { font-size: 1rem; margin-bottom: 0.45rem; }
  .post-link {
    margin-top: auto;
    padding-top: 0.85rem;
    font-size: 0.74rem;
  }

  .post-card--featured {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas:
      "head head"
      "media caption";
  }
  .post-card--featured .post-head { grid-area: head; }
  .post-card--featured .post-media { grid-area: media; align-self: start; }
  .post-card--featured .post-caption {
    grid-area: caption;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,0.04);
  }
  .post-card--featured .post-caption {
    padding: 1.4rem 1.55rem 1.55rem;
    font-size: 1rem;
  }
  .post-card--featured .post-caption p {
    max-width: 38ch;
  }
  .page-feed .feed-stream {
    max-width: min(1180px, calc(100% - 2 * var(--gutter)));
    padding: 1.5rem var(--gutter) 2rem;
  }
  .page-feed .foot .feed-stream {
    max-width: min(1180px, calc(100% - 2 * var(--gutter)));
  }
  .page-posts {
    gap: 1.25rem;
  }
  .page-posts .feed-post {
    padding: 0 !important;
    margin: 0 !important;
    border-top: 0 !important;
  }
  .page-refs .page-posts {
    gap: var(--post-gap);
  }
  .page-home #about-post .post-card,
  .page-home .feed-posts .post-card,
  .page-about .feed-posts .post-card,
  .page-about .post-card--services,
  .page-contact .post-card,
  .page-legal .post-card,
  .page-refs .post-card--shoot {
    width: 100%;
    max-width: min(100%, var(--photo-card-max));
    margin-inline: auto;
  }
  .page-legal .post-card,
  .page-legal .post-card--legal {
    max-width: 100%;
  }
  .page-about #about-post .post-caption--rich {
    font-size: 0.86rem;
    line-height: 1.58;
    padding: 0.75rem 0.85rem 0.95rem;
  }
  .page-about #about-post .post-caption--rich p {
    margin-bottom: 0.75rem;
  }
  .page-about .services-slide__hero {
    padding: 1rem 0.85rem 0.75rem;
    gap: 0.65rem;
  }
  .page-about .services-slide__icon {
    width: 3.5rem;
    height: 3.5rem;
  }
  .page-about .services-slide__icon svg {
    width: 2.5rem;
    height: 2.5rem;
  }
  .page-about .services-slide__title {
    font-size: 0.95rem;
  }
  .page-about .services-slide__text {
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .page-about .services-slide__cta {
    padding: 0.72rem 0.85rem;
    font-size: 0.68rem;
  }
  .page-refs .ref-chapter-feed .feed-post + .feed-post {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .page-refs .ref-chapter-feed + .ref-chapter-feed {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
  .page-home #about-post,
  .page-home .feed-posts .feed-post,
  .page-about .feed-posts .feed-post,
  .page-refs .ref-chapter-feed .feed-post,
  .page-contact .feed-post,
  .page-legal .feed-post {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    align-self: start;
    height: auto;
    min-width: 0;
    max-width: 100%;
  }
  .page-home #about-post .post-card--shoot,
  .page-home .feed-posts .post-card--shoot,
  .page-refs .post-card--shoot {
    width: 100%;
    max-width: min(100%, var(--photo-card-max));
    margin-inline: auto;
  }
  .page-home #about-post .post-card--shoot .shoot-carousel,
  .page-home .feed-posts .post-card--shoot .shoot-carousel,
  .page-refs .post-card--shoot .shoot-carousel {
    width: 100%;
  }
  .page-refs .post-card--shoot .shoot-carousel__stage,
  .page-home .feed-stream .shoot-carousel__stage {
    max-width: 100%;
    max-height: none;
  }
  .page-refs .post-card--shoot .shoot-carousel__track,
  .page-home .feed-posts .post-card--shoot .shoot-carousel__track {
    width: 100%;
    max-width: 100%;
  }
  .page-home #about-post .post-card--shoot .shoot-slide,
  .page-home .feed-posts .post-card--shoot .shoot-slide,
  .page-refs .post-card--shoot .shoot-slide {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  .page-home #about-post .post-card--shoot .post-head,
  .page-home .feed-posts .post-card--shoot .post-head,
  .page-refs .post-card--shoot .post-head {
    width: 100%;
  }
  .page-home #about-post .post-card--shoot .shoot-slide picture,
  .page-home .feed-posts .post-card--shoot .shoot-slide picture,
  .page-refs .post-card--shoot .shoot-slide picture,
  .page-home .feed-posts .shoot-slide picture,
  .page-refs .shoot-slide picture {
    display: block;
    line-height: 0;
    max-width: 100%;
  }
  .page-home #about-post .post-card--shoot .shoot-slide img,
  .page-home .feed-posts .post-card--shoot .shoot-slide img,
  .page-refs .post-card--shoot .shoot-slide img,
  .page-home .feed-posts .shoot-slide img,
  .page-refs .shoot-slide img,
  .page-home #about-post .post-card--shoot .shoot-slide .photo-protect-display,
  .page-home .feed-posts .post-card--shoot .shoot-slide .photo-protect-display,
  .page-refs .post-card--shoot .shoot-slide .photo-protect-display,
  .page-home .feed-posts .shoot-slide .photo-protect-display,
  .page-refs .shoot-slide .photo-protect-display {
    display: block;
    max-width: 100%;
  }
  .post-gallery { padding: 0.85rem 1rem 1rem; }
  .post-gallery .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1400px) {
  :root {
    --photo-max-h: min(64dvh, 600px);
    --photo-card-max: 460px;
  }
  .feed-stream {
    max-width: min(1360px, calc(100% - 3rem));
    padding-inline: 2rem;
  }
  .page-feed .feed-stream,
  .page-feed .foot .feed-stream {
    max-width: min(1360px, calc(100% - 3rem));
  }
  .post-gallery .grid { grid-template-columns: repeat(4, 1fr); }
  .feed-cluster__grid {
    gap: 1.35rem;
  }
  .post-card--featured {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  }
}

.page-home.is-ready #about-post,
.page-home.is-ready .feed-posts .feed-post {
  animation: post-in 0.5s var(--ease) backwards;
}
.page-home.is-ready .feed-posts .feed-post:nth-child(1) { animation-delay: 0.04s; }
.page-home.is-ready .feed-posts .feed-post:nth-child(2) { animation-delay: 0.08s; }
.page-home.is-ready .feed-posts .feed-post:nth-child(3) { animation-delay: 0.12s; }
.page-home.is-ready .feed-posts .feed-post:nth-child(4) { animation-delay: 0.16s; }
.page-home.is-ready .feed-posts .feed-post:nth-child(5) { animation-delay: 0.2s; }
@keyframes post-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ── Flash & snap gallery ── */
.flash-burst {
  position: fixed; inset: 0; z-index: 9000; pointer-events: none;
  background: #fff; opacity: 0;
}
.flash-burst.is-on {
  animation: flash-pop 0.42s ease-out;
}
@keyframes flash-pop {
  0% { opacity: var(--flash-power, 0.75); }
  100% { opacity: 0; }
}

.tile--pop img,
.tile--pop .photo-protect-display {
  opacity: 0; transform: scale(0.88) rotate(-1deg);
}
.tile--pop.is-live img,
.tile--pop.is-live .photo-protect-display {
  animation: tile-pop 0.5s cubic-bezier(0.34, 1.45, 0.64, 1) var(--pop-delay, 0s) forwards;
}
@keyframes tile-pop {
  to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  .grid--snap {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 0.75rem; padding-bottom: 0.35rem; margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .grid--snap::-webkit-scrollbar { display: none; }
  .grid--snap .tile {
    flex: 0 0 min(78vw, 280px); scroll-snap-align: center;
    border-radius: 14px; aspect-ratio: 3/4;
  }
  .grid--snap .tile.is-wide {
    flex-basis: min(88vw, 320px); aspect-ratio: 4/5; grid-column: auto;
  }
}

@media (min-width: 768px) {
  .grid--snap { display: grid; }
}

.tile::before {
  content: "";
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 55%);
  transition: opacity 0.3s;
}
.tile:hover::before { opacity: 1; }

/* ── Subpages ── */
.page-body {
  padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem);
}
.page-body--refs { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

#leistungen {
  scroll-margin-top: calc(var(--header) + 0.75rem);
}
.work-row {
  display: grid; gap: 0.5rem 2rem;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) { .work-row { grid-template-columns: 6.5rem 1fr; } }
.work-tag { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.work-row h3 { margin: 0 0 0.35rem; font-size: 1.1rem; font-weight: 600; }
.work-row p { margin: 0; color: var(--muted); max-width: 40rem; font-size: 0.95rem; }

.steps {
  margin-top: 3rem; display: grid; gap: 0;
  border: 1px solid var(--line); background: var(--panel);
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  padding: 1.5rem 1.4rem; border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .step { border-bottom: none; border-right: 1px solid var(--line); }
  .step:last-child { border-right: none; }
}
.step:last-child { border-bottom: none; }
.step-num { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; color: var(--gold); display: block; margin-bottom: 0.4rem; }
.step h3 { margin: 0 0 0.35rem; font-size: 0.92rem; font-weight: 600; }
.step p { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* Über mich */
.about-grid {
  display: grid; gap: clamp(1.75rem, 3vw, 2.5rem);
}
@media (min-width: 640px) {
  .layout-main.about-grid { grid-template-columns: minmax(200px, 0.9fr) 1fr; align-items: start; }
}
.about-photo { border: 1px solid var(--line); overflow: hidden; background: var(--panel); }
.about-photo img { width: 100%; height: auto; display: block; }
.about-text p { margin: 0 0 1rem; color: var(--muted); }
.about-text p strong { color: var(--text); }

/* Kontakt */
.contact-list { max-width: 26rem; }
.contact-list a {
  display: block; font-size: clamp(1.15rem, 2.5vw, 1.4rem); font-weight: 500;
  color: var(--text); padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.contact-list a:first-child { border-top: 1px solid var(--line); }
.contact-list a:hover { color: var(--gold); }

/* Referenzen */
.ref-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ref-nav--stack { flex-direction: column; align-items: stretch; gap: 0.35rem; }
.ref-nav a {
  display: block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem; border: 1px solid var(--line); color: var(--muted);
  text-align: left;
}
.ref-nav--stack a { text-transform: uppercase; }
.ref-nav a:hover { color: var(--gold); border-color: var(--line-hi); }

.ref-chapter { padding-top: 0; }
.ref-chapter + .ref-chapter { margin-top: 0; padding-top: 0; border-top: 0; }
.ref-chapter-head { margin-bottom: 1.5rem; max-width: 28rem; }
.ref-chapter-index { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.35rem; }
.ref-chapter-note { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 34rem; }
.ref-sub { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 1.25rem 0 0.65rem; }
.ref-gallery--gap { margin-top: 0.6rem; }

/* Legal */
.legal { max-width: none; }
.post-card--legal .post-caption--rich.legal h1 { font-size: 1.75rem; font-weight: 600; margin: 0 0 1.25rem; color: var(--text); }
.post-card--legal .post-caption--rich.legal h2 { font-size: 0.92rem; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text); }
.post-card--legal .post-caption--rich.legal p { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.75rem; line-height: 1.65; }
.post-card--legal .post-caption--rich.legal .block { margin-bottom: 0.5rem; }
.feed-post--legal {
  padding-top: clamp(0.65rem, 2vw, 0.85rem);
}

/* Lightbox */
.lightbox[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  display: flex; align-items: center; justify-content: center;
  overflow: auto;
  padding:
    env(safe-area-inset-top, 0)
    env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0)
    env(safe-area-inset-left, 0);
}
.lightbox-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.94); opacity: 0; }
.lightbox.is-open .lightbox-bg { animation: lb-fade 0.4s ease forwards; }
@keyframes lb-fade { to { opacity: 1; } }
.lightbox-box {
  position: relative; z-index: 1;
  width: min(94vw, 1200px);
  max-width: 100%;
  max-height: min(92vh, 92dvh);
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
}
.lightbox-tools { display: flex; justify-content: flex-end; gap: 0.4rem; margin-bottom: 0.4rem; flex: 0 0 auto; }
.lightbox-btn {
  width: 2.2rem; height: 2.2rem; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line-hi);
  color: var(--text); cursor: pointer; font-size: 1.1rem;
}
.lightbox-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex; align-items: center; justify-content: center;
  max-height: min(calc(92vh - 4.5rem), calc(92dvh - 4.5rem));
}
.lightbox.is-open .lightbox-stage .lightbox-canvas.is-swap {
  animation: lb-snap 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
}
@keyframes lb-snap {
  from { opacity: 0.6; transform: scale(0.94); }
  to { opacity: 1; transform: none; }
}
.lightbox-canvas {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(calc(92vh - 4.5rem), calc(92dvh - 4.5rem));
}
.lightbox-canvas.is-landscape,
.lightbox-canvas.is-portrait {
  object-fit: contain;
}
.lightbox-go {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 12;
  width: 2.4rem; height: 2.4rem; background: rgba(255,255,255,0.08);
  border: 1px solid var(--line-hi); color: var(--text); cursor: pointer; font-size: 1.3rem;
}
.lightbox-prev { left: 0.4rem; }
.lightbox-next { right: 0.4rem; }
@media (min-width: 900px) { .lightbox-prev { left: -2.75rem; } .lightbox-next { right: -2.75rem; } }
@media (min-width: 1024px) {
  .lightbox-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: min(96vw, 1680px);
    height: min(97vh, 97dvh);
    max-height: min(97vh, 97dvh);
  }
  .lightbox-tools {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    margin-bottom: 0;
  }
  .lightbox-stage {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0;
    max-height: none;
  }
  .lightbox-canvas {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }
  .lightbox-count {
    flex: 0 0 auto;
    margin-top: 0;
  }
}
@media (min-width: 1400px) {
  .lightbox-box {
    width: min(97vw, 1920px);
  }
}

/* ── Ultrawide (21:9+, e.g. 2560×1080, 3440×1440) ── */
@media (min-aspect-ratio: 21/9) and (min-width: 1920px) {
  :root {
    --max: 1280px;
    --sidebar: 17rem;
    --gutter: clamp(2rem, 3vw, 3rem);
    --photo-max-h: min(66dvh, 640px);
    --photo-card-max: 480px;
  }
  .feed-stream,
  .page-feed .feed-stream {
    max-width: min(1680px, calc(100% - 2 * var(--gutter)));
    padding-inline: clamp(1.5rem, 2.5vw, 2.5rem);
  }
  .page-feed .foot .feed-stream {
    max-width: min(1680px, calc(100% - 2 * var(--gutter)));
  }
  .feed-cluster--refs.feed-cluster--posts .feed-cluster__grid {
    max-width: min(840px, 100%);
  }
  .feed-cluster--more .feed-cluster__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .post-gallery .grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .lightbox-box {
    width: min(94vw, 2400px);
    height: min(97vh, 97dvh);
    max-height: min(97vh, 97dvh);
  }
  .lightbox-stage {
    max-height: none;
  }
  .lightbox-canvas {
    max-width: 100%;
    max-height: 100%;
  }
}

@media (min-width: 2400px) {
  :root {
    --max: 1360px;
    --photo-max-h: min(68dvh, 680px);
    --photo-card-max: 520px;
  }
  .feed-stream,
  .page-feed .feed-stream {
    max-width: min(1800px, calc(100% - 2 * var(--gutter)));
  }
  .page-feed .foot .feed-stream {
    max-width: min(1800px, calc(100% - 2 * var(--gutter)));
  }
  .feed-cluster--refs.feed-cluster--posts .feed-cluster__grid {
    max-width: min(880px, 100%);
  }
  .lightbox-box {
    width: min(96vw, 2560px);
    height: min(97vh, 97dvh);
    max-height: min(97vh, 97dvh);
  }
  .lightbox-canvas {
    max-width: 100%;
    max-height: 100%;
  }
}

@media (min-aspect-ratio: 21/9) and (min-width: 2560px) {
  :root {
    --photo-card-max: 500px;
    --photo-max-h: min(70dvh, 700px);
  }
  .feed-stream,
  .page-feed .feed-stream,
  .page-feed .foot .feed-stream {
    max-width: min(2100px, calc(100% - 2 * var(--gutter)));
  }
  .page-home,
  .page-refs .ref-chapter-feed,
  .page-about .feed-posts {
    --post-grid-cols: 4;
  }
  .lightbox-box {
    width: min(93vw, 2800px);
  }
}

/* Super-ultrawide (32:9, e.g. 3840×1080, 5120×1440) */
@media (min-width: 3440px),
       (min-aspect-ratio: 32/9) and (min-width: 2560px) {
  :root {
    --max: 1680px;
    --feed: 680px;
    --sidebar: 19rem;
    --gutter: clamp(2.5rem, 3.5vw, 4.5rem);
    --photo-max-h: min(76dvh, 720px);
    --photo-card-max: 560px;
    --post-gap: clamp(1.75rem, 2vw, 3rem);
  }
  .feed-stream,
  .page-feed .feed-stream,
  .page-feed .foot .feed-stream {
    max-width: min(2800px, calc(100% - 2 * var(--gutter)));
    padding-inline: clamp(2rem, 3vw, 3.5rem);
  }
  .page-home,
  .page-refs .ref-chapter-feed,
  .page-about .feed-posts {
    --post-grid-cols: 4;
  }
  .feed-cluster--refs.feed-cluster--posts .feed-cluster__grid {
    max-width: min(960px, 100%);
  }
  .feed-cluster--more .feed-cluster__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .post-gallery .grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .post-card--featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .post-card--services,
  .page-about .post-card--services {
    max-width: min(100%, calc(var(--photo-card-max) * 2 + var(--post-gap)));
  }
  .page-contact .post-card,
  .page-legal .post-card,
  .page-contact .post-card--contact,
  .page-legal .post-card--legal {
    max-width: min(100%, var(--max));
  }
  .page-about #about-post .post-caption--rich {
    max-width: 42rem;
  }
  .lightbox-box {
    width: min(90vw, 3200px);
    height: min(94vh, 94dvh);
    max-height: min(94vh, 94dvh);
  }
  .lightbox-stage {
    max-height: none;
  }
  .lightbox-canvas {
    max-width: 100%;
    max-height: 100%;
  }
}

.page-home.is-ready .feed-posts .feed-post:nth-child(6) { animation-delay: 0.24s; }

.lightbox-go:disabled { opacity: 0; pointer-events: none; }
.lightbox-count {
  position: fixed;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 5003;
  margin: 0;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(11, 11, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.88);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
body.lightbox-open { overflow: hidden; }

@media (min-width: 640px) and (max-width: 1023px) {
  .page-home .feed-stream {
    --post-grid-cols: 2;
    --post-grid-item: calc((100% - var(--post-gap)) / 2);
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--post-gap);
    align-items: start;
  }
  .page-home .feed-posts {
    display: contents;
  }
  .page-home .feed-stream .feed-post {
    flex: 0 1 var(--post-grid-item);
    max-width: min(100%, var(--photo-card-max, 420px));
    min-width: 0;
  }
  .page-home #about-post + .feed-posts {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 1023px) {
  :root {
    --gutter: clamp(0.55rem, 2.5vw, 0.85rem);
    --feed: 100%;
  }
  .page-feed .feed-stream,
  .page-feed .foot .feed-stream {
    max-width: 100%;
    padding-inline: var(--gutter);
  }
  .feed-stream,
  .page-posts,
  .ref-chapter-feed,
  .feed-post,
  .feed-posts,
  .post-card,
  .post-card--shoot {
    min-width: 0;
    max-width: 100%;
  }
  .page-home #about-post .post-card,
  .page-home .feed-posts .post-card,
  .page-about .feed-posts .post-card,
  .page-about .post-card--services,
  .page-contact .post-card,
  .page-legal .post-card,
  .page-refs .post-card--shoot {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }
  .page-home #about-post .post-card--shoot,
  .page-home .feed-posts .post-card--shoot,
  .page-refs .post-card--shoot {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
  }
  .post-card--shoot .shoot-carousel,
  .post-card--shoot .shoot-carousel__stage,
  .post-card--shoot .shoot-carousel__track {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin-inline: 0 !important;
  }
  .post-card--shoot .shoot-carousel__stage {
    overflow: hidden;
    width: 100% !important;
    background: var(--panel);
  }
  .post-card--shoot .shoot-carousel__track {
    gap: 0;
    width: 100% !important;
  }
  .post-card--shoot .shoot-slide {
    display: block;
    width: 100% !important;
    flex: 0 0 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box;
    background: var(--panel);
    overflow: hidden;
  }
  .post-card--shoot .shoot-slide picture {
    display: block;
    line-height: 0;
    width: 100%;
    height: auto;
    max-width: none;
    padding: 0;
    margin: 0;
  }
  .page-home #about-post .post-card--shoot .shoot-slide img,
  .page-home .feed-posts .post-card--shoot .shoot-slide img,
  .page-refs .post-card--shoot .shoot-slide img,
  .page-home #about-post .post-card--shoot .shoot-slide .photo-protect-display,
  .page-home .feed-posts .post-card--shoot .shoot-slide .photo-protect-display,
  .page-refs .post-card--shoot .shoot-slide .photo-protect-display {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    max-height: min(64dvh, 540px);
    object-fit: contain !important;
    object-position: center center;
    background-size: contain;
    transform: none;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
  }
  .post-media {
    background: var(--panel);
    padding-block: 0;
    box-sizing: border-box;
  }
  .post-media img,
  .post-media .photo-protect-display {
    width: 100%;
    height: auto;
    max-height: min(64dvh, 540px);
    object-fit: unset;
    object-position: center top;
    transform: none;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
  }
  .post-media .photo-protect-display {
    background-size: contain;
  }
  .preview-chrome {
    max-width: 100vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile:hover img,
  .tile:hover .photo-protect-display { transform: none; }
  .tile--pop img,
  .tile--pop .photo-protect-display { opacity: 1; transform: none; animation: none !important; }
  .feed-posts .feed-post { animation: none !important; }
  .feed-cluster .feed-post { animation: none !important; }
  .post-card:hover .post-media img { transform: none; }
  .lightbox.is-open .lightbox-bg { animation: none; opacity: 1; }
  .flash-burst { display: none; }
}

/* ── Admin preview / edit page ── */
.page-admin-preview {
  padding-top: var(--preview-chrome-h, 3.75rem);
  background: var(--bg);
}
.preview-chrome {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.55rem clamp(0.75rem, 2vw, 1.25rem);
  background: rgba(11, 11, 12, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.preview-chrome__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-right: 0.25rem;
}
.preview-chrome__brand img {
  width: 1.75rem;
  height: 1.75rem;
  object-fit: contain;
}
.preview-chrome__tabs,
.preview-chrome__modes {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.preview-chrome__tab,
.preview-chrome__mode {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.preview-chrome__tab.is-active,
.preview-chrome__mode.is-active {
  color: var(--text);
  border-color: rgba(198, 160, 67, 0.45);
  background: rgba(198, 160, 67, 0.1);
}
.preview-chrome__edit-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.preview-chrome__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-left: auto;
  align-items: center;
}
.preview-chrome__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--muted);
}
.preview-chrome__link:hover { color: var(--text); }
.preview-chrome__msg {
  position: fixed;
  top: calc(var(--preview-chrome-h, 3.75rem) + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 199;
  margin: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
.preview-chrome__msg.is-ok,
.preview-chrome__msg.is-error {
  opacity: 1;
  background: rgba(11, 11, 12, 0.92);
  border: 1px solid var(--line);
}
.preview-chrome__msg.is-ok { color: var(--ok, #6ec4a8); }
.preview-chrome__msg.is-error { color: #f0a8a8; }
.preview-shell.is-dirty .preview-chrome__tab,
.preview-shell.is-dirty .preview-chrome__mode:not(.is-active) {
  opacity: 0.85;
}
.preview-page.hidden { display: none !important; }
.page-admin-preview .preview-page.active-preview-layout {
  min-height: calc(100vh - var(--preview-chrome-h, 3.75rem));
}
@media (min-width: 1024px) {
  .page-admin-preview .preview-page {
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    align-items: start;
  }
  .page-admin-preview .preview-page.hidden {
    display: none !important;
  }
  .page-admin-preview .preview-page .story-nav {
    position: sticky;
    top: var(--preview-chrome-h, 3.75rem);
    align-self: start;
    max-height: calc(100vh - var(--preview-chrome-h, 3.75rem));
    height: auto;
    min-height: 0;
    border-bottom: none;
    border-right: none;
    display: flex;
    flex-direction: column;
    padding: 1.35rem 0.85rem 1.5rem;
    overflow-y: auto;
  }
  .page-admin-preview .preview-page .story-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.55rem 1.15rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
  }
  .page-admin-preview .preview-page .story-bar {
    flex-direction: column;
    align-items: stretch;
    overflow: visible;
    padding: 0;
    max-width: none;
  }
  .page-admin-preview .preview-page .page-feed {
    min-width: 0;
    border-left: 1px solid var(--line);
  }
}
.preview-draft-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(11, 11, 12, 0.82);
  border: 1px solid rgba(198, 160, 67, 0.4);
  pointer-events: none;
}
.page-admin-preview .post-card--shoot,
.page-admin-preview .post-card--link.post-card--shoot {
  position: relative;
}
.feed-post.is-preview-editable {
  position: relative;
}
.preview-edit-hit {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: none;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.85rem;
  border: 0;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.72), transparent 45%);
  color: var(--gold);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.is-edit-mode .feed-post.is-preview-editable:hover .preview-edit-hit,
.is-edit-mode .feed-post.is-preview-editable:focus-within .preview-edit-hit {
  display: flex;
}
.feed-post.is-preview-draft .post-card {
  box-shadow: inset 0 0 0 1px rgba(198, 160, 67, 0.35);
}
.preview-drawer {
  position: fixed;
  top: var(--preview-chrome-h, 3.75rem);
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(100%, 22rem);
  padding: 1rem 1.1rem 1.25rem;
  background: var(--panel);
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
  overflow-y: auto;
}
.preview-drawer.hidden { display: none !important; }
.preview-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.preview-drawer__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.preview-drawer__form label {
  display: block;
  margin: 0.85rem 0 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.preview-drawer__form input,
.preview-drawer__form select {
  width: 100%;
}
.preview-drawer__check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
}
.preview-drawer__check input { width: auto; margin-top: 0.15rem; }
.preview-drawer__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.preview-drawer__form textarea {
  width: 100%;
  min-height: 6rem;
  resize: vertical;
}
.content-logo-preview {
  display: block;
  margin: 0.35rem 0 0.5rem;
  max-width: 8rem;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.story-brand.is-site-content-editable,
.post-head.is-site-content-editable,
.post-caption.is-site-content-editable,
.foot-post.is-site-content-editable,
.foot-post__panorama.is-site-content-editable {
  position: relative;
}
.is-edit-mode .story-brand.is-site-content-editable:hover .preview-site-edit-hit,
.is-edit-mode .story-brand.is-site-content-editable:focus-within .preview-site-edit-hit,
.is-edit-mode .post-head.is-site-content-editable:hover .preview-site-edit-hit,
.is-edit-mode .post-head.is-site-content-editable:focus-within .preview-site-edit-hit,
.is-edit-mode .post-caption.is-site-content-editable:hover .preview-site-edit-hit,
.is-edit-mode .post-caption.is-site-content-editable:focus-within .preview-site-edit-hit,
.is-edit-mode .foot-post.is-site-content-editable:hover .preview-site-edit-hit,
.is-edit-mode .foot-post.is-site-content-editable:focus-within .preview-site-edit-hit,
.is-edit-mode .foot-post__panorama.is-site-content-editable:hover .preview-site-edit-hit,
.is-edit-mode .foot-post__panorama.is-site-content-editable:focus-within .preview-site-edit-hit {
  display: flex;
}
@media (min-width: 900px) {
  :root { --preview-chrome-h: 3.35rem; }
  .preview-shell.is-edit-mode #preview-page-refs .feed-stream,
  .preview-shell.is-edit-mode #preview-page-home .feed-stream {
    margin-right: min(22rem, 38vw);
    transition: margin-right 0.25s var(--ease);
  }
}

/* Admin preview — ultrawide (21:9 … 32:9) */
@media (min-width: 1600px) {
  .page-admin-preview .preview-page .page-feed .feed-stream,
  .page-admin-preview .preview-page .page-feed .foot .feed-stream {
    max-width: min(1320px, calc(100% - 2rem));
  }
  .page-admin-preview .preview-page--home .feed-stream,
  .page-admin-preview .preview-page--home .foot .feed-stream {
    max-width: min(calc(100vw - var(--sidebar) - 2rem), 1800px);
  }
  .preview-drawer {
    width: min(100%, 24rem);
  }
}

@media (min-width: 1920px) {
  .preview-chrome {
    flex-wrap: nowrap;
    gap: 0.75rem 1.25rem;
    padding-inline: clamp(1.25rem, 2.5vw, 2rem);
  }
  .page-admin-preview .preview-page .page-feed .feed-stream,
  .page-admin-preview .preview-page .page-feed .foot .feed-stream {
    max-width: min(1520px, calc(100vw - var(--sidebar) - 2.5rem));
  }
  .page-admin-preview .preview-page--home .feed-stream,
  .page-admin-preview .preview-page--home .foot .feed-stream {
    max-width: min(calc(100vw - var(--sidebar) - 2.5rem), 2000px);
  }
  :root { --sidebar: 18rem; }
  .preview-shell.is-edit-mode #preview-page-refs .feed-stream,
  .preview-shell.is-edit-mode #preview-page-home .feed-stream {
    margin-right: min(24rem, 34vw);
  }
}

@media (min-aspect-ratio: 21/9) and (min-width: 1920px) {
  .page-admin-preview .preview-page .page-feed .feed-stream,
  .page-admin-preview .preview-page .page-feed .foot .feed-stream {
    max-width: min(1680px, calc(100vw - var(--sidebar) - 3rem));
  }
  .page-admin-preview .preview-page--home .feed-stream,
  .page-admin-preview .preview-page--home .foot .feed-stream {
    max-width: min(calc(100vw - var(--sidebar) - 3rem), 2200px);
  }
}

@media (min-width: 2560px) {
  .page-admin-preview .preview-page .page-feed .feed-stream,
  .page-admin-preview .preview-page .page-feed .foot .feed-stream {
    max-width: min(1800px, calc(100vw - var(--sidebar) - 4rem));
  }
  .page-admin-preview .preview-page--home .feed-stream,
  .page-admin-preview .preview-page--home .foot .feed-stream {
    max-width: min(calc(100vw - var(--sidebar) - 4rem), 2400px);
  }
  .preview-drawer {
    width: min(100%, 28rem);
  }
  :root { --sidebar: 19rem; }
  .preview-shell.is-edit-mode #preview-page-refs .feed-stream,
  .preview-shell.is-edit-mode #preview-page-home .feed-stream {
    margin-right: min(28rem, 30vw);
  }
}

@media (min-width: 3440px),
       (min-aspect-ratio: 32/9) and (min-width: 2560px) {
  .page-admin-preview .preview-page .page-feed .feed-stream,
  .page-admin-preview .preview-page .page-feed .foot .feed-stream {
    max-width: min(2200px, calc(100vw - var(--sidebar) - 5rem));
  }
  .page-admin-preview .preview-page--home .feed-stream,
  .page-admin-preview .preview-page--home .foot .feed-stream {
    max-width: min(calc(100vw - var(--sidebar) - 5rem), 2800px);
  }
  .preview-drawer {
    width: min(100%, 32rem);
  }
  :root { --sidebar: 20rem; }
  .preview-shell.is-edit-mode #preview-page-refs .feed-stream,
  .preview-shell.is-edit-mode #preview-page-home .feed-stream {
    margin-right: min(32rem, 28vw);
  }
}
