/*
Theme Name: KediTheam
Theme URI: https://mickedi.com
Author: Глеб Юрьевич
Description: Собственная тема сайта mickedi.com.
Version: 3.4.0
Text Domain: keditheam
*/

:root {
  color-scheme: dark;
  --page-bg: #0b0b0c;
  --surface: #141416;
  --surface-raised: #1b1b1e;
  --text: #e8e5df;
  --muted: #9b9892;
  --line: #303034;
  --line-strong: #47474d;
  --accent: #c6534c;
  --accent-hover: #e06a62;
  --focus: #ed827b;
  --content-width: 1120px;
  --welcome-viewport-height: 100svh;
  --gallery-viewport-height: 100svh;
}

/* One predictable opening rhythm for every internal page. */
.inner-page-heading {
  padding-top: clamp(5rem, 6.5vw, 6.5rem);
}

/* Personal journal: one editorial stream, deliberately not a card grid. */
.post-type-archive-kedi_journal .site-main {
  width: 100%;
}

.journal-feed {
  width: min(100% - 2 * clamp(1.25rem, 5vw, 5rem), 920px);
  margin-inline: auto;
  padding: 0 0 clamp(5rem, 10vw, 9rem);
}

.journal-feed__header {
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  border-bottom: 0;
}

.journal-feed__title-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) 3fr;
  gap: 2rem;
  align-items: end;
}

.journal-feed__title-row > p,
.journal-entry__time {
  margin: 0;
  color: var(--muted);
  font-size: var(--type-micro, .72rem);
  font-weight: 650;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.journal-feed__header h1 {
  max-width: 100%;
  margin: 0;
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(4rem, 11vw, 10rem);
  font-weight: 720;
  letter-spacing: -.07em;
  line-height: .82;
  overflow-wrap: anywhere;
}

.journal-feed__intro {
  max-width: 44rem;
  margin: clamp(3rem, 7vw, 6rem) 0 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.55;
}

.journal-feed__filters {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
}

.journal-feed__filter {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--type-caption, .84rem);
  font-weight: 650;
  letter-spacing: .04em;
  text-decoration: none;
  transition: border-color .22s ease, color .22s ease, background-color .22s ease;
}

.journal-feed__filter:is(:hover, :focus-visible, :active),
.journal-feed__filter.is-active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--text);
}

.journal-feed__stream {
  display: flow-root;
}

.journal-feed__results {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
}

.journal-feed__results.is-leaving {
  opacity: 0;
  transform: translateY(.45rem);
  pointer-events: none;
}

.journal-feed__results.is-entering {
  opacity: 0;
  transform: translateY(.65rem);
}

.journal-feed__filters[aria-busy="true"] {
  cursor: progress;
}

.journal-feed__filters[aria-busy="true"] .journal-feed__filter {
  pointer-events: none;
}

.journal-entry {
  position: relative;
  padding: clamp(2.2rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.journal-entry__time {
  display: flex;
  gap: .7rem;
  align-items: baseline;
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.journal-entry__time span {
  color: color-mix(in srgb, var(--muted) 65%, transparent);
}

.journal-entry__title {
  max-width: 42rem;
  margin: 0 0 1rem;
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.journal-entry__content {
  color: var(--text);
  font-size: clamp(1.03rem, 1.6vw, 1.22rem);
  line-height: 1.72;
}

.journal-entry__content > * {
  max-width: 44rem;
  margin-block: 0 1.25em;
}

.journal-entry__content > :last-child {
  margin-bottom: 0;
}

.journal-entry__content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 70%, transparent);
  text-underline-offset: .22em;
}

.journal-entry__content :is(figure, .wp-block-image, .wp-block-gallery, video) {
  width: 100%;
  max-width: 100%;
  margin: clamp(1.7rem, 4vw, 3rem) 0;
}

.journal-entry__content img,
.journal-entry__content video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
}

.journal-entry__content blockquote {
  padding-left: 1.25rem;
  border-left: 2px solid var(--accent);
  color: var(--muted);
}

.journal-feed__empty {
  padding: clamp(4rem, 10vw, 8rem) 0;
  color: var(--muted);
}

.journal-feed__empty p {
  margin: 0 0 .5rem;
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.journal-feed__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  padding-top: 2.5rem;
}

.journal-feed__pagination .page-numbers {
  display: inline-flex;
  min-width: 2.6rem;
  min-height: 2.6rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}

.journal-feed__pagination .current,
.journal-feed__pagination a:hover {
  border-color: var(--accent);
  color: var(--text);
}

@media (max-width: 700px) {
  .journal-feed {
    width: min(100% - 2rem, 920px);
    padding-top: 0;
  }

  .inner-page-heading { padding-top: 5rem; }

  .journal-feed__title-row { display: block; }

  .journal-feed__title-row > p { margin-bottom: .7rem; }

  .journal-feed__header h1 { font-size: clamp(4.5rem, 24vw, 7rem); }

  .journal-feed__intro { margin-top: 3rem; }

  .journal-entry {
    padding-block: 2.25rem;
  }
}

/* 3.2.2 — one desktop-only return-to-top control across the site. */
@media (min-width: 701px) {
  .site-to-top,
  .about-story__to-top {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 0;
    padding: .45rem .1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 252, 244, .82);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-shadow: 0 3px 9px rgba(0, 0, 0, .95), 0 8px 22px rgba(0, 0, 0, .8);
  }

  .site-to-top svg,
  .about-story__to-top svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .95));
  }

  .site-to-top:hover,
  .about-story__to-top:hover {
    border-color: transparent;
    background: transparent;
    color: var(--accent-hover);
  }

  .site-to-top:focus-visible,
  .about-story__to-top:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 5px;
    border-radius: 2px;
  }
}

@media (max-width: 700px) {
  .site-to-top,
  .about-story__to-top {
    display: none !important;
  }
}

.site-to-top {
  position: fixed;
  z-index: 8500;
  right: 21px;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  padding: .55rem .78rem .55rem .9rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(12, 12, 13, .72);
  color: rgba(255, 252, 244, .78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(.55rem);
  transition: opacity .25s ease, transform .32s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .32s;
}

.site-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.site-to-top span {
  font: 700 .72rem/1 system-ui, sans-serif;
  letter-spacing: .04em;
}

.site-to-top svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
}

.site-to-top:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .site-to-top { transition: none; }
}

/* KediTheam 3.0.0 — one compact opening system for every internal page. */
body.kedi-internal-page .site-main {
  padding-top: 0;
}

.inner-page-heading {
  box-sizing: border-box;
  padding-top: clamp(4.75rem, 5vw, 5.75rem);
}

.inner-page-heading__title-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: end;
}

.inner-page-heading__title-row > p,
.inner-page-heading__title-row > .post-meta {
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: var(--type-micro, .68rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.inner-page-heading h1,
.publications-archive__header h1,
.journal-feed__header h1,
.about-story__hero h1,
.single .post-title {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.35rem, 6.5vw, 6.75rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.055em;
  overflow-wrap: normal;
  word-break: normal;
}

.inner-page-heading__intro,
.journal-feed__intro,
.about-story__lead {
  max-width: 46rem;
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.58;
}

.publications-archive__header,
.journal-feed__header,
.about-story__hero,
.single .post-card__header {
  margin-bottom: 0;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
  border-bottom: 0;
}

.publications-archive__grid,
.journal-feed__results,
.about-story__portrait,
.single .post-content {
  margin-top: 0;
}

.journal-feed__filters {
  margin-top: clamp(1.1rem, 2vw, 1.6rem);
}

.about-story__portrait {
  margin-top: 0;
}

.single .post-list {
  display: block;
}

.single .post-card {
  padding-bottom: 0;
  border-bottom: 0;
}

.single .post-content {
  padding-inline: clamp(1rem, 3vw, 2rem);
}

@media (max-width: 700px) {
  .inner-page-heading,
  .about-story__hero,
  .journal-feed .inner-page-heading,
  .publications-archive .inner-page-heading {
    padding-top: 4.75rem;
  }

  .inner-page-heading__title-row,
  .journal-feed__title-row,
  .about-story__title-row {
    display: block;
  }

  .inner-page-heading__title-row > p,
  .inner-page-heading__title-row > .post-meta,
  .journal-feed__title-row > p,
  .about-story__title-row .about-story__kicker {
    margin: 0 0 .55rem;
  }

  .inner-page-heading h1,
  .publications-archive__header h1,
  .journal-feed__header h1,
  .about-story__hero h1,
  .single .post-title {
    max-width: 100%;
    font-size: clamp(3rem, 15vw, 4.25rem);
    line-height: .9;
    letter-spacing: -.05em;
  }

  .inner-page-heading__intro,
  .journal-feed__intro,
  .about-story__lead {
    margin-top: 1.15rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  .publications-archive__header,
  .journal-feed__header,
  .about-story__hero,
  .single .post-card__header {
    padding-bottom: 1.5rem;
  }

  .journal-feed__filters {
    margin-top: 1rem;
  }

  .about-story__portrait {
    margin-top: 0;
  }
}

/* 3.1.0 final cascade — one frame inset for every header, single-line
   internal titles, and the landing-page return control. */
@media (min-width: 701px) {
  body .inner-menu:not(.inner-menu--landing),
  .inner-menu.inner-menu--landing {
    --inner-shell-width: min(calc(100% - 32px), 1500px);
    --inner-control-inset: 14px;
    padding-right: calc((100% - var(--inner-shell-width)) / 2 + var(--inner-control-inset));
    padding-left: calc((100% - var(--inner-shell-width)) / 2 + var(--inner-control-inset));
  }

  .about-story__to-top,
  .site-to-top {
    right: calc((100% - min(calc(100% - 32px), 1500px)) / 2 + 14px);
  }
}

@media (max-width: 700px) {
  .inner-menu,
  .inner-menu.inner-menu--landing {
    --mobile-shell-width: min(calc(100vw - 32px), 1500px);
    --mobile-shell-inset: calc((100vw - var(--mobile-shell-width)) / 2 + 5px);
    padding-right: var(--mobile-shell-inset);
    padding-left: var(--mobile-shell-inset);
  }
}

body.kedi-internal-page .inner-page-heading h1,
body.kedi-internal-page .publications-archive__header h1,
body.kedi-internal-page .journal-feed__header h1,
body.kedi-internal-page .about-story__hero h1,
body.single .post-title {
  max-width: none;
  font-size: clamp(3rem, 4.6vw, 5.25rem);
  line-height: .94;
  letter-spacing: -.05em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

/* 3.3.0 — configurable, neutral fullscreen menu background. The root stays
   opaque for Telegram/iOS, while the visible panel may use a selected image.
   Darkness and vignette are deliberately fixed so navigation remains legible. */
.inner-menu {
  --menu-bg-color: #080809;
  --menu-bg-image: none;
}

html.inner-menu-open,
body.inner-menu-open {
  background-color: var(--menu-bg-color, #080809) !important;
}

body.inner-menu-open::before,
body.inner-menu-open > .inner-menu .inner-menu__panel,
.inner-menu.is-open .inner-menu__panel {
  background-color: var(--menu-bg-color, #080809) !important;
  background-image:
    radial-gradient(ellipse at center, rgba(0, 0, 0, .12) 0%, rgba(0, 0, 0, .64) 72%, rgba(0, 0, 0, .88) 100%),
    linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .82)),
    var(--menu-bg-image, none) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
}

body.inner-menu-open > .inner-menu .inner-menu__panel,
.inner-menu.is-open .inner-menu__panel {
  box-shadow: 0 -220px 0 220px var(--menu-bg-color, #080809) !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 700px) {
  body.kedi-internal-page .inner-page-heading h1,
  body.kedi-internal-page .publications-archive__header h1,
  body.kedi-internal-page .journal-feed__header h1,
  body.kedi-internal-page .about-story__hero h1,
  body.single .post-title {
    font-size: clamp(2rem, 9vw, 2.35rem);
    line-height: 1;
    letter-spacing: -.045em;
  }
}

/* 3.2.2 definitive final override: identical desktop-only top controls. */
@media (min-width: 701px) {
  body .site-to-top,
  body .about-story__to-top {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 0;
    padding: .45rem .1rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(255, 252, 244, .82);
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    text-shadow: 0 3px 9px rgba(0, 0, 0, .95), 0 8px 22px rgba(0, 0, 0, .8);
  }

  body .site-to-top svg,
  body .about-story__to-top svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .95));
  }

  body .site-to-top:hover,
  body .about-story__to-top:hover {
    border-color: transparent;
    background: transparent;
    color: var(--accent-hover);
  }
}

@media (max-width: 700px) {
  body .site-to-top,
  body .about-story__to-top {
    display: none !important;
  }
}

/* 2.7.7 — restore the original softened drawer while retaining the Telegram
   workaround: real page surfaces remain out of composition and the root stays
   uniformly dark, but the visible drawer gets a translucent layered finish. */
body.inner-menu-open::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(198, 83, 76, .12), transparent 34%),
    linear-gradient(180deg, #080809 0%, #0d0d0f 48%, #080809 100%);
}

body.inner-menu-open > .inner-menu .inner-menu__panel,
.inner-menu.is-open .inner-menu__panel {
  background:
    radial-gradient(circle at 18% 10%, rgba(198, 83, 76, .1), transparent 36%),
    linear-gradient(180deg, rgba(8, 8, 9, .92), rgba(12, 12, 14, .96)) !important;
  box-shadow: 0 -220px 0 220px #080809;
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  backdrop-filter: blur(18px) saturate(112%);
}

.inner-menu.is-open .inner-menu__brand,
.inner-menu.is-open .inner-menu__toggle {
  visibility: visible !important;
  opacity: 1 !important;
}

.inner-menu.is-open .inner-menu__toggle {
  z-index: 2147483647;
  border-color: rgba(198, 83, 76, .38);
  background: rgba(16, 12, 13, .88);
  color: rgba(224, 106, 98, .98);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .48),
    0 0 20px rgba(198, 83, 76, .14),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

.inner-menu.is-open .inner-menu__toggle i {
  width: 30px;
  height: 2.5px;
  opacity: 1;
  background: currentColor;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .72);
}

