/* =========================================================
   21 — CREATIVE STUDIO
   Pure HTML + CSS build. No JS, no frameworks, no build step.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ink: #0a0a0a;
  --void: #000000;
  --paper: #f4f4f2;
  --smoke: #8f8f8c;
  --line: #242422;

  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1600px;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  --fs-hero: clamp(3.2rem, 11vw, 11rem);
  --fs-display: clamp(2.2rem, 6vw, 6rem);
  --fs-h2: clamp(2rem, 4.4vw, 4.2rem);
  --fs-h3: clamp(1.35rem, 2.4vw, 2.1rem);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  background: var(--ink);
  scroll-behavior: smooth;
}
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.4;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; background: none; border: none; color: inherit; }

::selection { background: var(--paper); color: var(--ink); }

/* film-grain texture, pure CSS, no JS */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--smoke);
}

.idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--smoke);
  font-variant-numeric: tabular-nums;
}

h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.btn--outline {
  border: 1px solid rgba(244, 244, 242, 0.3);
  color: var(--paper);
}
.btn--outline:hover {
  border-color: var(--paper);
  background: rgba(244, 244, 242, 0.06);
}
.btn__arrow { display: inline-block; transition: transform 0.4s var(--ease); }
.btn--outline:hover .btn__arrow { transform: translateY(3px); }

/* =========================================================
   NAVBAR
   ========================================================= */
.menu-toggle-input { display: none; }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.navbar__logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}
.navbar__links {
  display: none;
  gap: 2.5rem;
}
.navbar__links a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--smoke);
  transition: color 0.3s ease;
}
.navbar__links a:hover { color: var(--paper); }

.navbar__cta {
  display: none;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--line);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  transition: border-color 0.3s ease;
}
.navbar__cta:hover { border-color: var(--paper); }

.navbar__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 55;
}
.navbar__burger span {
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.4s var(--ease), opacity 0.3s ease;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 45;
  display: flex;
  align-items: center;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.6s var(--ease);
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0 var(--gutter);
}
.mobile-menu__links a {
  font-size: var(--fs-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

#menu-toggle:checked ~ .navbar .mobile-menu {
  clip-path: inset(0 0 0% 0);
}
#menu-toggle:checked ~ .navbar .navbar__burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
#menu-toggle:checked ~ .navbar .navbar__burger span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked ~ .navbar .navbar__burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 860px) {
  .navbar__links { display: flex; }
  .navbar__cta { display: inline-flex; }
  .navbar__burger { display: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  width: 100%;
  overflow: hidden;
  background: var(--void);
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 18vw 2vw rgba(0, 0, 0, 0.65);
}
.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 7rem;
  padding-bottom: 2.5rem;
}
.hero__meta {
  display: none;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(244, 244, 242, 0.7);
  padding-top: 4rem;
}
.hero__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
}
.hero__subtitle {
  margin-top: 1rem;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  font-weight: 500;
  color: rgba(244, 244, 242, 0.9);
}
.hero__tags {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(244, 244, 242, 0.6);
}
.hero__tags span { margin: 0 0.6rem; color: rgba(244, 244, 242, 0.3); }
.hero__cta { display: flex; justify-content: center; }

@media (min-width: 860px) {
  .hero__meta { display: flex; }
}

/* page-load reveal (pure CSS keyframes, staggered via --d) */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal-up {
  opacity: 0;
  animation: reveal-up 1s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

/* scroll reveal: progressive enhancement using CSS scroll-driven animations
   where supported; content stays fully visible for all other browsers */
.reveal-on-scroll { opacity: 1; }
@supports (animation-timeline: view()) {
  .reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    animation: reveal-up linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}

/* =========================================================
   SECTIONS (shared)
   ========================================================= */
.section {
  position: relative;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--line);
}
main .section:first-of-type,
main .section:not(:first-of-type) { border-top: 1px solid var(--line); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
}
.section h2 {
  font-size: var(--fs-h2);
}
.section__count {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--smoke);
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.section__count--text { max-width: 220px; text-align: right; }
@media (min-width: 860px) { .section__count { display: block; } }

/* =========================================================
   SELECTED WORK
   ========================================================= */
.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem 2.5rem;
}
@media (min-width: 760px) {
  .work-grid { grid-template-columns: 1fr 1fr; }
}

.work-card {
  display: block;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.work-card__top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.1rem;
}
.work-card__top .year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--smoke);
}
.work-card__image {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #1a1a19;
}
@media (min-width: 760px) {
  .work-card__image { aspect-ratio: 16 / 10; }
}

/* 1. Varsayılan Durum (Siyah Beyaz Başlıyoruz) */
.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  transform: scale(1);
  /* Renk geçişini 0.6s yaptık ki yağ gibi aksın */
  transition: transform 0.9s var(--ease), filter 0.6s ease; 
}

/* 2. JavaScript fotoğrafı ekranda gördüğünde renklendirecek (Mobil ve Masaüstü) */
.work-card.in-view .work-card__image img {
  filter: grayscale(0) contrast(1.15);
}

