/* TÖK Camp / photo field note
   A self-contained gallery inside the Falcopolis Background collection. */

.page-tok-camp{
  --tok-night: #171713;
  --tok-night-soft: #23231d;
  --tok-panel: #d4aa3f;
  --tok-panel-ink: #241b08;
  --tok-text: #f2ede2;
  --tok-muted: rgba(242, 237, 226, .64);
  --tok-border: rgba(242, 237, 226, .18);
  --tok-header-h: 62px;

  margin: 0;
  color: var(--tok-text);
  background: var(--tok-night);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.tok-skip-link{
  position: fixed;
  top: 10px;
  left: -9999px;
  z-index: 500;
  padding: 10px 14px;
  color: var(--tok-night);
  background: var(--tok-text);
}

.tok-skip-link:focus{ left: 10px; }

/* Shared header, treated like the other Background detail pages. */
.page-tok-camp .site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--tok-header-h);
  color: var(--tok-text);
  background: linear-gradient(90deg, var(--tok-panel) 0 320px, rgba(23, 23, 19, .94) 320px 100%);
  border-bottom: 1px solid var(--tok-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.page-tok-camp .site-header__inner{
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 10px 16px;
}

.page-tok-camp .site-header__brand{
  display: inline-flex;
  align-items: center;
  color: var(--tok-panel-ink);
  text-decoration: none;
}

.page-tok-camp .site-header__brandmark{
  display: block;
  width: 154px;
  height: 34px;
  background: currentColor;
  -webkit-mask: url("/assets/shared/icons/falcopolis-H-600.svg") center / contain no-repeat;
  mask: url("/assets/shared/icons/falcopolis-H-600.svg") center / contain no-repeat;
}

.page-tok-camp .site-header__brandtext{ display: none; }

.page-tok-camp .site-header__nav{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.page-tok-camp .site-header__link,
.page-tok-camp .site-header__back{
  color: var(--tok-muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  border-radius: 999px;
}

.page-tok-camp .site-header__link{ padding: 8px 10px; }

.page-tok-camp .site-header__link:hover,
.page-tok-camp .site-header__link.is-current,
.page-tok-camp .site-header__link[aria-current="page"]{
  color: var(--tok-text);
  background: rgba(242, 237, 226, .1);
}

.page-tok-camp .site-header__right{
  display: flex;
  justify-content: flex-end;
}

.page-tok-camp .site-header__back{
  padding: 9px 12px;
  border: 1px solid var(--tok-border);
}

.page-tok-camp .site-header__link:focus-visible,
.page-tok-camp .site-header__back:focus-visible,
.tok-nav__parent:focus-visible,
.tok-jump:focus-visible,
.tok-photo__open:focus-visible,
.tok-photo figcaption a:focus-visible,
.tok-lightbox button:focus-visible{
  outline: 2px solid var(--tok-text);
  outline-offset: 3px;
}

.tok-layout{
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: calc(100vh - var(--tok-header-h));
}

.tok-nav{
  min-height: calc(100vh - var(--tok-header-h));
  color: var(--tok-panel-ink);
  background: var(--tok-panel);
  border-right: 1px solid rgba(36, 27, 8, .2);
}

.tok-nav__inner{
  position: sticky;
  top: var(--tok-header-h);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  height: calc(100vh - var(--tok-header-h));
  padding: 28px 24px 18px;
}

.tok-nav__parent{
  display: inline-block;
  color: currentColor;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
}

.tok-nav__title{
  margin: 12px 0 16px;
  font-size: clamp(48px, 4.5vw, 68px);
  line-height: .82;
  font-weight: 700;
  letter-spacing: -.065em;
}

.tok-nav__subtitle{
  max-width: 27ch;
  margin: 0;
  color: rgba(36, 27, 8, .72);
  font-size: 12.5px;
  line-height: 1.45;
}

.tok-nav__facts{
  align-self: start;
  display: grid;
  border-top: 1px solid rgba(36, 27, 8, .25);
}

.tok-nav__facts div{
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(36, 27, 8, .25);
}

.tok-nav__facts span{
  padding-top: 2px;
  color: rgba(36, 27, 8, .5);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tok-nav__facts strong{
  font-size: 13px;
  line-height: 1.3;
}

.tok-nav__note{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(36, 27, 8, .22);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tok-main{
  min-width: 0;
  background: var(--tok-night);
}

.tok-hero{
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--tok-border);
}

.tok-hero__photo{
  position: relative;
  order: 1;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #272720;
}

.tok-hero__photo picture,
.tok-hero__photo img{
  display: block;
  width: 100%;
}

/* Preserve the photographs' intrinsic panorama proportions. */
.tok-hero__photo picture{
  height: auto;
}

.tok-hero__photo img{
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: contrast(1.04);
}

.tok-hero__photo figcaption{
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 10px;
  color: var(--tok-text);
  background: rgba(23, 23, 19, .82);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.tok-hero__copy{
  order: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 18px 48px;
  padding: clamp(38px, 5vw, 72px) clamp(24px, 5vw, 76px);
  background:
    radial-gradient(circle at 82% 30%, rgba(212, 170, 63, .07), transparent 30%),
    var(--tok-night);
}

.tok-eyebrow{
  grid-column: 1;
  margin: 0;
  color: var(--tok-panel);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.tok-hero h2{
  grid-column: 1;
  margin: 0;
  max-width: 12ch;
  font-size: clamp(42px, 6vw, 86px);
  line-height: .92;
  letter-spacing: -.055em;
  font-weight: 650;
}

.tok-lead{
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 36ch;
  margin: 0;
  color: var(--tok-muted);
  font-size: 15px;
  line-height: 1.6;
}

.tok-jump{
  grid-column: 2;
  display: inline-flex;
  justify-content: space-between;
  gap: 20px;
  width: min(100%, 280px);
  padding: 12px 0;
  color: var(--tok-text);
  border-top: 1px solid var(--tok-border);
  border-bottom: 1px solid var(--tok-border);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tok-gallery{
  padding: clamp(56px, 8vw, 112px) clamp(24px, 5vw, 76px);
  background: var(--tok-night-soft);
}

.tok-gallery__header{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 400px);
  gap: 42px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--tok-border);
}

.tok-gallery__header .tok-eyebrow{
  margin-bottom: 12px;
}

.tok-gallery__header h2{
  margin: 0;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 600;
}

.tok-gallery__header > p{
  margin: 0;
  color: var(--tok-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tok-gallery__grid{
  display: grid;
  gap: clamp(46px, 7vw, 88px);
  padding-top: clamp(30px, 5vw, 64px);
}

.tok-photo{
  margin: 0;
}

.tok-photo__open{
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: var(--tok-text);
  background: #2b2b24;
  border: 0;
  cursor: zoom-in;
}

.tok-photo__open picture,
.tok-photo__open img{
  display: block;
  width: 100%;
}

.tok-photo__open picture{
  height: auto;
}

.tok-photo__open img{
  height: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1), filter 220ms ease;
}

.tok-photo__open:hover img{
  transform: scale(1.012);
  filter: contrast(1.06);
}

.tok-photo__zoom{
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  color: var(--tok-text);
  background: rgba(23, 23, 19, .78);
  font-size: 10px;
  letter-spacing: .11em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.tok-photo figcaption{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-top: 13px;
  color: var(--tok-muted);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.tok-photo figcaption strong{
  margin-right: 18px;
  color: var(--tok-panel);
}

.tok-photo figcaption a{
  color: var(--tok-text);
  text-underline-offset: 3px;
}

.tok-story-end{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(24px, 5vw, 76px) 66px;
  color: var(--tok-muted);
  background: var(--tok-night-soft);
  border-top: 1px solid var(--tok-border);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tok-story-end a{
  color: var(--tok-text);
  text-underline-offset: 4px;
}

.tok-lightbox{
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  color: var(--tok-text);
  background: #0b0b09;
  border: 0;
}

.tok-lightbox::backdrop{ background: rgba(0,0,0,.94); }

.tok-lightbox[open]{
  display: grid;
  grid-template-rows: auto 1fr;
}

.tok-lightbox__bar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.tok-lightbox__bar p{
  margin: 0;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.tok-lightbox__close,
.tok-lightbox__arrow{
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer;
}

.tok-lightbox__close{
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tok-lightbox__stage{
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 12px;
  min-height: 0;
  padding: 18px;
}

.tok-lightbox__stage img{
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 100px);
  margin: auto;
  object-fit: contain;
}

.tok-lightbox__arrow{
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 20px;
}

.tok-lightbox__close:hover,
.tok-lightbox__arrow:hover{
  color: #111;
  background: #fff;
}

body:has(.tok-lightbox[open]){ overflow: hidden; }

@media (max-width: 980px){
  .page-tok-camp .site-header{
    height: auto;
    min-height: var(--tok-header-h);
    background: rgba(23, 23, 19, .96);
  }

  .page-tok-camp .site-header__inner{
    min-height: var(--tok-header-h);
    grid-template-columns: auto 1fr auto;
  }

  .page-tok-camp .site-header__brandmark{
    width: 48px;
    height: 30px;
    color: var(--tok-panel);
  }

  .page-tok-camp .site-header__nav{ display: none; }

  .tok-layout{ grid-template-columns: 1fr; }

  .tok-nav{
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(36, 27, 8, .2);
  }

  .tok-nav__inner{
    position: relative;
    top: auto;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    grid-template-rows: auto auto;
    height: auto;
    min-height: 0;
    padding: 30px 20px 20px;
  }

  .tok-nav__facts{ align-self: end; }

  .tok-nav__note{ grid-column: 1 / -1; }
}

@media (max-width: 700px){
  .tok-nav__inner{
    grid-template-columns: 1fr;
  }

  .tok-nav__note{ grid-column: auto; }

  .tok-hero__copy,
  .tok-gallery__header{
    grid-template-columns: 1fr;
  }

  .tok-lead,
  .tok-jump{
    grid-column: 1;
    grid-row: auto;
  }

  .tok-gallery__header{ gap: 18px; }

  .tok-photo figcaption{ align-items: flex-start; }

  .tok-lightbox__stage{
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
  }

  .tok-lightbox__stage img{
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .tok-lightbox__arrow{ justify-self: center; }
}

@media (prefers-reduced-motion: reduce){
  .tok-photo__open img{ transition: none; }
}

/* Migration-derived composition: the Background detail-page system. */
.page-tok-camp{
  --tok-night: #07171c;
  --tok-night-soft: #10252a;
  --tok-panel: #aeb1ac;
  --tok-panel-ink: #171a19;
  --tok-text: #edf2eb;
  --tok-muted: rgba(237, 242, 235, .62);
  --tok-border: rgba(218, 232, 222, .18);
}

.page-tok-camp .site-header{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--tok-header-h);
  background: linear-gradient(90deg, var(--tok-panel) 0 320px, rgba(7, 23, 28, .88) 320px 100%);
}

.page-tok-camp .site-header__brand{
  color: var(--tok-panel-ink);
}

.tok-layout{
  min-height: 100vh;
  padding-top: var(--tok-header-h);
}

.tok-nav{
  min-height: calc(100vh - var(--tok-header-h));
  color: var(--tok-panel-ink);
  background: var(--tok-panel);
  border-right-color: rgba(19, 32, 22, .18);
}

.tok-nav__inner{
  position: sticky;
  top: var(--tok-header-h);
  grid-template-rows: auto auto 1fr;
  gap: 18px;
  height: calc(100vh - var(--tok-header-h));
  padding: 28px 24px 18px;
}

.tok-nav__title{
  margin: 10px 0 12px;
  font-size: clamp(40px, 4vw, 60px);
  line-height: .86;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.tok-nav__subtitle{
  max-width: 25ch;
  color: rgba(19, 32, 22, .72);
}

.tok-nav__facts{
  align-self: start;
  border-top-color: rgba(19, 32, 22, .22);
}

.tok-nav__facts div{
  padding: 9px 0;
  border-bottom-color: rgba(19, 32, 22, .22);
}

.tok-nav__facts span{
  color: rgba(19, 32, 22, .5);
}

.tok-nav__note{
  align-self: end;
  border-top-color: rgba(19, 32, 22, .22);
}

.tok-main{
  background: var(--tok-night);
}

.tok-hero{
  position: relative;
  display: block;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 68%, rgba(174, 177, 172, .075), transparent 24%),
    var(--tok-night);
}

.tok-hero__photo{
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  display: block;
  overflow: hidden;
  background: transparent;
}

.tok-hero__open{
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}

.tok-hero__open picture{
  display: block;
  width: 100%;
  height: auto;
}

.tok-hero__open img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  transform: none;
}

.tok-hero__open:hover img{
  transform: none;
  filter: contrast(1.06);
}

.tok-hero__photo figcaption{
  top: 22px;
  right: 22px;
  bottom: auto;
  color: var(--tok-muted);
  background: rgba(7, 23, 28, .82);
}

.tok-hero__copy{
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 8px 44px;
  padding: 110px 22px 24px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 23, 28, .96) 72%);
}

.tok-hero__copy .tok-eyebrow{
  grid-column: 1;
  color: var(--tok-panel);
}

.tok-hero h2{
  grid-column: 1;
  max-width: 14ch;
  font-size: clamp(24px, 2.5vw, 38px);
  line-height: 1.02;
  letter-spacing: -.035em;
  font-weight: 550;
}

.tok-lead{
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 42ch;
  font-size: 12.5px;
  line-height: 1.48;
}

.tok-jump{
  grid-column: 2;
  width: 100%;
  max-width: 380px;
  padding: 9px 0;
  pointer-events: auto;
}

.tok-gallery{
  padding: 56px 22px 72px;
  background: var(--tok-night-soft);
}

.tok-gallery__header{
  grid-template-columns: minmax(0, 1fr) minmax(250px, 400px);
  padding-bottom: 20px;
}

.tok-gallery__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px 22px;
  padding-top: 30px;
}

.tok-gallery .tok-photo__open{
  aspect-ratio: 4 / 3;
  background: var(--tok-night);
}

.tok-gallery .tok-photo__open picture{
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.tok-gallery .tok-photo__open img{
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.tok-photo__zoom{
  color: var(--tok-text);
  background: rgba(7, 23, 28, .82);
}

.tok-story-end{
  padding-right: 22px;
  padding-left: 22px;
  background: var(--tok-night-soft);
}

@media (max-width: 980px){
  .page-tok-camp .site-header{
    height: auto;
    min-height: var(--tok-header-h);
    background: rgba(7, 23, 28, .96);
  }

  .page-tok-camp .site-header__brandmark{
    width: 48px;
    height: 30px;
    color: var(--tok-panel);
  }

  .tok-layout{
    grid-template-columns: 1fr;
  }

  .tok-nav{
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(19, 32, 22, .18);
  }

  .tok-nav__inner{
    position: relative;
    top: auto;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    grid-template-rows: auto auto;
    height: auto;
    padding: 30px 20px 20px;
    gap: 24px;
  }

  .tok-nav__title{
    writing-mode: horizontal-tb;
    transform: none;
  }

  .tok-nav__subtitle{
    max-width: 46ch;
  }

  .tok-nav__note{
    grid-column: 1 / -1;
  }

  .tok-hero{
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .tok-hero__photo{
    order: 1;
    height: auto;
    min-height: 0;
  }

  .tok-hero__open,
  .tok-hero__open picture{
    height: auto;
  }

  .tok-hero__open img{
    max-height: none;
  }

  .tok-hero__photo figcaption{
    top: auto;
    right: 14px;
    bottom: 14px;
  }

  .tok-hero__copy{
    position: relative;
    order: 2;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr);
    padding: 38px 20px;
    background: var(--tok-night);
  }
}

@media (max-width: 700px){
  .tok-nav__inner,
  .tok-hero__copy,
  .tok-gallery__header{
    grid-template-columns: 1fr;
  }

  .tok-nav__note,
  .tok-lead,
  .tok-jump{
    grid-column: 1;
    grid-row: auto;
  }

  .tok-gallery{
    padding-right: 16px;
    padding-left: 16px;
  }
}
