/* ─────────────────────────────────────────────
   Yusuf Yıldız — Executive Editorial
   Palette: warm ink, ivory, burnished brass
   Type: Fraunces (display) · Hanken Grotesk (body)
───────────────────────────────────────────── */

:root {
  --ink: #161310;
  --ink-2: #1e1a16;
  --ink-3: #2a251f;
  --paper: #efe8db;
  --paper-dim: #b9b0a0;
  --brass: #c2a061;
  --brass-soft: #d8bd84;
  --hairline: rgba(239, 232, 219, 0.14);
  --hairline-inv: rgba(22, 19, 16, 0.16);
  --nav-fade-1: rgba(22, 19, 16, 0.92);
  --nav-fade-0: rgba(22, 19, 16, 0);
  --lang-bg: rgba(22, 19, 16, 0.65);
  --up-num: #8d6e35;
  --up-text: #3a332a;
  --up-text-2: #554c3f;
  --brass-underline: rgba(216, 189, 132, 0.35);
  --display: "Fraunces", Georgia, serif;
  --body: "Hanken Grotesk", "Segoe UI", sans-serif;
  --pad: clamp(1.25rem, 5vw, 6rem);
}

html[data-theme="light"] {
  --ink: #f1ece1;
  --ink-2: #e8e1d1;
  --ink-3: #ddd3bf;
  --paper: #201b15;
  --paper-dim: #635b4d;
  --brass: #95762f;
  --brass-soft: #7c6128;
  --hairline: rgba(32, 27, 21, 0.16);
  --hairline-inv: rgba(241, 236, 225, 0.18);
  --nav-fade-1: rgba(241, 236, 225, 0.92);
  --nav-fade-0: rgba(241, 236, 225, 0);
  --lang-bg: rgba(241, 236, 225, 0.65);
  --up-num: #d8bd84;
  --up-text: #d4ccbc;
  --up-text-2: #b5aa94;
  --brass-underline: rgba(149, 118, 47, 0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  transition: background 0.4s ease, color 0.4s ease;
  font-family: var(--body);
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* language switching */
html[data-lang="en"] [data-lang="tr"], html[data-lang="en"] [data-lang="de"] { display: none !important; }
html[data-lang="tr"] [data-lang="en"], html[data-lang="tr"] [data-lang="de"] { display: none !important; }
html[data-lang="de"] [data-lang="en"], html[data-lang="de"] [data-lang="tr"] { display: none !important; }

/* grain overlay */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none; z-index: 60;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-3%,2%); }
  50% { transform: translate(2%,-3%); }
  75% { transform: translate(-2%,-2%); }
}

/* scroll progress */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 80;
  background: transparent;
}
.progress span {
  display: block; height: 100%; width: 0;
  background: var(--brass);
  transition: width 80ms linear;
}

/* ───────────── NAV ───────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  background: linear-gradient(to bottom, var(--nav-fade-1), var(--nav-fade-0));
  backdrop-filter: blur(2px);
}
.nav__brand {
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 600;
  color: var(--paper); text-decoration: none;
  letter-spacing: 0.02em;
}
.nav__brand span { color: var(--brass); font-style: italic; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  color: var(--paper-dim); text-decoration: none;
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  transition: color 0.25s;
}
.nav__links a:hover { color: var(--brass-soft); }
.nav__lang {
  display: flex; align-items: center; gap: 0.25rem;
  font-size: 0.78rem;
  border: 1px solid var(--brass);
  border-radius: 999px;
  padding: 0.25rem;
  background: var(--lang-bg);
  backdrop-filter: blur(4px);
}
.nav__right { display: flex; align-items: center; gap: 0.6rem; }
.nav__theme {
  width: 2.55rem; height: 2.55rem;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: var(--lang-bg);
  color: var(--brass);
  font-size: 1.05rem; line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s, color 0.25s, transform 0.25s;
}
.nav__theme:hover { background: var(--brass); color: var(--ink); transform: rotate(20deg); }
.nav__lang button {
  background: none; border: none; cursor: pointer;
  color: var(--paper-dim); font: inherit; font-weight: 700;
  letter-spacing: 0.12em;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}
.nav__lang button:hover { color: var(--paper); }
.nav__lang button.is-active { color: var(--ink); background: var(--brass); }

/* ───────────── HERO ───────────── */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 7rem var(--pad) 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 55% at 75% 8%, rgba(194,160,97,0.10), transparent 60%),
    radial-gradient(ellipse 60% 45% at 12% 95%, rgba(194,160,97,0.06), transparent 65%);
}
.hero__eyebrow {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.5rem;
}
.hero__name {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(4rem, 14.5vw, 13.5rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  text-transform: none;
}
.hero__name .line { display: block; }
.hero__name em {
  font-style: italic; font-weight: 320;
  color: var(--brass-soft);
}
.hero__bottom {
  display: flex; align-items: center; justify-content: center; gap: clamp(2rem, 5vw, 5rem);
  margin-top: clamp(2.5rem, 5vh, 5rem);
  flex-wrap: wrap;
}
.hero__portrait {
  width: clamp(170px, 22vw, 280px);
  flex: none;
  border-radius: 999px 999px 8px 8px; /* arch */
  overflow: hidden;
  border: 1px solid var(--brass);
  padding: 8px;
  background: transparent;
}
.hero__portrait img {
  display: block; width: 100%; height: auto;
  border-radius: 991px 991px 4px 4px;
  filter: grayscale(0.25) sepia(0.12) contrast(1.04) brightness(0.97);
}
.hero__intro { max-width: 34rem; text-align: left; }
.hero__intro p {
  font-family: var(--display);
  font-weight: 340; font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--paper);
}
.hero__cta { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 2rem; left: 0; right: 0;
  margin-inline: auto; width: 2rem;
  color: var(--brass); text-decoration: none;
  font-size: 1.4rem;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0);} 50% { transform: translateY(8px);} }

