/* ==========================================================================
   beyzakararti.com: ana stil dosyası
   Renk paleti: koyu yeşil + mavi tonları. Tüm renkler aşağıdaki
   değişkenlerden gelir; paleti değiştirmek için sadece burayı düzenle.
   ========================================================================== */

:root {
  /* Zemin (koyu yeşil) */
  --bg:          #061c18;
  --bg-2:        #08251f;
  --surface:     #0c2f28;
  --surface-2:   #103a32;

  /* Vurgu renkleri */
  --green:       #1d6b57;
  --green-light: #5cc3a4;
  --blue:        #2f73c9;
  --blue-light:  #82c6f2;
  --teal:        #3aa5b8;

  /* Metin */
  --text:        #e5f2ee;
  --text-soft:   #b7cfc8;
  --muted:       #85a39b;

  /* Çizgi / gölge */
  --line:        rgba(130, 198, 242, 0.14);
  --line-strong: rgba(130, 198, 242, 0.28);
  --shadow:      0 20px 50px -20px rgba(0, 0, 0, 0.6);

  --grad: linear-gradient(120deg, var(--green-light), var(--teal) 45%, var(--blue-light));

  --radius:    8px;
  --radius-sm: 5px;
  --max:       1140px;
  --header-h:  72px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Temel ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue-light); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-light); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

::selection { background: var(--green); color: #fff; }

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--blue);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled,
.site-header.solid {
  background: rgba(6, 28, 24, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.site-header .container {
  max-width: none;
  padding: 0 28px;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.logo:hover { color: var(--text); }

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  font-size: .95rem;
  letter-spacing: .02em;
}

.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  box-shadow: 0 6px 18px -6px rgba(0, 0, 0, 0.6);
  flex: none;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .92rem;
  font-weight: 500;
  transition: color .2s, background .2s;
}
.nav-list a:hover { color: var(--text); background: rgba(130, 198, 242, 0.08); }
.nav-list a.active {
  color: #f2fffb;
  background: transparent;
}
.nav-list a.active:hover { background: transparent; }
.nav-dropdown:has(.nav-submenu a.active) > .nav-heading > a {
  color: #f2fffb;
  background: transparent;
}

.nav-list a.nav-cta {
  margin-left: 8px;
  background: var(--blue);
  color: #fff;
}
.nav-list a.nav-cta:hover { background: #3a82dc; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform .3s, opacity .3s, top .3s;
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { content: ""; top: -6px; }
.nav-toggle span::after  { content: ""; top: 6px; }

.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); background: var(--text); }
.nav-open .nav-toggle span::after  { top: 0; transform: translateX(-50%) rotate(-45deg); background: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 85% 20%, rgba(47, 115, 201, 0.28), transparent 60%),
    radial-gradient(700px 500px at 10% 80%, rgba(29, 107, 87, 0.45), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
  opacity: .5;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
  animation: float 16s ease-in-out infinite;
}
.blob-1 { width: 380px; height: 380px; background: var(--green);  top: 12%; right: 8%; }
.blob-2 { width: 300px; height: 300px; background: var(--blue);   bottom: 8%; right: 30%; animation-delay: -6s; }
.blob-3 { width: 220px; height: 220px; background: var(--teal);   top: 30%; left: -60px; animation-delay: -11s; opacity: .35; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.06); }
  66%      { transform: translate(-25px, 20px) scale(.96); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(12, 47, 40, 0.6);
  color: var(--green-light);
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 500;
  margin-bottom: 20px;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-social {
  display: flex;
  gap: 12px;
  margin-top: 40px;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(380px, 100%);
  aspect-ratio: 1;
}

.portrait {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(145deg, var(--surface-2), var(--bg-2));
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-initials {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 500;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--line-strong);
  animation: spin 40s linear infinite;
}
.orbit::before, .orbit::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}
.orbit::before { background: var(--green-light); top: 12%; left: 12%; }
.orbit::after  { background: var(--blue-light);  bottom: 6%; right: 22%; }

@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
}
.scroll-hint::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--blue-light);
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--green), var(--blue));
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(47, 115, 201, 0.7);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 36px -10px rgba(47, 115, 201, 0.9); }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(12, 47, 40, 0.4);
}
.btn-ghost:hover { color: var(--text); border-color: var(--green-light); }

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(12, 47, 40, 0.5);
  transition: color .2s, border-color .2s, transform .2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { color: var(--blue-light); border-color: var(--blue-light); transform: translateY(-2px); }

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

.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-2); }
.section-alt::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-label {
  display: inline-flex;
  align-items: center;
  color: var(--green-light);
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.section-title { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 500; }
.section-desc  { color: var(--text-soft); font-size: 1.08rem; }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text p { color: var(--text-soft); }
.about-text p:first-of-type { font-size: 1.15rem; color: var(--text); }

.about-text .btn { margin-top: 12px; }

.facts {
  display: grid;
  gap: 14px;
}

.fact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.fact-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 115, 201, 0.14);
  color: var(--blue-light);
}
.fact-icon svg { width: 20px; height: 20px; }
.fact h3 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  margin: 2px 0 4px;
}
.fact p { margin: 0; color: var(--text); font-size: .98rem; line-height: 1.5; }
.fact p small { color: var(--muted); font-size: .88rem; }

.about-photo {
  margin: 0 0 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}
.about-photo img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---------- About: editorial profile ---------- */
.about-hero { position: relative; min-height: 500px; display: flex; align-items: flex-end; overflow: hidden; }
.about-hero::before,
.about-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.about-hero::before { width: min(52vw, 680px); aspect-ratio: 1; top: -48%; right: -5%; background: radial-gradient(circle, rgba(47,115,201,.22), transparent 68%); }
.about-hero::after { width: min(40vw, 520px); aspect-ratio: 1; bottom: -68%; left: 15%; background: radial-gradient(circle, rgba(92,195,164,.15), transparent 68%); }
.about-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.62fr) minmax(260px, .58fr); gap: clamp(42px, 6vw, 96px); align-items: end; padding-block: clamp(92px, 12vw, 150px) clamp(72px, 9vw, 112px); }
.about-hero h1 { max-width: 930px; margin: 13px 0 24px; font-size: clamp(3rem, 6.35vw, 6.35rem); line-height: .96; letter-spacing: -.055em; }
.about-hero-copy > p { max-width: 760px; margin: 0; color: var(--text-soft); font-size: clamp(1.03rem, 2vw, 1.25rem); line-height: 1.75; }
.about-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.about-hero-meta span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(5,25,22,.55); font-size: .76rem; letter-spacing: .04em; }
.about-science-pattern { position: relative; min-height: 390px; align-self: center; isolation: isolate; }
.about-science-pattern::before { content: ""; position: absolute; inset: 8% -5% 2% 4%; z-index: -1; background: radial-gradient(ellipse at center, rgba(198,173,115,.09), transparent 68%); }
.about-science-pattern img { position: absolute; width: 112%; max-width: none; top: 50%; left: 50%; opacity: .82; transform: translate(-51%, -50%) rotate(-4deg); filter: drop-shadow(0 0 22px rgba(198,173,115,.12)); }
.about-science-pattern::after { content: "φ = 1.618033…"; position: absolute; right: 2%; bottom: 8%; color: rgba(198,173,115,.72); font-family: var(--font-display); font-size: .72rem; font-style: italic; letter-spacing: .12em; }
.science-symbol { position: absolute; z-index: 2; color: rgba(198,173,115,.68); font-family: var(--font-display); font-weight: 400; line-height: 1; }
.science-symbol-phi { top: 4%; left: 11%; font-size: clamp(2.4rem, 4vw, 4.2rem); }
.science-symbol-pi { top: 17%; right: 2%; font-size: clamp(1.2rem, 2vw, 2rem); opacity: .64; }
.science-symbol-wave { right: 17%; bottom: 18%; font-size: clamp(1.35rem, 2.4vw, 2.5rem); opacity: .55; }
.science-symbol-sum { left: 2%; bottom: 15%; font-size: clamp(1.05rem, 1.8vw, 1.7rem); opacity: .45; }
.science-axis { position: absolute; width: 42%; height: 1px; right: 1%; top: 46%; background: linear-gradient(90deg, transparent, rgba(130,198,242,.34), transparent); transform: rotate(-12deg); }
.science-axis::before { content: ""; position: absolute; width: 5px; height: 5px; left: 48%; top: -2px; border-radius: 50%; background: rgba(130,198,242,.68); }

