/* ==========================================================================
   Emce – ana stil dosyası
   1) Değişkenler  2) Temel  3) Düzen & tipografi  4) Header / navigasyon
   5) Butonlar & küçük bileşenler  6) Bölümler  7) İletişim & footer  8) Hareket
   Renkler ve yazı tipleri yalnızca 1. bölümden yönetilir.
   ========================================================================== */

/* 1) Değişkenler ----------------------------------------------------------- */
:root {
  --paper: #f2f0eb;
  --paper-2: #e8e5de;
  --ink: #121211;
  --ink-2: #1d1d1b;
  --muted: #5b5954;
  --line: #cdc8bd;
  --accent: #ff5a1f;
  --accent-text: #c23a0c;

  --dark-text: #ebe7df;
  --dark-muted: #9c978e;
  --dark-line: #2e2d2a;

  --font-sans: "Helvetica Neue", Helvetica, "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --fs-mono: 0.78rem;
  --fs-body: clamp(1rem, 0.96rem + 0.18vw, 1.0625rem);
  --fs-lead: clamp(1.1rem, 1rem + 0.45vw, 1.35rem);
  --fs-h3: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.3rem + 3vw, 4rem);
  --fs-hero: clamp(3.9rem, 1rem + 10vw, 10rem);

  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 2.75rem);
  --section: clamp(4.5rem, 3rem + 7vw, 9.5rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

/* 2) Temel ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--ink); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: var(--fs-mono); text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* 3) Düzen & tipografi ----------------------------------------------------- */
.wrap { width: 100%; max-width: 92rem; margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section); }
.section--dark { background: var(--ink); color: var(--dark-text); }

.section-head {
  display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}
@media (min-width: 64rem) {
  .section-head { grid-template-columns: minmax(12rem, 1fr) 3fr; align-items: start; }
}
.section-title { font-size: var(--fs-h2); max-width: 20ch; }

.mono-label {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  letter-spacing: 0.02em; color: var(--muted);
}
.mono-label--light { color: var(--dark-muted); }

/* 4) Header / navigasyon --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; position: relative; z-index: 60; }
.brand-mark { width: 1.6rem; height: 1.6rem; }
.brand-mark rect { fill: var(--ink); }
.brand-mark .brand-mark-dot { fill: var(--accent); }
.brand-word { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.brand-tag {
  font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted);
  padding-left: 0.65rem; border-left: 1px solid var(--line); line-height: 1.1;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.nav-list { display: flex; gap: 1.75rem; }
.nav-team {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); white-space: nowrap;
  padding-right: 2rem; border-right: 1px solid var(--line); margin-right: -0.25rem;
}
.nav-link {
  position: relative; display: inline-flex; align-items: baseline; gap: 0.35rem;
  padding-block: 0.4rem; text-decoration: none; font-size: 0.95rem;
}
.nav-num { font-family: var(--font-mono); font-size: 0.65rem; color: var(--muted); }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.15rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-link[aria-current="page"] .nav-num { color: var(--accent-text); }

.nav-toggle {
  display: none; position: relative; z-index: 60;
  padding: 0.55rem 0.9rem; border: 1px solid var(--ink); background: transparent;
  font: inherit; font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--ink); cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--ink); color: var(--paper); }

@media (max-width: 74.99rem) {
  .brand-tag { display: none; }
  .site-nav { gap: 1.5rem; }
  .nav-list { gap: 1.25rem; }
  .nav-team { padding-right: 1.5rem; }
}

@media (max-width: 55.99rem) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 55;
    flex-direction: column; align-items: stretch; justify-content: flex-end; gap: 2rem;
    padding: calc(var(--header-h) + 2rem) var(--gutter) 2.5rem;
    background: var(--paper);
    visibility: hidden; opacity: 0; transform: translateY(-1rem);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s;
  }
  .site-nav.is-open {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s;
  }
  .nav-team { order: -1; margin: 0 auto 0 0; padding: 0; border: 0; }
  .nav-list { flex-direction: column; gap: 0; border-top: 1px solid var(--ink); }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-link { display: flex; padding-block: 1rem; font-size: clamp(2rem, 1rem + 6vw, 3rem); letter-spacing: -0.04em; font-weight: 500; }
  .nav-link::after { display: none; }
  .nav-num { font-size: 0.75rem; min-width: 2rem; }
  .nav-cta { justify-content: space-between; }
}

/* 5) Butonlar & küçük bileşenler ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.35rem; border: 1px solid transparent; border-radius: 0;
  font: inherit; font-size: 0.95rem; font-weight: 600; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn .arrow, .link-underline .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); padding: 0.75rem 1.1rem; }
.btn-ink:hover { background: var(--accent); color: var(--ink); }

.link-underline {
  display: inline-block; padding-block: 0.2rem; text-decoration: none; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}
.link-underline:hover { background-size: 0 1px; background-position: 100% 100%; }

.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags li {
  font-family: var(--font-mono); font-size: 0.7rem; padding: 0.25rem 0.5rem;
  border: 1px solid var(--line); color: var(--muted);
}

/* 6) Bölümler -------------------------------------------------------------- */

