/* ==========================================================================
   EAJANS — eajansagency.com
   Konsept: Dante'nin hunisine iniş. Diyaframdan girilir, katman katman inilir,
   dipteki kırmızı noktadan yıldızlara çıkılır.
   ========================================================================== */

:root {
  --bg: #0F0F0F;
  --surface: rgba(15, 15, 15, .9);
  --surface-hover: #141417;
  --line: #22222A;
  --line-2: #262630;
  --crop: #3A3A46;

  --t1: #F5F5F7;
  --t2: #C9C9D1;
  --t3: #8E8E9A;

  --grad: linear-gradient(90deg, #7A5CC4 0%, #A43C8B 38%, #C02A5C 70%, #CE1B25 100%);
  --vgrad: linear-gradient(180deg, #422F87 0%, #CE1B25 100%);
  --red: #CE1B25;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --header-h: 68px;
  --max: 1200px;
  --gut: clamp(1.25rem, 5vw, 4rem);
  --rail: 22px;              /* derinlik çizgisi için sol boşluk */
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  background: var(--bg);
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  /* Statik gren: küçük döşeme, sayfayla birlikte kayar (sabit katman yok → mobilde ucuz) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible { outline: 1px solid #A43C8B; outline-offset: 4px; }

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  padding: .6rem 1rem; background: var(--t1); color: var(--bg);
  font: 500 13px var(--mono); letter-spacing: .08em;
}
.skip:focus { top: 1rem; }

/* ==========================================================================
   SAHNE KATMANLARI: canvas (huni + diyafram), kesim izleri, derinlik çizgisi
   ========================================================================== */

#funnel {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.header, main, .footer { position: relative; z-index: 2; }

.crops { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.crop { position: absolute; width: 28px; height: 28px; fill: none; stroke: var(--crop); stroke-width: 1; }
.crop--tl { top: calc(var(--header-h) + 14px); left: 14px; }
.crop--tr { top: calc(var(--header-h) + 14px); right: 14px; }
.crop--bl { bottom: 14px; left: 14px; }
.crop--br { bottom: 14px; right: 14px; }

/* Pozometre (Ay Film'den): menünün altında, ortada */
.meter {
  position: fixed; z-index: 11; left: 50%; top: calc((var(--header-h) - 28px) / 2);
  transform: translateX(-50%); pointer-events: none;
  display: flex; flex-direction: column; align-items: flex-start;
}
.meter__scale {
  display: flex; align-items: baseline; gap: .34em;
  font: 600 11px/1 var(--mono); letter-spacing: .02em; color: #6E6E7A;
}
.meter__scale i { font-style: normal; color: #4A4A55; letter-spacing: -.05em; }
.meter__scale span { transition: color .25s ease; }
.meter__scale span.on { color: var(--t1); }
.meter__needle {
  display: block; width: 1px; height: 11px; margin-top: 6px;
  background: var(--t1);
  transform: translateX(var(--x, 0px));
  transition: transform .18s linear;
}
.js .meter { opacity: 1; }
html:not(.js) .meter { display: none; }
@media (prefers-reduced-motion: reduce) { .meter__needle { transition: none; } }
@media (min-width: 721px) and (max-width: 1320px) { .meter { display: none; } }

.depth {
  position: fixed; z-index: 3; pointer-events: none;
  left: calc(var(--gut) * .5); top: calc(var(--header-h) + 60px); bottom: 60px;
  width: 2px; background: var(--line);
}
.depth__fill {
  position: absolute; inset: 0;
  background: var(--vgrad);
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.depth__dot {
  position: absolute; left: -4px; top: calc(var(--p, 0) * 100%);
  width: 10px; height: 10px; margin-top: -5px;
  border-radius: 50%; background: var(--red);
}

/* ==========================================================================
   TİPOGRAFİ
   ========================================================================== */

.wrap {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding-inline: calc(var(--gut) + var(--rail)) var(--gut);
}

.label {
  font: 400 13px/1.55 var(--mono);
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--t3);
}

.quote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--t2); letter-spacing: .01em;
}
.quote--sm { font-size: clamp(1rem, 1.4vw, 1.25rem); }
.quote--lg { font-size: clamp(1.35rem, 2.2vw, 1.85rem); color: var(--t1); line-height: 1.3; }

.display {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.02; letter-spacing: -.02em;
}
.title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 4.6rem);
  line-height: 1.06; letter-spacing: -.015em;
}

.grad {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  padding-right: .1em;            /* italik çıkıntı Safari'de kırpılmasın */
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.lede {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.75; color: var(--t2); max-width: 54ch;
}

.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 1.25rem; }

.section { padding-block: clamp(6rem, 14vh, 10rem); }

/* ==========================================================================
   ÜST MENÜ
   ========================================================================== */

.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 10;
  background: rgba(15, 15, 15, .78);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-inline: var(--gut);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; }
.brand img { width: 34px; height: 34px; }
.brand__name { font: 500 13px var(--mono); letter-spacing: .22em; color: var(--t1); }