.about-intro-section { padding-top: clamp(76px, 10vw, 132px); }
.about-intro-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(390px, 1.08fr); gap: clamp(50px, 8vw, 112px); align-items: center; }
.about-story h2 { max-width: 560px; margin: 13px 0 28px; font-size: clamp(2.2rem, 4.5vw, 4.1rem); line-height: 1.02; }
.about-story p { max-width: 640px; margin: 0; color: var(--text-soft); line-height: 1.85; }
.about-story p + p { margin-top: 22px; }
.about-story .about-story-lead { color: var(--text); font-family: var(--font-display); font-size: clamp(1.18rem, 2vw, 1.45rem); line-height: 1.55; }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.vacuum-study { position: relative; margin: 0; }
.vacuum-frame { overflow: hidden; border: 1px solid rgba(130,198,242,.22); background: #000; box-shadow: 0 28px 80px rgba(0,0,0,.34); }
.vacuum-frame img { display: block; width: 100%; height: auto; object-fit: contain; }
.vacuum-study figcaption { margin-top: 12px; color: var(--muted); font-family: var(--font-display); font-size: .88rem; font-style: italic; letter-spacing: .06em; text-align: right; }

.about-principles-section { border-block: 1px solid var(--line); background: rgba(3, 18, 15, .32); }
.about-section-head { display: grid; grid-template-columns: .55fr 1.45fr; align-items: end; gap: 30px; }
.about-section-head .section-title { margin: 0; max-width: 760px; }
.about-principles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.about-principle { min-height: 320px; padding: clamp(28px, 4vw, 46px); }
.about-principle + .about-principle { border-left: 1px solid var(--line); }
.about-principle h3 { margin-bottom: 14px; font-size: clamp(1.45rem, 2.4vw, 2rem); }
.about-principle p { margin: 0; color: var(--text-soft); line-height: 1.7; }

.about-future-section { padding-block: clamp(88px, 12vw, 156px); }
.about-future { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 30px clamp(44px, 8vw, 120px); padding: clamp(30px, 6vw, 72px); border: 1px solid var(--line-strong); border-radius: var(--radius); background: radial-gradient(circle at 0 0, rgba(47,115,201,.16), transparent 44%), radial-gradient(circle at 100% 100%, rgba(29,107,87,.2), transparent 42%), var(--surface); }
.about-future h2 { margin: 13px 0 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.04; }
.about-future-copy p { margin: 0; color: var(--text-soft); line-height: 1.82; }
.about-future-copy p + p { margin-top: 20px; }
.about-future-links { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; padding-top: 10px; }
.about-future-links a { display: inline-flex; gap: 12px; align-items: center; padding: 12px 16px; border: 1px solid rgba(130,198,242,.24); color: var(--blue-light); text-decoration: none; font-size: .82rem; font-weight: 600; }
.about-future-links a:hover { color: #fff; border-color: var(--green-light); }

@media (max-width: 960px) {
  .about-hero-inner { grid-template-columns: 1fr; align-items: start; }
  .about-science-pattern { min-height: 320px; max-width: 620px; width: 100%; }
  .about-intro-grid { grid-template-columns: 1fr; }
  .vacuum-study { max-width: 760px; width: 100%; margin-inline: auto; }
  .about-principles { grid-template-columns: 1fr; }
  .about-principle { min-height: auto; }
  .about-principle + .about-principle { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .about-hero { min-height: 430px; }
  .about-hero h1 { letter-spacing: -.04em; }
  .about-section-head { grid-template-columns: 1fr; gap: 10px; }
  .about-future { grid-template-columns: 1fr; }
  .about-future-links { grid-column: 1; }
}

@media (max-width: 520px) {
  .about-science-pattern { min-height: 260px; }
  .about-science-pattern img { width: 108%; }
}

/* ---------- Kartlar (ortak) ---------- */

.card {
  position: relative;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* ---------- Research ---------- */

.research-card .num {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 18px;
  display: block;
}
.research-card .r-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(29, 107, 87, 0.5), rgba(47, 115, 201, 0.35));
  color: var(--green-light);
  border: 1px solid var(--line);
}
.research-card .r-icon svg { width: 24px; height: 24px; }
.research-card h3 { font-size: 1.35rem; }
.research-card p { color: var(--text-soft); font-size: .98rem; margin: 0; }

.research-card::after {
  content: "";
  position: absolute;
  inset: auto 30px 0 30px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.research-card:hover::after { transform: scaleX(1); }

/* ---------- Research archive ---------- */

.research-list { max-width: none; }
.researchgate-intro {
  margin: 0 0 34px !important;
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: rgba(47, 115, 201, .08);
}
.research-paper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.research-paper-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0, rgba(47, 115, 201, .14), transparent 42%),
    linear-gradient(145deg, rgba(16, 58, 50, .88), rgba(8, 37, 31, .72));
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.research-paper-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--grad);
}
.research-paper-card:hover {
  transform: translateY(-4px);
  border-color: rgba(130, 198, 242, .34);
  box-shadow: 0 22px 55px -35px rgba(47, 115, 201, .8);
}
.research-paper-number {
  display: block;
  margin-bottom: 20px;
  color: var(--green-light);
  font-size: .7rem;
  font-weight: 600;
}
.research-paper-card h2 {
  margin: 0 0 22px;
  padding: 0;
  color: var(--text);
  border: 0;
  font-size: clamp(1.3rem, 2vw, 1.72rem);
  line-height: 1.24;
}
.research-paper-card p {
  margin: 0 0 18px;
  color: var(--text-soft);
  font-size: .94rem;
}
.research-paper-card p[lang="tr"] {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.research-paper-card p[lang="tr"]::before {
  content: "TR";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 20px;
  margin-right: 9px;
  color: var(--green-light);
  border: 1px solid rgba(92, 195, 164, .25);
  font-size: .61rem;
  font-weight: 700;
  letter-spacing: .08em;
  vertical-align: 2px;
}
.research-paper-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin-top: auto;
  padding: 14px 16px;
  color: var(--text);
  border: 1px solid rgba(130, 198, 242, .25);
  background: rgba(47, 115, 201, .1);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color .25s ease, background .25s ease, border-color .25s ease;
}
.research-paper-link:hover {
  color: #fff;
  border-color: rgba(92, 195, 164, .5);
  background: rgba(29, 107, 87, .3);
}
.research-paper-link span { transition: transform .25s ease; }
.research-paper-link:hover span { transform: translate(3px, -3px); }
.research-paper-card-wide { grid-column: 1 / -1; }
.research-paper-card-wide h2 { max-width: 920px; }
.research-interests-section { scroll-margin-top: calc(var(--header-h) + 10px); }
.research-interest-grid { align-items: stretch; }
.research-interest-card { min-height: 250px; overflow: hidden; }
.research-interest-card > span {
  display: block;
  margin-bottom: 58px;
  color: var(--green-light);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
}
.research-interest-card h3 { max-width: 410px; font-size: clamp(1.45rem, 3vw, 2rem); }
.research-interest-card p { max-width: 500px; margin: 0; color: var(--text-soft); font-size: .94rem; }

