/* BK MİMARLIK — v8 / TR revizyon 3: tek yazı tipi (Helvetica), yeni Hakkında/Projeler düzeni */

:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #6d6d6d;
  --line: rgba(17, 17, 17, 0.12);
  --red: #f00607;
  --display: Helvetica, Arial, sans-serif;

  /* Consistent two-tier type scale used across all pages */
  --size-eyebrow: 13px;
  --size-body: 15px;
  --size-lg: clamp(36px, 4.6vw, 72px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Helvetica, Arial, sans-serif;
}

body.menu-open,
body.home-page {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: var(--size-body);
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Loader */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.page-loader img {
  width: 84px;
}

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 96px;
  z-index: 1000;
  background: var(--bg);
}

.brand-mark {
  position: fixed;
  left: 34px;
  top: 26px;
  z-index: 1002;
  display: block;
}

.brand-mark img {
  width: 42px;
  height: 42px;
  display: block;
}

.brand-title {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 96px;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.brand-title span {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--red);
  white-space: nowrap;
}

.menu-toggle {
  position: fixed;
  right: 34px;
  top: 30px;
  z-index: 1003;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.menu-toggle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Menu */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.menu-inner a {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-inner a:hover {
  color: var(--red);
  transform: translateY(-2px);
}

/* Home marquee */

.home-marquee {
  width: 100vw;
  height: 100vh;
  padding-top: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  background: var(--bg);
  overflow: hidden;
}

.marquee-row {
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 22px;
  width: max-content;
  animation: marqueeScroll 48s linear infinite;
}

.marquee-row.reverse .marquee-track {
  animation-direction: reverse;
}

/* 4th marquee row exists only for the mobile layout (see the 620px
   breakpoint below) — hidden everywhere else so desktop is untouched. */
.marquee-row:nth-of-type(4) {
  display: none;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.marquee-card {
  flex: 0 0 auto;
  width: min(30vw, 420px);
  aspect-ratio: 16 / 10;
  display: block;
  overflow: hidden;
}

.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.marquee-card:hover img {
  transform: scale(1.04);
}

/* Pages */

.page {
  min-height: 100vh;
  padding: 150px 34px 80px;
}

/* Center page content with equal left/right whitespace on wide screens.
   Contact keeps its own full-bleed dark background, so it's excluded. */
.page:not(.contact-page) {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
}

.page-projects {
  padding-top: 128px;
  padding-bottom: 60px;
}

.page-title {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 42px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 64px;
}

.page-title p,
.small-col,
.eyebrow,
.project-eyebrow,
.image-grid article p {
  color: var(--red);
  font-size: var(--size-eyebrow);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.project-card .project-meta {
  color: var(--red);
  font-size: var(--size-eyebrow);
  letter-spacing: 0.16em;
}

.page-title h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 7.4vw, 118px);
  line-height: 0.94;
}

.page-title-compact {
  padding-bottom: 34px;
  border-bottom: 0;
}

.page-title-compact h1 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1;
}

/* Hakkında — Ofis */

.about-page {
  padding-top: 130px;
  padding-bottom: 0;
}

.office-eyebrow {
  color: var(--red);
  font-size: 15px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

/* Shared photo + text row — used for both the office photo and the team portrait, same size */

.photo-text-row {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: stretch;
  padding: 50px 0 60px;
}

.about-page .photo-text-row:first-of-type {
  min-height: calc(100vh - 130px);
}

.about-page .photo-text-row:last-of-type {
  margin-top: 40px;
  padding-top: 70px;
}

.photo-text-row > div:first-child {
  display: flex;
  flex-direction: column;
}

.photo-frame {
  width: 100%;
  flex: 1;
  min-height: 420px;
  margin-top: 14px;
  overflow: hidden;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.office-text,
.founder-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-left: 12px;
  padding-top: 46px;
}

.office-title {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(26px, 2.6vw, 40px);
  line-height: 1.1;
  margin-bottom: 34px;
}

.office-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.office-text p {
  font-size: var(--size-body);
  text-align: justify;
  max-width: 760px;
}

.founder-text {
  max-width: 760px;
}

.founder-text h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 36px);
  line-height: 1.1;
}

.role {
  color: var(--red);
  letter-spacing: 0.12em;
  font-size: var(--size-eyebrow);
  margin: 14px 0 22px;
}

.founder-text p:not(.small-col):not(.role) {
  font-size: var(--size-body);
  text-align: justify;
  margin-bottom: 16px;
}

/* Projects */

.project-index {
  padding-top: 24px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 30px;
}

.project-card {
  display: block;
}

.project-card .project-frame {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.035);
}

.project-card .project-caption {
  margin-top: 16px;
  padding: 0 6px;
}

