/* Works page (isler/) — the archive: hero, sticky filter bar, wall ("Duvar") / index ("Fihrist"), and the detail plate ("Levha").
 * Built by js/sections/isler.js from data/isler.js. Shares tokens, header and footer with the film site (base.css, kunye.css). */
@view-transition {
  navigation: auto;
}

.page-isler {
  background: var(--bg);
}
.nav__links a[aria-current="page"]:not(.btn) {
  color: var(--gold-bright);
}
.nav__links a[aria-current="page"]:not(.btn)::after {
  transform: scaleX(1);
}

.s-isler {
  padding-top: calc(var(--nav-h) + clamp(28px, 6vw, 88px));
  min-height: 100svh;
}
.isl-static {
  display: none; /* content for crawlers / no-JS; replaced by the app (see <noscript> in the page) */
}

/* ------------------------------------------------------------------ hero */
.isl-hero {
  position: relative;
  display: grid;
  gap: 16px;
  padding-bottom: clamp(30px, 5vw, 60px);
}
.isl-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 13vw, 188px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.isl-hero__title span {
  color: var(--gold-bright);
}
.isl-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-weight: 700;
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.isl-hero__facts b {
  color: var(--gold-bright);
  font-weight: 800;
  font-variant-numeric: lining-nums tabular-nums;
}
.isl-hero__ring {
  position: absolute;
  right: var(--gutter);
  top: clamp(-30px, -2vw, 0px);
  width: min(34vw, 380px);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0.55;
}
.isl-hero__ring circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: isl-ring 2.4s var(--ease-out) 0.2s forwards;
}
.isl-hero__ring circle:nth-child(2) {
  stroke-width: 6;
  stroke-opacity: 0.55;
  animation-delay: 0.05s;
}
.isl-hero__ring circle:nth-child(3) {
  stroke-opacity: 0.35;
  animation-delay: 0.5s;
}
@keyframes isl-ring {
  to {
    stroke-dashoffset: 0;
  }
}
@media (max-width: 700px) {
  .isl-hero__ring {
    width: 46vw;
    opacity: 0.32;
  }
}

/* ------------------------------------------------------------------ filter bar */
.isl-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
  background: rgba(10, 8, 7, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-block: 1px solid var(--line-soft);
}
.isl-bar__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding-block: 12px;
}
.isl-tabs {
  display: flex;
  gap: 8px;
  flex: 1 1 520px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
  margin: -2px;
}
.isl-tabs::-webkit-scrollbar {
  display: none;
}
.isl-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.25s, border-color 0.25s, background-color 0.25s;
}
.isl-tab .n {
  color: var(--dim);
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.04em;
  transition: color 0.25s;
}
.isl-tab:hover {
  color: var(--ink);
  border-color: rgba(231, 200, 120, 0.5);
}
.isl-tab[aria-selected="true"] {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #1a1206;
}
.isl-tab[aria-selected="true"] .n {
  color: rgba(26, 18, 6, 0.7);
}
.isl-tool {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.isl-search {
  position: relative;
  display: block;
}
.isl-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  color: var(--dim);
  pointer-events: none;
}
.isl-search input {
  width: clamp(170px, 20vw, 250px);
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font: 600 13px var(--font-body);
  letter-spacing: 0.02em;
  transition: border-color 0.25s, background-color 0.25s, width 0.35s var(--ease-out);
}
.isl-search input::placeholder {
  color: var(--dim);
}
.isl-search input:hover {
  border-color: rgba(231, 200, 120, 0.4);
}
.isl-search input:focus {
  outline: none;
  border-color: var(--gold-bright);
  background: rgba(231, 200, 120, 0.06);
}
.isl-view {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.isl-view button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.25s, background-color 0.25s;
}
.isl-view button svg {
  width: 14px;
  height: 14px;
}
.isl-view button[aria-pressed="true"] {
  background: rgba(231, 200, 120, 0.16);
  color: var(--gold-bright);
}
@media (max-width: 760px) {
  .isl-tool {
    flex: 1 1 100%;
    margin-left: 0;
  }
  .isl-search {
    flex: 1;
  }
  .isl-search input {
    width: 100%;
  }
  .isl-view button span {
    display: none;
  }
  .isl-view button {
    padding: 0 11px;
  }
}

/* ------------------------------------------------------------------ list */
.isl-list {
  padding-bottom: clamp(70px, 10vw, 140px);
}
.isl-status {
  padding: 18px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  min-height: 1.6em;
}
.isl-group {
  padding-top: clamp(26px, 4.4vw, 60px);
}
.isl-group__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(14px, 2vw, 24px);
}
.isl-group__head h2 {
  /* [panel] Authored category names must fit beside the record count. */
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.2vw, 42px);
  line-height: 1.1;
}
.isl-group__head .n {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}
.isl-group__head .hairline {
  flex: 1;
  align-self: center;
}
.isl-list.is-single .isl-group {
  padding-top: clamp(20px, 3vw, 36px);
}
.isl-list.is-single .isl-group__head {
  display: none;
}

/* wall: 12 columns, tile size follows the kind of work (renders large, films cinematic, print/logos compact) */
.isl-wall {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 20px);
}
.isl-wall > li {
  grid-column: span var(--span, 4);
  min-width: 0;
}
/* [panel] Display roles survive category renames; filter slugs carry no visual behavior. */
.isl-group[data-presentation="art"] {
  --span: 6;
}
.isl-group[data-presentation="film"] {
  --span: 4;
}
.isl-group[data-presentation="compact"] {
  --span: 3;
}
.isl-group[data-presentation="logo"] {
  --span: 3;
}
.isl-group[data-presentation="gallery"] {
  --span: 4;
}
@media (max-width: 1100px) {
  .isl-group[data-presentation="film"],
  .isl-group[data-presentation="gallery"] {
    --span: 6;
  }
  .isl-group[data-presentation="compact"],
  .isl-group[data-presentation="logo"] {
    --span: 4;
  }
}
@media (max-width: 700px) {
  .isl-group[data-presentation="art"],
  .isl-group[data-presentation="film"],
  .isl-group[data-presentation="gallery"] {
    --span: 12;
  }
  .isl-group[data-presentation="compact"],
  .isl-group[data-presentation="logo"] {
    --span: 6;
  }
}