/* Detailed Research Interests library */
.interest-index {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 44px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(47, 115, 201, .08), rgba(29, 107, 87, .08));
}
.interest-index a {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(4, 24, 20, .58);
  font-size: .78rem;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.interest-index a:hover,
.interest-index a:focus-visible { color: #fff; border-color: var(--green-light); background: rgba(29, 107, 87, .28); }
.interest-articles { display: grid; gap: 14px; }
#navier-stokes { order: -1; }
.interest-topic {
  scroll-margin-top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(12, 42, 36, .88), rgba(5, 25, 22, .96));
  overflow: hidden;
}
.interest-topic[open] { border-color: rgba(92, 195, 164, .32); box-shadow: 0 22px 60px rgba(0, 0, 0, .18); }
.interest-topic summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px;
  gap: 16px;
  align-items: center;
  min-height: 96px;
  padding: 19px 24px;
  cursor: pointer;
  list-style: none;
}
.interest-topic summary::-webkit-details-marker { display: none; }
.interest-topic summary strong { display: block; color: var(--text); font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 500; }
.interest-topic summary small { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.summary-icon { position: relative; width: 24px; height: 24px; }
.summary-icon::before, .summary-icon::after { content: ""; position: absolute; inset: 11px 3px auto; height: 1px; background: var(--green-light); transition: transform .25s ease; }
.summary-icon::after { transform: rotate(90deg); }
.interest-topic[open] .summary-icon::after { transform: rotate(0); }
.interest-topic-body {
  display: grid;
  grid-template-columns: minmax(230px, .76fr) minmax(0, 1.55fr);
  gap: clamp(24px, 5vw, 64px);
  padding: 8px 28px 34px 88px;
  border-top: 1px solid var(--line);
}
.concept-visual {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  margin: 28px 0 0;
  padding: 30px 20px 52px;
  border: 1px solid rgba(130, 198, 242, .2);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 22% 20%, rgba(130, 198, 242, .18), transparent 34%),
    radial-gradient(circle at 78% 78%, rgba(92, 195, 164, .16), transparent 38%),
    #061c18;
  overflow: hidden;
  color: var(--blue-light);
}
.concept-visual::before { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(255,255,255,.07); border-radius: 8px; pointer-events: none; }
.concept-visual span, .concept-visual i, .concept-visual b { position: relative; z-index: 1; }
.concept-visual span { padding: 7px 10px; border: 1px solid rgba(130, 198, 242, .24); border-radius: 999px; color: var(--text-soft); font: 600 .7rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.concept-visual i { color: var(--muted); font-style: normal; }
.concept-visual b { color: var(--green-light); font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 2rem); font-weight: 500; text-align: center; }
.concept-visual figcaption { position: absolute; right: 18px; bottom: 17px; left: 18px; color: var(--muted); font-size: .72rem; line-height: 1.4; text-align: center; }
.interest-copy { padding-top: 27px; color: var(--text-soft); }
.interest-copy > p { margin: 0 0 1em; line-height: 1.78; }
.interest-copy strong { color: var(--text); }
.topic-points { display: grid; gap: 8px; margin: 20px 0 24px; padding: 0; list-style: none; }
.topic-points li { position: relative; padding: 11px 14px 11px 30px; border-left: 2px solid rgba(92, 195, 164, .52); background: rgba(255,255,255,.025); color: var(--text-soft); font-size: .9rem; }
.topic-points li::before { content: "·"; position: absolute; left: 15px; color: var(--green-light); }
.topic-sources { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; padding-top: 18px; border-top: 1px solid var(--line); }
.topic-sources > span { margin-right: 4px; color: var(--green-light); font-size: .64rem; font-weight: 700; }
.topic-sources a { padding: 7px 10px; border: 1px solid rgba(130, 198, 242, .2); border-radius: 5px; color: var(--blue-light); font-size: .75rem; text-decoration: none; }
.topic-sources a:hover { color: #fff; border-color: rgba(92, 195, 164, .48); }
.interest-topic-existing { background: linear-gradient(145deg, rgba(24, 54, 71, .55), rgba(5, 25, 22, .96)); }

@media (max-width: 800px) {
  .interest-topic-body { grid-template-columns: 1fr; padding: 6px 20px 28px; gap: 8px; }
  .concept-visual { position: relative; top: auto; min-height: 180px; margin-top: 20px; }
  .interest-copy { padding-top: 10px; }
}

@media (max-width: 640px) {
  .research-paper-grid { grid-template-columns: 1fr; gap: 18px; }
  .research-paper-card,
  .research-paper-card-wide { grid-column: auto; padding: 24px 20px; }
  .research-interest-card { min-height: 220px; }
  .research-interest-card > span { margin-bottom: 40px; }
  .interest-index { padding: 14px; margin-bottom: 28px; }
  .interest-topic summary { grid-template-columns: minmax(0, 1fr) 22px; gap: 10px; min-height: 84px; padding: 15px 16px; }
  .interest-topic summary small { display: none; }
  .interest-topic-body { padding-inline: 15px; }
  .concept-visual { min-height: 160px; padding-inline: 14px; }
}

/* ---------- Tags ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--blue-light);
  background: rgba(47, 115, 201, 0.12);
  border: 1px solid rgba(130, 198, 242, 0.18);
}
.tag.green {
  color: var(--green-light);
  background: rgba(29, 107, 87, 0.25);
  border-color: rgba(92, 195, 164, 0.2);
}

/* ---------- Projects ---------- */

.project-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.project-cover {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green), var(--blue));
}
.project-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-cover img { transform: scale(1.05); }
.project-cover.c2 { background: linear-gradient(135deg, #0f4c5c, #2f73c9); }
.project-cover.c3 { background: linear-gradient(135deg, #1d6b57, #3aa5b8); }
.project-cover.c4 { background: linear-gradient(135deg, #123f5f, #1d6b57); }

.project-cover .cover-art {
  position: absolute;
  inset: 0;
  opacity: .35;
}

.project-status {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(6, 28, 24, 0.75);
  color: var(--green-light);
  backdrop-filter: blur(6px);
}

.project-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.4rem; }
.project-body p  { color: var(--text-soft); font-size: .98rem; }
.project-body .tags { margin-top: auto; padding-top: 8px; }

.project-links { display: flex; gap: 18px; margin-top: 20px; font-size: .92rem; font-weight: 600; }
.project-links a { display: inline-flex; align-items: center; gap: 6px; }
.project-links svg { width: 16px; height: 16px; }

/* ---------- Resources ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.filter-btn:hover { color: var(--text); border-color: var(--blue-light); }
.filter-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.resource-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
}
.resource-card:hover { color: inherit; }
.resource-card.hidden { display: none; }

.resource-top { display: flex; justify-content: space-between; align-items: center; }
.resource-type {
  font-size: .75rem;
  font-weight: 600;
  color: var(--green-light);
}
.resource-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--blue-light);
  transition: transform .3s, background .3s;
}
.resource-arrow svg { width: 16px; height: 16px; }
.resource-card:hover .resource-arrow { transform: rotate(-45deg); background: rgba(47, 115, 201, 0.2); }
.resource-card h3 { font-size: 1.2rem; margin: 0; }
.resource-card p { color: var(--text-soft); font-size: .95rem; margin: 0; }

/* ---------- Blog ---------- */

.post-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}
.post-card:hover { color: inherit; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.post-meta .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.post-card h3 { font-size: 1.35rem; transition: color .2s; }
.post-card:hover h3 { color: var(--blue-light); }
.post-card p { color: var(--text-soft); font-size: .97rem; }
.read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--green-light);
}
.read-more svg { width: 16px; height: 16px; transition: transform .2s; }
.post-card:hover .read-more svg { transform: translateX(4px); }

.section-foot { margin-top: 44px; text-align: center; }

/* ---------- Contact ---------- */

.contact-wrap {
  position: relative;
  padding: 64px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-wrap .section-title { margin-bottom: 16px; }
.contact-wrap .section-desc  { margin-bottom: 28px; }

.contact-wrap > div,
.contact-wrap > .contact-list {
  position: relative;
  z-index: 1;
}

.contact-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.contact-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(47, 115, 201, 0.4), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(29, 107, 87, 0.6), transparent 60%),
    linear-gradient(100deg, var(--surface) 32%, rgba(12, 47, 40, 0.55) 58%, rgba(6, 28, 24, 0.1) 100%);
}
.contact-visual img {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  height: 145%;
  width: auto;
  max-width: 65%;
  object-fit: contain;
  opacity: 1;
  filter: saturate(1.1) contrast(1.05);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 55%, transparent 96%);
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 55%, transparent 96%);
}