.inner-menu.is-open .inner-menu__toggle i:nth-of-type(2) {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .journal-feed__results {
    transition: none;
  }
}

/* Touch feedback: mirror desktop hover without relying on iOS' sticky hover. */
a,
button,
[role="button"] {
  -webkit-tap-highlight-color: rgba(224, 106, 98, .12);
}

@media (hover: none) and (pointer: coarse) {
  a,
  button,
  [role="button"] {
    cursor: pointer;
    touch-action: manipulation;
  }

  a:active,
  .site-nav a:active,
  .post-title a:active,
  .publications-archive__back:active,
  .publications-archive__pagination a:active,
  .about-story__home:active,
  .about-story__epilogue a:active {
    color: var(--accent-hover);
  }

  .site-destination--archive:active::before {
    opacity: 1;
  }

  .site-destination--archive:active .site-destination__action,
  .home-about__link:active .home-about__action,
  .home-contacts__list a:active {
    color: var(--accent-hover);
  }

  .site-destination--archive:active .external-link-icon,
  .home-about__link:active .external-link-icon,
  .home-contacts__list a:active .external-link-icon {
    transform: translate(3px, -3px);
  }

  .publication-card__link:active .publication-card__title {
    color: var(--accent-hover);
  }

  .publication-card__link:active .publication-card__media img {
    transform: scale(1.015);
  }
}

/* KediTheam 1.1.5 — stable first touch in iOS Safari. */
.latest-work--new {
  padding: clamp(1.2rem, 2.5vw, 2.4rem) clamp(.75rem, 3vw, 3rem) clamp(3rem, 7vw, 7rem);
  overflow: hidden;
  background: var(--page-bg);
}
.latest-work--new .latest-work__header {
  display: block;
  width: min(100%, 74rem);
  margin: 0 auto clamp(.8rem, 1.6vw, 1.3rem);
  opacity: 0;
  transform: translateY(16px);
}
.latest-work--new.is-revealed .latest-work__header {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .65s cubic-bezier(.2,.7,.2,1);
}
.latest-work--new .latest-work__eyebrow {
  margin: 0 0 .3rem;
  color: var(--muted);
  font-size: .65rem;
  letter-spacing: .18em;
}
.latest-work--new .latest-work__title {
  max-width: none;
  font-size: clamp(1.25rem, 2.5vw, 2.25rem);
  line-height: 1.05;
}
.latest-work--new .latest-work__title a {
  display: inline;
  overflow: visible;
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  -webkit-line-clamp: unset;
  user-select: text;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: clamp(2.4rem, 4.5vw, 4.5rem) minmax(0, 74rem) clamp(2.4rem, 4.5vw, 4.5rem);
  align-items: center;
  justify-content: center;
  width: 100%;
  opacity: 0;
  transform: translateY(18px);
}
.latest-work--new.is-revealed .portfolio-gallery {
  opacity: 1;
  transform: none;
  transition: opacity .65s .08s ease, transform .75s .08s cubic-bezier(.2,.7,.2,1);
}
.portfolio-gallery__viewport {
  grid-column: 2;
  min-width: 0;
  overflow: hidden;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
  pointer-events: none;
}
.latest-work--new.is-gallery-initialized .portfolio-gallery__viewport { pointer-events: auto; }
.portfolio-gallery__viewport:focus-visible { outline: 1px solid var(--focus); outline-offset: 5px; }
.portfolio-gallery__track { display: flex; touch-action: pan-y pinch-zoom; }
.portfolio-gallery__slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  height: auto;
  margin: 0;
  padding-inline: clamp(.3rem, .8vw, .65rem);
}
.portfolio-gallery__link {
  display: grid;
  place-items: center;
  max-width: 100%;
  max-height: 100%;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.portfolio-gallery__slide img {
  display: block;
  width: min(100%, calc(min(74vh, 850px) * var(--photo-ratio)));
  height: auto;
  max-width: 100%;
  max-height: min(74vh, 850px);
  aspect-ratio: auto;
  object-fit: scale-down;
  object-position: center;
  background: transparent;
  box-shadow: none;
  user-select: none;
  -webkit-user-drag: none;
}
.portfolio-gallery__footer {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: .75rem;
}
.portfolio-gallery__counter {
  flex: 0 0 auto;
  color: var(--muted);
  font: 600 .67rem/1 monospace;
  letter-spacing: .1em;
}
.portfolio-gallery__counter b { color: var(--text); }
.portfolio-gallery__controls {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 2rem;
  align-items: center;
  flex: 1 1 auto;
  gap: .35rem;
}
.portfolio-gallery__step {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  color: rgba(232,229,223,.58);
  background: transparent;
  border-radius: 50%;
  outline: 0;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: color .2s ease, transform .2s ease;
}
.portfolio-gallery__step:hover,
.portfolio-gallery__step:focus-visible { color: var(--text); transform: scale(1.08); }
.portfolio-gallery__step:focus-visible {
  outline: 1px solid rgba(232,229,223,.38);
  outline-offset: 2px;
}
.portfolio-gallery__step:focus:not(:focus-visible) { outline: 0; }
.portfolio-gallery__step:active {
  color: var(--text);
  background: transparent;
  box-shadow: none;
  transform: scale(.94);
}
.latest-work--new.is-gallery-transitioning .portfolio-gallery__step {
  pointer-events: none;
}
.portfolio-gallery__step svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.portfolio-gallery__progress {
  display: flex;
  flex: 1 1 auto;
  gap: 3px;
  height: 10px;
}
.portfolio-gallery__progress span {
  --indicator-weight: 0;
  flex: 1 1 0;
  min-width: 2px;
  padding: 4px 0;
  border: 0;
  opacity: calc(.32 + (var(--indicator-weight) * .68));
  background: linear-gradient(
    90deg,
    var(--text) 0 calc(var(--indicator-weight) * 100%),
    var(--line-strong) calc(var(--indicator-weight) * 100%) 100%
  ) center/100% 1px no-repeat;
  pointer-events: none;
}
.portfolio-gallery__progress span[aria-current="true"] {
  color: var(--text);
}
.portfolio-gallery__empty { max-width: 74rem; margin: auto; color: var(--muted); }

.welcome-hero__scroll-line {
  position: relative;
  display: block;
  width: 1px;
  height: clamp(26px, 4.5vh, 44px);
  margin: .35rem auto 0;
  overflow: hidden;
  background: rgba(255,252,244,.2);
}
.welcome-hero__scroll-line i {
  position: absolute;
  inset: 0 0 auto;
  width: 1px;
  height: 38%;
  background: rgba(255,252,244,.72);
  animation: welcome-scroll-trace 2.8s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes welcome-scroll-trace {
  0%, 18% { transform: translateY(-110%); opacity: 0; }
  35% { opacity: .75; }
  72% { opacity: .5; }
  100% { transform: translateY(280%); opacity: 0; }
}

@media (max-width: 700px) {
  .latest-work--new { padding: .9rem 0 3rem; }
  .latest-work--new .latest-work__header { width: auto; margin-inline: 12px; }
  .latest-work--new .latest-work__title { font-size: clamp(1.25rem, 7vw, 2rem); }
  .portfolio-gallery { display: block; }
  .portfolio-gallery__viewport {
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
  }
  .portfolio-gallery__slide { height: auto; }
  .portfolio-gallery__slide img {
    /* Never mix a locked viewport height with vh/svh here: Firefox changes
       those units whenever its URL bar appears, which resized the active
       photograph mid-scroll. */
    width: min(100%, calc(min(850px, calc(var(--gallery-viewport-height, 100svh) - 9rem)) * var(--photo-ratio)));
    max-height: min(850px, calc(var(--gallery-viewport-height, 100svh) - 9rem));
  }
  .portfolio-gallery__footer { display: flex; margin: 0 12px; padding-top: .65rem; }
}

/* 2.1.4 — About is one card, not a card mounted inside a dark section. */
.home .home-about {
  padding: 1px;
  border: 0;
  background: var(--line);
}

.home .home-about__link {
  border: 0;
  background-color: var(--card-bg-color, #0d0d0e);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.home .home-about__media,
.home .home-about__content {
  background-color: transparent;
}

@media (max-width: 700px) {
  .home .home-about { padding: 1px; }
  .home .home-about__link { box-shadow: 0 12px 32px rgba(0, 0, 0, .2); }
}

/* 2.0.0 — configurable media-library backgrounds for home cards. */
.home .home-card-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--card-bg-color, #0d0d0e);
  background-image: var(--card-bg-image, none);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home .home-card-bg::before,
.home .home-card-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.home .home-card-bg::before {
  z-index: -2;
  display: block;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, .68), rgba(5, 5, 6, .82)),
    linear-gradient(110deg, rgba(5, 5, 6, .42), rgba(5, 5, 6, .08) 52%, rgba(5, 5, 6, .56));
  opacity: 1;
  transform: none;
  transition: background-color .4s ease;
}

.home .home-card-bg::after {
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 18%, rgba(0, 0, 0, .18) 54%, rgba(0, 0, 0, .8) 115%);
}

.home .site-destination.home-card-bg {
  background-color: var(--card-bg-color, #111011);
  background-image: var(--card-bg-image, none);
}

.home .site-destination.home-card-bg::before { display: block; }
.home .site-destination.home-card-bg > * { position: relative; z-index: 1; }
.home .site-destination.home-card-bg .site-destination__eyebrow,
.home .site-destination.home-card-bg .site-destination__number,
.home .site-destination.home-card-bg .site-destination__action { color: rgba(255, 252, 244, .72); }
.home .site-destination.home-card-bg .site-destination__title { text-shadow: 0 2px 22px rgba(0, 0, 0, .55); }

.home .home-contacts.home-card-bg {
  background-color: var(--card-bg-color, #0d0d0e);
  background-image: var(--card-bg-image, none);
}
.home .home-contacts.home-card-bg > * { position: relative; z-index: 1; }
.home .home-contacts.home-card-bg::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, .76), rgba(5, 5, 6, .86)),
    linear-gradient(180deg, rgba(5, 5, 6, .3), rgba(5, 5, 6, .72));
}
.home .home-contacts.home-card-bg .home-contacts__header p,
.home .home-contacts.home-card-bg .home-contacts__list small,
.home .home-contacts.home-card-bg .home-contacts__notice { color: rgba(255, 252, 244, .68); }
.home .home-contacts.home-card-bg .home-contacts__list,
.home .home-contacts.home-card-bg .home-contacts__list a { border-color: rgba(255, 255, 255, .18); }

