:root {
  color-scheme: dark;
  --black: #080604;
  --charcoal: #14100c;
  --cream: #f1eadb;
  --beige: #c8ad84;
  --warm: #8d6340;
  --muted: rgba(241, 234, 219, 0.66);
  --line: rgba(241, 234, 219, 0.16);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: "Inter", Arial, sans-serif;
}

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

.docet-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding: 22px clamp(18px, 4vw, 58px);
  border-bottom: 1px solid transparent;
  transition: background 220ms ease, border-color 220ms ease;
}

.docet-header.is-scrolled {
  background: rgba(8, 6, 4, 0.78);
  border-color: var(--line);
  backdrop-filter: blur(18px);
}

.docet-wordmark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.star-gate {
  position: relative;
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 7px;
  padding: 9px 14px 9px 18px;
  border-left: 1px solid rgba(200, 173, 132, 0.42);
  color: var(--cream);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  text-shadow: 0 0 18px rgba(241, 234, 219, 0.32);
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, text-shadow 180ms ease;
  white-space: nowrap;
}

.star-gate::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 18px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(241, 234, 219, 0.88), transparent);
  opacity: 0.62;
  transform: scaleX(0.72);
  transition: opacity 180ms ease, transform 180ms ease;
}

.star-gate span:first-child {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
  letter-spacing: 0.1em;
}

.star-gate:hover {
  border-color: rgba(241, 234, 219, 0.82);
  color: #fffaf0;
  text-shadow: 0 0 24px rgba(241, 234, 219, 0.56);
  transform: translateY(-1px);
}

.star-gate:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.docet-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.docet-nav a,
.nav-action {
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.docet-nav a:hover,
.nav-action:hover {
  color: var(--cream);
}

.nav-action {
  border: 1px solid var(--line);
  padding: 10px 16px;
  color: rgba(241, 234, 219, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.nav-action:hover {
  border-color: rgba(241, 234, 219, 0.44);
  transform: translateY(-1px);
}

.docet-hero {
  position: relative;
  display: grid;
  min-height: 94svh;
  overflow: hidden;
  padding: 150px clamp(20px, 5vw, 72px) 34px;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 6, 4, 0.95) 0%, rgba(8, 6, 4, 0.58) 46%, rgba(8, 6, 4, 0.94) 100%),
    linear-gradient(0deg, rgba(8, 6, 4, 0.96), rgba(8, 6, 4, 0.18) 44%, rgba(8, 6, 4, 0.76)),
    url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=2200&q=82");
  background-position: center;
  background-size: cover;
  filter: saturate(0.8) contrast(1.08);
  transform: scale(1.03);
}

.docet-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(241, 234, 219, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(241, 234, 219, 0.03) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, transparent, black 20%, black 76%, transparent);
}

.hero-inner {
  align-self: center;
  max-width: 920px;
}

