.subpage { background: var(--paper); }
.subpage .site-header { color: var(--ink); }
.subpage .primary-nav a[aria-current="page"] { color: var(--blue-dark); }
.page-hero {
  min-height: 440px;
  padding: 155px max(28px, calc((100vw - var(--max)) / 2)) 70px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  background:
    linear-gradient(105deg, rgba(7,16,23,.96), rgba(7,16,23,.68)),
    url("assets/hero-tufanbeyli.webp") center 53% / cover no-repeat;
  color: var(--white);
}
.page-hero h1 { margin: 0; font: 700 clamp(56px, 8vw, 110px)/.95 var(--display); letter-spacing: -.06em; }
.page-hero p:last-child { max-width: 620px; margin: 25px 0 0; color: rgba(255,255,255,.7); font-size: 17px; line-height: 1.6; }
.page-hero > strong { color: var(--cyan); font: 700 clamp(70px, 10vw, 145px)/.8 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.07em; }
.page-hero > strong::after { content: " projects"; display: block; margin-top: 18px; color: rgba(255,255,255,.5); font: 700 10px var(--sans); letter-spacing: .14em; text-align: right; text-transform: uppercase; }
.gallery-hero > strong::after { content: " photographs"; }

.reference-browser, .gallery-browser { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 70px 0 120px; }
.reference-tools { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.reference-tools label, .gallery-tools label { display: block; }
.reference-tools label > span, .gallery-tools label > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.reference-tools input, .reference-tools select, .gallery-tools input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: 14px var(--sans);
}
.reference-tools input:focus, .reference-tools select:focus, .gallery-tools input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
.reference-summary { display: flex; justify-content: space-between; align-items: center; margin: 28px 0 12px; color: var(--muted); font-size: 13px; }
.reference-summary p { margin: 0; }
.reference-summary button { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--blue-dark); cursor: pointer; }
.reference-actions { display: flex; align-items: center; gap: 24px; }
.reference-actions .download-reference { min-height: 42px; padding: 0 16px; border: 1px solid var(--ink); background: var(--ink); color: var(--white); display: inline-flex; align-items: center; font-weight: 700; }
.reference-actions .download-reference:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.reference-actions .download-reference span { margin-left: 8px; }
.reference-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
.reference-table { width: 100%; min-width: 1080px; border-collapse: collapse; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.reference-table th { padding: 15px 16px; background: var(--ink); color: var(--white); font-size: 10px; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
.reference-table td { padding: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.45; vertical-align: top; }
.reference-table tr:last-child td { border-bottom: 0; }
.reference-table tr:hover td { background: #f6fbfd; }
.reference-table td:nth-child(1) { color: var(--blue-dark); font-weight: 700; }
.reference-table td:nth-child(2), .reference-table td:nth-child(3) { color: var(--ink); font-weight: 600; }
.empty-state { padding: 60px 20px; background: var(--white); color: var(--muted); text-align: center; }

.gallery-tools { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 30px; }
.gallery-tools label { width: min(600px, 100%); }
.gallery-tools p { margin: 0 0 17px; color: var(--muted); font-size: 13px; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border: 0; padding: 0; background: #dce2e5; color: var(--white); cursor: pointer; text-align: left; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s, filter .45s; }
.gallery-item::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(3,9,14,.86)); }
.gallery-item span { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; font-size: 12px; line-height: 1.35; }
.gallery-item:hover img { transform: scale(1.045); filter: saturate(1.08); }
.load-more { display: flex; margin: 34px auto 0; }

.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 30px 90px; border: 0; background: rgba(6,11,16,.96); color: var(--white); }
.lightbox::backdrop { background: #060b10; }
.lightbox figure { width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.lightbox figure img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.lightbox figcaption { max-width: 900px; color: rgba(255,255,255,.72); font-size: 13px; text-align: center; }
.lightbox button { position: fixed; z-index: 2; border: 0; background: transparent; color: var(--white); cursor: pointer; }
.lightbox-close { right: 24px; top: 14px; font-size: 38px; }
.lightbox-prev, .lightbox-next { top: 50%; padding: 20px; font-size: 28px; transform: translateY(-50%); }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.compact-footer { margin-top: 0; }

.products-page-hero { min-height: 500px; padding: 155px max(28px, calc((100vw - var(--max)) / 2)) 70px; display: flex; align-items: flex-end; background: var(--ink); color: var(--white); }
.products-hero-copy { width: min(900px, 100%); }
.products-hero-copy h1 { margin: 0; max-width: 780px; font: 700 clamp(55px, 6.8vw, 96px)/.96 var(--display); letter-spacing: -.06em; }
.products-hero-copy > p:last-child { max-width: 610px; margin: 28px 0 0; color: rgba(255,255,255,.65); font-size: 18px; line-height: 1.65; }
.product-jump { position: sticky; z-index: 10; top: 72px; min-height: 58px; padding: 0 max(28px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--blue); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .05em; }
.product-jump a { padding: 20px 0; }
.product-jump a:hover { color: var(--cyan); }
.product-catalog { width: min(var(--max), calc(100% - 56px)); margin: 0 auto; padding: 110px 0 130px; }
.catalog-intro { display: grid; grid-template-columns: 180px 1fr 350px; gap: 60px; align-items: start; padding-bottom: 75px; }
.catalog-intro h2 { margin: 0; font: 650 clamp(38px, 4.5vw, 62px)/1.08 var(--display); letter-spacing: -.05em; }
.catalog-intro > p { margin: 8px 0 0; color: var(--muted); line-height: 1.7; }
.catalog-accordion { scroll-margin-top: 150px; border-top: 1px solid var(--line); }
.catalog-accordion:last-of-type { border-bottom: 1px solid var(--line); }
.catalog-accordion summary { min-height: 125px; display: grid; grid-template-columns: 180px 1fr 1.1fr 34px; gap: 35px; align-items: center; cursor: pointer; list-style: none; transition: color .2s, background .2s; }
.catalog-accordion summary::-webkit-details-marker { display: none; }
.catalog-accordion summary:hover, .catalog-accordion[open] summary { color: var(--blue-dark); }
.catalog-index { color: var(--blue-dark); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.catalog-summary-title { font: 650 27px/1.15 var(--display); letter-spacing: -.035em; }
.catalog-summary-products { color: var(--muted); font-size: 12px; line-height: 1.6; }
.catalog-toggle { position: relative; width: 30px; height: 30px; border: 1px solid var(--line); }
.catalog-toggle::before, .catalog-toggle::after { content: ""; position: absolute; left: 8px; right: 8px; top: 14px; height: 1px; background: currentColor; }
.catalog-toggle::after { transform: rotate(90deg); transition: transform .2s; }
.catalog-accordion[open] .catalog-toggle::after { transform: rotate(0); }
.catalog-accordion .catalog-grid { padding: 4px 0 48px; }
.catalog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.catalog-card { min-height: 320px; display: grid; grid-template-columns: 43% 57%; border: 1px solid var(--line); background: var(--white); transition: box-shadow .25s, transform .25s; }
.catalog-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(17,31,42,.09); }
.catalog-image { display: grid; place-items: center; padding: 28px; background: var(--paper); overflow: hidden; }
.catalog-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s; }
.catalog-card:hover .catalog-image img { transform: scale(1.05); }
.catalog-copy { padding: 30px 28px; }
.catalog-type { margin: 0 0 12px; color: var(--blue-dark); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.catalog-copy h3 { margin: 0 0 14px; font: 650 24px/1.15 var(--display); letter-spacing: -.035em; }
.catalog-copy > p:not(.catalog-type) { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.catalog-copy ul { margin: 20px 0 0; padding: 15px 0 0; border-top: 1px solid var(--line); list-style: none; }
.catalog-copy li { position: relative; padding: 4px 0 4px 13px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.catalog-copy li::before { content: ""; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; background: var(--blue); }
.catalog-copy dl { margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.catalog-copy dl div { display: flex; justify-content: space-between; gap: 15px; padding: 4px 0; font-size: 11px; }
.catalog-copy dt { color: var(--muted); }
.catalog-copy dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; }
.product-contact { padding: 90px max(28px, calc((100vw - var(--max)) / 2)); display: flex; justify-content: space-between; gap: 60px; align-items: end; background: var(--ink); color: var(--white); }
.product-contact > div { max-width: 800px; }
.product-contact h2 { margin: 0; font: 650 clamp(40px, 5vw, 68px)/1.06 var(--display); letter-spacing: -.05em; }
.product-contact div > p:last-child { max-width: 650px; margin: 24px 0 0; color: rgba(255,255,255,.62); line-height: 1.7; }

@media (max-width: 900px) {
  .reference-tools { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .catalog-intro { grid-template-columns: 1fr; gap: 30px; }
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .page-hero { min-height: 460px; padding: 140px 20px 55px; align-items: flex-start; flex-direction: column; justify-content: flex-end; gap: 30px; }
  .page-hero > strong { font-size: 70px; }
  .page-hero > strong::after { text-align: left; }
  .reference-browser, .gallery-browser { width: calc(100% - 40px); padding: 50px 0 80px; }
  .reference-tools { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .reference-summary { align-items: flex-start; flex-direction: column; gap: 18px; }
  .reference-actions { width: 100%; justify-content: space-between; }
  .gallery-tools { align-items: stretch; flex-direction: column; gap: 12px; }
  .gallery-tools p { margin: 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .lightbox { padding: 55px 18px 30px; }
  .products-page-hero { min-height: 500px; padding: 135px 20px 55px; }
  .products-hero-copy h1 { font-size: 52px; }
  .products-hero-copy > p:last-child { font-size: 16px; }
  .product-jump { top: 72px; padding: 0 20px; justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .product-catalog { width: calc(100% - 40px); padding: 80px 0; }
  .catalog-intro { padding-bottom: 70px; }
  .catalog-accordion summary { min-height: 140px; grid-template-columns: 1fr 34px; gap: 10px 20px; padding: 22px 0; }
  .catalog-index, .catalog-summary-title, .catalog-summary-products { grid-column: 1; }
  .catalog-summary-title { font-size: 23px; }
  .catalog-summary-products { font-size: 11px; }
  .catalog-toggle { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .catalog-card { grid-template-columns: 1fr; }
  .catalog-image { aspect-ratio: 1.4 / 1; }
  .product-contact { padding: 75px 20px; align-items: flex-start; flex-direction: column; }
}
