/* ============================================================
   buraksuslu.com — shared styles
   ============================================================ */
:root {
  --bg: #faf8f3;
  --bg-deep: #f3efe5;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --rule: #d8d2c4;
  --accent: #c2410c;
  --accent-soft: #e8a87c;
  --paper: #f3efe5;
  --shadow-sm: 0 1px 2px rgba(10,10,10,0.04), 0 4px 12px rgba(10,10,10,0.04);
  --shadow-md: 0 8px 32px rgba(10,10,10,0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.02) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}

em, .accent-italic { font-style: italic; color: var(--accent); font-weight: inherit; }

a { color: inherit; }

/* ───────── NAV ───────── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background-color: rgba(250,248,243,0.78);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark .dot { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links > li { position: relative; }
.nav-links a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.caret {
  width: 8px; height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
}
.dropdown-host.open .caret { transform: rotate(-135deg) translateY(0); }

.dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 360px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  padding: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.dropdown-host.open .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dd-item {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink);
  transition: background 0.15s ease;
}
.dd-item:hover { background: var(--paper); color: var(--ink); }
.dd-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  padding-top: 2px;
}
.dd-title {
  font-family: "Fraunces", serif;
  font-size: 1rem;
  font-weight: 500;
  display: block;
  margin-bottom: 0.15rem;
}
.dd-sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

@media (max-width: 880px) {
  .nav-links { gap: 1rem; }
  .nav-links li:not(:last-child):not(.dropdown-host) { display: none; }
  .dropdown { left: auto; right: 0; transform: translateY(-6px); min-width: 280px; }
  .dropdown-host.open .dropdown { transform: translateY(0); }
}

/* ───────── BUTTONS ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.25s ease;
  border: 1px solid var(--ink);
  cursor: pointer;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }

/* ───────── PAGE HEADER (for sub-pages) ───────── */
.page-head {
  padding: 9rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
}
.crumbs { color: var(--muted); margin-bottom: 2rem; }
.crumbs a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--rule); margin: 0 0.5rem; }
.crumbs .here { color: var(--accent); }

h1.page-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin-bottom: 3rem;
  font-variation-settings: "opsz" 144;
  text-wrap: pretty;
  max-width: 18ch;
  padding-bottom: 0.15em;
}
h1.page-title em { font-weight: 300; }

.page-lede {
  max-width: 42rem;
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ───────── BLOCKS ───────── */
section.block { padding: 6rem 0; border-top: 1px solid var(--rule); }
.section-label { color: var(--muted); margin-bottom: 1.5rem; }
.section-label .section-no { color: var(--accent); }
h2.section-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
  max-width: 22ch;
  text-wrap: pretty;
}
h2.section-title em { font-weight: 300; }

/* ───────── CARDS ───────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--ink); }
.card-num {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  color: var(--accent);
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}
.card h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.85rem;
}
.card p { font-size: 0.95rem; line-height: 1.6; color: var(--ink-soft); }
.card a.card-link {
  display: inline-flex;
  margin-top: 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.card a.card-link:hover { border-color: var(--accent); }

/* ───────── CONTACT (inverted) ───────── */
.contact { background: var(--ink); color: var(--bg); padding: 6rem 0 3rem; border-top: none; }
.contact .section-label { color: rgba(250,248,243,0.55); }
.contact h2.section-title { color: var(--bg); }
.contact-lede {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.35rem;
  line-height: 1.55;
  color: rgba(250,248,243,0.85);
  max-width: 40rem;
  margin-bottom: 3rem;
  text-wrap: pretty;
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-contact:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: translateY(-2px); }
.contact-grid {
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(250,248,243,0.15);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.contact-cell .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250,248,243,0.5);
  margin-bottom: 0.75rem;
  display: block;
}
.contact-cell a, .contact-cell span {
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  color: var(--bg);
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-cell a:hover { color: var(--accent); }

/* ───────── FOOTER ───────── */
footer.site-footer { background: var(--ink); border-top: 1px solid rgba(250,248,243,0.1); }
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(250,248,243,0.4);
}
@media (max-width: 540px) {
  .footer-inner { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
}

/* ───────── REVEAL ───────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ───────── 3D CANVAS WRAPPERS ───────── */
.canvas3d {
  position: relative;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
  overflow: hidden;
}
.canvas3d canvas { display: block; width: 100% !important; height: 100% !important; }
.canvas3d .legend {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(250,248,243,0.92);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  pointer-events: none;
  line-height: 1.7;
}
.canvas3d .legend .sw {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: 1px;
}
.canvas3d .hint {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(250,248,243,0.92);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.5rem 0.85rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  pointer-events: none;
}

/* ───────── 2-COL FEATURE ───────── */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feature h3 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.feature p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.65; margin-bottom: 1rem; }
.feature ul { list-style: none; margin-top: 1.5rem; }
.feature li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
}
.feature li:last-child { border-bottom: 1px solid var(--rule); }
.feature li .idx {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 4px;
}
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ───────── METRIC TILES ───────── */
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}
.metric {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 2rem 1.5rem;
  background: var(--paper);
}
.metric .num {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 3.25rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
.metric .num em { color: var(--accent); font-weight: 300; }
.metric .lab {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ───────── PUB ROWS ───────── */
.pub-row {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  align-items: start;
}
.pub-row:last-child { border-bottom: 1px solid var(--rule); }
.pub-year {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 0.4rem;
}
.pub-body h3 {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.35;
  margin-bottom: 0.55rem;
  text-wrap: pretty;
}
.pub-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pub-arrow {
  font-family: "Fraunces", serif;
  font-size: 1.6rem;
  padding-top: 0.5rem;
  color: var(--ink-soft);
  transition: transform 0.25s, color 0.25s;
}
.pub-row:hover .pub-arrow { transform: translate(2px,-2px); color: var(--accent); }
.pub-row:hover h3 { color: var(--accent); }
@media (max-width: 720px) {
  .pub-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .pub-arrow { display: none; }
}