.project-card .project-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.2;
  color: var(--ink);
}

.project-card .project-meta {
  display: block;
  margin-top: 6px;
}

/* Project detail (F House etc.) */

.project-carousel {
  position: relative;
  margin-top: 40px;
  padding: 0 64px;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 16 / 9;
  background: #fff;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

/* Fullscreen lightbox — opened by clicking/tapping a carousel photo */

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(10, 10, 10, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  display: flex;
}

.lightbox.is-visible {
  opacity: 1;
}

.lightbox-track {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.lightbox-track::-webkit-scrollbar {
  display: none;
}

.lightbox-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.lightbox-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transform: scale(0.86);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.lightbox.is-visible .lightbox-slide img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lightbox-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-prev {
  left: 24px;
}

.lightbox-next {
  right: 24px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--red);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.carousel-arrow.prev {
  left: 6px;
}

.carousel-arrow.next {
  right: 6px;
}

.project-detail-meta {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 50px 64px;
  border-bottom: 0;
}

.project-detail-meta > div:first-child {
  flex: 0 0 220px;
}

.project-detail-meta .meta-row {
  margin-bottom: 14px;
}

.project-detail-meta .meta-row span {
  display: block;
  color: var(--red);
  font-size: var(--size-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.project-detail-meta .meta-row strong {
  font-weight: 400;
  font-family: var(--display);
  font-size: 20px;
}

.project-detail-text p {
  max-width: 720px;
  font-size: var(--size-body);
  text-align: justify;
  margin-bottom: 18px;
}

.back-link {
  display: table;
  margin: 50px auto 0;
  color: var(--red);
  font-size: var(--size-eyebrow);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--red);
  padding-bottom: 4px;
}

/* Image grid (AI concept) */

.image-grid {
  padding-top: 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.image-grid article img {
  width: 100%;
  height: 640px;
  object-fit: cover;
  display: block;
}

.image-grid article p {
  margin-top: 22px;
}

.image-grid article h2 {
  max-width: 720px;
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 46px);
  line-height: 1;
  margin-top: 10px;
}

/* Page footer — Instagram button (every page except İletişim) */

.page-footer {
  display: flex;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: 70px;
}

.social-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.social-btn svg {
  width: 19px;
  height: 19px;
  fill: var(--ink);
  transition: fill 0.2s ease;
}

.social-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.social-btn:hover svg {
  fill: #fff;
}

/* Contact */

.contact-page {
  background: var(--ink);
  color: var(--bg);
  min-height: 100vh;
  padding-bottom: 0;
  padding-left: 64px;
  padding-right: 64px;
}

.contact-page .social-btn {
  border-color: rgba(255, 255, 255, 0.3);
}

.contact-page .social-btn svg {
  fill: #fff;
}

.contact-page .social-btn:hover {
  background: #fff;
  border-color: #fff;
}

.contact-page .social-btn:hover svg {
  fill: var(--ink);
}

.contact-body {
  padding-top: 60px;
  display: flex;
  align-items: stretch;
  gap: 70px;
}

.contact-left {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
}

.contact-left h1 {
  font-family: var(--display);
  font-weight: 400;
  color: var(--red);
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1;
}

.contact-left .lead {
  max-width: 620px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 28px;
}

.contact-info-row {
  display: flex;
  gap: 60px;
  margin-top: auto;
  padding-top: 60px;
}

.contact-info-row h2 {
  color: var(--bg);
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 26px;
}

.contact-info-row a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
}

.contact-info-row p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-map {
  flex: 1 1 50%;
  min-height: 0;
}

.contact-map {
  padding: 0 !important;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    #1c1c1c;
  background-size: 28px 28px;
}

.contact-map iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 260px;
  border: 0;
  display: block;
  filter: grayscale(1) brightness(0.75) contrast(1.15);
}

.contact-map .map-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 6px 12px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Responsive */

@media (max-width: 900px) {
  .marquee-card {
    width: min(58vw, 340px);
  }

  .page-title,
  .photo-text-row,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .photo-frame {
    max-width: 320px;
    min-height: 260px;
  }

  .about-page .photo-text-row:first-of-type {
    min-height: auto;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-detail-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  :root {
    /* Slightly smaller, more consistent type scale for phones */
    --size-eyebrow: 9px;
    --size-body: 12px;
  }

  .site-header {
    height: 82px;
  }

  .brand-mark {
    left: 20px;
    top: 20px;
  }

  .brand-mark img {
    width: 34px;
    height: 34px;
  }

  /* Fix the typewriter title sitting lower than the logo/menu icon —
     it was centered inside a box taller than the actual mobile header. */
  .brand-title {
    height: 82px;
  }

  .brand-title span {
    font-size: 10px;
  }

  .menu-toggle {
    right: 20px;
    top: 24px;
    width: 34px;
    height: 34px;
  }

  .page {
    padding: 120px 22px 60px;
  }

  .menu-overlay {
    padding: 28px;
  }

  /* ---- Homepage marquee: 4 rows, each sliding left, ~1.5 cards visible
     at a time, 12 distinct photos total. Rows 1–3 reuse the existing
     desktop markup (trimmed to 3 unique cards + their loop-duplicate via
     display:none, which keeps the -50% keyframe seamless); row 4 is new
     markup that is hidden on desktop and shown only here. ---- */
  .home-marquee {
    gap: 12px;
    padding-top: 82px;
  }

  .marquee-card {
    width: 64vw;
  }

  .marquee-track {
    animation-duration: 30s !important;
  }

  .marquee-row:nth-of-type(1) .marquee-card:nth-child(4n) {
    display: none;
  }

  .marquee-row:nth-of-type(2) .marquee-card:nth-child(4n) {
    display: none;
  }

  .marquee-row:nth-of-type(3) .marquee-card:nth-child(4),
  .marquee-row:nth-of-type(3) .marquee-card:nth-child(5),
  .marquee-row:nth-of-type(3) .marquee-card:nth-child(9),
  .marquee-row:nth-of-type(3) .marquee-card:nth-child(10) {
    display: none;
  }

  .marquee-row:nth-of-type(4) {
    display: block;
  }

  /* ---- Project detail pages: true edge-to-edge image (bleeds past the
     page's own side padding), smaller arrows tucked closer to the edges,
     meta info directly under the image, then justified body text. ---- */
  .project-carousel {
    padding: 0;
    margin-top: 22px;
    margin-left: -22px;
    margin-right: -22px;
    width: calc(100% + 44px);
  }

  .carousel-arrow {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .carousel-arrow.prev {
    left: 2px;
  }

  .carousel-arrow.next {
    right: 2px;
  }

  .lightbox-slide {
    padding: 20px;
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    font-size: 20px;
  }

  .lightbox-arrow {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .project-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 28px 22px 0;
  }

  .project-detail-meta > div:first-child {
    flex: 0 0 auto;
    display: flex;
    gap: 22px;
    margin-bottom: 22px;
  }

  .project-detail-meta .meta-row {
    margin-bottom: 0;
  }

  .project-detail-meta .meta-row strong {
    font-size: 13px;
  }

  .project-detail-text {
    padding: 0 4px;
  }

  .project-detail-text p {
    max-width: none;
    margin: 0 auto 16px;
  }

  .page-title-compact h1 {
    font-size: 21px;
  }

  /* ---- About page: tighten the top gap, move "Ofis"/"Ekip" up, center images ---- */
  .about-page {
    padding-top: 100px;
  }

  .photo-text-row {
    gap: 20px;
    padding: 20px 0 34px;
  }

  .photo-text-row > div:first-child {
    align-items: center;
    text-align: center;
  }

  .office-eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .photo-frame {
    margin: 8px auto 0;
  }

  .office-text,
  .founder-text {
    padding-top: 20px;
    padding-left: 0;
  }

  .office-title {
    font-size: 19px;
    margin-bottom: 16px;
  }

  .founder-text h2 {
    font-size: 17px;
  }

  /* ---- Projects grid: newest year first, oldest last ---- */
  .project-grid {
    display: flex;
    flex-direction: column;
  }

  .project-card .project-name {
    font-size: 14px;
  }

  /* F House 2023, Sporben 2022, Sefer Apt. 2025, Lamp 2026,
     Caddebostan 2026, Ada Villa 2026, No:8 2026 */
  .project-grid a:nth-child(1) {
    order: 6;
  }

  .project-grid a:nth-child(2) {
    order: 7;
  }

  .project-grid a:nth-child(3) {
    order: 5;
  }

  .project-grid a:nth-child(4) {
    order: 4;
  }

  .project-grid a:nth-child(5) {
    order: 3;
  }

  .project-grid a:nth-child(6) {
    order: 2;
  }

  .project-grid a:nth-child(7) {
    order: 1;
  }

  /* ---- Contact: stack Email/Ofis, keep the map visible below ---- */
  .contact-page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .contact-body {
    flex-direction: column;
    gap: 34px;
    padding-top: 30px;
  }

  .contact-left h1 {
    font-size: 26px;
  }

  .contact-left .lead {
    font-size: 12.5px;
    margin-top: 14px;
  }

  .contact-info-row {
    flex-direction: column;
    gap: 22px;
    padding-top: 30px;
  }

  .contact-info-row h2 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .contact-map {
    flex: 0 0 auto;
    width: 100%;
    height: 170px;
  }
}
