/* ==========================================================================
   Tümerkan Çimen — Editorial & Cinematic Glassmorphic Design System
   Palette: Obsidian Walnut · Sandstone Parchment · Burnished Wadi Rum Amber
   ========================================================================== */

:root {
  --bg: #0C0906;
  --bg-deep: #090604;
  --surface: rgba(24, 17, 12, 0.72);
  --surface-strong: rgba(20, 14, 10, 0.86);
  --surface-hover: rgba(243, 233, 219, 0.065);
  --ink: #F3E9DB;
  --ink-soft: rgba(243, 233, 219, 0.84);
  --ink-muted: rgba(243, 233, 219, 0.62);
  --gold: #E3A15B;
  --gold-bright: #F2C083;
  --gold-soft: rgba(227, 161, 91, 0.14);
  --border: rgba(243, 233, 219, 0.13);
  --border-strong: rgba(243, 233, 219, 0.24);
  --border-gold: rgba(227, 161, 91, 0.45);
  --shadow-glass: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 238, 216, 0.08);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --font-display: 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-ar: 'Amiri', Georgia, serif;
  --container: 1240px;
  --container-article: 920px;
  --container-prose: 700px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.65;
}

/* Subtle atmospheric film grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%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");
}

::selection {
  background: rgba(227, 161, 91, 0.34);
  color: var(--ink);
}

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

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

button {
  font: inherit;
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Utilities */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

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

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

.eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.ar {
  font-family: var(--font-ar);
}

.ph {
  filter: saturate(0.9) contrast(1.04);
}

.on-ph {
  text-shadow: 0 4px 28px rgba(12, 9, 6, 0.78), 0 1px 4px rgba(12, 9, 6, 0.65);
}

.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto;
  color: rgba(227, 161, 91, 0.45);
  font-size: 12px;
}

.ornament-divider::before,
.ornament-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(243, 233, 219, 0.16), transparent);
}

/* Reading Progress Bar (subpages) */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2.5px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 14px rgba(227, 161, 91, 0.75);
  z-index: 120;
  transition: width 0.08s linear;
}