.contact-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(6, 28, 24, 0.55);
  border: 1px solid var(--line);
  color: var(--text);
  transition: border-color .2s, transform .2s, background .2s;
}
.contact-item:hover { color: var(--text); border-color: var(--blue-light); transform: translateX(4px); background: rgba(6, 28, 24, 0.8); }
.contact-item .ci-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
}
.contact-item .ci-icon svg { width: 18px; height: 18px; }
.contact-item span { display: block; }
.contact-item .ci-label { font-size: .78rem; color: var(--muted); }
.contact-item .ci-value { font-weight: 500; word-break: break-word; }

/* ---------- Footer ---------- */

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-inner p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; color: var(--text-soft); }
.to-top svg { width: 16px; height: 16px; }

/* ---------- Alt sayfalar (blog listesi, yazı) ---------- */

.page-hero {
  padding: calc(var(--header-h) + 44px) 0 38px;
  background: transparent;
  border-bottom: 0;
}
.page-hero h1 { font-size: clamp(2.15rem, 4vw, 3.4rem); font-weight: 500; }

.page-hero.contact-hero {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.page-hero.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../fotiler/Gemini_Generated_Image_lpv3i9lpv3i9lpv3.jpg") center 52% / cover no-repeat;
  z-index: 0;
}
.page-hero.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 16, 24, .82) 0%, rgba(3, 16, 24, .48) 58%, rgba(3, 16, 24, .25) 100%),
    linear-gradient(180deg, rgba(6, 20, 28, .28) 0%, rgba(6, 28, 24, .7) 72%, var(--bg) 100%);
  z-index: 0;
}
.page-hero.contact-hero .container { position: relative; z-index: 1; }
.page-hero.contact-hero h1 { text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.page-hero p  { color: var(--text-soft); font-size: 1.12rem; max-width: 640px; margin: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .92rem;
  font-weight: 500;
  margin-bottom: 28px;
  color: var(--text-soft);
}
.back-link svg { width: 16px; height: 16px; }

.post-list { display: grid; gap: 18px; }
.post-row {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 30px;
}
.post-row .post-meta { flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; }
.post-row h3 { font-size: 1.35rem; margin-bottom: 6px; }
.post-row p  { margin: 0; color: var(--text-soft); font-size: .96rem; }
.post-row .read-more { margin: 0; }

/* Yazı sayfası */

.article {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 24px 100px;
}
.article-header .post-meta { margin-bottom: 18px; }
.article-header .tags { margin-top: 20px; }

.prose { font-size: 1.1rem; color: var(--text-soft); }
.prose > * + * { margin-top: 1.2em; }
.prose p { margin: 0; }
.prose h2 { color: var(--text); font-size: 1.8rem; margin-top: 2em; }
.prose h3 { color: var(--text); font-size: 1.35rem; margin-top: 1.6em; }
.prose strong { color: var(--text); }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(130, 198, 242, 0.4); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--green-light); }
.prose blockquote {
  margin: 0;
  padding: 18px 24px;
  border-left: 3px solid var(--green-light);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
}
.prose code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: .88em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--blue-light);
}
.prose pre {
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: #041512;
  border: 1px solid var(--line);
  overflow-x: auto;
  font-size: .92rem;
  line-height: 1.6;
}
.prose pre code { padding: 0; background: none; color: var(--text); }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { margin-top: 10px; font-size: .9rem; color: var(--muted); text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--line-strong); margin: 2.4em 0; }

.article-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Scroll animasyonu ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* JS kapalıysa içerik gizli kalmasın */
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Refined inner pages ---------- */

.page-hero {
  position: relative;
  min-height: 0;
  display: block;
  padding: calc(var(--header-h) + 44px) 0 38px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero:not(.contact-hero)::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 0;
  width: min(430px, calc(100vw - 48px));
  height: 1px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, var(--green-light), rgba(130, 198, 242, .45) 58%, transparent);
  box-shadow: none;
  opacity: .58;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { position: relative; }
.page-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--green-light);
  font-size: .68rem;
  font-weight: 600;
}
.page-hero h1 { max-width: 900px; margin: 0 0 10px; font-size: clamp(2.15rem, 4vw, 3.4rem); line-height: 1.06; }
.page-hero p { max-width: 650px; font-size: clamp(.96rem, 1.35vw, 1.06rem); }
.hero-text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 26px;
  color: var(--text);
  font-size: .88rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 5px;
}

/* Contact */

