/* «Вязель», Илья Виноградов. Лицензия: fonts/Vyazel-License.pdf; источник: myskotom.ru/tproduct/504619321-327619926582-vyazel-vyazel. */
@font-face { font-family: 'Vyazel'; src: url('../fonts/Vyazel-Regular.ttf') format('truetype'); font-display: swap; }

@font-face { font-family: 'Jimbi'; src: url('../fonts/Jimbi-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }

@font-face { font-family: 'Mihey'; src: url('../fonts/Mihey-v1.otf') format('opentype'); font-weight: 400; font-style: normal; font-display: swap; }

/* Фотография: анимированный замок на тёмной сцене. */
.page-photography:not(.page-photo-archetypes) { background: #00040d; }
.page-photography:not(.page-photo-archetypes) .site-header { background: #030a17; }
.page-photography:not(.page-photo-archetypes) .site-header .nav a { color: #c3d3ec; }
.page-photography:not(.page-photo-archetypes) .site-header .nav a:hover,
.page-photography:not(.page-photo-archetypes) .site-header .nav a.active { color: #fff; }
.page-photography:not(.page-photo-archetypes) .site-header .nav a.active::before { background: #87b9f7; }
.page-photography:not(.page-photo-archetypes) .site-header .logo-anim .ltr.c1,
.page-photography:not(.page-photo-archetypes) .site-header .logo-anim .ltr.c9,
.page-photography:not(.page-photo-archetypes) .site-header .logo-anim .ltr.c10 { color: #e7f4ff; }
.page-photography:not(.page-photo-archetypes) .site-footer { position: relative; background: #00040d; color: #b9d0ec; }
.photo-main { flex: 1; padding: 120px 0 60px; overflow: hidden; }
.photo-heading { padding: 35px var(--pad-x) 50px; max-width: 1440px; margin: 0 auto; }
.photo-heading .page-title { margin: 0; font-size: clamp(40px, 7vw, 110px); overflow-wrap: anywhere; }
/* Сцена с замком и анимированным фоном. */
.page-photography:not(.page-photo-archetypes) .photo-blueprint {
  position: relative; min-height: max(800px, calc(100svh - 80px)); padding: 0;
  background: radial-gradient(ellipse at 20% 22%, #102a56 0%, #081937 36%, #030a19 69%, #00040d 100%);
}
.photo-blueprint-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.photo-blueprint-canvas, .photo-castle-canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.photo-castle-canvas { z-index: 1; }
.photo-castle-scene { position: absolute; inset: 0; transform: translateY(-18px) scale(1); transform-origin: 50% 60%; }
.photo-castle-door {
  position: absolute;
  z-index: 2;
  left: var(--photo-door-x, 43%);
  top: var(--photo-door-bottom, 75%);
  width: var(--photo-door-width, 150px);
  height: auto;
  display: block;
  transform: translate(-50%, -100%);
  pointer-events: none;
  user-select: none;
}
.photo-door-link {
  position: absolute; z-index: 3; display: block;
  left: var(--photo-door-x, 43%); top: var(--photo-door-bottom, 75%);
  width: var(--photo-door-width, 120px); aspect-ratio: 780 / 1648;
  transform: translate(-50%, -100%); border-radius: 48% 48% 3px 3px / 30% 30% 3px 3px;
}
.photo-door-link:focus-visible { outline: 2px solid #f4bfd9; outline-offset: 7px; }
.photo-castle-scene:has(.photo-door-link:hover) .photo-castle-door { filter: brightness(1.08); }
.photo-castle-door-label {
  position: absolute; z-index: 2; display: block;
  left: var(--photo-door-x, 43%); top: var(--photo-door-bottom, 75%);
  width: var(--photo-door-width, 120px); height: auto; aspect-ratio: 780 / 1648;
  transform: translate(-50%, -100%); overflow: visible; pointer-events: none;
}
.photo-castle-door-label text {
  fill: #fbe3f2; font-family: 'Mihey', 'Manrope', sans-serif; font-size: 150px;
  font-weight: 400; font-style: normal; letter-spacing: 3px; paint-order: stroke; stroke: #030918; stroke-width: 8px;
  filter: drop-shadow(0 2px 3px #020613);
}
.photo-archetype-link {
  position: absolute;
  z-index: 2;
  top: var(--photo-castle-center-y, 50%);
  left: calc(50% + min(10.75vw, 122px));
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: min(15vw, 175px);
  min-width: 120px;
  aspect-ratio: 1085 / 1000;
  text-decoration: none;
  transition: filter .3s ease, transform .3s ease;
}
.photo-archetype-link img { grid-area: 1 / 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.photo-archetype-link span {
  grid-area: 1 / 1;
  z-index: 1;
  max-width: 90%;
  color: #fbe3f2;
  font-family: 'Vyazel', var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  padding: 10px 16px;
  background: radial-gradient(ellipse, rgba(60, 92, 145, .22), rgba(60, 92, 145, .08) 45%, transparent 75%);
  -webkit-text-stroke: .4px currentColor;
  transform: scaleX(.72);
  text-shadow: 0 1px 2px #030918, 0 0 5px rgba(0, 3, 12, .65), 0 0 10px rgba(0, 3, 12, .3);
}
.photo-archetype-link:hover { transform: translate(-50%, -50%) scale(1.04); filter: drop-shadow(0 0 18px #b9ceef90); }
.photo-archetype-link:focus-visible { outline: 2px solid #fbe3f2; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .photo-archetype-link { transition: none; } }
@media (max-width: 650px) {
  .photo-archetype-link { left: calc(50% + min(20vw, 98px)); width: min(29vw, 145px); min-width: 0; }
  .photo-archetype-link span { font-size: clamp(15px, 4vw, 19px); }
}
@media (max-width: 650px) {
  .page-photography:not(.page-photo-archetypes) .photo-blueprint { min-height: max(720px, calc(100svh - 110px)); }
}

/* Архетипы: ровная галерея в резных тёмно-синей и чёрной рамах. */
.page-photo-archetypes { background: radial-gradient(ellipse at 50% 35%, #1a0612 0%, #08020a 80%); }
.page-photo-archetypes .site-header { background: #08020a; }
.page-photo-archetypes .site-header .logo,
.page-photo-archetypes .site-header .logo .logo-anim { color: #eee5ed; }
.page-photo-archetypes .site-header .logo-anim .ltr.c1,
.page-photo-archetypes .site-header .logo-anim .ltr.c9,
.page-photo-archetypes .site-header .logo-anim .ltr.c10 { color: #eee5ed; }
.page-photo-archetypes .site-header .nav a { color: #d5cad3; }
.page-photo-archetypes .site-header .nav a:hover,
.page-photo-archetypes .site-header .nav a.active { color: #fff; }
.page-photo-archetypes .site-header .nav a.active::before { background: #ffb8dc; }
.page-photo-archetypes .bio-nav-link .bio-hover { --bio-ground: transparent; }
.page-photo-archetypes .bio-nav-link:hover .bio-hover,
.page-photo-archetypes .bio-nav-link:focus-visible .bio-hover { --bio-ground: #430d21; }
.page-photo-archetypes .bio-nav-link .bio-fill { background: #430d21; }
.page-photo-archetypes .photo-main { padding-top: 82px; }
.page-photo-archetypes .photo-heading { padding-top: 42px; padding-bottom: 12px; color: #fff; }
.page-photo-archetypes .photo-heading .page-title { font-family: 'Vyazel', var(--display); font-weight: 400; font-size: clamp(34px, 5.5vw, 86px); line-height: 1.13; letter-spacing: .01em; overflow-wrap: normal; text-align: center; }
.photo-title-text { position: relative; display: inline-block; }
.photo-title-initial { position: relative; display: inline-block; width: .9em; height: 1.17em; vertical-align: -.13em; color: transparent; }
.photo-title-initial img { position: absolute; top: -.35em; left: -.09em; width: 118%; height: 1.52em; object-fit: contain; }
.photo-title-sparkles { position: absolute; inset: 0; pointer-events: none; }
.photo-title-sparkles i { position: absolute; width: 10px; height: 10px; opacity: 0; filter: drop-shadow(0 0 5px #f7dfff); animation: photo-title-twinkle 9.5s ease-in-out infinite; }
.photo-title-sparkles i::before { content: ''; position: absolute; inset: 0; background: #fff4ff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.photo-title-sparkles i:nth-child(1) { left: 7%; top: 36%; animation-delay: 1s; }
.photo-title-sparkles i:nth-child(2) { left: 30%; top: 72%; width: 7px; height: 7px; animation-delay: 4.8s; }
.photo-title-sparkles i:nth-child(3) { left: 54%; top: 18%; animation-delay: 2.2s; }
.photo-title-sparkles i:nth-child(4) { left: 77%; top: 60%; width: 8px; height: 8px; animation-delay: 7s; }
.photo-title-sparkles i:nth-child(5) { left: 94%; top: 28%; animation-delay: 8.5s; }
@keyframes photo-title-twinkle {
  0%, 12%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  4% { opacity: .95; transform: scale(1.15) rotate(15deg); }
  8% { opacity: .35; transform: scale(.7) rotate(30deg); }
}
@media (prefers-reduced-motion: reduce) { .photo-title-sparkles { display: none; } }
.page-photo-archetypes .inst-back-arrow { left: var(--pad-x); }
@media (max-width: 900px) { .page-photo-archetypes .inst-back-arrow { top: 100px; } }
.page-photo-archetypes .site-footer { background: #08020a; color: #fff; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(16px, 3vw, 42px); max-width: 1080px; padding: 0 var(--pad-x) 80px; margin: 0 auto; }
.photo-item { min-width: 0; margin: 0; color: #fff; }
.photo-item--navy { --photo-frame: url('../images/photography/archetypes-frame-navy.png?v=rounded-photo-opening-6'); --photo-frame-top: -1.011805%; }
.photo-item--black { --photo-frame: url('../images/photography/archetypes-frame-black.png?v=rounded-photo-opening-6'); }
.photo-grid .photo-open {
  position: relative; display: block; width: 100%; max-width: 460px;
  aspect-ratio: 855 / 1186; margin: 0 auto; padding: 0; border: 0;
  background: transparent; cursor: zoom-in; touch-action: pan-y;
  filter: drop-shadow(0 18px 24px #0009);
}
.photo-grid .photo-open img {
  position: absolute; left: 12.63158%; top: 8.76897%; width: 74.73684%; height: 80.86003%;
  max-width: none; max-height: none; object-fit: contain;
  background: #030408; border-radius: 2.5% / 1.6667%; -webkit-user-drag: none;
}
.photo-grid .photo-open::after {
  content: ''; position: absolute; inset: var(--photo-frame-top, 0) 0 0; pointer-events: none;
  background: var(--photo-frame) center / 100% 100% no-repeat;
}
.photo-grid .photo-open:focus-visible { outline: 2px solid #b9ceef; outline-offset: 4px; border-radius: 12px; }
.photo-item figcaption { padding: 16px 0 0; font-size: 13px; letter-spacing: .02em; text-align: center; }

/* Тёмный просмотр фото, место для описаний без придуманного текста. */
.photo-lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; padding: 50px 20px 30px; border: 0; background: #111014; color: #fff; text-align: center; overflow-y: auto; }
.photo-lightbox::backdrop { background: #111014; }
.photo-lightbox img { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100svh - 155px); margin: 0 auto; object-fit: contain; }
.photo-lightbox-title { margin: 17px auto 0; font-size: 13px; }
.photo-lightbox-artwork { position: relative; display: inline-block; max-width: 100%; }
@font-face {
  font-family: 'Great Vibes'; src: url('../fonts/GreatVibes-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
.photo-inscription {
  display: none; position: absolute; left: 14.73684%; width: 70.52632%; bottom: 23%;
  z-index: 1; text-align: center; pointer-events: none;
  font-family: 'Great Vibes', cursive; font-weight: 400; font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1.25; color: #ffe8f3; transform: rotate(-4deg);
  text-shadow: 0 2px 4px #250719, 0 0 12px #5c153b80;
}
.photo-open.is-inscribing .photo-inscription { display: block; }
.photo-inscription-line { position: relative; display: inline-block; min-height: 1.25em; white-space: nowrap; }
.photo-open.is-inscribing:not(.is-written) .photo-inscription-line::after {
  content: ''; position: absolute; left: 100%; top: 70%; width: 96px; height: 96px;
  transform: translate(-3px, -81px);
  background: url('../images/photography/pink-feather-soft-left-96.png') center / contain no-repeat;
}
@media (hover: hover) and (pointer: fine) {
  .page-photography .photo-open.is-inscribing { cursor: none; }
}
@media (prefers-reduced-motion: reduce) {
  .photo-open.is-inscribing .photo-inscription-line::after { display: none; }
}
.photo-lightbox-description { margin: 12px auto 0; max-width: 600px; font-size: 14px; color: #d0cbd0; }
.photo-close { position: fixed; right: 22px; top: 8px; z-index: 1; color: white; font-size: 40px; line-height: 1; }
@media (max-width: 900px) {
  .page-photography .site-header { flex-wrap: wrap; gap: 10px; padding: 14px var(--pad-x); }
  .page-photography .nav { overflow-x: auto; width: 100%; white-space: nowrap; scrollbar-width: none; padding-bottom: 7px; }
  .page-photography .nav::-webkit-scrollbar { display: none; }
  .photo-main { padding-top: 145px; }
  .page-photo-archetypes .photo-main { padding-top: 105px; }
}
@media (max-width: 650px) {
  .photo-heading { padding: 35px var(--pad-x) 45px; }
  .page-photo-archetypes .photo-heading { padding-top: 40px; padding-bottom: 8px; }
  .photo-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 75px; }
  .photo-grid .photo-open { max-width: 320px; }
  .photo-item figcaption { padding: 12px 0 0; }
}

/* Original pink quill; the writing tip is the pointer hotspot. */
@media (hover: hover) and (pointer: fine) {
  .page-photography, .page-photography *, .page-photography .photo-open {
    cursor: url('../images/photography/pink-feather-soft-left-96.png') 3 81, auto;
  }
}
