/* ─────────── İnan Works · site.css ─────────── */

:root {
  --black: #000;
  --black-2: #0a0a0a;
  --white: #fff;
  --mute: rgba(255, 255, 255, 0.55);
  --soft: rgba(255, 255, 255, 0.75);
  --rule: rgba(255, 255, 255, 0.12);
  --rule-strong: rgba(255, 255, 255, 0.22);

  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;

  --gut: clamp(20px, 4vw, 56px);
  --maxw: 1600px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--white); color: var(--black); }

/* ─────────── HEADER ─────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 32px var(--gut);
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }

.brand {
  display: inline-block;
  height: 160px;
}
.brand svg { height: 160px; width: auto; display: block; }
.brand svg path,
.brand svg polygon,
.brand svg rect { fill: var(--white); }

.nav {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav a {
  color: var(--white);
  position: relative;
  padding: 4px 0;
  transition: opacity 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -2px;
  height: 1px;
  background: var(--white);
  transition: right 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav a:hover::after,
.nav a.active::after { right: 0; }

@media (max-width: 720px) {
  .site-header { padding: 18px var(--gut); }
  .brand, .brand svg { height: 96px; }
  .nav { gap: 20px; font-size: 11px; }
}

/* ─────────── HOME — full bleed video hero ─────────── */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media video,
.hero-media .placeholder-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animated placeholder if no video yet */
.placeholder-bg {
  background:
    radial-gradient(ellipse at 25% 30%, rgba(120, 80, 50, 0.5) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 65%, rgba(40, 30, 60, 0.55) 0%, transparent 55%),
    var(--black);
}
.placeholder-bg::before,
.placeholder-bg::after {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04), transparent 35%),
    radial-gradient(circle at 80% 60%, rgba(180, 100, 60, 0.18), transparent 40%);
  animation: drift 22s ease-in-out infinite alternate;
  filter: blur(20px);
}
.placeholder-bg::after {
  animation-duration: 30s;
  animation-direction: alternate-reverse;
  opacity: 0.7;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -2%) scale(1.08); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35) 0%, transparent 25%, transparent 65%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.hero-foot {
  position: absolute;
  z-index: 2;
  bottom: 32px;
  left: var(--gut);
  right: var(--gut);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.hero-foot .left {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--soft);
  max-width: 30ch;
}
.hero-foot .pagemark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--soft);
}
.hero-foot .pagemark .num { color: var(--white); font-weight: 700; margin-right: 6px; }

@media (max-width: 720px) {
  .hero-foot { flex-direction: column; gap: 16px; align-items: flex-start; }
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(64px, 8vw, 96px);
  height: clamp(64px, 8vw, 96px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  transition: transform 0.4s, background 0.3s, border-color 0.3s;
  text-decoration: none;
}
.scroll-cue:hover { background: var(--white); border-color: var(--white); transform: translate(-50%, -50%) scale(1.06); }
.scroll-cue svg { width: 22px; height: 22px; stroke: var(--white); stroke-width: 1.5; fill: none; transition: stroke 0.3s; }
.scroll-cue:hover svg { stroke: var(--black); }

/* ─────────── WORKS PAGE ─────────── */
.works-page {
  background: var(--black);
  min-height: 100vh;
  position: relative;
  padding-top: 0;
}

.works-meta {
  position: fixed;
  bottom: 32px;
  left: var(--gut);
  right: var(--gut);
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--soft);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}
.works-meta .pagemark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.02em;
}
.works-meta .pagemark .num { color: var(--white); font-weight: 700; margin-right: 6px; }
.works-meta .hint {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0.02em;
  opacity: 0.7;
}

@media (max-width: 720px) {
  .works-meta { display: none; }
}

/* Marquee columns container */
.marquee {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  width: 100%;
  height: 100vh;
  padding: 240px var(--gut) 80px;
  overflow: hidden;
}

@media (max-width: 720px) {
  .marquee {
    grid-template-columns: 1fr;
    height: auto;
    padding: 160px var(--gut) 80px;
    overflow: visible;
  }
}

.column {
  position: relative;
  height: 100%;
  overflow: hidden;
}
@media (max-width: 720px) {
  .column { height: auto; overflow: visible; }
}

.column-track {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 36px);
  will-change: transform;
}
@media (max-width: 720px) {
  .column-track { transform: none !important; }
}

.work {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--black-2);
  cursor: pointer;
  border: 0;
  display: block;
  flex-shrink: 0;
}
.work img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease;
  opacity: 0.92;
}
.work:hover img { transform: scale(1.04); opacity: 1; }