.contact-section { padding-bottom: 130px; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(290px, .78fr) minmax(420px, 1.22fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}
.quantum-frame {
  position: relative;
  min-height: 620px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #020706;
  box-shadow: 32px 34px 0 -26px rgba(58, 165, 184, .17), var(--shadow);
}
.quantum-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(2, 10, 9, .93) 100%);
  pointer-events: none;
}
.quantum-frame img { width: 100%; height: 100%; min-height: 620px; object-fit: cover; object-position: 50% 42%; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.quantum-frame:hover img { transform: scale(1.025); }
.quantum-frame figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 26px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.quantum-frame figcaption span { color: #f3c87d; font-size: .68rem; font-weight: 600; }
.quantum-frame figcaption small { max-width: 185px; color: rgba(229, 242, 238, .72); text-align: right; line-height: 1.45; }
.contact-panel { position: relative; padding: 28px 0; }
.contact-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  height: 260px;
  top: 2%;
  right: -12%;
  border-radius: 50%;
  background: rgba(47, 115, 201, .16);
  filter: blur(70px);
}
.contact-copy { max-width: 600px; margin-bottom: 38px; }
.contact-copy .section-title { font-size: clamp(2.4rem, 5vw, 4rem); }
.contact-copy .section-desc { color: var(--text-soft); font-size: 1.05rem; }
.contact-note { margin: 22px 0 0; padding-left: 18px; border-left: 1px solid var(--green-light); color: var(--muted); font-size: .9rem; font-style: italic; }
.contact-panel .contact-list { gap: 0; border-top: 1px solid var(--line); }
.contact-panel .contact-item {
  min-height: 82px;
  padding: 16px 4px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
}
.contact-panel .contact-item:hover { padding-left: 12px; background: linear-gradient(90deg, rgba(47, 115, 201, .1), transparent); }
.contact-panel .contact-item .ci-icon { border-radius: 50%; background: rgba(47, 115, 201, .14); color: var(--blue-light); }

/* Github projects */

.projects-hero { background: radial-gradient(650px 420px at 78% 40%, rgba(58, 165, 184, .17), transparent 65%), var(--bg-2); }
.project-showcase { padding-top: 78px; }
.showcase-heading { display: grid; grid-template-columns: 1fr minmax(320px, .8fr); gap: 60px; align-items: end; margin-bottom: 54px; }
.showcase-heading .section-title { margin-bottom: 0; }
.showcase-heading > p { margin: 0 0 6px; color: var(--text-soft); }
.github-grid { display: grid; grid-template-columns: 1.22fr .78fr; gap: 22px; align-items: stretch; }
.github-card {
  position: relative;
  min-height: 530px;
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(145deg, rgba(16, 58, 50, .92), rgba(6, 28, 24, .96));
  border: 1px solid var(--line);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.github-card-featured { background: radial-gradient(420px 280px at 92% 0%, rgba(47, 115, 201, .26), transparent 72%), linear-gradient(145deg, rgba(16, 58, 50, .96), rgba(6, 28, 24, .98)); }
.github-card-wide { grid-column: 1 / -1; min-height: 430px; }
.github-card-wide .github-card-body { max-width: 760px; }
.github-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.github-card-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; }
.repo-visibility { display: inline-flex; align-items: center; gap: 8px; color: var(--green-light); font-size: .72rem; font-weight: 600; }
.repo-visibility.private { color: var(--muted); }
.repo-mark { position: absolute; top: 52px; right: 24px; color: rgba(130, 198, 242, .09); font-family: var(--font-display); font-size: 12rem; line-height: .8; transform: rotate(-8deg); }
.pulse-mark { color: rgba(92, 195, 164, .08); }
.github-card-body { position: relative; z-index: 1; max-width: 580px; margin-top: auto; padding-top: 150px; }
.repo-type { margin-bottom: 8px; color: var(--blue-light); font-size: .72rem; font-weight: 600; }
.github-card h3 { margin-bottom: 18px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); overflow-wrap: anywhere; }
.github-card-body > p:last-child { color: var(--text-soft); font-size: .96rem; }
.repo-footer { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.repo-link { flex: none; color: var(--text); font-size: .86rem; font-weight: 600; }
.private-note { flex: none; color: var(--muted); font-size: .78rem; }
.github-profile-callout { margin-top: 24px; padding: 36px 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid var(--line); background: rgba(8, 37, 31, .72); }
.github-profile-callout h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.github-profile-callout .section-label { margin-bottom: 7px; }

/* Blog portals */

.blog-portals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 82px; }
.blog-portal {
  position: relative;
  min-height: 220px;
  padding: 30px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  color: var(--text);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 58, 50, .9), rgba(6, 28, 24, .95));
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.blog-portal::after { content: ""; position: absolute; inset: 0; background: radial-gradient(340px 190px at 100% 0%, rgba(47, 115, 201, .24), transparent 70%); opacity: .7; transition: opacity .3s; }
.romantic-portal::after { background: radial-gradient(340px 190px at 100% 0%, rgba(121, 64, 112, .32), transparent 70%); }
.blog-portal:hover { color: var(--text); transform: translateY(-5px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.blog-portal:hover::after { opacity: 1; }
.portal-symbol { position: absolute; z-index: 1; top: 18px; right: 24px; color: rgba(130, 198, 242, .18); font-family: var(--font-display); font-size: 6.5rem; line-height: 1; }
.romantic-portal .portal-symbol { color: rgba(215, 153, 193, .18); }
.portal-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 7px; }
.portal-copy small { color: var(--muted); font-size: .73rem; }
.portal-copy strong { font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 500; }
.portal-arrow { position: relative; z-index: 2; margin-left: auto; color: var(--blue-light); font-size: 1.2rem; transition: transform .25s; }
.blog-portal:hover .portal-arrow { transform: translate(3px, -3px); }
.blog-list-heading { margin-bottom: 32px; }
.blog-list-heading .section-label { margin-bottom: 8px; }
.blog-list-heading .section-title { margin: 0; font-size: clamp(2rem, 4vw, 3rem); }
.blog-list-heading + .post-list { max-width: 980px; }
.post-row { border-left: 2px solid transparent; }
.post-row:hover { border-left-color: var(--green-light); }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: .8fr 1.2fr; gap: 34px; }
  .quantum-frame, .quantum-frame img { min-height: 540px; }
  .github-grid { grid-template-columns: 1fr; }
  .github-card-wide { grid-column: auto; }
  .github-card { min-height: 470px; }
  .showcase-heading { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 700px) {
  .page-hero { min-height: 0; padding: calc(var(--header-h) + 30px) 0 30px; }
  .page-hero h1 { font-size: clamp(2.15rem, 10vw, 3rem); }
  .contact-layout { grid-template-columns: 1fr; }
  .quantum-frame, .quantum-frame img { min-height: 500px; }
  .contact-panel { padding-top: 10px; }
  .blog-portals { grid-template-columns: 1fr; margin-bottom: 64px; }
  .blog-portal { min-height: 190px; }
  .repo-footer, .github-profile-callout { align-items: flex-start; flex-direction: column; }
  .github-card { min-height: 500px; padding: 25px; }
  .github-card-body { padding-top: 120px; }
  .github-profile-callout { padding: 28px 24px; }
}

/* ---------- Sayfa geçiş animasyonu ---------- */