.home .home-about__link.home-card-bg {
  grid-template-columns: 1fr;
  background-color: var(--card-bg-color, #0d0d0e);
  background-image: var(--card-bg-image, none);
  background-position: center 30%;
}
.home .home-about__link.home-card-bg::before {
  background:
    linear-gradient(90deg, rgba(5, 5, 6, .84) 0%, rgba(5, 5, 6, .62) 56%, rgba(5, 5, 6, .74) 100%),
    linear-gradient(180deg, rgba(5, 5, 6, .22), rgba(5, 5, 6, .78));
}
.home .home-about__link.home-card-bg > * { position: relative; z-index: 1; }
.home .home-about__link.home-card-bg .home-about__media { display: none; }
.home .home-about__link.home-card-bg .home-about__content {
  width: min(100%, 760px);
  min-height: clamp(480px, 62vw, 820px);
}
.home .home-about__link.home-card-bg .home-about__text,
.home .home-about__link.home-card-bg .home-about__action { color: rgba(255, 252, 244, .72); }

@media (max-width: 700px) {
  .home .home-card-bg { background-position: center; }
  .home .home-about__link.home-card-bg { background-position: center 24%; }
  .home .home-about__link.home-card-bg .home-about__content { min-height: 70svh; }
}

/* About — long-form editorial profile. */
.about-story {
  --about-wide: min(100%, 86rem);
  --about-copy: min(100%, 48rem);
  width: var(--about-wide);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 3rem) clamp(1rem, 4vw, 4rem) clamp(5rem, 10vw, 10rem);
  padding-top: 0;
}
.about-story__hero { padding-bottom: clamp(3rem, 8vw, 7rem); }
.about-story__title-row { display: grid; grid-template-columns: minmax(8rem, 1fr) 3fr; gap: 2rem; align-items: end; padding-top: 0; }
.about-story__title-row .about-story__kicker { margin: 0 0 .7rem; }
.about-story__kicker,
.about-cameras__heading > p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: var(--type-micro, .72rem);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.about-story__hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(4.5rem, 13vw, 11rem);
  font-weight: 650;
  line-height: .78;
  letter-spacing: -.075em;
}
.about-story__to-top { position: fixed; right: clamp(1.25rem, 3vw, 3rem); bottom: clamp(1.25rem, 3vw, 3rem); z-index: 30; display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border: 1px solid var(--line-strong); background: rgba(11,11,12,.82); color: var(--text); font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-decoration: none; text-transform: uppercase; backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s ease, visibility .25s ease, transform .25s ease, color .2s ease, border-color .2s ease; }
.about-story__to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.about-story__to-top:hover, .about-story__to-top:focus-visible { color: var(--accent-hover); border-color: currentColor; }
.about-story__to-top svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.about-story__lead {
  max-width: 47rem;
  margin: clamp(3rem, 7vw, 7rem) 0 0 auto;
  color: var(--text);
  font-size: clamp(1.25rem, 2.15vw, 2rem);
  line-height: 1.45;
}
.about-story__portrait { width: min(76%, 64rem); margin: 0 0 clamp(5rem, 12vw, 12rem) auto; }
.about-story__portrait img { display: block; width: 100%; height: auto; background: var(--surface); }
.about-story__portrait figcaption { margin-top: .65rem; color: var(--muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; }
.about-story__body { display: grid; gap: clamp(5rem, 10vw, 10rem); }
.about-story__chapter {
  display: grid;
  grid-template-columns: minmax(3rem, 12rem) minmax(0, 48rem);
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.about-story__index { margin: .4rem 0 0; color: var(--muted); font: 700 .68rem/1.4 monospace; letter-spacing: .12em; }
.about-story__chapter h2,
.about-cameras__heading h2,
.about-story__epilogue h2 { margin: 0 0 2rem; font-size: clamp(2.5rem, 6vw, 5.75rem); line-height: .94; letter-spacing: -.055em; }
.about-story__chapter p:not(.about-story__index) { margin: 0 0 1.35em; color: #c7c3bc; font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.8; }
.about-story__chapter blockquote { margin: 2.5rem 0; padding-left: clamp(1rem, 3vw, 2rem); border-left: 2px solid var(--accent); color: var(--text); font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.4; }
.about-cameras { margin-top: clamp(7rem, 15vw, 15rem); }
.about-cameras__heading { display: grid; grid-template-columns: minmax(8rem, 1fr) 3fr; gap: 2rem; align-items: end; margin-bottom: clamp(3rem, 7vw, 7rem); }
.about-cameras__heading h2 { margin: 0; }
.about-cameras__gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(3px, .6vw, 9px); }
.about-cameras__gallery figure { margin: 0; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.about-cameras__gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.about-cameras__gallery img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.04); transition: filter .35s ease; }
.about-cameras__gallery figure:hover img { filter: saturate(1) contrast(1); }
.about-cameras__list { margin-top: clamp(4rem, 9vw, 9rem); border-top: 1px solid var(--line); }
.about-cameras__list section { display: grid; grid-template-columns: minmax(3rem, 1fr) minmax(12rem, 1.2fr) minmax(16rem, 2.8fr); gap: 2rem; padding: clamp(1.5rem, 3vw, 2.75rem) 0; border-bottom: 1px solid var(--line); }
.about-cameras__list section::before { content: ''; }
.about-cameras__list h3 { margin: 0 0 .8rem; font-size: clamp(1.35rem, 2.4vw, 2.25rem); line-height: 1; letter-spacing: -.035em; }
.about-cameras__list p:not(.about-story__index) { max-width: 48rem; margin: 0; color: var(--muted); line-height: 1.7; }
.about-cameras__featured h3 { color: var(--accent-hover); }
.about-story__epilogue { width: var(--about-copy); margin: clamp(8rem, 18vw, 18rem) auto 0; text-align: center; }
.about-story__epilogue p:not(.about-story__kicker) { margin: 0 auto 2.5rem; color: #c7c3bc; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.7; }
.about-story__epilogue a { display: inline-block; padding-bottom: .25rem; border-bottom: 1px solid currentColor; color: var(--text); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.about-story__epilogue a:hover,
.about-story__epilogue a:focus-visible { color: var(--accent-hover); }

@media (max-width: 700px) {
  .about-story { padding-inline: 0; }
  .about-story__hero,
  .about-story__body,
  .about-cameras__heading,
  .about-cameras__list,
  .about-story__epilogue,
  .about-story > .publications-archive__back { margin-inline: 18px; }
  .about-story__hero { padding-top: 5rem; }
  .about-story__title-row { display: block; padding-top: 0; }
  .about-story__hero h1 { font-size: clamp(4.5rem, 24vw, 7rem); }
  .about-story__lead { margin-top: 3rem; }
  .about-story__portrait { width: calc(100% - 18px); margin-bottom: 5rem; }
  .about-story__chapter { grid-template-columns: 2.25rem minmax(0, 1fr); gap: .75rem; }
  .about-story__chapter h2 { font-size: clamp(2.4rem, 12vw, 4rem); }
  .about-cameras__heading { display: block; }
  .about-cameras__gallery { grid-template-columns: repeat(2, 1fr); }
  .about-cameras__list section { grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; }
  .about-cameras__list section::before { display: none; }
  .about-story__epilogue { width: auto; }
  .about-story__to-top { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .latest-work--new .latest-work__header,
  .portfolio-gallery { opacity: 1; transform: none; transition: none; }
  .portfolio-gallery__viewport { scroll-behavior: auto; }
  .welcome-hero__scroll-line i { animation: none; top: 31%; opacity: .55; }
}

/* KediTheam 1.4.0 — unified, restrained typography for the home page. */
:root {
  --type-display: clamp(3.1rem, 6vw, 5.5rem);
  --type-section: clamp(2.35rem, 4.4vw, 4.5rem);
  --type-title: clamp(1.35rem, 2.25vw, 2.15rem);
  --type-body: clamp(.95rem, 1vw, 1.05rem);
  --type-caption: .78rem;
  --type-micro: .68rem;
}

/* Hero: readable, but subordinate to the photograph. */
.welcome-hero__mark { color: rgba(255, 252, 244, .54); filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
.welcome-hero__title {
  font-size: var(--type-display);
  letter-spacing: .02em;
  border-bottom-width: 2px;
}
.welcome-hero__archive-title {
  color: rgba(255, 252, 244, .52);
  font-size: var(--type-body);
  font-weight: 600;
  letter-spacing: .08em;
  text-shadow: 0 2px 10px rgba(0,0,0,.65);
}
.welcome-hero__content-link {
  color: rgba(255, 252, 244, .45);
  font-size: var(--type-micro);
  font-weight: 600;
  letter-spacing: .12em;
  text-shadow: 0 2px 8px rgba(0,0,0,.65);
}
.welcome-hero__scroll-line { opacity: .62; }

/* One hierarchy shared by every home-page section. */
.home .latest-work--new .latest-work__eyebrow,
.home .site-destination__eyebrow,
.home .home-contacts__header > span,
.home .home-about__eyebrow {
  font-size: var(--type-micro);
  font-weight: 600;
  letter-spacing: .12em;
}
.home .latest-work--new .latest-work__title,
.home .home-contacts__list span {
  font-size: var(--type-title);
  line-height: 1.12;
  letter-spacing: -.02em;
}
.home .site-destination__title,
.home .home-contacts__header h2,
.home .home-about__title {
  font-size: var(--type-section);
  line-height: .96;
  letter-spacing: -.045em;
}
.home .home-contacts__header p,
.home .home-about__text {
  font-size: var(--type-body);
  line-height: 1.6;
}
.home .site-destination__number,
.home .site-destination__action,
.home .home-contacts__list small,
.home .home-contacts__notice,
.home .home-about__action,
.home .portfolio-gallery__counter {
  font-size: var(--type-micro);
  letter-spacing: .1em;
}

/* Minimal surface language: lines and spacing instead of decorative effects. */
.home .site-destination::before { display: none; }
.home .site-destination,
.home .home-contacts,
.home .home-about,
.home .home-about__link { background: var(--page-bg); }
.home .site-destination { padding: clamp(1.5rem, 3.25vw, 3.5rem); }
.home .site-destination__body { gap: .8rem; }
.home .home-contacts { padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem); }
.home .home-contacts__header h2 { margin: .65rem 0 .9rem; }
.home .home-contacts__list a { min-height: clamp(4.25rem, 5.5vw, 5.25rem); }
.home .home-contacts__list a:hover,
.home .home-contacts__list a:focus-visible,
.home .home-contacts__list a:active { padding-inline: .45rem; background: transparent; }
.home .home-about { padding: clamp(.5rem, 1.4vw, 1.25rem); }
.home .home-about__content { gap: 1rem; padding: clamp(2rem, 4.5vw, 5rem); }
.home .home-about__link:hover .home-about__media img,
.home .home-about__link:focus-visible .home-about__media img { transform: none; }

@media (max-width: 700px) {
  :root {
    --type-display: clamp(2.8rem, 13vw, 4rem);
    --type-section: clamp(2.15rem, 11vw, 3.35rem);
    --type-title: clamp(1.3rem, 6vw, 1.75rem);
  }
  .home .site-destination { min-height: 260px; }
  .home .home-contacts { gap: 1.75rem; padding-block: 3rem; }
  .home .home-about__title,
  .home .home-contacts__header h2,
  .home .site-destination__title,
  .home .latest-work--new .latest-work__title { font-size: inherit; }
  .home .home-about__title,
  .home .home-contacts__header h2,
  .home .site-destination__title { font-size: var(--type-section); }
  .home .latest-work--new .latest-work__title { font-size: var(--type-title); }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

.welcome-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: var(--welcome-viewport-height, 100svh);
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: #090909;
}

.home .site-shell {
  margin-top: 0;
}

.home .site-main {
  padding: 0;
}

.welcome-hero__image,
.welcome-hero__shade,
.welcome-hero__vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.welcome-hero > picture {
  position: absolute;
  inset: 0;
  z-index: -3;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.welcome-hero__image {
  position: absolute;
  inset: 0;
  display: block;
  z-index: auto;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  filter: brightness(.78) saturate(.86) contrast(1.04);
  transform: scale(1.045);
  animation: keditheam-hero-reveal 2.2s cubic-bezier(.22, .72, .18, 1) both;
  animation-play-state: paused;
}

.welcome-hero__shade {
  z-index: -2;
  background: rgba(8, 8, 8, .12);
  animation: keditheam-shade-reveal 1.8s ease-out both;
  animation-play-state: paused;
}

.welcome-hero__vignette {
  z-index: -1;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 0, 0, .2) 70%, rgba(0, 0, 0, .62) 100%),
    linear-gradient(to bottom, rgba(0, 0, 0, .18), transparent 25%, transparent 72%, rgba(0, 0, 0, .3));
  opacity: 0;
  animation: keditheam-vignette-reveal 1.7s .35s ease-out forwards;
  animation-play-state: paused;
}

.welcome-hero__mark {
  position: absolute;
  z-index: 2;
  top: max(58px, calc(env(safe-area-inset-top) + 48px));
  left: 50%;
  display: grid;
  justify-items: center;
  width: max-content;
  color: rgba(255, 252, 244, .72);
  transform: translate(-50%, -10px);
  opacity: 0;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .68)) drop-shadow(0 0 16px rgba(255, 244, 218, .08));
  animation: keditheam-title-reveal 1.35s .7s cubic-bezier(.22, .72, .18, 1) forwards;
  animation-play-state: paused;
}

.welcome-hero__archive {
  position: absolute;
  z-index: 2;
  bottom: max(58px, calc(env(safe-area-inset-bottom) + 48px));
  left: 50%;
  display: grid;
  justify-items: center;
  gap: clamp(.55rem, 1.2vw, .9rem);
  width: min(92vw, 60rem);
  transform: translate(-50%, 10px);
  opacity: 0;
  animation: keditheam-archive-title-reveal 1.35s 1.15s cubic-bezier(.22, .72, .18, 1) forwards;
  animation-play-state: paused;
}

.welcome-hero.is-media-ready .welcome-hero__image,
.welcome-hero.is-media-ready .welcome-hero__shade,
.welcome-hero.is-media-ready .welcome-hero__vignette,
.welcome-hero.is-media-ready .welcome-hero__mark,
.welcome-hero.is-media-ready .welcome-hero__archive {
  animation-play-state: running;
}

.welcome-hero__archive-title {
  margin: 0;
  color: rgba(255, 252, 244, .7);
  font-size: clamp(1rem, 2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .78), 0 5px 20px rgba(0, 0, 0, .68);
}

.welcome-hero__content-link {
  display: grid;
  justify-items: center;
  gap: .08rem;
  margin-top: 0;
  color: rgba(255, 252, 244, .62);
  font-size: clamp(.6rem, .85vw, .72rem);
  font-weight: 800;
  letter-spacing: .18em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .9);
  transition: color .2s ease, transform .2s ease;
}
.welcome-hero__content-link:hover,
.welcome-hero__content-link:focus-visible,
.welcome-hero__content-link:active { color: rgba(255, 244, 218, .82); transform: translateY(1px); }
.welcome-hero__chevrons {
  display: grid;
  justify-items: center;
  gap: 0;
  width: clamp(1.65rem, 2.8vw, 2.35rem);
}
.welcome-hero__chevrons svg {
  width: clamp(1.65rem, 2.8vw, 2.35rem);
  height: auto;
  margin-top: -.22rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .9));
  opacity: .2;
  animation: keditheam-content-chevron 2.6s ease-in-out infinite;
}
.welcome-hero__chevrons svg:first-child { margin-top: 0; animation-delay: 0s; }
.welcome-hero__chevrons svg:nth-child(2) { animation-delay: .22s; }
.welcome-hero__chevrons svg:nth-child(3) { animation-delay: .44s; }