/* ==========================================================================
   Floating Glass Navigation
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 80;
  padding: 0 24px;
  transition: transform 0.35s var(--ease), top 0.35s var(--ease);
}

.site-nav.is-scrolled {
  top: 14px;
}

.nav-shell {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 22px;
  border: 1px solid rgba(243, 233, 219, 0.18);
  border-radius: var(--radius-pill);
  background: rgba(14, 10, 7, 0.56);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 240, 220, 0.1);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease);
}

.site-nav.is-scrolled .nav-shell {
  background: rgba(12, 9, 6, 0.82);
  border-color: rgba(227, 161, 91, 0.24);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(227, 161, 91, 0.45);
  background: radial-gradient(circle at 50% 40%, #0E2820, #06110E);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.nav-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.aibic-emblem {
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(227, 161, 91, 0.36);
  background: radial-gradient(circle at 50% 38%, #0E2820, #06110E);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.aibic-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 14px;
}

.nav-links a {
  padding: 10px 15px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(243, 233, 219, 0.07);
}

.nav-links a.nav-cta {
  margin-left: 6px;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 500;
}

.nav-links a.nav-cta:hover {
  background: var(--gold);
  color: var(--bg);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(243, 233, 219, 0.2);
  border-radius: 50%;
  background: rgba(243, 233, 219, 0.06);
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.nav-toggle:hover {
  border-color: var(--border-gold);
  background: rgba(227, 161, 91, 0.14);
}

.nav-drawer {
  display: none;
  max-width: var(--container);
  margin: 10px auto 0;
  padding: 10px;
  border: 1px solid rgba(243, 233, 219, 0.18);
  border-radius: 22px;
  background: rgba(14, 10, 7, 0.92);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: var(--shadow-glass);
  flex-direction: column;
  gap: 4px;
}

.nav-drawer.is-open {
  display: flex;
}

.nav-drawer a {
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 15px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s, color 0.2s;
}

.nav-drawer a:hover {
  background: rgba(227, 161, 91, 0.12);
  color: var(--ink);
}

.nav-drawer a.nav-cta {
  margin-top: 4px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: clamp(680px, 100svh, 940px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 120px 0 88px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  transform: scale(1.03);
  animation: heroDrift 24s ease-out forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.06); }
  to { transform: scale(1.0); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 20% 80%, rgba(227, 161, 91, 0.16), transparent 70%),
    linear-gradient(180deg,
      rgba(12, 9, 6, 0.62) 0%,
      rgba(12, 9, 6, 0.12) 28%,
      rgba(12, 9, 6, 0.42) 64%,
      var(--bg) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 390px);
  align-items: end;
  gap: 48px;
}

.hero-ar {
  margin: 0 0 14px;
  font-family: var(--font-ar);
  font-size: clamp(24px, 2.8vw, 34px);
  color: var(--gold-bright);
  line-height: 1.5;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hero-ar::after {
  content: "";
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, rgba(227, 161, 91, 0.7), transparent);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.035em;
}

.hero-title em {
  font-style: italic;
  padding-left: 0.42em;
  color: var(--ink);
}

.hero-meta {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(243, 233, 219, 0.78);
}

.hero-meta span.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 6px;
}

.hero-lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(243, 233, 219, 0.94);
}

.aibic-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  border: 1px solid rgba(227, 161, 91, 0.42);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20, 14, 10, 0.68), rgba(227, 161, 91, 0.08));
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  box-shadow: var(--shadow-glass);
  text-shadow: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.aibic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(242, 192, 131, 0.72);
  background: linear-gradient(135deg, rgba(24, 17, 12, 0.76), rgba(227, 161, 91, 0.14));
}

.aibic-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 28px;
  color: var(--gold-bright);
  line-height: 1;
  flex-shrink: 0;
}

.aibic-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.aibic-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.aibic-desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.aibic-arrow {
  color: var(--gold);
  font-size: 16px;
  transition: transform 0.3s var(--ease);
}

.aibic-card:hover .aibic-arrow {
  transform: translate(3px, -3px);
}

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

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-shadow: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(14, 10, 7, 0.45);
  color: var(--ink);
  border: 1px solid rgba(243, 233, 219, 0.34);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(227, 161, 91, 0.14);
  transform: translateY(-1px);
}

.hero-scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(243, 233, 219, 0.56);
  text-shadow: none;
}

.hero-scroll::after {
  content: "";
  width: 1px;
  height: 22px;
  background: linear-gradient(180deg, var(--gold), transparent);
}

/* ==========================================================================
   Main Split: Hakkımda (Sticky) & Çalışmalar (Focused Showcase)
   ========================================================================== */
.spread-section {
  position: relative;
  padding: 108px 0 84px;
}

.spread-section::before {
  content: "";
  position: absolute;
  top: 40px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 161, 91, 0.08), transparent 68%);
  pointer-events: none;
}

.spread-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.bio-column {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.arch-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px 10px 10px;
  overflow: hidden;
  border: 1px solid rgba(227, 161, 91, 0.26);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}

.arch-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 999px 999px 6px 6px;
  border: 1px solid rgba(243, 233, 219, 0.16);
  pointer-events: none;
}

.arch-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transition: transform 0.9s var(--ease);
}

.arch-frame:hover img {
  transform: scale(1.04);
}

.bio-name {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.08;
}

.bio-name em {
  font-style: italic;
}

.bio-text {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--ink-soft);
}

.pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.pill-tag {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(243, 233, 219, 0.03);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.services-list {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14.5px;
  line-height: 1.6;
}

.services-list li {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
}

.services-list li span:first-child {
  color: var(--gold);
  flex-shrink: 0;
}

.bio-cta {
  margin: 16px 0 0;
  font-size: 14.5px;
  color: var(--ink-soft);
}

.bio-cta a {
  color: var(--gold-bright);
  border-bottom: 1px solid rgba(227, 161, 91, 0.55);
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.bio-cta a:hover {
  border-color: var(--gold-bright);
}

.edu-table {
  font-size: 14px;
  border-top: 1px solid var(--border);
}

.edu-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.edu-label {
  color: var(--ink-muted);
}

/* Works Showcase */
.section-heading {
  margin: 0 0 36px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.04;
}

.section-heading em {
  font-style: italic;
  color: var(--gold);
}

.works-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.work-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 20px;
  padding: 24px 16px;
  border-bottom: 1px solid var(--border);
  border-radius: 14px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.work-row:hover {
  background: linear-gradient(90deg, rgba(227, 161, 91, 0.08), rgba(243, 233, 219, 0.025));
}

.work-index {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}

.work-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.work-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.work-title {
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.2;
  color: var(--ink);
  transition: color 0.25s;
}

.work-row:hover .work-title {
  color: var(--gold-bright);
}

.work-badge {
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(227, 161, 91, 0.32);
  background: rgba(227, 161, 91, 0.08);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  white-space: nowrap;
}

.work-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.work-arrow {
  font-size: 18px;
  color: var(--ink-muted);
  text-align: right;
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}

.work-row:hover .work-arrow {
  color: var(--gold-bright);
  transform: translateX(5px);
}

.work-row.is-external:hover .work-arrow {
  transform: translate(3px, -3px);
}

/* ==========================================================================
   Recommended Tools — Dedicated Full-Width Filterable Showcase
   ========================================================================== */
.tools-section {
  position: relative;
  padding: 84px 0 96px;
}

.tools-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.tools-intro {
  margin: 12px 0 0;
  max-width: 520px;
  font-size: 16px;
  color: var(--ink-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: rgba(243, 233, 219, 0.03);
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.filter-btn:hover {
  border-color: var(--border-gold);
  color: var(--ink);
}

.filter-btn[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 500;
}

.filter-count {
  opacity: 0.72;
  margin-left: 4px;
  font-size: 12px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
  gap: 14px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(28, 20, 14, 0.65), rgba(16, 11, 8, 0.8));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.tool-card[hidden] {
  display: none;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-gold);
  background: linear-gradient(160deg, rgba(36, 26, 18, 0.8), rgba(227, 161, 91, 0.07));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38);
}

.tool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.tool-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.tool-ext {
  font-size: 14px;
  color: var(--gold);
  opacity: 0.65;
  transition: transform 0.25s var(--ease), opacity 0.25s;
}

.tool-card:hover .tool-ext {
  opacity: 1;
  transform: translate(2px, -2px);
}

.tool-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.tool-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(243, 233, 219, 0.08);
  font-size: 12.5px;
  color: var(--ink-muted);
}

.tool-cat {
  color: var(--gold);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Writings Section — Luminous Glass Cards over Calligraphic Backdrop
   ========================================================================== */
.writings-section {
  position: relative;
  padding: 112px 0 108px;
  overflow: hidden;
}

.writings-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.writings-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0.14;
  filter: sepia(0.55) saturate(1.1) contrast(1.08);
}

.writings-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 50% 48%, rgba(227, 161, 91, 0.14), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, rgba(12, 9, 6, 0.55) 22%, rgba(12, 9, 6, 0.55) 78%, var(--bg) 100%);
}

.writings-head {
  position: relative;
  margin-bottom: 48px;
}

.writings-watermark {
  position: absolute;
  right: 0;
  top: -36px;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: clamp(120px, 16vw, 220px);
  line-height: 1;
  color: rgba(227, 161, 91, 0.08);
  pointer-events: none;
  user-select: none;
}

.writings-lead {
  position: relative;
  margin: 14px 0 0;
  max-width: 500px;
  font-size: 17px;
  color: var(--ink-soft);
}

.writings-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.glass-panel {
  padding: 36px;
  border: 1px solid rgba(243, 233, 219, 0.17);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(26, 19, 13, 0.72), rgba(14, 10, 7, 0.82));
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  box-shadow: var(--shadow-glass);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}

.panel-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
}

.panel-ar {
  font-family: var(--font-ar);
  font-size: 26px;
  color: var(--gold);
}

.article-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 12px;
  margin: 0 -12px;
  border-top: 1px solid var(--border);
  border-radius: 12px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.article-link:hover {
  background: rgba(227, 161, 91, 0.09);
}

.article-link-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.article-link-title {
  font-size: 16px;
  line-height: 1.48;
  color: var(--ink);
  transition: color 0.25s;
}