.nav { display: flex; align-items: center; gap: .85rem; }
.nav a {
  font: 13px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--t2); padding-block: .3rem; transition: color .25s;
}
.nav a:hover { color: var(--t1); }
.nav__dot { color: var(--crop); font: 13px var(--mono); }
/* İletişim: kadraj köşeli çağrı (Ay Film'in "İşi konuşalım" fikri, EAJANS diliyle) */
.nav .nav__cta {
  position: relative; margin-left: .9rem;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1rem; color: var(--t1);
}
.nav__cta .cm { opacity: 1; transform: none; width: 9px; height: 9px; border-color: var(--t2); }
.nav__cta .cm--tl { top: 0; left: 0; } .nav__cta .cm--tr { top: 0; right: 0; }
.nav__cta .cm--bl { bottom: 0; left: 0; } .nav__cta .cm--br { bottom: 0; right: 0; }
.nav__cta:hover .cm { border-color: var(--t1); }
.nav__rec { width: 6px; height: 6px; border-radius: 50%; background: var(--red); animation: rec 2s steps(1) infinite; }
@keyframes rec { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .nav__rec { animation: none; } }

.burger {
  display: none; width: 40px; height: 40px;
  background: none; border: 1px solid var(--line-2); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.burger span { display: block; width: 16px; height: 1px; background: var(--t1); transition: transform .3s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-top: calc(var(--header-h) + 3rem); padding-bottom: 5rem;
}
.hero .stack { gap: clamp(1.25rem, 2.5vw, 1.9rem); max-width: 1000px; }
.hero__foot { display: flex; align-items: center; gap: 1.1rem; margin-top: clamp(1rem, 3vw, 2.5rem); }
.hair { display: block; width: clamp(48px, 9vw, 104px); height: 1px; background: var(--grad); flex-shrink: 0; }

/* ==========================================================================
   SİSTEM
   ========================================================================== */

.diagram {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-block: clamp(1.25rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.diagram svg { width: 100%; height: auto; display: block; overflow: visible; }
.diagram__guide { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 6; }
.diagram__path {
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 0;
}
.diagram__node { fill: var(--bg); stroke-width: 2; }
.js .diagram .diagram__path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) .15s; }
.js .diagram.in .diagram__path { stroke-dashoffset: 0; }
.js .diagram .diagram__node { opacity: 0; transition: opacity .4s ease calc(.25s + var(--i) * .35s); }
.js .diagram.in .diagram__node { opacity: 1; }

/* ==========================================================================
   HİZMETLER — asimetrik ızgara: görselli 7 / tipografik 5, ikinci satır tersine
   ========================================================================== */

.services {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.services--r2 { margin-top: 0; border-top: 0; grid-template-columns: 5fr 7fr; }

.card {
  background: var(--surface);
  padding: clamp(1.5rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  transition: background-color .3s ease;
}
.card:hover { background: var(--surface-hover); }
.card__head { display: flex; flex-direction: column; gap: .8rem; }
.card__t {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.7rem); line-height: 1.1;
}
.card__head .label:last-child { max-width: 46ch; }
.card__img { display: block; overflow: hidden; border: 1px solid var(--line-2); background: #121217; aspect-ratio: 1280 / 669; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__img img { transform: scale(1.025); }
.card__num {
  font-family: var(--serif); font-size: clamp(5rem, 10vw, 8.5rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px var(--crop);
}
.card__rule { display: block; height: 1px; background: var(--line-2); position: relative; overflow: hidden; }
.card__rule::after {
  content: ""; position: absolute; inset: 0; width: 32%;
  background: var(--grad); transition: width .5s var(--ease);
}
.card:hover .card__rule::after { width: 100%; }

/* ==========================================================================
   MANİFESTO
   ========================================================================== */

/* Kontakt baskı: koyu film zemini, üst/alt perfore kenar, kare kenar kodları.
   (Saff Medya'nın film hissi — kilitsiz, huni akışını kesmeden) */
.manifesto {
  --holes: repeating-linear-gradient(90deg, transparent 0 14px, #2A2A33 14px 30px, transparent 30px 44px);
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding: 34px 10px;
  background: #0B0B0E;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.manifesto::before, .manifesto::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 10px;
  background: var(--holes); border-radius: 1px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.manifesto::before { top: 12px; }
.manifesto::after { bottom: 12px; }
.mcol {
  position: relative;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 2.5vw, 2.25rem) clamp(2.6rem, 4.5vw, 3.4rem);
  display: flex; flex-direction: column; gap: 1.4rem;
  background: #121216; border: 1px solid #1C1C23;
  transition: opacity .35s ease;
}
.mcol__code {
  position: absolute; left: clamp(1.25rem, 2.5vw, 2.25rem); bottom: .9rem;
  font: 500 11px var(--mono); letter-spacing: .14em; color: #C02A5C;
}
/* Vizör köşeleri (Ay Film'in kadraj işaretleri) */
.cm { position: absolute; width: 14px; height: 14px; border: 0 solid var(--t1); opacity: 0; transition: opacity .3s ease, transform .3s var(--ease); pointer-events: none; }
.cm--tl { top: -7px; left: -7px; border-top-width: 1px; border-left-width: 1px; transform: translate(-4px, -4px); }
.cm--tr { top: -7px; right: -7px; border-top-width: 1px; border-right-width: 1px; transform: translate(4px, -4px); }
.cm--bl { bottom: -7px; left: -7px; border-bottom-width: 1px; border-left-width: 1px; transform: translate(-4px, 4px); }
.cm--br { bottom: -7px; right: -7px; border-bottom-width: 1px; border-right-width: 1px; transform: translate(4px, 4px); }
@media (hover: hover) and (pointer: fine) {
  .manifesto:hover .mcol { opacity: .48; }
  .manifesto .mcol:hover { opacity: 1; }
  .mcol:hover .cm { opacity: 1; transform: none; }
}
/* Dokunmatikte: ortadaki kare (II) kalıcı olarak kadrajda */
@media (hover: none) {
  .mcol:nth-child(2) .cm { opacity: .8; transform: none; }
}
.mcol__n { font: 14px var(--mono); letter-spacing: .12em; color: var(--t2); }
.mcol__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.7vw, 2.4rem); line-height: 1.12; }
.mcol__tick { display: block; width: 2px; height: 44px; background: var(--vgrad); }
.mcol__tags { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }

/* ==========================================================================
   İLETİŞİM
   ========================================================================== */

.contact {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
}
.contact > li { border-right: 1px solid var(--line); background: var(--surface); }
.contact > li:last-child { border-right: 0; }
.contact__i {
  height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.1rem) clamp(1.1rem, 2vw, 1.6rem);
  transition: background-color .25s;
}
a.contact__i:hover { background: var(--surface-hover); }
.contact__v {
  font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.2;
  overflow-wrap: anywhere;
}
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: .9rem;
  align-self: flex-start; padding: .85rem 1.2rem;
  border: 1px solid var(--line-2); position: relative;
  font: 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--t1);
  transition: background-color .25s, border-color .25s;
}
.btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); }
.btn:hover { background: var(--surface-hover); border-color: var(--crop); }
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.25; }