body {
  opacity: 1;
  transition: opacity .32s ease;
}
html.is-preload:not(.no-js) body {
  opacity: 0;
  transition: none;
}
body.is-leaving {
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  html.is-preload body { opacity: 1; }
  body.is-leaving { opacity: 1; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr 300px; gap: 32px; }
  .contact-wrap { padding: 48px; grid-template-columns: 1fr; }
  .contact-visual img { opacity: .55; max-width: 85%; right: -20px; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: block; }

  .logo-img { width: 42px; height: 42px; border-radius: 11px; }

  .site-nav {
    display: block;
    flex: none;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: rgba(6, 28, 24, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 24px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .site-header { background: rgba(6, 28, 24, 0.97); border-bottom-color: var(--line); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 13px 16px; border-radius: 12px; font-size: 1rem; }
  .nav-list a.nav-cta { margin: 10px 0 0; text-align: center; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-visual { order: -1; width: 200px; justify-self: start; }
  .portrait-initials { font-size: 3rem; }
  .scroll-hint { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-2 { grid-template-columns: 1fr; }

  .post-row { grid-template-columns: 1fr; gap: 12px; }
  .post-row .post-meta { flex-direction: row; gap: 10px; }
}

/* Original content, presented in the site's existing visual language. */
.logo { flex-shrink: 0; }
.nav-dropdown { position: relative; }
.nav-heading { display: flex; align-items: center; }
.nav-heading > a { padding-right: 4px; }
.submenu-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 38px;
  padding: 0;
  color: var(--text-soft);
  border: 0;
  background: transparent;
  cursor: pointer;
}
.submenu-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .28s ease; }
.is-open > .nav-heading .submenu-toggle svg { transform: rotate(180deg); }
.nav-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 245px;
  padding: 12px;
  margin: 0;
  list-style: none;
  background: rgba(5, 22, 24, .98);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -20px #000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transform-origin: top center;
  transition: opacity .24s ease, transform .3s cubic-bezier(.2,.7,.2,1), visibility .24s;
  max-height: calc(100dvh - 95px);
  overflow-y: auto;
  z-index: 2;
}
.nav-submenu a { white-space: nowrap; }
.nav-dropdown.is-open > .nav-submenu,
.no-js .nav-dropdown:hover > .nav-submenu,
.no-js .nav-dropdown:focus-within > .nav-submenu { opacity: 1; visibility: visible; transform: none; }
.nav-heading > a:hover, .nav-dropdown.is-open > .nav-heading { background: rgba(130,198,242,.08); }
.btn:active, .icon-btn:active, .space-controls button:active { transform: scale(.96); }

/* Same-origin document changes crossfade without a blank frame. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: page-out .32s ease both; }
::view-transition-new(root) { animation: page-in .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.native-transitions.is-preload body { opacity: 1; }
html:not(.native-transitions) main { transition: opacity .24s ease, transform .32s ease; }
html:not(.native-transitions) .is-leaving main { transform: translateY(-8px); }

/* Independently lit portrait and deep-space background. */
.space-hero { background: #030b13; }
.space-hero .hero-inner { position: relative; z-index: 1; grid-template-columns: 1.05fr 1fr; gap: 30px; }
@media (min-width: 1101px) {
  #submenu-blog { left: auto; right: 0; }
  .space-hero .hero-inner > :first-child { position: relative; left: min(0px, calc((1140px - 100vw) / 2 + 40px)); z-index: 1; }
}
.space-hero .hero-lead { font-size: clamp(1rem, 1.25vw, 1.13rem); color: #c2d5dd; }
.space-hero .eyebrow { background: rgba(4,20,31,.55); }
.space-background {
  background: linear-gradient(90deg, rgba(2,10,18,.4), transparent 72%), url('../assets/space-nebula.png') center / cover;
}
.space-background::after {
  background: linear-gradient(0deg, var(--bg), transparent 23%);
  opacity: 1;
  mask-image: none;
  -webkit-mask-image: none;
}
.space-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .65;
  background-image: radial-gradient(1.5px 1.5px at 77% 23%, #c6e8ff 90%, transparent), radial-gradient(1px 1px at 55% 64%, #fff 90%, transparent), radial-gradient(1.5px 1.5px at 89% 81%, #8ce0ed 90%, transparent);
  animation: star-breathe 8s ease-in-out infinite alternate;
}
@keyframes star-breathe { to { opacity: .2; transform: translate3d(0, -6px, 0); } }
.space-visual { position: relative; min-width: 0; width: 100%; align-self: center; }
.space-stage {
  position: relative;
  height: clamp(470px, 68vh, 710px);
  width: 100%;
  perspective: 1000px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.is-dragging .space-stage { cursor: grabbing; }
.space-depth { height: 100%; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.16,1,.3,1); }
.is-dragging .space-depth { transition: transform .08s linear; }
.beyza-drift { width: 100%; height: 100%; animation: weightless 9s ease-in-out infinite; }
.floating-beyza { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 12px 34px rgba(33,116,163,.17)); }
@keyframes weightless {
  0%, 100% { transform: translate3d(0,-8px,0) rotate(-2deg); }
  50% { transform: translate3d(7px,10px,18px) rotate(2deg); }
}
.space-toolbar { display: flex; justify-content: center; align-items: center; gap: 16px; position: relative; z-index: 2; }
.space-toolbar p { font-size: .73rem; color: #a3bdce; margin: 0; }
.space-toolbar p span { padding-inline: 5px; }
.space-controls { display: flex; gap: 5px; }
.space-controls button {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(130,198,242,.24);
  background: rgba(4,18,29,.6);
  color: #d6ebf5;
  font: inherit;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.space-controls button:hover { background: #12364c; border-color: var(--blue-light); }
.no-js .space-toolbar { display: none; }
.space-hero { overflow-x: clip; overflow-y: visible; z-index: 3; }
.space-background, .space-stars { overflow: hidden; }
.space-stage { z-index: 2; }
.portrait-travel { position: absolute; inset: 0; transform-origin: 47% 14.5%; will-change: transform, opacity; mask-composite: intersect; }
.beyza-drift { position: relative; }
.hair-sheen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  clip-path: polygon(0 12%, 38% 10%, 38% 17%, 30% 25%, 21% 33%, 15% 38%, 0 44%);
  filter: saturate(2.1) brightness(1.6);
  opacity: var(--hair-light, .24);
  mask-image: linear-gradient(110deg, transparent, #000 42%, transparent 68%);
  mask-size: 240% 100%;
  mask-position: var(--hair-shine, 50%) 0;
  transition: opacity .55s ease, mask-position .6s ease;
}
.space-visual.is-travelling .space-toolbar { opacity: 0; visibility: hidden; }
.space-toolbar { transition: opacity .25s, visibility .25s; }
.is-travelling .space-depth { transition: none; }
.is-travelling .beyza-drift { animation: none; }
.science-orbit { position: absolute; inset: -32px -45px -15px; pointer-events: none; z-index: 3; opacity: var(--orbit-opacity, 1); }
.science-object { position: absolute; width: 110px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: pointer; pointer-events: auto; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transform: translate3d(calc(var(--orbit-x, 0px) * var(--depth, 1)), calc(var(--orbit-y, 0px) * var(--depth, 1)), 0); transition: transform .8s ease; }
.science-object:disabled, .science-orbit[inert] .science-object { pointer-events: none; }
.science-object:hover > span { filter: drop-shadow(0 0 19px #80c4f18c); }
.science-object.is-dissolving > span { animation: dust-dissolve .65s ease-out forwards; }
.space-dust { position: fixed; inset: 0; pointer-events: none; z-index: 40; }
@keyframes dust-dissolve { 30% { opacity: .7; filter: blur(1px); } to { opacity: 0; filter: blur(7px); transform: translate(10px, -5px) scale(1.08); } }
.science-object > span {
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('../assets/science-objects.png');
  background-size: 300% 200%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 16px #15375566);
  animation: science-drift var(--duration, 11s) ease-in-out infinite alternate;
  animation-delay: var(--delay, 0s);
}
.science-rocket { top: 0; left: -7%; width: 140px; --depth: -.6; --duration: 12s; }
.science-rocket > span { background-position: 0 0; }
.science-pi { top: 6%; right: -1%; width: 86px; --depth: .8; --duration: 9s; --delay: -3s; }
.science-pi > span { background-position: 50% 0; clip-path: inset(0 0 0 7%); }
.science-tarantula { top: 40%; left: -1%; width: 105px; --depth: -.4; --duration: 10s; --delay: -7s; }
.science-tarantula > span { background-image: url('../assets/space-tarantula.png'); background-size: contain; background-position: center; }
.science-atom { top: 42%; right: -8%; width: 115px; --depth: 1.2; --duration: 13s; --delay: -2s; }
.science-atom > span { background-position: 0 100%; }
.science-satellite { bottom: 5%; left: -8%; width: 128px; --depth: .5; --duration: 14s; --delay: -5s; }
.science-satellite > span { background-position: 50% 100%; }
.science-fighter { bottom: -1%; right: -7%; width: 135px; --depth: -.6; --duration: 11s; --delay: -8s; }
.science-fighter > span { background-image: url('../assets/space-fighter-jet.png'); background-size: contain; background-position: center; }
@keyframes science-drift { from { transform: translateY(-9px) rotate(-7deg); } to { transform: translateY(12px) rotate(8deg); } }
.explore-section { position: relative; z-index: 2; padding-top: 100px; }
.explore-heading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: end; min-height: 150px; }
.explore-heading .section-head { margin: 0; }
.explore-eyes {
  grid-column: 2 / 4;
  justify-self: center;
  width: min(470px, 100%);
  height: 112px;
  position: relative;
  overflow: hidden;
  opacity: var(--eyes-opacity, 0);
  transform: translateY(calc((1 - var(--eyes-opacity, 0)) * -12px));
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 84%, transparent), linear-gradient(to right, transparent, #000 15%, #000 85%, transparent);
  mask-composite: intersect;
}
.explore-eyes img { position: absolute; width: 100%; height: auto; top: 50%; left: 0; transform: translateY(-50%) scale(1.17); max-width: none; }
.explore-section .page-directory { margin-top: 24px; position: relative; z-index: 4; }
.no-js .explore-eyes { opacity: 1; transform: none; }
.golden-mark { pointer-events: none; user-select: none; }
.golden-hero { position: absolute; width: 320px; left: max(24px, calc((100% - 1140px) / 2)); bottom: 38px; opacity: .13; }
.site-footer { position: relative; overflow: hidden; }
.golden-footer { position: absolute; width: 220px; right: 4%; bottom: 8px; opacity: .1; }
@media (max-width: 1100px) {
  .science-orbit { inset: -14px 0; }
  .science-rocket { width: 105px; left: -3%; }
  .science-atom { width: 85px; right: -2%; }
  .science-tarantula { left: -2%; width: 85px; }
  .science-satellite { left: -2%; width: 95px; }
  .science-fighter { right: 0; width: 105px; }
  .science-pi { right: 3%; width: 67px; }
}
@media (max-width: 700px) {
  .space-hero .hero-inner { gap: 42px; }
  .space-visual { width: calc(100% - 24px); }
  .science-rocket { top: 0; left: -8%; width: 85px; }
  .science-tarantula { left: -8%; width: 72px; }
  .science-atom { right: -8%; width: 77px; }
  .science-satellite { left: -9%; width: 82px; }
  .science-fighter { right: -8%; width: 95px; }
  .science-pi { right: -4%; width: 56px; }
  .golden-hero { width: 180px; left: auto; right: 18px; bottom: 8px; opacity: .1; }
  .explore-section { padding-top: 52px; }
  .explore-heading { grid-template-columns: .8fr 1.2fr; gap: 12px; min-height: 110px; }
  .explore-eyes { grid-column: 2; height: 70px; width: 100%; align-self: center; }
  .explore-heading .section-title { font-size: 2rem; }
  .explore-section .directory-card[href="about.html"] { order: -2; }
  .explore-section .directory-card[href="research.html"] { order: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .science-object > span { animation: none; }
  .hair-sheen, .science-object { transition: none; }
  .science-object.is-dissolving > span { animation: none; opacity: 0; }
}
@media (max-width: 1100px) {
  .nav-heading > a { flex: 1; }
  .submenu-toggle { width: 48px; height: 48px; }
  .nav-submenu { position: static; min-width: 0; max-height: 0; padding: 0 12px; border-width: 0; overflow: hidden; transform: none; transition: max-height .35s ease, padding .3s ease, opacity .25s ease, visibility .25s; }
  .nav-dropdown.is-open > .nav-submenu, .no-js .nav-dropdown:focus-within > .nav-submenu { max-height: 650px; padding-block: 8px; opacity: 1; border-width: 1px; }
  .nav-submenu a { white-space: normal; font-size: .92rem; }
  .space-hero .hero-inner { grid-template-columns: 1fr 1fr; gap: 12px; }
  .space-stage { height: 520px; }
  .space-toolbar { flex-direction: column; gap: 10px; }
  .site-nav { overscroll-behavior: contain; background: #061b20; }
}
@media (max-width: 700px) {
  .space-hero .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .space-visual { order: -1; max-width: 410px; justify-self: center; }
  .space-stage { height: 410px; }
  .space-hero { padding-top: calc(var(--header-h) + 26px); }
  .space-toolbar { flex-direction: row; gap: 12px; }
  .space-toolbar p { font-size: .65rem; }
  .space-background { background-position: 65% top; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .beyza-drift, .space-stars { animation: none; }
  .space-depth { transition: none; }
}
.content-section { padding-top: 56px; }
.imported-content { max-width: 800px; margin-inline: auto; overflow-wrap: anywhere; }
.content-wide { max-width: none; }
.content-wide > p, .content-wide > h2 { max-width: 800px; margin-inline: auto; }
.imported-content > :first-child { margin-top: 0; }
.imported-content p + p { margin-top: 1.2em; }
.source-image img { width: auto; max-height: 520px; margin-inline: auto; object-fit: contain; }
.prose .signature { text-align: right; color: var(--green-light); font-style: italic; margin-bottom: 3em; }
.content-action a { display: inline-block; padding: 12px 22px; border: 1px solid var(--line-strong); }
.document-embed, .interactive-embed { margin-block: 32px; }
.document-embed .btn, .interactive-embed .btn { margin-bottom: 16px; text-decoration: none; }
.document-embed iframe, .local-embed { display: block; width: 100%; height: 720px; border: 1px solid var(--line-strong); background: var(--bg-2); }
.local-embed { height: 850px; }
.page-directory { margin-top: 48px; }
.directory-card { color: var(--text); display: flex; flex-direction: column; align-items: start; gap: 10px; }
.directory-card h2 { font-size: 1.4rem; }
.directory-card > span:last-child { margin-top: auto; color: var(--blue-light); }
.explore-section .directory-card {
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 178px;
  overflow: hidden;
  isolation: isolate;
}
.explore-section .directory-card h2 { position: relative; z-index: 1; max-width: 72%; margin: 0; text-align: center; }
.explore-section .directory-card::before {
  position: absolute;
  right: 24px;
  top: 50%;
  z-index: -1;
  color: rgba(109, 207, 191, .105);
  font-family: var(--font-display);
  font-size: clamp(5rem, 7vw, 7rem);
  font-weight: 500;
  line-height: 1;
  transform: translateY(-50%);
  transition: color .3s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.explore-section .directory-card:hover::before { color: rgba(130, 198, 242, .18); transform: translateY(-50%) scale(1.06) rotate(-3deg); }
.explore-section .directory-card[href="contact.html"]::before { content: "∿"; }
.explore-section .directory-card[href="about.html"]::before { content: "π"; }
.explore-section .directory-card[href="research.html"]::before { content: "∑"; }
.explore-section .directory-card[href="cv.html"]::before { content: "λ"; }
.explore-section .directory-card[href="fault-detection.html"]::before { content: "Δ"; }
.explore-section .directory-card[href="universe.html"]::before { content: "⊙"; }
.explore-section .directory-card[href="romantik-byeza.html"]::before { content: "φ"; }
.explore-section .directory-card[href="ying-yang-byeza.html"]::before { content: "☯"; }
.explore-section .language-flag {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 4px;
  background: rgba(6, 28, 24, .72);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .75);
  font-size: 1.18rem;
  line-height: 1;
  backdrop-filter: blur(5px);
}
.explore-section .directory-card[href="byeza-ai.html"] {
  background: linear-gradient(120deg, var(--green), var(--blue), var(--teal), var(--blue-light), var(--green-light), var(--green));
  background-size: 300% 300%;
  animation: byeza-gradient-shift 8s ease infinite;
  border-color: transparent;
  color: #fff;
}
.explore-section .directory-card[href="byeza-ai.html"]::before { content: "Ψ"; color: rgba(255, 255, 255, .16); }
.explore-section .directory-card[href="byeza-ai.html"]:hover::before { color: rgba(255, 255, 255, .3); }
@media (prefers-reduced-motion: reduce) {
  .explore-section .directory-card[href="byeza-ai.html"] { animation: none; }
}
.footer-note { display: grid; grid-template-columns: 1fr 1.3fr; gap: 32px; margin-bottom: 16px; }
.footer-note p { margin: 0; line-height: 1.5; }
.footer-note blockquote { margin: 0; color: var(--text-soft); max-width: 580px; }
.footer-note blockquote p { margin-bottom: 4px; }
.footer-note cite { color: var(--muted); }
@media (max-width: 1100px) {
  .no-js .site-header { position: relative; height: auto; background: var(--bg-2); }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 12px; }
  .no-js .site-nav { position: static; visibility: visible; opacity: 1; transform: none; width: 100%; max-height: none; }
  .no-js .nav-toggle { display: none; }
}
@media (max-width: 640px) {
  .footer-note { grid-template-columns: 1fr; gap: 14px; }
  .content-section { padding-top: 36px; }
  .document-embed iframe { height: 560px; }
}

/* Quiet rounding; the Explore directory deliberately stays square. */
.btn, .icon-btn, .nav-toggle, .submenu-toggle, .nav-list a, .nav-heading,
.nav-submenu, .logo-img, .eyebrow, .filter-btn, .tag, .project-status,
.resource-type, .space-controls button, .content-action a, .post-row,
.document-embed iframe, .local-embed { border-radius: 5px; }
.card, .fact, .contact-wrap { border-radius: var(--radius); }
.explore-section .directory-card { border-radius: 0; }

/* ---------- About: hobbies ---------- */

.hobbies-section {
  margin-top: 96px;
  padding-top: 86px;
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.hobbies-intro {
  display: grid;
  grid-template-columns: minmax(270px, .9fr) minmax(320px, 1.1fr);
  column-gap: 64px;
  align-items: end;
  margin-bottom: 42px;
}
.hobbies-intro .section-label { grid-column: 1 / -1; }
.hobbies-intro .section-title { margin: 0; }
.hobbies-intro > p { margin: 0 0 6px; color: var(--text-soft); }
.hobbies-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.hobby-card {
  position: relative;
  min-height: 250px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 58, 50, .82), rgba(6, 28, 24, .96));
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.hobby-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(130, 198, 242, .1);
  border-radius: 50%;
}
.hobby-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.hobby-card h3 { position: relative; z-index: 1; font-size: 1.55rem; }
.hobby-card p { position: relative; z-index: 1; max-width: 510px; margin: 0; color: var(--text-soft); font-size: .94rem; }
.hobby-card-music { background: radial-gradient(330px 190px at 100% 0%, rgba(47, 115, 201, .25), transparent 70%), linear-gradient(145deg, rgba(16, 58, 50, .82), rgba(6, 28, 24, .96)); }

/* ---------- CV placeholder ---------- */

.cv-coming-soon {
  max-width: 880px;
  margin-inline: auto;
  padding: clamp(34px, 6vw, 64px);
  text-align: center;
  border: 1px solid var(--line-strong);
  background: radial-gradient(420px 240px at 50% 0%, rgba(47, 115, 201, .18), transparent 75%), var(--surface);
}
.cv-coming-soon h2 { margin-bottom: 16px; font-size: clamp(2rem, 4.5vw, 3.5rem); }
.cv-coming-soon > p { max-width: 570px; margin: 0 auto; color: var(--text-soft); }
.cv-language-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 42px; }
.cv-language-list span, .cv-language-list a { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; padding: 12px; border: 1px solid var(--line); color: var(--text-soft); }
.cv-language-list a { text-decoration: none; }
.cv-language-list a:hover { border-color: var(--line-strong); color: var(--text); }
.cv-language-list strong { color: var(--green-light); font-size: .72rem; letter-spacing: .12em; }

@media (max-width: 700px) {
  .hobbies-section { margin-top: 72px; padding-top: 64px; }
  .hobbies-intro, .hobbies-grid { grid-template-columns: 1fr; }
  .hobbies-intro { gap: 14px; }
  .hobby-card { min-height: 225px; padding: 25px; }
  .cv-language-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .site-header .container { padding: 0 16px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .project-body { padding: 22px; }
  .contact-wrap { padding: 32px 20px; }
  .contact-visual img { display: none; }
  .hero { padding-bottom: 60px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .blob-1 { width: 240px; height: 240px; }
  .blob-2 { width: 200px; height: 200px; }
  .article { padding: 48px 16px 80px; }
  .prose { font-size: 1.03rem; }
  .post-row { padding: 24px 20px; }
}

/* ---------- byeza.ai header link ---------- */

@keyframes byeza-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.byeza-ai-toggle {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, var(--green), var(--blue), var(--teal), var(--blue-light), var(--green-light), var(--green));
  background-size: 300% 300%;
  animation: byeza-gradient-shift 7s ease infinite;
  color: #fff;
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.byeza-ai-toggle:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(47, 115, 201, .6); }
@media (prefers-reduced-motion: reduce) {
  .byeza-ai-toggle { animation: none; }
}

/* ---------- byeza.ai chat page ---------- */

.ai-page main { display: flex; }

.ai-shell {
  flex: 1;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  justify-content: center;
  padding: calc(var(--header-h) + 32px) 20px 24px;
  background:
    radial-gradient(720px 420px at 18% -10%, rgba(47, 115, 201, .16), transparent 60%),
    radial-gradient(720px 420px at 100% 0%, rgba(92, 195, 164, .12), transparent 55%);
}

.ai-shell-inner {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  animation: ai-shell-in .5s cubic-bezier(.2,.7,.2,1);
}
@keyframes ai-shell-in {
  from { opacity: 0; transform: translateY(14px) scale(.99); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-shell-inner { animation: none; }
}

.ai-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.ai-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green), var(--blue));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}
.ai-top h1 { margin: 0; font-size: 1.4rem; }
.ai-top p { margin: 2px 0 0; color: var(--text-soft); font-size: .92rem; }
.ai-identity { min-width: 0; flex: 1; }

.ai-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 24px;
}

.ai-msg { display: flex; gap: 10px; max-width: 88%; }
.ai-msg-bot { align-self: flex-start; }
.ai-msg-user { align-self: flex-end; flex-direction: row-reverse; }

.ai-msg-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 600;
}
.ai-msg-bot .ai-msg-avatar { background: linear-gradient(135deg, var(--green), var(--blue)); color: #fff; }
.ai-msg-user .ai-msg-avatar { background: var(--surface-2); color: var(--text-soft); border: 1px solid var(--line-strong); }

.ai-msg-bubble {
  padding: 12px 15px;
  border-radius: 16px;
  font-size: .96rem;
  line-height: 1.55;
  white-space: pre-line;
}
.ai-msg-bot .ai-msg-bubble { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-top-left-radius: 4px; }
.ai-msg-user .ai-msg-bubble { background: var(--blue); color: #fff; border-top-right-radius: 4px; }
.ai-msg-copy > * { margin: 0; }
.ai-msg-copy > * + * { margin-top: .75em; }
.ai-msg-copy.is-waiting { min-width: 12px; min-height: 1.45em; }
.ai-msg-copy.is-typing { white-space: pre-wrap; }
.ai-msg-copy.is-typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.16em; background: var(--green-light); animation: ai-type-cursor .72s steps(1) infinite; }
@keyframes ai-type-cursor { 50% { opacity: 0; } }
.ai-msg-copy h3 { color: inherit; font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.ai-msg-copy ul, .ai-msg-copy ol { padding-left: 1.35em; }
.ai-msg-copy li + li { margin-top: .28em; }
.ai-msg-copy strong { color: inherit; font-weight: 700; }
.ai-msg-copy code { padding: 2px 5px; border-radius: 4px; background: rgba(130,198,242,.1); color: var(--blue-light); font-family: Consolas, "Courier New", monospace; font-size: .88em; }
.ai-msg-copy pre { max-width: 100%; overflow-x: auto; padding: 13px 14px; border: 1px solid var(--line); border-radius: 8px; background: #031411; white-space: pre; }
.ai-msg-copy pre code { padding: 0; background: none; color: #dceee9; }
.ai-msg-user .ai-msg-copy code { color: #fff; background: rgba(255,255,255,.12); }
.ai-msg-follow-up { margin-top: -10px; }
.ai-msg-follow-up .ai-msg-avatar { visibility: hidden; }
.ai-msg-follow-up .ai-msg-bubble {
  min-width: 38px;
  padding-inline: 13px;
  text-align: center;
}
.ai-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  white-space: normal;
}
.ai-sources.is-pending { visibility: hidden; }
.ai-sources > span {
  width: 100%;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 600;
}
.ai-sources a {
  padding: 4px 8px;
  color: var(--blue-light);
  border: 1px solid rgba(130, 198, 242, .18);
  border-radius: 999px;
  background: rgba(47, 115, 201, .08);
  font-size: .72rem;
  text-decoration: none;
}
.ai-sources a:hover { color: #fff; border-color: rgba(130, 198, 242, .4); }

.ai-typing { display: flex; gap: 4px; align-items: center; padding: 14px 15px; }
.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: ai-typing-blink 1.2s infinite ease-in-out;
}
.ai-typing span:nth-child(2) { animation-delay: .15s; }
.ai-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-typing-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

.ai-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ai-chip {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .86rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.ai-chip:hover { color: var(--text); border-color: var(--blue-light); background: var(--surface-2); }

.ai-input-bar {
  position: sticky;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 18px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.ai-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: .96rem;
  padding: 8px 0;
}
.ai-input:focus { outline: none; }
.ai-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 1.05rem;
  flex: none;
  transition: background .2s;
}
.ai-send:hover { background: #3a82dc; }
.ai-send:disabled, .ai-input:disabled { cursor: wait; opacity: .6; }
.ai-disclaimer { margin: 12px 2px 0; color: var(--muted); font-size: .8rem; text-align: center; }
.ai-motto {
  color: rgba(229, 242, 238, .62);
  font-family: var(--font-display);
  font-size: .9rem;
  font-style: italic;
  letter-spacing: .025em;
}

@media (max-width: 640px) {
  .ai-shell { padding: calc(var(--header-h) + 20px) 14px 16px; }
  .ai-top { align-items: flex-start; flex-wrap: wrap; }
  .ai-top h1 { font-size: 1.2rem; }
    .ai-input-bar { bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .ai-msg-copy.is-typing::after { animation: none; }
}