.article-link:hover .article-link-title {
  color: var(--gold-bright);
}

.article-link-title.is-ar {
  font-family: var(--font-ar);
  font-size: 19px;
  line-height: 1.65;
}

.article-link-meta {
  font-size: 13px;
  color: var(--ink-muted);
}

.article-link-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-pill {
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(227, 161, 91, 0.34);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.article-arrow {
  font-size: 15px;
  color: var(--ink-muted);
  transition: transform 0.25s var(--ease), color 0.25s;
}

.article-link:hover .article-arrow {
  color: var(--gold-bright);
  transform: translateX(4px);
}

/* ==========================================================================
   Contact & Footer Finale
   ========================================================================== */
.contact-section {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  padding: 130px 0 42px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 70%;
}

.contact-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--bg) 0%,
    rgba(12, 9, 6, 0.36) 34%,
    rgba(12, 9, 6, 0.45) 70%,
    rgba(12, 9, 6, 0.88) 100%);
}

.contact-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-head {
  text-align: center;
}

.contact-head .eyebrow {
  justify-content: center;
}

.contact-head .eyebrow::before {
  display: none;
}

.contact-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 0.96;
  letter-spacing: -0.03em;
}

.contact-title em {
  font-style: italic;
  color: var(--gold-bright);
}

.contact-sub {
  margin: 18px auto 0;
  max-width: 500px;
  font-size: 17px;
  line-height: 1.65;
  color: rgba(243, 233, 219, 0.86);
}

.email-strip {
  margin: 0 auto;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  padding: 10px 10px 10px 22px;
  border: 1px solid rgba(227, 161, 91, 0.42);
  border-radius: var(--radius-pill);
  background: rgba(14, 10, 7, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-glass);
  text-shadow: none;
}

.email-address {
  font-size: 15.5px;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.copy-btn {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(227, 161, 91, 0.45);
  background: rgba(227, 161, 91, 0.16);
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.copy-btn:hover {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}

.copy-btn.is-copied {
  background: var(--gold);
  color: var(--bg);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
}

.social-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border: 1px solid rgba(243, 233, 219, 0.18);
  border-radius: 18px;
  background: rgba(14, 10, 7, 0.58);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  text-shadow: none;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), border-color 0.28s var(--ease);
}

.social-tile:hover {
  transform: translateY(-2px);
  background: rgba(243, 233, 219, 0.11);
  border-color: rgba(227, 161, 91, 0.62);
}

.social-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.social-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.social-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.social-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}