.work-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.work-card__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0 0.1rem;
}
.work-card__bottom h3 {
  font-size: var(--fs-h3);
  transition: transform 0.5s var(--ease);
}

.work-card__bottom p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--smoke);
  text-align: right;
}

/* =========================================================
   3. SADECE BİLGİSAYARLAR İÇİN HOVER (MOUSE) EFEKTLERİ
   ========================================================= */
@media (hover: hover) {
  .work-card:hover .work-card__image img { 
    transform: scale(1.06); 
    filter: grayscale(0) contrast(1.15); 
  }
  
  .work-card:hover .work-card__image::after { 
    opacity: 0; 
  }
  
  .work-card:hover .work-card__bottom h3 { 
    transform: translateX(6px); 
  }
}
/* =========================================================
   SERVICES — native <details> accordion, no JS
   ========================================================= */
.accordion { border-top: 1px solid var(--line); }
.accordion__item {
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}
.accordion__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  font-size: var(--fs-h3);
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  transition: transform 0.4s var(--ease);
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item:hover summary { transform: translateX(6px); }
.accordion__icon {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--smoke);
  transition: transform 0.4s var(--ease);
  flex-shrink: 0;
}
.accordion__item[open] .accordion__icon { transform: rotate(45deg); }
.accordion__item p {
  max-width: 30rem;
  color: var(--smoke);
  margin-top: 1rem;
  line-height: 1.6;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 860px) {
  .about-grid { grid-template-columns: 3fr 9fr; gap: 2.5rem; }
}
.statement {
  font-size: var(--fs-display);
  font-weight: 500;
  max-width: 46rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.body-copy {
  margin-top: 2.5rem;
  max-width: 34rem;
  color: var(--smoke);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}
.stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 34rem;
}
@media (min-width: 500px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}
.stats strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 600;
}
.stats span {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--smoke);
}

/* =========================================================
   PROCESS — minimal timeline
   ========================================================= */
.timeline {
  position: relative;
  margin-top: clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
@media (min-width: 860px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
  .timeline__line {
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
  }
}
.timeline__item { position: relative; }
.timeline__dot {
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--paper);
  margin-bottom: 2.5rem;
}
@media (min-width: 860px) { .timeline__dot { display: block; } }
.timeline__item h3 {
  font-size: var(--fs-h3);
  margin-top: 0.75rem;
}
.timeline__item p {
  margin-top: 1rem;
  max-width: 22ch;
  color: var(--smoke);
  line-height: 1.6;
}

/* =========================================================
   CLIENTS MARQUEE — pure CSS keyframes
   ========================================================= */
.section--marquee { overflow: hidden; }
.marquee {
  margin-top: 3rem;
  overflow: hidden;
  width: 100%;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 600;
  color: rgba(244, 244, 242, 0.25);
  padding: 0 2.5rem;
  white-space: nowrap;
  transition: color 0.4s ease;
}
.marquee__track span:hover { color: rgba(244, 244, 242, 0.9); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   TESTIMONIALS — pure CSS radio-button slider
   ========================================================= */
.slider { position: relative; max-width: 48rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.slider__radio { display: none; }

.slider__track {
  position: relative;
  min-height: 260px;
}
.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.quote {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.35;
}
.slider__author {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.slider__author strong { font-size: 0.9rem; }
.slider__author span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--smoke);
}

#slide-1:checked ~ .slider__track #panel-1,
#slide-2:checked ~ .slider__track #panel-2,
#slide-3:checked ~ .slider__track #panel-3 {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slider__dots {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.slider__dots label {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  position: relative;
}
.slider__dots label:hover { border-color: var(--paper); }
#slide-1:checked ~ .slider__dots label:nth-child(1),
#slide-2:checked ~ .slider__dots label:nth-child(2),
#slide-3:checked ~ .slider__dots label:nth-child(3) {
  background: var(--paper);
  border-color: var(--paper);
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}
.contact-email span:first-child,
.contact-email {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 500;
}
.contact-email {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
  transition: border-color 0.3s ease;
}
.contact-email:hover { border-color: var(--paper); }
.contact-email__arrow {
  font-size: 1.4rem;
  transition: transform 0.5s var(--ease);
}
.contact-email:hover .contact-email__arrow { transform: translate(4px, -4px); }

.channels {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: 3rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 760px) {
  .channels { grid-template-columns: repeat(3, 1fr); }
}
.channels a p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}
.channels a:hover p { opacity: 0.6; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--line);
  padding: 5rem 0 2.5rem;
}
.footer__wordmark {
  display: block;
  font-size: clamp(3.5rem, 18vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 0.8;
}
.footer__row {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 860px) {
  .footer__row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}
.footer__nav, .footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
}
.footer__nav a, .footer__social a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--smoke);
  transition: color 0.3s ease;
}
.footer__nav a:hover, .footer__social a:hover { color: var(--paper); }
.footer__copy {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--smoke);
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
a:focus-visible, summary:focus-visible, label:focus-visible, button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 4px;
}