.work-info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: var(--white);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s, transform 0.35s;
  pointer-events: none;
}
.work:hover .work-info { opacity: 1; transform: translateY(0); }
.work-info .client {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 6px;
}
.work-info h3 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.15;
}

.work-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 64px;
  height: 64px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s, background 0.25s;
  pointer-events: none;
}
.work:hover .work-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.work-play::before {
  content: "";
  width: 0; height: 0;
  border-left: 16px solid var(--white);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}

/* gradient at bottom of card for legibility */
.work::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 1;
}
.work:hover::after { opacity: 1; }

/* ─────────── CONTACT PAGE ─────────── */
.contact-page {
  background: var(--black);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 240px var(--gut) 80px;
}

.contact-wrap {
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.contact-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--mute);
  margin-bottom: 28px;
}

.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 7vw, 96px);
  letter-spacing: -0.02em;
  line-height: 1;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 60px;
}
.contact-email::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0.3);
  transform-origin: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.contact-email:hover::after { transform: scaleX(1); }

.contact-info {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mute);
}
.contact-info a:hover { color: var(--white); }
.contact-info .label { display: block; margin-bottom: 6px; opacity: 0.55; font-size: 10px; }
.contact-info .value { color: var(--white); font-size: 13px; font-weight: 500; }
.contact-info a.value { transition: opacity 0.2s; }
.contact-info a.value:hover { opacity: 0.7; }

.contact-pagemark {
  position: fixed;
  bottom: 32px;
  left: var(--gut);
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--soft);
}
.contact-pagemark .num { color: var(--white); font-weight: 700; margin-right: 6px; }

@media (max-width: 720px) {
  .contact-info { gap: 28px; }
  .contact-pagemark { display: none; }
}

/* ─────────── MODAL ─────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4vh 4vw;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.open { display: flex; opacity: 1; }

.modal-inner {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
  position: relative;
  transform: scale(0.97);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.modal.open .modal-inner { transform: scale(1); }

.modal-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: var(--black);
}

.modal-close {
  position: absolute;
  top: -56px;
  right: 0;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}
.modal-close:hover { background: var(--white); border-color: var(--white); }
.modal-close svg { width: 16px; height: 16px; stroke: var(--white); stroke-width: 1.5; fill: none; transition: stroke 0.25s; }
.modal-close:hover svg { stroke: var(--black); }

.modal-caption {
  position: absolute;
  bottom: -42px;
  left: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--soft);
}
.modal-caption strong {
  color: var(--white);
  font-weight: 400;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-right: 14px;
}

@media (max-width: 720px) {
  .modal-close { top: -50px; }
  .modal-caption { font-size: 14px; bottom: -36px; }
}

/* ─────────── GALLERY MODAL (statik işler için) ─────────── */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--black);
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.gallery-modal.open { display: block; opacity: 1; }

/* Fixed header — close button + caption + counter */
.gallery-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px var(--gut);
  background: linear-gradient(to bottom, rgba(0,0,0,0.85), rgba(0,0,0,0));
  pointer-events: none;
}
.gallery-head > * { pointer-events: auto; }

.gallery-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--soft);
  max-width: 60%;
}
.gallery-caption strong {
  color: var(--white);
  font-weight: 400;
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-right: 14px;
  display: block;
  margin-bottom: 6px;
}

.gallery-close {
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
  flex-shrink: 0;
}
.gallery-close:hover { background: var(--white); border-color: var(--white); }
.gallery-close svg { width: 16px; height: 16px; stroke: var(--white); stroke-width: 1.5; fill: none; transition: stroke 0.25s; }
.gallery-close:hover svg { stroke: var(--black); }

/* Vertical scroll list */
.gallery-list {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--gut) 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* The sticky header overlaps the very top; push content down to compensate */
  margin-top: -68px;
  padding-top: 24px;
}
.gallery-list img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--black-2);
}

/* Floating counter, bottom right */
.gallery-counter {
  position: fixed;
  bottom: 28px;
  right: var(--gut);
  z-index: 11;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--soft);
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-counter.show { opacity: 1; }
.gallery-counter .num { color: var(--white); font-weight: 700; }

@media (max-width: 720px) {
  .gallery-caption { font-size: 13px; }
  .gallery-list { padding-bottom: 60px; }
}

/* Card icon variation for static (gallery) works */
.work-gallery {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  width: 64px;
  height: 64px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.35s, transform 0.35s;
  pointer-events: none;
}
.work:hover .work-gallery {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.work-gallery svg { width: 22px; height: 22px; stroke: var(--white); stroke-width: 1.6; fill: none; }

@media (prefers-reduced-motion: reduce) {
  .column-track { transform: none !important; animation: none !important; }
  .placeholder-bg::before, .placeholder-bg::after { animation: none; }
}