.social-handle {
  font-size: 12.5px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.social-arr {
  color: var(--ink-muted);
  font-size: 14px;
  transition: transform 0.25s var(--ease), color 0.25s;
}

.social-tile:hover .social-arr {
  color: var(--gold-bright);
  transform: translate(2px, -2px);
}

.site-footer {
  margin-top: 96px;
  padding-top: 24px;
  border-top: 1px solid rgba(243, 233, 219, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 13.5px;
  color: rgba(243, 233, 219, 0.78);
  text-shadow: none;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-right a:hover {
  color: var(--gold-bright);
}

/* ==========================================================================
   Subpages (Articles, Essays, Poems, el-Mi'vân)
   ========================================================================== */
.subpage-header {
  position: relative;
  overflow: hidden;
  padding: 28px 0 72px;
}

.subpage-header.is-literary {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.subpage-header-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

.subpage-header-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(12, 9, 6, 0.62) 0%,
    rgba(12, 9, 6, 0.42) 48%,
    var(--bg) 100%);
}

.subpage-topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 84px;
}

.back-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid rgba(243, 233, 219, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(14, 10, 7, 0.54);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 14px;
  text-shadow: none;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.back-pill:hover {
  border-color: var(--gold);
  background: rgba(227, 161, 91, 0.14);
  transform: translateX(-2px);
}

.subpage-meta-chip {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 233, 219, 0.78);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(243, 233, 219, 0.16);
  background: rgba(14, 10, 7, 0.48);
  backdrop-filter: blur(14px);
  text-shadow: none;
}

.subpage-hero-content {
  position: relative;
  z-index: 2;
}

.article-layout {
  padding: 32px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 56px;
  align-items: start;
}

.article-aside {
  position: sticky;
  top: 32px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.toc-list.is-ar {
  font-family: var(--font-ar);
  font-size: 18px;
}

.toc-list li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tab {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.22s var(--ease);
}

.tab:hover {
  border-color: var(--gold);
  color: var(--ink);
}

.tab[aria-selected="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg);
}

.abstract-text {
  margin: 0 0 22px;
  font-size: 18px;
  line-height: 1.88;
  color: rgba(243, 233, 219, 0.93);
}

.abstract-text.is-ar {
  font-family: var(--font-ar);
  font-size: 22px;
  line-height: 2;
}

.keywords-line {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.keywords-line strong {
  color: var(--gold);
  font-weight: 500;
}

/* Citation Card (İSNAD 2) */
.cite-box {
  margin-top: 40px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(26, 19, 13, 0.72), rgba(14, 10, 7, 0.85));
}

.cite-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.cite-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.cite-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* Literary Prose */
.prose-body {
  padding: 44px 0 64px;
  font-size: 19px;
  line-height: 1.9;
  color: rgba(243, 233, 219, 0.93);
}

.prose-body p {
  margin: 0 0 1.55em;
}

.dropcap {
  float: left;
  font-family: var(--font-display);
  font-size: 86px;
  line-height: 0.78;
  padding: 8px 14px 0 0;
  color: var(--gold);
}

.prose-sign {
  margin: 2.4em 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 25px;
  color: var(--gold);
}

.prose-author {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* Poems */
.poem-toc-card {
  padding: 28px 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(16px);
  margin-bottom: 48px;
}

.poem-toc-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 10px;
  margin: 0 -10px;
  border-top: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.25s, color 0.25s;
}

.poem-toc-link:hover {
  background: rgba(227, 161, 91, 0.09);
  color: var(--gold-bright);
}

.poem-toc-left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.poem-roman {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold);
  min-width: 34px;
}

.poem-block {
  padding: 86px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.poem-block h2 {
  margin: 0 0 38px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 42px);
  line-height: 1.15;
}

.poem-lines {
  font-size: 20px;
  line-height: 2.05;
  color: rgba(243, 233, 219, 0.93);
}

.poem-lines span {
  display: block;
}

.subpage-footer {
  padding: 26px 0 80px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-size: 14.5px;
}

.subpage-footer a {
  padding: 8px 0;
  transition: color 0.25s;
}

.subpage-footer a:hover {
  color: var(--gold-bright);
}

/* Data Table (el-Mi'vân) */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.65;
}

.data-table th {
  padding: 15px 18px;
  text-align: left;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  background: rgba(227, 161, 91, 0.06);
}

.data-table td {
  padding: 18px;
  border-top: 1px solid var(--border);
  vertical-align: top;
}

/* Scroll Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-side {
    max-width: 480px;
  }

  .spread-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }

  .bio-column {
    position: static;
  }

  .arch-frame {
    max-width: 340px;
  }

  .writings-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 760px) {
  .container,
  .container-article,
  .container-prose {
    padding: 0 20px;
  }

  .site-nav {
    top: 12px;
    padding: 0 14px;
  }

  .nav-shell {
    padding: 7px 7px 7px 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    min-height: 100svh;
    padding: 104px 0 68px;
  }

  .hero-scroll {
    display: none;
  }

  .hero-title em {
    padding-left: 0.25em;
  }

  .spread-section {
    padding: 72px 0 56px;
  }

  .work-row {
    grid-template-columns: 42px minmax(0, 1fr) 20px;
    gap: 14px;
    padding: 20px 10px;
  }

  .work-title {
    font-size: 20px;
  }

  .tools-section {
    padding: 64px 0 72px;
  }

  .writings-section {
    padding: 80px 0 80px;
  }

  .glass-panel {
    padding: 24px 20px;
  }

  .contact-section {
    padding: 96px 0 36px;
    min-height: auto;
  }

  .site-footer {
    margin-top: 64px;
  }

  .subpage-topbar {
    margin-bottom: 52px;
  }

  .prose-body {
    font-size: 17.5px;
  }

  .poem-lines {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-bg {
    animation: none;
    transform: none;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