/* ==========================================================================
   FOOTER — huninin dibi: dikey çizgi kırmızı noktada biter
   ========================================================================== */

.footer { padding-top: clamp(6rem, 14vh, 9rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.footer__main {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center;
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem); border-bottom: 1px solid var(--line);
}
.dante {
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 1;
  border: 1px solid var(--line-2); background: var(--bg); overflow: hidden;
}
.dante img { width: 100%; height: 100%; object-fit: cover; }
.dante__line {
  position: absolute; left: 50%; top: 0; width: 2px; height: 78.6%;
  transform: translateX(-50%); background: linear-gradient(180deg, rgba(66,47,135,0) 0%, #422F87 8%, #CE1B25 100%);
}
.dante__dot {
  position: absolute; left: 50%; top: 78.6%; width: 10px; height: 10px; border-radius: 50%;
  transform: translate(-50%, -50%); background: var(--red);
}
.footer__bar {
  padding-top: 2rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}

/* ==========================================================================
   BELİRME — sadece JS varsa gizlenir; JS yoksa her şey görünür
   ========================================================================== */

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .85s var(--ease), transform .85s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .diagram .diagram__path { stroke-dashoffset: 0; transition: none; }
  .js .diagram .diagram__node { opacity: 1; transition: none; }
}

/* ==========================================================================
   DUYARLI
   ========================================================================== */

@media (max-width: 900px) {
  .services, .services--r2 { grid-template-columns: 1fr; }
  .manifesto { grid-template-columns: 1fr; gap: 14px; }
  .mcol:nth-child(2) .cm { opacity: 0; }
  .footer__main { grid-template-columns: 1fr; }
  .dante { max-width: 100%; }
  .contact > li { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact > li:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  :root { --rail: 10px; }
  .depth { left: 8px; }
  .crop--tl, .crop--bl { left: 6px; }
  .crop--tr, .crop--br { right: 6px; }
  .brand__name { display: none; }
  .js .burger { display: flex; }
  .nav { gap: .6rem; }
  .nav a { font-size: 11px; letter-spacing: .08em; }
  /* Mobil açılır menü yalnızca JS varken; JS yoksa menü satırda kalır */
  .js .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 1.1rem;
    padding: 1.5rem var(--gut) 2rem;
    background: rgba(15, 15, 15, .97); border-bottom: 1px solid var(--line-2);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .25s ease, visibility 0s linear .3s;
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease), opacity .25s ease; }
  .js .nav a { font-size: 15px; letter-spacing: .12em; }
  .js .nav .nav__cta { margin-left: -1rem; }
  .nav__dot { display: none; }
  .hero__foot { flex-wrap: wrap; }
}