/* buttons */
.btn {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  transition: all 0.3s ease;
}
.btn--solid { background: var(--brass); color: var(--ink); border: 1px solid var(--brass); }
.btn--solid:hover { background: var(--brass-soft); border-color: var(--brass-soft); transform: translateY(-2px); }
.btn--ghost { color: var(--paper); border: 1px solid var(--hairline); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass-soft); transform: translateY(-2px); }
.btn--inv { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn--inv:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn--ghost-inv { color: var(--ink); border: 1px solid var(--hairline-inv); }
.btn--ghost-inv:hover { border-color: var(--ink); transform: translateY(-2px); }

/* ───────────── SECTIONS ───────────── */
.section {
  padding: clamp(5rem, 11vh, 9rem) var(--pad);
  max-width: calc(1240px + 2 * var(--pad));
  margin-inline: auto;
}

.section__head {
  display: flex; align-items: baseline; justify-content: center; gap: 1.5rem;
  border-top: 1px solid var(--hairline);
  padding-top: 1.2rem;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
  text-align: center;
}
.section__num {
  font-family: var(--display); font-style: italic;
  color: var(--brass); font-size: 1rem;
  flex: none;
}
.section__head h2 {
  font-family: var(--display);
  font-weight: 380;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
}
.section__head--inv { border-top-color: var(--hairline-inv); }

/* about */
.about__grid { display: grid; gap: clamp(3rem, 6vw, 5rem); grid-template-columns: 1fr; }
.about__lede p {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 320; line-height: 1.6;
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}
.about__lede strong { color: var(--brass-soft); font-weight: 600; }

.skills {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 1000px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .skills { grid-template-columns: 1fr; } }
.skills li {
  background: var(--ink);
  padding: 2rem 1.8rem;
  transition: background 0.35s;
}
.skills li:hover { background: var(--ink-2); }
.skills h3 {
  font-family: var(--display); font-weight: 480;
  font-size: 1.25rem; margin-bottom: 0.6rem;
  color: var(--brass-soft);
}
.skills p { font-size: 0.95rem; color: var(--paper-dim); }

/* ───────────── UPFORGE (inverted) ───────────── */
.upforge {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(5rem, 11vh, 9rem) var(--pad);
}
.upforge__inner { max-width: 1240px; margin-inline: auto; }
.upforge .section__num { color: var(--up-num); }
.upforge__statement {
  font-family: var(--display); font-style: italic; font-weight: 340;
  font-size: clamp(1.8rem, 4.2vw, 3.4rem);
  line-height: 1.25;
  max-width: 60rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.upforge__body p {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 50rem;
  margin-inline: auto;
  text-align: center;
  color: var(--up-text);
}
.upforge__body strong { color: var(--ink); }
.upforge__services {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 3.5rem 0;
}
.upforge__services li {
  border-top: 1px solid var(--hairline-inv);
  padding-top: 1.4rem;
}
.upforge__roman {
  font-family: var(--display); font-style: italic;
  color: var(--up-num); font-size: 1.1rem;
}
.upforge__services h3 {
  font-family: var(--display); font-weight: 520;
  font-size: 1.35rem; margin: 0.5rem 0 0.6rem;
}
.upforge__services p { font-size: 0.95rem; color: var(--up-text-2); }
.upforge__cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ───────────── TIMELINE ───────────── */
.timeline { list-style: none; }
.timeline li {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding: 2.6rem 0;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.timeline li:first-child { border-top: 1px solid var(--hairline); }
.timeline__when {
  font-family: var(--display); font-style: italic;
  color: var(--brass); font-size: 1.05rem;
  padding-top: 0.25rem;
}
.timeline__what h3 {
  font-family: var(--display); font-weight: 480;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.25;
  margin-bottom: 0.7rem;
}
.timeline__what h3 small {
  display: inline-block;
  font-family: var(--body); font-weight: 400;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper-dim);
  margin-left: 0.6rem;
}
.timeline__what p { color: var(--paper-dim); max-width: 46rem; font-size: 0.98rem; }
.timeline__what a { color: var(--brass-soft); text-decoration: none; border-bottom: 1px solid var(--brass-underline); transition: border-color .25s; }
.timeline__what a:hover { border-color: var(--brass-soft); }

/* ───────────── EDUCATION / LANGS ───────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); }
.plain { list-style: none; }
.plain li { padding: 1.1rem 0; border-bottom: 1px solid var(--hairline); }
.plain h3 { font-family: var(--display); font-weight: 460; font-size: 1.2rem; }
.plain h3 small { font-family: var(--body); font-weight: 400; font-size: 0.85rem; color: var(--paper-dim); }
.plain p { color: var(--paper-dim); font-size: 0.92rem; }
.langs li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }

/* ───────────── MARQUEE ───────────── */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 1.4rem 0;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 2.2rem;
  animation: marquee 46s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track > span {
  font-family: var(--display); font-style: italic; font-weight: 360;
  font-size: 1.15rem; color: var(--paper-dim);
}
.marquee__track i { color: var(--brass); font-style: normal; font-size: 0.8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ───────────── CONTACT ───────────── */
.contact {
  padding: clamp(6rem, 14vh, 11rem) var(--pad) 3rem;
  text-align: center;
  background: radial-gradient(ellipse 70% 60% at 50% 110%, rgba(194,160,97,0.12), transparent 65%);
}
.contact__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.2rem;
}
.contact__title a {
  font-family: var(--display); font-weight: 380; font-style: italic;
  font-size: clamp(3rem, 10vw, 8.5rem);
  color: var(--paper); text-decoration: none;
  line-height: 1.05;
  transition: color 0.35s;
}
.contact__title a:hover { color: var(--brass-soft); }
.contact__mail {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.35rem;
  margin-top: 2.2rem;
  background: none; border: none; cursor: pointer;
  font-family: var(--body);
}
.contact__mail-address {
  color: var(--brass-soft);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 500; letter-spacing: 0.06em;
  border-bottom: 1px dashed var(--brass-underline);
  padding-bottom: 0.2rem;
  transition: color 0.25s, border-color 0.25s;
}
.contact__mail:hover .contact__mail-address { color: var(--paper); border-color: var(--brass); }
.contact__mail-hint {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--paper-dim);
}
.contact__mail .hint--done { display: none; color: var(--brass); }
.contact__mail.is-copied .hint--idle { display: none; }
.contact__mail.is-copied .hint--done { display: inline; }

.contact__links {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 1.8rem; margin: 3.5rem 0 4rem;
}
.contact__links a {
  color: var(--paper-dim); text-decoration: none;
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: color 0.25s;
}
.contact__links a:hover { color: var(--brass-soft); }
.contact__fine { font-size: 0.78rem; color: var(--paper-dim); opacity: 0.7; }

/* ───────────── REVEAL ───────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.18s; }
.reveal.d3 { transition-delay: 0.32s; }
.reveal.d4 { transition-delay: 0.44s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  .grain { animation: none; }
  html { scroll-behavior: auto; }
}

/* ───────────── RESPONSIVE ───────────── */
@media (max-width: 820px) {
  .nav__links { display: none; }
  .timeline li { grid-template-columns: 1fr; gap: 0.5rem; }
  .split { grid-template-columns: 1fr; }
  .hero__bottom { align-items: center; }
}