.kicker {
  margin: 0 0 18px;
  color: var(--beige);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

h1 {
  max-width: 950px;
  font-size: clamp(68px, 13vw, 168px);
  line-height: 0.86;
}

.hero-subtitle {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(241, 234, 219, 0.82);
  font-size: clamp(21px, 3vw, 34px);
  line-height: 1.25;
}

.docet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 36px;
  padding: 14px 22px;
  border: 1px solid rgba(241, 234, 219, 0.38);
  background: rgba(241, 234, 219, 0.08);
  color: var(--cream);
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.docet-button:hover {
  transform: translateY(-2px);
  border-color: var(--cream);
  background: var(--cream);
  color: var(--black);
}

.docet-button.light {
  background: var(--cream);
  color: var(--black);
  border-color: var(--cream);
}

.docet-button.light:hover {
  background: transparent;
  color: var(--cream);
}

.hero-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-self: end;
  width: min(100%, 760px);
  margin-top: 72px;
  border: 1px solid var(--line);
  color: rgba(241, 234, 219, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.hero-footer span {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.hero-footer span:last-child {
  border-right: 0;
}

.docet-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(86px, 12vw, 152px) clamp(20px, 4vw, 42px);
}

.about-section {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: clamp(28px, 7vw, 100px);
  border-bottom: 1px solid var(--line);
}

.section-number {
  color: rgba(241, 234, 219, 0.28);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(70px, 10vw, 132px);
  line-height: 0.8;
}

.section-copy {
  max-width: 830px;
}

.section-copy h2,
.section-heading h2,
.series-intro h2,
.community-callout h2 {
  font-size: clamp(44px, 8vw, 104px);
  line-height: 0.96;
}

.section-copy p:not(.kicker) {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(241, 234, 219, 0.74);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.65;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 44px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.experience-card {
  min-height: 330px;
  padding: clamp(24px, 4vw, 38px);
  background:
    linear-gradient(180deg, rgba(200, 173, 132, 0.08), transparent),
    var(--charcoal);
  transition: background 180ms ease, transform 180ms ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, rgba(200, 173, 132, 0.14), transparent),
    #17120e;
}

.experience-card span {
  color: rgba(200, 173, 132, 0.82);
  font-size: 12px;
  font-weight: 800;
}

.experience-card h3 {
  margin-top: 82px;
  font-size: clamp(31px, 4vw, 48px);
}

.experience-card p {
  max-width: 280px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.series-section {
  padding: clamp(86px, 12vw, 152px) clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(141, 99, 64, 0.14), transparent 38%),
    #0b0806;
}

.series-intro {
  max-width: var(--max);
  margin: 0 auto 44px;
}

.archive-stack {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  max-width: var(--max);
  margin: 0 auto;
  border: 1px solid var(--line);
  overflow: hidden;
}

.archive-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(241, 234, 219, 0.08), transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent),
    #16100c;
  transition: transform 220ms ease, background 220ms ease;
}

.archive-card:last-child {
  border-right: 0;
}

.archive-card:hover {
  transform: translateY(-8px);
  background:
    linear-gradient(180deg, rgba(200, 173, 132, 0.2), transparent 42%),
    #1b130e;
}

.archive-card span {
  color: var(--beige);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
}

.archive-card h3 {
  font-size: clamp(25px, 3vw, 42px);
  line-height: 0.95;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.community-callout {
  display: grid;
  place-items: center;
  min-height: 88svh;
  padding: clamp(76px, 10vw, 132px) 20px;
  text-align: center;
  background:
    linear-gradient(rgba(8, 6, 4, 0.78), rgba(8, 6, 4, 0.84)),
    url("https://images.unsplash.com/photo-1481833761820-0509d3217039?auto=format&fit=crop&w=2200&q=82");
  background-position: center;
  background-size: cover;
}

.community-callout h2 {
  max-width: 980px;
}

.community-callout p {
  margin: 28px 0 0;
  color: var(--beige);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
}

.docet-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 4vw, 58px);
  color: rgba(241, 234, 219, 0.62);
  font-size: 13px;
  font-weight: 800;
}