@keyframes keditheam-content-chevron {
  0%, 100% { opacity: .14; transform: translateY(0); }
  50% { opacity: .38; transform: translateY(2px); }
}

.welcome-hero__title {
  margin: 0;
  position: relative;
  padding: 0 .08em .18em;
  border-bottom: 0;
  color: inherit;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.35rem, 5.4vw, 5.6rem);
  font-weight: 900;
  line-height: .9;
  letter-spacing: .035em;
  text-indent: .035em;
  text-transform: none;
}

/* Keep the translucent word and its underline independent from the animated
   highlight. This also avoids Safari making the border transparent when the
   text itself is clipped for a shimmer. */
.welcome-hero__title {
  color: rgba(255, 252, 244, .54);
  -webkit-text-fill-color: currentColor;
}

.welcome-hero__title-accent {
  color: rgba(196, 47, 42, .86);
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 2px 12px rgba(99, 8, 5, .34);
}

.welcome-hero__title::before {
  content: '';
  position: absolute;
  right: .06em;
  bottom: 0;
  left: .06em;
  height: 2px;
  background: rgba(255, 252, 244, .54);
  opacity: .82;
}

.welcome-hero__title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0 .08em .18em;
  overflow: hidden;
  color: transparent;
  background: linear-gradient(
    105deg,
    transparent 27%,
    rgba(255, 255, 255, .12) 37%,
    rgba(255, 255, 255, .95) 49%,
    rgba(255, 239, 202, .42) 56%,
    rgba(255, 255, 255, .1) 64%,
    transparent 74%
  );
  background-position: 155% 50%;
  background-size: 235% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(255, 248, 226, .28));
  /* The archive caption finishes its entrance at 2.5s. Start the first pass
     immediately afterwards, then leave a long quiet pause before repeating. */
  animation: keditheam-title-shimmer 14s 2.55s cubic-bezier(.22,.65,.25,1) infinite;
  animation-play-state: paused;
}

.welcome-hero.is-media-ready .welcome-hero__title::after { animation-play-state: running; }

@keyframes keditheam-title-shimmer {
  0% { background-position: 155% 50%; }
  10%, 100% { background-position: -55% 50%; }
}

/* Progressive, one-shot reveals for the rest of the home page. Hidden states
   only apply after JavaScript opts in, so content never disappears if JS fails. */
.home-reveal-ready [data-home-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .72s cubic-bezier(.22, .72, .18, 1),
    transform .72s cubic-bezier(.22, .72, .18, 1);
  will-change: opacity, transform;
}
.home-reveal-ready [data-home-reveal].is-home-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

@keyframes keditheam-hero-reveal {
  0% { opacity: 0; transform: scale(1.095); filter: brightness(.3) saturate(.7) contrast(1.08); }
  100% { opacity: 1; transform: scale(1.045); filter: brightness(.78) saturate(.86) contrast(1.04); }
}

@keyframes keditheam-shade-reveal {
  from { background-color: rgba(0, 0, 0, .72); }
  to { background-color: rgba(8, 8, 8, .12); }
}

@keyframes keditheam-vignette-reveal {
  to { opacity: 1; }
}

@keyframes keditheam-title-reveal {
  to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes keditheam-archive-title-reveal {
  to { opacity: 1; transform: translate(-50%, 0); }
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, currentColor 55%, transparent);
}

a:hover { color: var(--accent-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  color: #fff;
  background: #7b302c;
}

button,
input,
textarea,
select {
  color: var(--text);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
}

button,
input[type="button"],
input[type="submit"] {
  padding: .65em 1em;
  cursor: pointer;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  border-color: var(--accent);
}

hr { border-color: var(--line); }
blockquote { border-left: 3px solid var(--accent); color: var(--muted); }
code, pre { background: #09090a; }
img { max-width: 100%; height: auto; }

.site-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 24px auto;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
}

.home .site-shell {
  width: min(calc(100% - 32px), 1500px);
}

.site-header,
.site-footer {
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.site-title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  letter-spacing: -0.04em;
}

.site-title a { color: var(--text); text-decoration: none; }
.site-description { margin: 4px 0 0; color: var(--muted); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-nav a:hover,
.site-nav .current-menu-item > a { color: var(--accent-hover); }
.site-main { padding: clamp(24px, 5vw, 56px) 28px; }

.post-list { display: grid; gap: 36px; }
.post-card { border-bottom: 1px solid var(--line); padding-bottom: 32px; }
.post-card:last-child { border-bottom: 0; }
.post-title { margin: 0 0 8px; font-size: clamp(1.4rem, 3vw, 2rem); }
.post-title a { color: var(--text); text-decoration: none; }
.post-title a:hover { color: var(--accent-hover); }
.post-meta { color: var(--muted); font-size: .9rem; }
.post-content { margin-top: 20px; }

/* Full-resolution PhotoSwipe entry points inside photographic posts. */
body.single-post .post-content a.kedi-lightbox {
  display: inline-block;
  max-width: 100%;
  color: inherit;
  cursor: zoom-in;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

body.single-post .post-content a.kedi-lightbox img {
  display: block;
}

.pswp {
  --pswp-bg: #070708;
  --pswp-icon-color: rgba(255, 255, 255, 0.92);
  --pswp-icon-color-secondary: rgba(0, 0, 0, 0.72);
}

.pswp__custom-caption {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: min(42rem, calc(100vw - 2rem));
  padding: 0.5rem 0.75rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(7, 7, 8, 0.58);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
  backdrop-filter: blur(10px);
}

/* Primary destinations below the featured work. */
.site-destinations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  min-height: clamp(320px, 38vw, 560px);
  padding: 1px;
  background: var(--line);
}

.site-destination {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 4.5rem);
  overflow: hidden;
  color: var(--text);
  background: #0b0b0c;
  text-decoration: none;
  isolation: isolate;
}

.site-destination::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .35;
  transition: opacity .45s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}

.site-destination--archive::before {
  background: radial-gradient(circle at 18% 15%, rgba(179, 54, 45, .38), transparent 42%);
}

.site-destination--journal::before {
  background: radial-gradient(circle at 82% 18%, rgba(225, 210, 183, .13), transparent 45%);
}

.site-destination--archive:hover::before,
.site-destination--archive:focus-visible::before {
  opacity: .72;
  transform: scale(1.06);
}

.site-destination--archive:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: -5px; }
.site-destination__number { position: absolute; top: clamp(1.25rem, 2.5vw, 2.5rem); right: clamp(1.25rem, 2.5vw, 2.5rem); color: var(--muted); font-size: .72rem; letter-spacing: .18em; }
.site-destination__body { display: grid; gap: clamp(.65rem, 1.2vw, 1.1rem); width: 100%; }
.site-destination__eyebrow { color: var(--muted); font-size: clamp(.68rem, .8vw, .82rem); letter-spacing: .14em; text-transform: uppercase; }
.site-destination__title { max-width: 12ch; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2.2rem, 5.3vw, 6.2rem); font-weight: 400; line-height: .92; letter-spacing: -.055em; }
.site-destination__action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; }
.external-link-icon { display: block; width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site-destination__action .external-link-icon { color: var(--text); transition: transform .3s ease; }
.site-destination--archive:hover .site-destination__action,
.site-destination--archive:focus-visible .site-destination__action { color: var(--accent-hover); }
.site-destination--archive:hover .site-destination__action .external-link-icon,
.site-destination--archive:focus-visible .site-destination__action .external-link-icon { transform: translate(4px, -4px); }
.site-destination--journal { cursor: default; }

/* Contacts shown directly on the home page. */
.home-contacts {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 7rem);
  padding: clamp(3rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7rem);
  border-top: 1px solid var(--line);
  background: var(--page-bg);
}