/* Hero */
.hero { position: relative; padding-top: clamp(2rem, 1rem + 3vw, 4.5rem); overflow: hidden; }
.hero .wrap { position: relative; }
.hero .wrap::before {
  /* İnce kolon çizgileri – grafik tasarım ızgarası hissi */
  content: ""; position: absolute; inset: -10rem var(--gutter) 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
  opacity: 0.55;
}
.hero-title {
  margin-top: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  font-size: var(--fs-hero); font-weight: 600; line-height: 0.88; letter-spacing: -0.055em;
}
.hero-line-2 { padding-left: 0.9em; }
.hero-dot { color: var(--accent); }
.hero-line-3 {
  color: transparent; -webkit-text-stroke: 1.5px var(--ink);
}
@supports not (-webkit-text-stroke: 1px black) {
  .hero-line-3 { color: var(--muted); }
}

.hero-bottom {
  display: grid; gap: 2.5rem; align-items: end;
  margin-top: clamp(2rem, 1rem + 2.5vw, 3.5rem); padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
}
@media (min-width: 60rem) {
  .hero-bottom { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.hero-lead { font-size: var(--fs-lead); line-height: 1.45; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; margin-top: 2rem; }

/* Terminal */
.term { background: var(--ink); color: var(--dark-text); font-family: var(--font-mono); font-size: 0.82rem; box-shadow: 6px 6px 0 var(--accent); margin-right: 6px; }
@media (min-width: 60rem) { .term { box-shadow: 10px 10px 0 var(--accent); margin-right: 10px; } }
.term-bar {
  display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--dark-line);
}
.term-bar span { width: 0.6rem; height: 0.6rem; border: 1px solid var(--dark-muted); }
.term-bar em { margin-left: auto; font-style: normal; font-size: 0.7rem; color: var(--dark-muted); }
.term-body { margin: 0; padding: 1.1rem 1.1rem 1.3rem; line-height: 1.9; overflow-x: auto; white-space: pre; }
.term-body code { font: inherit; }
.t-p { color: var(--dark-muted); }
.t-c { color: var(--accent); }
.t-m { color: var(--dark-muted); }
.t-ok { color: var(--ink); background: var(--accent); padding: 0 0.35rem; }
.t-cursor { display: inline-block; width: 0.55em; height: 1.05em; vertical-align: -0.15em; background: var(--dark-text); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Marquee */
.marquee { border-block: 1px solid var(--ink); overflow: hidden; background: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track span {
  display: inline-flex; align-items: center; gap: 2rem; padding: 1.1rem 2rem 1.1rem 0;
  font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; white-space: nowrap;
}
.marquee-track span::after { content: "/"; font-family: var(--font-mono); font-weight: 400; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hizmetler */
.services { border-top: 1px solid var(--ink); }
.service {
  position: relative; display: grid; gap: 0.75rem 2rem;
  grid-template-columns: 3rem 1fr;
  padding: 1.75rem 0; border-bottom: 1px solid var(--line);
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease);
}
.service-num { font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--muted); padding-top: 0.45rem; }
.service-title { font-size: var(--fs-h3); transition: color 0.3s var(--ease); }
.service-desc, .service .tags { grid-column: 2; }
.service-desc { color: var(--muted); max-width: 38rem; }
@media (min-width: 60rem) {
  .service { grid-template-columns: 5rem minmax(14rem, 1fr) minmax(16rem, 1.4fr) 14rem; align-items: start; padding: 2.25rem 0; }
  .service-desc, .service .tags { grid-column: auto; }
  .service .tags { justify-content: flex-end; }
  .service:hover { background: var(--paper-2); padding-inline: 1rem; }
  .service:hover .service-title { color: var(--accent-text); }
}

/* Adımlar (koyu bölüm) */
.steps { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--dark-line); }
@media (min-width: 40rem) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding: 2rem 1.5rem 2.5rem 0; border-bottom: 1px solid var(--dark-line); }
@media (min-width: 40rem) {
  .step { padding-inline: 1.5rem; border-left: 1px solid var(--dark-line); }
}
.step-num {
  display: block; margin-bottom: 3rem;
  font-size: clamp(3rem, 2rem + 3vw, 4.5rem); font-weight: 300; letter-spacing: -0.05em; line-height: 1;
  color: var(--accent);
}
.step-title { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.step p { color: var(--dark-muted); }

/* Yaklaşım / ilkeler */
.approach { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) {
  .approach { grid-template-columns: 1fr 1.2fr; gap: 5rem; }
  .approach-side { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; }
}
.approach-side .section-title { margin-top: 1.25rem; }
.principles { border-top: 1px solid var(--ink); }
.principle { display: grid; gap: 0.5rem; padding: 1.75rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .principle { grid-template-columns: 13rem 1fr; gap: 2rem; } }
.principle dt { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.principle dd { color: var(--muted); }

/* Hakkımızda sayfası */
.page-hero { padding-top: clamp(3rem, 2rem + 5vw, 7rem); padding-bottom: var(--section); border-bottom: 1px solid var(--ink); }
.page-title { margin-top: 1.5rem; font-size: clamp(2.6rem, 1rem + 6.5vw, 7rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; }
.page-intro { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.page-intro p:not(.hero-lead) { color: var(--muted); max-width: 34rem; }
@media (min-width: 60rem) { .page-intro { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }

.models { display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 60rem) { .models { grid-template-columns: repeat(3, 1fr); } }
.model { padding: 2rem 0 2.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 60rem) {
  .model { padding-inline: 2rem; border-bottom: 0; border-left: 1px solid var(--line); }
  .model:first-child { padding-left: 0; border-left: 0; }
}
.model-num {
  display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-bottom: 2.5rem;
  border: 1px solid var(--ink); font-family: var(--font-mono); font-size: 0.85rem;
}
.model-title { font-size: var(--fs-h3); margin-bottom: 0.75rem; }
.model p { color: var(--muted); }
.model-fit { margin-top: 1.25rem; font-family: var(--font-mono); font-size: var(--fs-mono); }
.model-fit span { color: var(--accent-text); }

/* 404 */
.not-found { padding-block: var(--section); }
.not-found-code {
  font-size: clamp(6rem, 3rem + 18vw, 18rem); font-weight: 600; letter-spacing: -0.07em; line-height: 0.85;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin: 1rem 0 2rem;
}

/* 7) İletişim & footer ----------------------------------------------------- */
.contact { background: var(--accent); color: var(--ink); padding-block: var(--section); }
.contact .mono-label { color: var(--ink); opacity: 0.7; }
.contact-title {
  margin-top: 1.5rem; font-size: clamp(2.6rem, 1rem + 6vw, 7rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95;
}
.contact-title-sub { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
.contact-row { display: grid; gap: 1.5rem; margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); padding-top: 2rem; border-top: 1px solid var(--ink); }
@media (min-width: 60rem) { .contact-row { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; } }
.contact-mail {
  justify-self: start; font-size: clamp(1.4rem, 1rem + 2vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em;
  text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2px no-repeat; padding-bottom: 0.15rem;
}
.contact-mail .arrow { display: inline-block; transition: transform 0.3s var(--ease); }
.contact-mail:hover .arrow { transform: translate(3px, -3px); }
.contact-note { max-width: 32rem; }

.site-footer { background: var(--ink); color: var(--dark-text); padding-top: 4rem; overflow: hidden; }
.footer-grid { display: grid; gap: 2rem; padding-bottom: 3rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .mono-label { color: var(--dark-muted); margin-bottom: 0.9rem; }
.footer-text { max-width: 22rem; }
.footer-links { display: grid; gap: 0.4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-word {
  font-size: clamp(6rem, 1rem + 27vw, 26rem); font-weight: 700; letter-spacing: -0.075em; line-height: 0.72;
  margin: 0 0 -0.04em -0.04em; color: var(--ink-2); -webkit-text-stroke: 1px var(--dark-line); user-select: none;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; padding-block: 1.25rem;
  border-top: 1px solid var(--dark-line); font-family: var(--font-mono); font-size: var(--fs-mono); color: var(--dark-muted);
}

/* 8) Hareket ---------------------------------------------------------------
   .reveal yalnızca JS açıkken gizlenir; JS yoksa içerik her zaman görünür. */
.js .reveal {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Terminal satırlarının sırayla belirmesi (JS satırlara ayırır) */
.term-line { display: block; }
.term.is-typing .term-line { opacity: 0; animation: line-in 0.01s steps(1) forwards; animation-delay: calc(var(--i) * 420ms + 300ms); }
@keyframes line-in { to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal, .term.is-typing .term-line { opacity: 1; transform: none; }
}