.isl-tile {
  position: relative;
  display: block;
  aspect-ratio: var(--ratio, 4 / 3);
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-3);
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.isl-group[data-presentation="logo"] .isl-tile {
  background: #ece6d8;
}
.isl-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.001);
  transition: opacity 0.7s ease, transform 1.1s var(--ease-expo), filter 0.5s;
}
.isl-tile.is-in img {
  opacity: 1;
}
.isl-tile::before {
  /* skeleton shimmer until the image arrives */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(231, 200, 120, 0.07) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: isl-shimmer 1.6s linear infinite;
}
.isl-tile.is-in::before {
  display: none;
}
@keyframes isl-shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}
.isl-tile__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 44px 16px 15px;
  background: linear-gradient(180deg, rgba(6, 4, 3, 0), rgba(6, 4, 3, 0.9));
  transition: transform 0.5s var(--ease-out);
}
.isl-tile__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.45vw, 20px);
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.isl-tile__meta {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  opacity: 0.92;
}
.isl-tile__no {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 2;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9), 0 0 2px rgba(0, 0, 0, 0.9);
  font-variant-numeric: lining-nums tabular-nums;
}
.isl-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  margin: -29px 0 0 -29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 8, 7, 0.55);
  border: 1px solid rgba(231, 200, 120, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--gold-bright);
  transition: transform 0.4s var(--ease-out), background-color 0.3s;
}
.isl-tile__play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}
.isl-tile::after {
  /* viewfinder corners, drawn on hover / focus */
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out);
  --c: var(--gold-bright);
  background:
    linear-gradient(var(--c), var(--c)) top left / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 1px 18px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 18px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 1px 18px no-repeat;
}
@media (hover: hover) {
  .isl-tile:hover img {
    transform: scale(1.045);
  }
  .isl-tile:hover .isl-tile__play {
    transform: scale(1.1);
    background: rgba(231, 200, 120, 0.9);
    color: #1a1206;
  }
}
.isl-tile:hover::after,
.isl-tile:focus-visible::after {
  opacity: 1;
  transform: none;
}
.isl-tile:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* index ("Fihrist") */
.isl-index {
  list-style: none;
  border-top: 1px solid var(--line);
}
.isl-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 170px 96px;
  gap: 18px;
  align-items: baseline;
  padding: 17px 6px;
  border-bottom: 1px solid var(--line-soft);
  transition: background-color 0.25s, padding-left 0.4s var(--ease-out);
}
.isl-row:hover,
.isl-row:focus-visible {
  background: rgba(231, 200, 120, 0.05);
  padding-left: 16px;
}
.isl-row__no {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-variant-numeric: lining-nums tabular-nums;
}
.isl-row__t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(17px, 1.9vw, 24px);
  line-height: 1.25;
}
.isl-row__k,
.isl-row__m {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.isl-row__m {
  text-align: right;
}
@media (max-width: 700px) {
  .isl-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px 4px;
  }
  .isl-row__k {
    grid-column: 2;
  }
  .isl-row__m {
    display: none;
  }
}
.isl-peek {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 45;
  width: 260px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(231, 200, 120, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  background: var(--bg-3);
  pointer-events: none;
  opacity: 0;
  transform: translate(-999px, -999px);
  transition: opacity 0.2s;
}
.isl-peek.is-on {
  opacity: 1;
}
.isl-peek img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.isl-empty {
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(40px, 7vw, 90px) 0;
}
.isl-empty p {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 600;
  max-width: 24ch;
}

/* the detail plate ("levha") lives in css/levha.css (shared with the home page) */

@media (prefers-reduced-motion: reduce) {
  .isl-tile img,
  .isl-tile::after,
  .isl-levha,
  .isl-hero__ring circle {
    transition-duration: 0.01s;
    animation-duration: 0.01s;
  }
  .isl-tile:hover img {
    transform: none;
  }
  .isl-hero__ring circle {
    stroke-dashoffset: 0;
  }
  @view-transition {
    navigation: none;
  }
}

/* "Sanatsal Eserler" page: one category, so a label stands where the tabs are */
.isl-bar__lab {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.isl-bar__lab::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--gold);
}

/* hero backdrops (client, 2026-10-05): the brand film's scenes — İşler: the gold map (G1), Sanatsal Eserler: the hall of works (G6) */
.isl-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(-1 * (var(--nav-h) + clamp(28px, 6vw, 88px)));
  bottom: -40px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  background-size: cover;
  background-position: 70% 40%;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 45%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 45%);
  mask-composite: intersect;
}
.isl-hero[data-mode="isler"]::before {
  background-image: url("../../assets/arka/g1-harita.jpg");
  background-image: image-set(url("../../assets/arka/g1-harita.avif") type("image/avif"), url("../../assets/arka/g1-harita.jpg") type("image/jpeg"));
}
.isl-hero[data-mode="sanatsal"]::before {
  background-image: url("../../assets/arka/g6-salon.jpg");
  background-image: image-set(url("../../assets/arka/g6-salon.avif") type("image/avif"), url("../../assets/arka/g6-salon.jpg") type("image/jpeg"));
}
.s-isler {
  isolation: isolate;
}