/* Keep the contacts destination slightly below the floating navigation. */
.home #contacts {
  scroll-margin-top: clamp(4.5rem, 7vw, 6rem);
}
.home-contacts__header { align-self: start; }
.home-contacts__header > span { color: var(--accent-hover); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; }
.home-contacts__header h2 { margin: .7rem 0 1rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3.2rem, 7vw, 7.5rem); font-weight: 400; line-height: .82; letter-spacing: -.065em; }
.home-contacts__header p { max-width: 30ch; margin: 0; color: var(--muted); line-height: 1.55; }
.home-contacts__list { border-top: 1px solid var(--line-strong); }
.home-contacts__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(130px, .65fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: clamp(4.5rem, 7vw, 6.4rem);
  padding: .8rem .25rem;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: color .25s ease, padding .25s ease, background-color .25s ease;
}
.home-contacts__list a:hover,
.home-contacts__list a:focus-visible,
.home-contacts__list a:active { color: var(--accent-hover); padding-inline: .85rem; background: rgba(255,255,255,.025); }
.home-contacts__list a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.home-contacts__list span { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.35rem, 2.5vw, 2.6rem); line-height: 1; }
.home-contacts__list small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.home-contacts__list .external-link-icon { width: 1.15rem; height: 1.15rem; transition: transform .25s ease; }
.home-contacts__list a:hover .external-link-icon,
.home-contacts__list a:focus-visible .external-link-icon { transform: translate(3px, -3px); }
.home-contacts__notice { grid-column: 2; max-width: 76ch; margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }

/* About preview at the end of the home page. */
.home-about { padding: clamp(1rem, 3vw, 3rem); border-top: 1px solid var(--line); background: #080809; }
.home-about__link { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); min-height: clamp(480px, 62vw, 820px); overflow: hidden; color: var(--text); border: 1px solid var(--line); background: #0c0c0d; text-decoration: none; }
.home-about__media { position: relative; min-height: 420px; overflow: hidden; background: #080808; }
.home-about__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 56%, rgba(0,0,0,.28)); pointer-events: none; }
.home-about__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: saturate(.82) brightness(.82); transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.home-about__placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 48% 28%, #292526, #0a0a0b 68%); }
.home-about__content { display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(1rem, 2vw, 1.7rem); padding: clamp(2rem, 6vw, 7rem); }
.home-about__eyebrow { color: var(--accent-hover); font-size: .7rem; letter-spacing: .17em; text-transform: uppercase; }
.home-about__title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(4rem, 10vw, 10rem); font-weight: 400; line-height: .8; letter-spacing: -.07em; }
.home-about__text { max-width: 43ch; color: var(--muted); font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.6; }
.home-about__action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: clamp(.5rem, 2vw, 2rem); padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; transition: color .25s ease; }
.home-about__action .external-link-icon { color: var(--text); transition: transform .3s ease; }
.home-about__link:hover .home-about__media img, .home-about__link:focus-visible .home-about__media img { transform: scale(1.025); filter: saturate(.92) brightness(.9); }
.home-about__link:hover .home-about__action, .home-about__link:focus-visible .home-about__action { color: var(--accent-hover); }
.home-about__link:hover .home-about__action .external-link-icon, .home-about__link:focus-visible .home-about__action .external-link-icon { transform: translate(4px, -4px); }
.home-about__link:focus-visible { outline: 2px solid var(--focus); outline-offset: -4px; }

/* Placeholder page for the future biography. */
.about-placeholder { padding: clamp(1.5rem, 4vw, 4rem); }
.about-placeholder__grid { display: grid; grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 6vw, 8rem); margin-top: clamp(2rem, 6vw, 6rem); }
.about-placeholder__media { min-height: min(72vh, 920px); margin: 0; overflow: hidden; background: #080808; }
.about-placeholder__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; filter: saturate(.84) brightness(.86); }
.about-placeholder__content { display: flex; flex-direction: column; justify-content: center; }
.about-placeholder__content > p { margin: 0 0 1rem; color: var(--accent-hover); font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; }
.about-placeholder__content h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(5rem, 12vw, 12rem); font-weight: 400; line-height: .78; letter-spacing: -.075em; }
.about-placeholder__note { max-width: 42rem; margin-top: clamp(3rem, 8vw, 8rem); padding-top: 1rem; border-top: 1px solid var(--line); }
.about-placeholder__note span { color: var(--muted); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; }
.about-placeholder__note p { max-width: 42ch; margin: 1rem 0 0; color: var(--muted); line-height: 1.6; }

/* Publications archive. */
.publications-archive { width: 100%; max-width: 100%; padding: 0 clamp(2rem, 6vw, 6rem) clamp(2rem, 6vw, 6rem); overflow-x: clip; }
.publications-archive__header { margin-bottom: clamp(3rem, 8vw, 8rem); }
.publications-archive__back { color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-decoration: none; }
.publications-archive__back:hover { color: var(--accent-hover); }
.publications-archive__header p { margin: 0 0 .75rem; color: var(--muted); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.publications-archive__header h1 { max-width: 12ch; margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(3rem, 8vw, 8rem); font-weight: 400; line-height: .9; letter-spacing: -.055em; overflow-wrap: anywhere; }
.publications-archive__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 7rem) clamp(1rem, 3vw, 3rem); }
.publication-card__link { display: grid; gap: .65rem; color: var(--text); text-decoration: none; }
.publication-card__media {
  display: block;
  overflow: hidden;
  background: #09090a;
  box-shadow: 6px 7px 10px rgba(0, 0, 0, .68), 0 16px 30px rgba(0, 0, 0, .28);
}
.publication-card__media img { display: block; width: 100%; height: auto; object-fit: contain; }
.publication-card__link:hover .publication-card__media img { transform: none; }
.publication-card__meta { margin-top: -.1rem; color: var(--muted); font-size: .72rem; letter-spacing: .1em; }
.publication-card__title { margin-bottom: .15rem; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(1.5rem, 3vw, 3rem); font-weight: 400; line-height: 1; }
.publication-card__link:hover .publication-card__title { color: var(--accent-hover); }
.publications-archive__pagination { display: flex; gap: .7rem; margin-top: clamp(3rem, 7vw, 7rem); }
.publications-archive__pagination .page-numbers { min-width: 2.4rem; padding: .5rem; color: var(--muted); border: 1px solid var(--line); text-align: center; text-decoration: none; }
.publications-archive__pagination .current,
.publications-archive__pagination a:hover { color: var(--text); border-color: var(--accent); }

@media (max-width: 700px) {
  .site-destinations { grid-template-columns: 1fr; min-height: 0; }
  .site-destination { min-height: 310px; padding: 1.35rem 1.25rem; }
  .site-destination__title { font-size: clamp(2.5rem, 14vw, 4.4rem); }
  .home-contacts { grid-template-columns: 1fr; gap: 2.2rem; padding: 3.5rem 1.25rem; }
  .home-contacts__header h2 { font-size: clamp(3.5rem, 18vw, 5.6rem); }
  .home-contacts__list a { grid-template-columns: minmax(0, 1fr) auto; min-height: 4.7rem; }
  .home-contacts__list small { display: none; }
  .home-contacts__notice { grid-column: 1; font-size: .65rem; }
  .home-about { padding: 8px 0 0; }
  .home-about__link { grid-template-columns: 1fr; min-height: 0; }
  .home-about__media { min-height: 72svh; }
  .home-about__content { padding: 2.5rem 1.25rem 2rem; }
  .home-about__title { font-size: clamp(4rem, 22vw, 6.2rem); }
  .about-placeholder { padding: 1.25rem 1rem 3rem; }
  .about-placeholder__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-placeholder__media { min-height: 66svh; }
  .about-placeholder__content h1 { font-size: clamp(4.7rem, 25vw, 7rem); }
  .about-placeholder__note { margin-top: 2.5rem; }
  .publications-archive { padding: 0 1rem 3rem; }
  .publications-archive__grid { grid-template-columns: 1fr; }
  .publications-archive__header { margin-bottom: 2.5rem; }
  .publications-archive__header p { margin-top: 0; }
  .publications-archive__header h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 12.5vw, 4.35rem);
    line-height: .94;
    letter-spacing: -.045em;
    overflow-wrap: anywhere;
  }
}

.latest-work {
  --latest-work-gap: clamp(.3rem, .55vw, .5rem);
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: var(--latest-work-gap) clamp(.5rem, 2.2vw, 2.5rem) clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  background: var(--surface);
}

.reveal-on-scroll .latest-work__header,
.reveal-on-scroll .film-viewer__stage,
.reveal-on-scroll .film-strip,
.reveal-on-scroll .film-viewer__status {
  opacity: 0;
  transform: translateY(34px);
}

.reveal-on-scroll.is-revealed .latest-work__header,
.reveal-on-scroll.is-revealed .film-viewer__stage,
.reveal-on-scroll.is-revealed .film-strip,
.reveal-on-scroll.is-revealed .film-viewer__status {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .65s ease, transform .75s cubic-bezier(.2, .72, .25, 1);
}
.reveal-on-scroll.is-revealed .film-viewer__stage { transition-delay: .09s; }
.reveal-on-scroll.is-revealed .film-strip { transition-delay: .18s; }
.reveal-on-scroll.is-revealed .film-viewer__status { transition-delay: .24s; }

.latest-work__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--latest-work-gap);
}

.latest-work__eyebrow {
  margin: 0 0 .35rem;
  color: var(--accent-hover);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.latest-work__title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.35rem, 2.8vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  overflow-wrap: normal;
  word-break: normal;
}

.latest-work__title a {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: .055em;
  text-underline-offset: .14em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
  transition: color .18s ease, text-decoration-color .18s ease;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.latest-work__title a:hover,
.latest-work__title a:focus-visible,
.latest-work__title a:active {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

.latest-work__open {
  flex: 0 0 auto;
  padding-bottom: .35rem;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  text-decoration: none;
}

.film-viewer { position: relative; }

.film-viewer__stage {
  position: relative;
  height: var(--active-image-height, min(72vw, calc(var(--gallery-viewport-height, 100svh) - clamp(7.5rem, 13vw, 10rem))));
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.film-viewer__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.film-viewer__track {
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  overflow: visible;
}

.film-viewer__track.is-settling { transition: transform .3s cubic-bezier(.22, .72, .25, 1); }

.film-viewer__slide {
  position: relative;
  flex: 0 0 100%;
  display: grid;
  align-items: end;
  justify-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 1;
  visibility: visible;
  cursor: zoom-in;
}

.film-viewer__slide:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }

.film-viewer__slide.is-active {
  z-index: 1;
}

.film-viewer__slide img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  box-shadow: none;
  touch-action: pan-y;
  -webkit-user-drag: none;
}

.film-viewer__arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  width: clamp(3rem, 4.8vw, 4.75rem);
  height: clamp(5.25rem, 10vw, 8.5rem);
  padding: 0;
  border: 0;
  color: rgba(255, 252, 244, .9);
  background: transparent;
  transform: translateY(-50%);
  filter: drop-shadow(0 3px 12px rgba(0,0,0,.95)) drop-shadow(0 0 12px rgba(255,244,218,.13));
  opacity: .78;
  visibility: visible;
  transition: opacity .2s ease, transform .2s ease;
}
.film-viewer__arrow:hover { color: rgba(255,252,244,1); opacity: 1; transform: translateY(-50%) scale(1.06); }
.film-viewer__arrow svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.film-viewer__arrow--prev { left: clamp(.35rem, 2vw, 2rem); }
.film-viewer__arrow--next { right: clamp(.35rem, 2vw, 2rem); }