.docet-footer a:hover {
  color: var(--cream);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .docet-header {
    grid-template-columns: 1fr auto;
  }

  .star-gate {
    justify-self: end;
  }

  .docet-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .docet-hero {
    padding-top: 176px;
  }

  .about-section,
  .experience-grid {
    grid-template-columns: 1fr;
  }

  .archive-stack {
    grid-template-columns: 1fr;
  }

  .archive-card {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .archive-card:last-child {
    border-bottom: 0;
  }

  .archive-card span,
  .archive-card h3 {
    writing-mode: horizontal-tb;
    transform: none;
  }
}

@media (max-width: 560px) {
  .docet-header {
    gap: 14px;
    padding: 16px;
  }

  .docet-wordmark {
    font-size: 18px;
  }

  .star-gate {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 0 8px 14px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .star-gate span:first-child {
    font-size: 14px;
  }

  .nav-action {
    padding: 9px 12px;
  }

  .docet-hero {
    min-height: 92svh;
    padding: 158px 18px 26px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 88px);
  }

  .hero-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-footer span:nth-child(2) {
    border-right: 0;
  }

  .hero-footer span:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .docet-button {
    width: 100%;
  }
}

/* ── GALERI ── */
.galeri-section {
  padding: 6rem 2rem;
  background: #0a0a0a;
}
.galeri-section .kicker { color: #888; font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1rem; }
.galeri-section h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem,5vw,3.5rem); color: #fff; margin-bottom: 3rem; }
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.galeri-card {
  background: #111;
  border: 1px solid #222;
  border-radius: 4px;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.galeri-card:hover { transform: translateY(-4px); border-color: #444; }
.galeri-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.galeri-card-body { padding: 1.25rem; }
.galeri-card-body h3 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: .5rem; }
.galeri-card-body p { color: #888; font-size: .875rem; line-height: 1.5; }
.galeri-card-body time { display: block; color: #555; font-size: .75rem; margin-top: .75rem; letter-spacing: .05em; }
.galeri-empty { text-align: center; color: #555; padding: 3rem; grid-column: 1/-1; }

/* ════════════════════════════════════════
   ANIMASYONLAR & ETKİLEŞİM (docet-anim.js)
   ════════════════════════════════════════ */

/* ── Custom cursor ── */
.docet-cursor,
.docet-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 320ms ease, width 220ms ease, height 220ms ease,
    background 220ms ease, border-color 220ms ease;
  will-change: transform;
}

.docet-cursor {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(200, 173, 132, 0.7);
  mix-blend-mode: difference;
}

.docet-cursor-dot {
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--beige);
}

body.cursor-ready .docet-cursor,
body.cursor-ready .docet-cursor-dot {
  opacity: 1;
}

body.cursor-ready * {
  cursor: none !important;
}

/* hover'da imleç büyür */
.docet-cursor.is-hover {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: rgba(241, 234, 219, 0.9);
  background: rgba(200, 173, 132, 0.08);
}

.docet-cursor-dot.is-hover {
  opacity: 0;
}

/* ── Hero açılış: kelime kelime ── */
.hero-title-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.hero-title-word > span {
  display: inline-block;
  transform: translateY(110%);
}

.intro-ready .hero-title-word > span {
  animation: word-rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes word-rise {
  to {
    transform: translateY(0);
  }
}

/* kicker / subtitle / buton girişi */
.intro-fade {
  opacity: 0;
  transform: translateY(16px);
}

.intro-ready .intro-fade {
  animation: intro-fade-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--d, 0s);
}

@keyframes intro-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Hero fare ışığı ── */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 600ms ease;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 40%),
    rgba(200, 173, 132, 0.16),
    transparent 70%
  );
}

.docet-hero:hover .hero-glow {
  opacity: 1;
}

/* ── Stagger reveal ── */
.stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 720ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero footer etiketleri canlanır ── */
.hero-footer span {
  position: relative;
  overflow: hidden;
  transition: color 220ms ease, background 220ms ease;
}

.hero-footer span::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateY(100%);
  background: rgba(200, 173, 132, 0.12);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-footer span:hover {
  color: var(--cream);
}

.hero-footer span:hover::before {
  transform: translateY(0);
}

/* ── Magnetik buton ── */
.docet-button {
  will-change: transform;
}

/* ── Archive kartı parlama ── */
.archive-card {
  position: relative;
  overflow: hidden;
}

.archive-card::before {
  content: "";
  position: absolute;
  top: -60%;
  left: -120%;
  width: 60%;
  height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(241, 234, 219, 0.14),
    transparent
  );
  transition: left 620ms ease;
  pointer-events: none;
}

.archive-card:hover::before {
  left: 160%;
}

/* ── reduced motion: tüm hareketleri sustur ── */
@media (prefers-reduced-motion: reduce) {
  .hero-title-word > span,
  .intro-fade,
  .stagger > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .docet-cursor,
  .docet-cursor-dot {
    display: none;
  }
}