.film-viewer__stage.has-image-bounds .film-viewer__arrow--prev { left: var(--active-image-prev, .5rem); }
.film-viewer__stage.has-image-bounds .film-viewer__arrow--next { right: var(--active-image-next, .5rem); }

.film-viewer__stage:fullscreen {
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #000;
}
.film-viewer__stage:fullscreen .film-viewer__slide { cursor: zoom-out; }
.film-viewer__stage:fullscreen .film-viewer__slide img { max-width: 100vw; max-height: 100vh; }

.film-strip {
  margin-top: 0;
  padding: 4px 3px 5px;
  overflow-x: auto;
  scrollbar-color: var(--line-strong) #080808;
  background: #080808;
  border-top: 1px solid rgba(255, 252, 244, .45);
  border-bottom: 1px solid rgba(255, 252, 244, .18);
}

.film-strip__track { display: flex; width: max-content; min-width: 100%; gap: 3px; }
.film-strip__frame {
  position: relative;
  flex: 0 0 auto;
  height: clamp(46px, 5.4vw, 76px);
  width: auto;
  aspect-ratio: var(--frame-ratio, 3 / 2);
  padding: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 252, 244, .2);
  background: #111;
  opacity: .52;
  transition: opacity .25s, border-color .25s, transform .25s;
}
.film-strip__frame:hover,
.film-strip__frame.is-active { opacity: 1; border-color: rgba(255,252,244,.78); }
.film-strip__frame.is-active { transform: none; box-shadow: inset 0 0 0 1px rgba(255,252,244,.62); }
.film-strip__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #080808;
}
.film-strip__number {
  position: absolute;
  z-index: 1;
  right: 5px;
  bottom: 3px;
  padding: 1px 3px;
  color: #eee9de;
  background: rgba(0,0,0,.72);
  font: 700 .58rem/1.2 monospace;
}

.film-viewer__status {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .45rem;
  color: var(--muted);
  font: 700 .67rem/1.4 monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.film-viewer__status b { color: var(--text); font-weight: 700; }

@media (min-width: 701px) {
  .latest-work__header,
  .film-strip,
  .film-viewer__status {
    width: min(100%, var(--active-image-width, 100%));
    margin-right: auto;
    margin-left: auto;
  }

  .latest-work__header > div,
  .latest-work__title {
    width: 100%;
  }

  .film-viewer__arrow--prev { transform: translate(-18%, -50%); }
  .film-viewer__arrow--next { transform: translate(18%, -50%); }
  .film-viewer__arrow--prev:hover { transform: translate(-18%, -50%) scale(1.06); }
  .film-viewer__arrow--next:hover { transform: translate(18%, -50%) scale(1.06); }
}

/* 2.8.8 — mobile header controls follow the same outer frame as .site-shell.
   Keep them just inside its edge instead of positioning from the viewport. */
@media (max-width: 700px) {
  .inner-menu,
  .inner-menu.inner-menu--landing {
    --mobile-shell-width: min(calc(100vw - 32px), 1500px);
    --mobile-shell-inset: calc((100vw - var(--mobile-shell-width)) / 2 + 4px);
    padding-right: var(--mobile-shell-inset);
    padding-left: var(--mobile-shell-inset);
  }
}

/* Final 3.0.0 cascade: one compact opening, after every legacy template rule. */
body.kedi-internal-page .site-main { padding-top: 0; }

body.kedi-internal-page .inner-page-heading {
  box-sizing: border-box;
  padding-top: clamp(.85rem, 1.4vw, 1.35rem);
}

body.kedi-internal-page .inner-page-heading__title-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(0, 3fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: end;
}

body.kedi-internal-page .inner-page-heading__title-row > p,
body.kedi-internal-page .inner-page-heading__title-row > .post-meta {
  margin: 0 0 .45rem;
  color: var(--muted);
  font-size: var(--type-micro, .68rem);
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .14em;
  text-transform: uppercase;
}

body.kedi-internal-page .inner-page-heading h1,
body.kedi-internal-page .publications-archive__header h1,
body.kedi-internal-page .journal-feed__header h1,
body.kedi-internal-page .about-story__hero h1,
body.single .post-title {
  max-width: 12ch;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(3.1rem, 5.5vw, 5.75rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.055em;
  overflow-wrap: normal;
  word-break: normal;
}

body.kedi-internal-page .inner-page-heading__intro,
body.kedi-internal-page .journal-feed__intro,
body.kedi-internal-page .about-story__lead {
  max-width: 46rem;
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.58;
}

body.kedi-internal-page .publications-archive__header,
body.kedi-internal-page .journal-feed__header,
body.kedi-internal-page .about-story__hero,
body.single .post-card__header {
  margin-bottom: 0;
  padding-bottom: clamp(1.75rem, 3vw, 2.75rem);
  border-bottom: 0;
}

body.kedi-internal-page .journal-feed__filters { margin-top: clamp(1.1rem, 2vw, 1.6rem); }
body.kedi-internal-page .about-story__portrait { margin-top: 0; }
body.single .post-list { display: block; }
body.single .post-card { padding-bottom: 0; border-bottom: 0; }
body.single .post-content { margin-top: 0; padding-inline: clamp(1rem, 3vw, 2rem); }

@media (max-width: 700px) {
  body.kedi-internal-page .inner-page-heading,
  body.kedi-internal-page .about-story__hero,
  body.kedi-internal-page .journal-feed .inner-page-heading,
  body.kedi-internal-page .publications-archive .inner-page-heading {
    padding-top: .75rem;
  }

  body.kedi-internal-page .inner-page-heading__title-row,
  body.kedi-internal-page .journal-feed__title-row,
  body.kedi-internal-page .about-story__title-row {
    display: block;
  }

  body.kedi-internal-page .inner-page-heading__title-row > p,
  body.kedi-internal-page .inner-page-heading__title-row > .post-meta,
  body.kedi-internal-page .journal-feed__title-row > p,
  body.kedi-internal-page .about-story__title-row .about-story__kicker {
    margin: 0 0 .55rem;
  }

  body.kedi-internal-page .inner-page-heading h1,
  body.kedi-internal-page .publications-archive__header h1,
  body.kedi-internal-page .journal-feed__header h1,
  body.kedi-internal-page .about-story__hero h1,
  body.single .post-title {
    max-width: 100%;
    font-size: clamp(2.75rem, 12.5vw, 3.5rem);
    line-height: .9;
    letter-spacing: -.05em;
  }

  body.kedi-internal-page .inner-page-heading__intro,
  body.kedi-internal-page .journal-feed__intro,
  body.kedi-internal-page .about-story__lead {
    margin-top: 1.15rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  body.kedi-internal-page .publications-archive__header,
  body.kedi-internal-page .journal-feed__header,
  body.kedi-internal-page .about-story__hero,
  body.single .post-card__header {
    padding-bottom: 1.5rem;
  }

  body.kedi-internal-page .journal-feed__filters { margin-top: 1rem; }

  body.kedi-internal-page .journal-feed {
    width: 100%;
    margin-inline: 0;
  }
}

/* Final 2.8.7 geometry — every page, including the landing page, shares the
   same outer 1500px frame.  The fixed header remains viewport-wide so the
   drawer can cover the screen; only its controls and menu copy follow the
   frame gutters. */
.site-shell,
.home .site-shell {
  width: min(calc(100% - 32px), 1500px);
}

@media (min-width: 701px) {
  .inner-menu {
    --inner-shell-width: min(calc(100vw - 32px), 1500px);
    inset: 0 0 auto;
    width: 100%;
    padding-right: calc((100vw - var(--inner-shell-width)) / 2);
    padding-left: calc((100vw - var(--inner-shell-width)) / 2);
    transform: none;
  }

  body.inner-menu-open > .inner-menu .inner-menu__panel,
  .inner-menu.is-open .inner-menu__panel {
    inset: 0;
    width: 100vw;
    min-width: 100vw;
    padding-right: calc((100vw - var(--inner-shell-width)) / 2);
    padding-left: calc((100vw - var(--inner-shell-width)) / 2);
  }

  .inner-menu .inner-menu__list {
    width: 100%;
    max-width: none;
  }

  .about-story__to-top {
    right: calc((100vw - min(calc(100vw - 32px), 1500px)) / 2);
  }
}

@media (max-width: 700px) {
  .latest-work__header { align-items: start; flex-direction: column; margin-bottom: var(--latest-work-gap); }
  .latest-work__title { font-size: clamp(1.8rem, 9vw, 3.25rem); }
  .film-viewer__stage {
    height: var(--active-image-height, calc(var(--gallery-viewport-height, 100svh) - 6.75rem));
    padding: 0;
  }
  .film-viewer__slide img { max-height: 100%; }
  .film-viewer__arrow { display: none; }
  .film-viewer__status span:last-child { display: none; }
}

.film-viewer--empty {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1.5rem;
  padding: 2rem;
  color: var(--muted);
  text-align: center;
  border: 1px solid var(--line);
  background: #080808;
}
.film-viewer--empty p { max-width: 36rem; }
.film-viewer__empty-frame { width: 92px; height: 138px; border: 1px solid var(--line-strong); box-shadow: 8px 8px 0 #151515; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 28px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer p { margin: 0; }
.site-footer__copyright { color: var(--text); }
.site-footer__credit { text-align: right; }

@media (max-width: 680px) {
  .site-shell { width: min(calc(100% - 16px), var(--content-width)); margin: 8px auto; }
  .home .site-shell { width: calc(100% - 16px); }
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer__credit { text-align: left; }
  .site-main { padding-inline: 18px; }
  .home .site-shell { margin-top: 0; }
  .home .site-main { padding: 0; }
  .latest-work { --latest-work-gap: .35rem; padding: var(--latest-work-gap) 0 2.5rem; }
  .latest-work__header { align-items: flex-start; flex-direction: column; }
  .film-viewer__stage {
    height: var(--active-image-height, calc(var(--gallery-viewport-height, 100svh) - 6.75rem));
    min-height: 0;
    padding: 0;
  }
  .film-viewer__slide img {
    max-width: 100%;
    max-height: 100%;
  }
  .film-viewer__arrow { display: none; }
  .film-viewer__status span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .welcome-hero__image,
  .welcome-hero__shade,
  .welcome-hero__vignette {
    animation: none;
  }

  .welcome-hero__image { transform: scale(1.045); }
  .welcome-hero__vignette { opacity: 1; }
  .welcome-hero__mark { animation: none; opacity: 1; transform: translate(-50%, 0); }
  .welcome-hero__title::after { animation: none; opacity: 0; }
  .welcome-hero__archive { animation: none; opacity: 1; transform: translate(-50%, 0); }
  .welcome-hero__chevrons svg { animation: none; opacity: .55; transform: none; }
  .film-viewer__track.is-settling { transition-duration: .01ms; }
  .film-strip__frame { transition: none; }
  .reveal-on-scroll .latest-work__header,
  .reveal-on-scroll .film-viewer__stage,
  .reveal-on-scroll .film-strip,
  .reveal-on-scroll .film-viewer__status {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Final cascade for the 1.4.0 home-page type system. */
.welcome-hero__mark { color: rgba(255, 252, 244, .54); filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
.welcome-hero__title { font-size: var(--type-display); letter-spacing: .02em; border-bottom-width: 2px; }
.welcome-hero__archive-title { color: rgba(255,252,244,.52); font-size: var(--type-body); font-weight: 600; letter-spacing: .08em; text-shadow: 0 2px 10px rgba(0,0,0,.65); }
.welcome-hero__content-link { color: rgba(255,252,244,.45); font-size: var(--type-micro); font-weight: 600; letter-spacing: .12em; text-shadow: 0 2px 8px rgba(0,0,0,.65); }
.welcome-hero__scroll-line { opacity: .62; }

.home .latest-work--new .latest-work__eyebrow,
.home .site-destination__eyebrow,
.home .home-contacts__header > span,
.home .home-about__eyebrow { font-size: var(--type-micro); font-weight: 600; letter-spacing: .12em; }
.home .latest-work--new .latest-work__title,
.home .home-contacts__list span { font-size: var(--type-title); line-height: 1.12; letter-spacing: -.02em; }
.home .site-destination__title,
.home .home-contacts__header h2,
.home .home-about__title { font-size: var(--type-section); line-height: .96; letter-spacing: -.045em; }
.home .home-contacts__header p,
.home .home-about__text { font-size: var(--type-body); line-height: 1.6; }
.home .site-destination__number,
.home .site-destination__action,
.home .home-contacts__list small,
.home .home-contacts__notice,
.home .home-about__action,
.home .portfolio-gallery__counter { font-size: var(--type-micro); letter-spacing: .1em; }

.home .site-destination::before { display: none; }
.home .site-destination,
.home .home-contacts,
.home .home-about,
.home .home-about__link { background: var(--page-bg); }
.home .site-destination { padding: clamp(1.5rem, 3.25vw, 3.5rem); }
.home .site-destination__body { gap: .8rem; }
.home .home-contacts { padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 5vw, 5rem); }
.home .home-contacts__header h2 { margin: .65rem 0 .9rem; }
.home .home-contacts__list a { min-height: clamp(4.25rem, 5.5vw, 5.25rem); }
.home .home-contacts__list a:hover,
.home .home-contacts__list a:focus-visible,
.home .home-contacts__list a:active { padding-inline: .45rem; background: transparent; }
.home .home-about { padding: clamp(.5rem, 1.4vw, 1.25rem); }
.home .home-about__content { gap: 1rem; padding: clamp(2rem, 4.5vw, 5rem); }
.home .home-about__link:hover .home-about__media img,
.home .home-about__link:focus-visible .home-about__media img { transform: none; }

@media (max-width: 700px) {
  .home .site-destination { min-height: 260px; }
  .home .home-contacts { gap: 1.75rem; padding-block: 3rem; }
  .home .home-about__title,
  .home .home-contacts__header h2,
  .home .site-destination__title { font-size: var(--type-section); }
  .home .latest-work--new .latest-work__title { font-size: var(--type-title); }
}

/* Keep configurable card media after the legacy final cascade above. */
.home .site-destination.home-card-bg,
.home .home-contacts.home-card-bg,
.home .home-about__link.home-card-bg {
  background-color: var(--card-bg-color, #0d0d0e);
  background-image: var(--card-bg-image, none);
  background-repeat: no-repeat;
  background-size: cover;
}
.home .site-destination.home-card-bg::before,
.home .home-contacts.home-card-bg::before,
.home .home-about__link.home-card-bg::before { display: block; }

/* KediTheam 2.1.1 — one numbered card language across the home page. */
.home .site-destination,
.home .home-contacts,
.home .home-about__link {
  border: 1px solid rgba(255, 255, 255, .14);
  background-color: var(--card-bg-color, #0d0d0e);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

.home .home-about__link {
  background: #0d0d0e;
}

.home-card-number {
  display: block;
  margin: 0;
  color: rgba(255, 252, 244, .72);
  font-size: var(--type-micro);
  font-weight: 600;
  line-height: 1;
  letter-spacing: .1em;
  padding-bottom: .28em;
  border-bottom: 1px solid currentColor;
}

/* 2.1.2 — keep every home-card number on one shared coordinate. */
.home .site-destination,
.home .home-contacts,
.home .home-about__link {
  position: relative;
}

.home .site-destination__number,
.home .home-card-number {
  position: absolute;
  z-index: 4;
  top: clamp(1.25rem, 2.5vw, 2.5rem);
  left: auto;
  right: clamp(1.25rem, 2.5vw, 2.5rem);
  line-height: 1;
}

/* 2.1.8 — About number belongs to the text panel, matching the requested card area. */
.home .home-about__content {
  position: relative;
}

.home .home-about__content > .home-card-number {
  position: absolute;
  z-index: 4;
  top: clamp(1.25rem, 2.5vw, 2.5rem);
  right: clamp(1.25rem, 2.5vw, 2.5rem);
  left: auto;
  color: rgba(255, 252, 244, .72);
  text-shadow: none;
}

/* 2.1.7 — configurable-card child rules are more specific than the shared
   number rule above, so pin direct card numbers explicitly. */
.home .site-destination.home-card-bg > .home-card-number,
.home .home-contacts.home-card-bg > .home-card-number {
  position: absolute;
  z-index: 4;
  top: clamp(1.25rem, 2.5vw, 2.5rem);
  left: auto;
  right: clamp(1.25rem, 2.5vw, 2.5rem);
}

.home .home-contacts__header > .home-card-number,
.home .home-about__content > .home-card-number {
  color: rgba(255, 252, 244, .72);
  font-size: var(--type-micro);
  letter-spacing: .1em;
}

.home .home-about__media,
.home .home-about__content {
  background: transparent;
}

@media (max-width: 700px) {
  .home .site-destination,
  .home .home-contacts,
  .home .home-about__link {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .2);
  }
}

/* Final cascade: render About as one card, matching the other home cards. */
.home .home-about {
  padding: 1px;
  border: 0;
  background: var(--line);
}

.home .home-about__link {
  border: 0;
  background: var(--card-bg-color, #0d0d0e);
}

.home .home-about__media,
.home .home-about__content {
  background: transparent;
}

@media (max-width: 700px) {
  .home .home-about { padding: 1px; }
}

/* 2.7.2 — seamless top scrim for floating Telegram/iOS browser chrome.
   A rectangular glass bar cannot extend into the browser-owned URL pill area;
   its lower edge only makes that pill look detached. Use an edge-less fade
   over the page instead, so there is no artificial boundary below the pill. */
.inner-menu {
  position: fixed;
  z-index: 9000;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 clamp(1.25rem, 3vw, 3rem);
  border: 0;
  background: transparent;
  pointer-events: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  isolation: isolate;
}

/* 2.8.4 — on desktop, fixed navigation follows the page's content column
   instead of the physical edges of wide and ultrawide displays. */
@media (min-width: 701px) {
  .inner-menu:not(.inner-menu--landing) {
    --inner-menu-container: var(--content-width);
    --inner-menu-gutter: 16px;
    left: 50%;
    right: auto;
    width: min(calc(100% - 2 * var(--inner-menu-gutter)), var(--inner-menu-container));
    padding-right: 0;
    padding-left: 0;
    transform: translateX(-50%);
  }

  .inner-menu--archive {
    --inner-menu-container: 100%;
    --inner-menu-gutter: clamp(2rem, 6vw, 6rem);
  }

  .inner-menu--journal {
    --inner-menu-container: 920px;
    --inner-menu-gutter: clamp(1.25rem, 5vw, 5rem);
  }

  .inner-menu--about {
    --inner-menu-container: 86rem;
    --inner-menu-gutter: 0px;
  }

  .about-story__to-top {
    right: max(0px, calc((100vw - 86rem) / 2));
  }
}

.inner-menu::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-48px - env(safe-area-inset-top, 0px));
  right: 0;
  bottom: 0;
  left: 0;
  border: 0;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 9, .9) 0,
    rgba(8, 8, 9, .72) 45%,
    rgba(8, 8, 9, .28) 76%,
    rgba(8, 8, 9, 0) 100%
  );
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: none;
}

/* On the landing page navigation stays behind the hero until it is passed. */
.inner-menu--landing {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity .32s ease, transform .42s cubic-bezier(.22, 1, .36, 1), visibility 0s linear .42s;
}

.inner-menu--landing.is-visible,
.inner-menu--landing.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.inner-menu__brand {
  position: relative;
  z-index: 9002;
  color: rgba(255, 252, 244, .78);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -.045em;
  text-decoration: none;
  pointer-events: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .82);
}

.inner-menu__brand span { color: var(--accent); }

.inner-menu__toggle {
  position: relative;
  z-index: 9002;
  display: grid;
  place-content: center;
  gap: 5px;
  width: 54px;
  height: 50px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(190, 49, 51, .78);
  pointer-events: auto;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.inner-menu__toggle i {
  display: block;
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .9), 0 0 12px rgba(190, 49, 51, .18);
  transform-origin: center;
  transition: transform .35s ease, opacity .25s ease;
}

.inner-menu.is-open .inner-menu__toggle i:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
.inner-menu.is-open .inner-menu__toggle i:nth-of-type(2) { opacity: 0; }
.inner-menu.is-open .inner-menu__toggle i:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

.inner-menu__panel {
  position: fixed;
  z-index: 9001;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 96px clamp(1.5rem, 8vw, 9rem) 48px;
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  background: rgba(8, 8, 9, .97);
  pointer-events: auto;
  transform: translateY(-1rem);
  transition: opacity .32s ease, transform .4s ease, visibility 0s linear .4s;
}

/* 2.6.3 — keep the fixed drawer above positioned archive/story content. */
.inner-menu.is-open {
  border-bottom-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  pointer-events: auto;
}

.inner-menu.is-open::before {
  opacity: 0;
}

.inner-menu.is-open .inner-menu__panel {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition-delay: 0s;
}

.inner-menu__list {
  width: min(100%, 1050px);
  margin: auto;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.inner-menu__list li { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.inner-menu__list li:first-child { border-top: 1px solid rgba(255, 255, 255, .1); }

.inner-menu__list a {
  display: flex;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding: clamp(.85rem, 2vh, 1.4rem) 0;
  color: rgba(255, 252, 244, .76);
  font-size: clamp(1.65rem, 4.8vw, 4.5rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.045em;
  text-decoration: none;
  transition: color .2s ease, padding-left .3s ease;
}

.inner-menu__list a > span,
.inner-menu__list small {
  color: var(--muted);
  font-size: .67rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.inner-menu__list small { margin-left: auto; }
.inner-menu__list a:hover,
.inner-menu__list a:active { color: var(--accent-hover); padding-left: .3rem; }
.inner-menu__toggle:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
.inner-menu-open { overflow: hidden; }

body.kedi-internal-page .site-shell { margin-top: 70px; }

@media (max-width: 700px) {
  .inner-menu {
    height: 70px;
    padding-top: env(safe-area-inset-top, 0px);
  }
  .inner-menu__panel { padding: 82px 1.25rem 32px; }
  .inner-menu__list a { font-size: clamp(1.55rem, 8.5vw, 2.35rem); }
  body.kedi-internal-page .site-shell { margin-top: 0; padding-top: 70px; }
}

/* 2.7.5 — cover Telegram's translucent URL-chrome while the drawer is open.
   The browser-owned pill can reveal page pixels above the visual viewport, so
   the open state paints a separate root-level backdrop with generous overscan. */
html.inner-menu-open,
body.inner-menu-open {
  background: #080809;
  overscroll-behavior: none;
}

body.inner-menu-open::before {
  content: "";
  position: fixed;
  z-index: 8998;
  top: calc(-220px - env(safe-area-inset-top, 0px));
  right: 0;
  bottom: -120px;
  left: 0;
  background: #080809;
  pointer-events: none;
}

/* 2.7.6 — iOS Telegram renders its translucent URL pill outside the page
   viewport.  It may sample the native scroll-view content behind that pill,
   so an oversized fixed overlay alone is insufficient.  While the drawer is
   open, remove the actual page pixels from compositing and leave the root
   scroll-view itself uniformly dark. */
html.inner-menu-open {
  min-height: 100%;
  background-color: #080809 !important;
}

body.inner-menu-open {
  min-height: 100%;
  background: #080809 !important;
  color-scheme: dark;
}

body.inner-menu-open > .welcome-hero,
body.inner-menu-open > .site-shell {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.inner-menu-open > .inner-menu,
body.inner-menu-open > .inner-menu .inner-menu__panel {
  visibility: visible !important;
}

body.inner-menu-open > .inner-menu {
  z-index: 2147483646;
}

body.inner-menu-open > .inner-menu .inner-menu__panel {
  z-index: 2147483645;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #080809 !important;
}

.inner-menu.is-open .inner-menu__panel {
  background: #080809;
  box-shadow: 0 -220px 0 220px #080809;
}

@media (prefers-reduced-motion: reduce) {
  .inner-menu__panel,
  .inner-menu__toggle i,
  .inner-menu__list a { transition: none; }
  .inner-menu--landing { transition: none; }
}

@media (hover: hover) and (pointer: fine) {
  .inner-menu__toggle:hover { color: rgba(219, 67, 69, .96); }
}

/* 2.7.4 — no shared header surface: brand and toggle are independent pills. */
.inner-menu::before {
  display: none;
}

.inner-menu__brand,
.inner-menu__toggle {
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(12, 12, 13, .68);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  backdrop-filter: blur(14px) saturate(115%);
}

.inner-menu__brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .62rem 1rem;
  border-radius: 999px;
}

.inner-menu__toggle {
  width: 58px;
  height: 48px;
  border-radius: 999px;
}

.inner-menu.is-open .inner-menu__brand,
.inner-menu.is-open .inner-menu__toggle {
  background: rgba(12, 12, 13, .78);
}

@media (max-width: 700px) {
  .inner-menu {
    padding-right: .85rem;
    padding-left: .85rem;
  }

  .inner-menu__brand {
    min-height: 40px;
    padding: .5rem .82rem;
  }

  .inner-menu__toggle {
    width: 54px;
    height: 44px;
  }
}

/* 2.7.7 final cascade: the Telegram-safe root replacement stays opaque,
   while the visible drawer regains the original translucent, shaded finish. */
body.inner-menu-open::before {
  background:
    radial-gradient(circle at 18% 12%, rgba(198, 83, 76, .12), transparent 34%),
    linear-gradient(180deg, #080809 0%, #0d0d0f 48%, #080809 100%) !important;
}

body.inner-menu-open > .inner-menu .inner-menu__panel,
.inner-menu.is-open .inner-menu__panel {
  background:
    radial-gradient(circle at 18% 10%, rgba(198, 83, 76, .1), transparent 36%),
    linear-gradient(180deg, rgba(8, 8, 9, .92), rgba(12, 12, 14, .96)) !important;
  box-shadow: 0 -220px 0 220px #080809 !important;
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  backdrop-filter: blur(18px) saturate(112%);
}

body.inner-menu-open > .inner-menu .inner-menu__brand,
body.inner-menu-open > .inner-menu .inner-menu__toggle {
  visibility: visible !important;
  opacity: 1 !important;
}

body.inner-menu-open > .inner-menu .inner-menu__toggle {
  z-index: 2147483647 !important;
  border-color: rgba(198, 83, 76, .38);
  background: rgba(16, 12, 13, .9);
  color: rgba(232, 111, 103, 1);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .48),
    0 0 20px rgba(198, 83, 76, .16),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}

body.inner-menu-open > .inner-menu .inner-menu__toggle i {
  width: 30px;
  height: 2.5px;
  background: currentColor;
  opacity: 1;
}

body.inner-menu-open > .inner-menu .inner-menu__toggle i:nth-of-type(1) {
  transform: translateY(7px) rotate(45deg);
}

body.inner-menu-open > .inner-menu .inner-menu__toggle i:nth-of-type(2) {
  opacity: 0;
}

body.inner-menu-open > .inner-menu .inner-menu__toggle i:nth-of-type(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 2.7.8 — the internal-page brand doubles as an explicit home link. */
.inner-menu__brand .inner-menu__brand-home-accent {
  color: var(--accent);
}

.inner-menu__brand .inner-menu__brand-home-label {
  color: inherit;
}

.inner-menu__brand-home-accent + .inner-menu__brand-home-label {
  margin-left: .28em;
}

/* 2.8.0 — a short cinematic curtain between destinations selected in the
   navigation drawer. It sits above the Telegram-safe drawer/root replacement,
   so no frame of the outgoing page can flash before navigation. */
.page-transition {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  background: rgba(5, 5, 6, 0);
  opacity: 0;
  pointer-events: all;
  transition: opacity .24s ease, background-color .24s ease;
}

.page-transition.is-active {
  background: #050506;
  opacity: 1;
}

.page-transition__brand {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  color: rgba(255, 252, 244, .82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.065em;
  opacity: 0;
  transform: translateY(.45rem) scale(.985);
  text-shadow: 0 4px 24px rgba(0, 0, 0, .7);
}

.page-transition__brand::after {
  content: "";
  position: absolute;
  right: .02em;
  bottom: -.16em;
  left: .02em;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 252, 244, .55);
  transform: scaleX(0);
  transform-origin: left center;
}

.page-transition__brand::before {
  content: "MicK";
  position: absolute;
  z-index: 1;
  inset: 0;
  color: transparent;
  background: linear-gradient(
    105deg,
    transparent 28%,
    rgba(255, 255, 255, .92) 48%,
    rgba(255, 255, 255, .5) 54%,
    transparent 72%
  );
  background-size: 260% 100%;
  background-position: 145% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  pointer-events: none;
}

.page-transition__k { color: rgba(219, 67, 69, .92); }

.page-transition.is-active .page-transition__brand {
  animation: page-transition-brand-in .28s .18s cubic-bezier(.22, 1, .36, 1) forwards;
}

.page-transition.is-active .page-transition__brand::after {
  animation: page-transition-line-in .26s .28s cubic-bezier(.22, 1, .36, 1) forwards;
}

.page-transition.is-active .page-transition__brand::before {
  animation: page-transition-shimmer .42s .34s ease-out forwards;
}

@keyframes page-transition-brand-in {
  to { opacity: 1; transform: none; }
}

@keyframes page-transition-line-in {
  to { transform: scaleX(1); }
}

@keyframes page-transition-shimmer {
  0% { background-position: 145% 0; opacity: 0; }
  18% { opacity: .9; }
  82% { opacity: .9; }
  100% { background-position: -45% 0; opacity: 0; }
}

html.is-page-leaving,
html.is-page-leaving body { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
  .page-transition { transition-duration: .12s; }
  .page-transition.is-active .page-transition__brand,
  .page-transition.is-active .page-transition__brand::after,
  .page-transition.is-active .page-transition__brand::before { animation: none; }
  .page-transition.is-active .page-transition__brand { opacity: 1; transform: none; }
  .page-transition.is-active .page-transition__brand::after { transform: scaleX(1); }
}

/* Final 2.8.6 cascade — align controls to the outer grey .site-shell while
   keeping the drawer itself viewport-fixed and truly fullscreen. */
@media (min-width: 701px) {
  .inner-menu:not(.inner-menu--landing) {
    --inner-shell-width: min(calc(100vw - 32px), 1500px);
    inset: 0 0 auto;
    width: 100%;
    padding-right: calc((100vw - var(--inner-shell-width)) / 2);
    padding-left: calc((100vw - var(--inner-shell-width)) / 2);
    transform: none;
  }

  body.inner-menu-open > .inner-menu:not(.inner-menu--landing) .inner-menu__panel,
  .inner-menu:not(.inner-menu--landing).is-open .inner-menu__panel {
    inset: 0;
    width: 100vw;
    min-width: 100vw;
    padding-right: calc((100vw - var(--inner-shell-width)) / 2);
    padding-left: calc((100vw - var(--inner-shell-width)) / 2);
  }

  .inner-menu:not(.inner-menu--landing) .inner-menu__list {
    width: 100%;
    max-width: none;
  }

  .about-story__to-top {
    right: calc((100vw - min(calc(100vw - 32px), 1500px)) / 2);
  }
}

/* Final 2.8.7 override: one outer frame for every page and for both header
   variants.  Keep this after all legacy context-specific menu widths. */
.site-shell,
.home .site-shell {
  width: min(calc(100% - 32px), 1500px);
}

@media (min-width: 701px) {
  .inner-menu,
  .inner-menu.inner-menu--landing {
    --inner-shell-width: min(calc(100vw - 32px), 1500px);
    inset: 0 0 auto;
    width: 100%;
    padding-right: calc((100vw - var(--inner-shell-width)) / 2);
    padding-left: calc((100vw - var(--inner-shell-width)) / 2);
    transform: none;
  }

  body.inner-menu-open > .inner-menu .inner-menu__panel,
  .inner-menu.is-open .inner-menu__panel {
    inset: 0;
    width: 100vw;
    min-width: 100vw;
    padding-right: calc((100vw - var(--inner-shell-width)) / 2);
    padding-left: calc((100vw - var(--inner-shell-width)) / 2);
  }

  .inner-menu .inner-menu__list {
    width: 100%;
    max-width: none;
  }

  .about-story__to-top {
    right: calc((100vw - min(calc(100vw - 32px), 1500px)) / 2);
  }
}

/* Final 2.8.8 mobile frame alignment. */
@media (max-width: 700px) {
  .inner-menu,
  .inner-menu.inner-menu--landing {
    --mobile-shell-width: min(calc(100vw - 32px), 1500px);
    --mobile-shell-inset: calc((100vw - var(--mobile-shell-width)) / 2 + 4px);
    padding-right: var(--mobile-shell-inset);
    padding-left: var(--mobile-shell-inset);
  }
}

/* 3.1.0 definitive final override. */
@media (min-width: 701px) {
  body .inner-menu:not(.inner-menu--landing),
  .inner-menu.inner-menu--landing {
    --inner-shell-width: min(calc(100% - 32px), 1500px);
    --inner-control-inset: 14px;
    padding-right: calc((100% - var(--inner-shell-width)) / 2 + var(--inner-control-inset));
    padding-left: calc((100% - var(--inner-shell-width)) / 2 + var(--inner-control-inset));
  }

  .about-story__to-top,
  .site-to-top {
    right: calc((100% - min(calc(100% - 32px), 1500px)) / 2 + 14px);
  }
}

@media (max-width: 700px) {
  .inner-menu,
  .inner-menu.inner-menu--landing {
    --mobile-shell-width: min(calc(100vw - 32px), 1500px);
    --mobile-shell-inset: calc((100vw - var(--mobile-shell-width)) / 2 + 5px);
    padding-right: var(--mobile-shell-inset);
    padding-left: var(--mobile-shell-inset);
  }
}

body.kedi-internal-page .inner-page-heading h1,
body.kedi-internal-page .publications-archive__header h1,
body.kedi-internal-page .journal-feed__header h1,
body.kedi-internal-page .about-story__hero h1,
body.single .post-title {
  max-width: none;
  font-size: clamp(3rem, 4.6vw, 5.25rem);
  line-height: .94;
  letter-spacing: -.05em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 700px) {
  body.kedi-internal-page .inner-page-heading h1,
  body.kedi-internal-page .publications-archive__header h1,
  body.kedi-internal-page .journal-feed__header h1,
  body.kedi-internal-page .about-story__hero h1,
  body.single .post-title {
    font-size: clamp(2rem, 9vw, 2.35rem);
    line-height: 1;
    letter-spacing: -.045em;
  }
}

/* 3.3.1 definitive menu surface: achromatic only.  Keep this at EOF so the
   legacy red drawer gradients cannot win the cascade. */
html.inner-menu-open,
body.inner-menu-open,
body.inner-menu-open::before {
  background-color: var(--menu-bg-color, #080809) !important;
}

body.inner-menu-open::before {
  background-image: none !important;
}

body.inner-menu-open > .inner-menu .inner-menu__panel,
.inner-menu.is-open .inner-menu__panel {
  background-color: var(--menu-bg-color, #080809) !important;
  background-image:
    radial-gradient(ellipse at center, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .62) 72%, rgba(0, 0, 0, .9) 100%),
    linear-gradient(rgba(0, 0, 0, .74), rgba(0, 0, 0, .84)),
    var(--menu-bg-image, none) !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: cover !important;
  box-shadow: 0 -220px 0 220px var(--menu-bg-color, #080809) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
