/* =========================================================================
   Yakup Bilgin — main.css (3.0)
   Theme: yakupbilgin · dark-only design system · no build step
   Content is visible without JS; motion is progressive enhancement.
   -------------------------------------------------------------------------
   01 Tokens          02 Base             03 Utilities        04 Background
   05 Header & nav    06 Buttons          07 Section heads    08 Hero
   09 Pills & chips   10 Glow utility     11 Featured project 12 Browser frame
   13 Placeholder     14 Project grid     15 Flowing demo     16 Contact
   17 Form & notices  18 Toast            19 Footer           20 Inner pages
   21 Prose           22 404              23 Reveal           24 A11y/motion/print
   25 Slayt modu + bölüm rayı (ana sayfa)
   ========================================================================= */

/* 01 · Tokens ------------------------------------------------------------ */
:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #1c1d21;
  --bg-deep: #15161a;
  --bg-deeper: #121318;
  --bg-cell: #18191e;

  /* Text */
  --text: #e5e5e5;
  --text-strong: #ffffff;
  --text-soft: rgba(229, 229, 229, .78);
  --muted: rgba(229, 229, 229, .6);
  --faint: rgba(229, 229, 229, .55); /* lowest alpha that still passes AA on --bg */

  /* Lines & fills */
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --border-hover: rgba(255, 255, 255, .22);
  --fill-1: rgba(255, 255, 255, .025);
  --fill-2: rgba(255, 255, 255, .045);
  --fill-3: rgba(255, 255, 255, .07);

  /* Brand */
  --accent: #5865F2;
  --accent-hover: #6873f5;
  --accent-300: #a5b4fc;
  --accent-400: #8b9cff;
  --violet: #8b5cf6;
  --violet-300: #c4b5fd;
  --focus: #8b9cff;

  /* Status */
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;

  --gradient-text: linear-gradient(90deg, #a5b4fc, #fff 25%, #c4b5fd 50%, #8b9cff 75%, #a5b4fc);
  --gradient-mark: linear-gradient(140deg, #7b85f8 0%, #5865F2 48%, #4652d8 100%);

  /* Type */
  --font: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  --fs-h1: clamp(2rem, .9rem + 5.4vw, 4.8rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.9vw, 3.25rem);
  --fs-lead: clamp(1rem, .94rem + .3vw, 1.175rem);

  /* Shape */
  --radius-xs: 7px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  /* Layout */
  --container: 1200px;
  --container-nav: 1100px;
  --container-prose: 720px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(88px, 11vw, 144px);
  --header-h: 72px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Depth */
  --shadow-card: 0 24px 60px -28px rgba(0, 0, 0, .7);
  --shadow-float: 0 40px 90px -30px rgba(0, 0, 0, .85);
  --shadow-accent: 0 10px 40px -10px #5865F2;
  --inset-hi: inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* 02 · Base -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

html:has(body.admin-bar) { scroll-padding-top: calc(var(--header-h) + 52px); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}

p, figure, blockquote, dl, dd { margin: 0; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

img, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; border-style: none; }
svg { flex-shrink: 0; }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button { cursor: pointer; }

::selection { background: rgba(88, 101, 242, .5); color: #fff; }

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

:focus:not(:focus-visible),
[tabindex="-1"]:focus { outline: none; }

/* Component list reset (prose lists keep their markers) */
.nav__links, .nav__panel-links, .tags, .filters, .project-grid,
.hero__socials, .socials, .footer-social, .post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 03 · Utilities --------------------------------------------------------- */
.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only,
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--bg-deeper);
  font-weight: 700;
  font-size: .9375rem;
  text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6);
  transform: translateY(-200%);
  transition: transform .25s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible { transform: none; outline-offset: 2px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: calc(880px + var(--gutter) * 2); }
.container--prose { max-width: calc(var(--container-prose) + var(--gutter) * 2); }

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -.125em;
}

.text-gradient {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: yb-shimmer 8s linear infinite;
}

@keyframes yb-shimmer {
  to { background-position: 200% center; }
}

.site-main {
  display: block;
  overflow-x: clip;
}

/* Controls that only work with JavaScript stay out of the way without it */
.no-js [data-yb-copy],
.no-js .filters { display: none; }

/* 04 · Background -------------------------------------------------------- */
.bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
}

.bg__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.bg__canvas.is-ready { opacity: 1; }

.bg__glow {
  position: absolute;
  display: block;
  border-radius: 50%;
  pointer-events: none;
}

.bg__glow--1 {
  top: -34vh;
  left: 50%;
  width: min(1100px, 150vw);
  height: 78vh;
  margin-left: max(-550px, -75vw);
  background: radial-gradient(closest-side, rgba(88, 101, 242, .30), rgba(88, 101, 242, .10) 55%, transparent);
  animation: yb-drift-a 28s var(--ease-in-out) infinite alternate;
}

.bg__glow--2 {
  top: 28vh;
  right: -18vw;
  width: min(760px, 110vw);
  height: min(760px, 110vw);
  background: radial-gradient(closest-side, rgba(139, 92, 246, .15), transparent);
  animation: yb-drift-b 34s var(--ease-in-out) infinite alternate;
}

.bg__glow--3 {
  bottom: -30vh;
  left: -20vw;
  width: min(900px, 130vw);
  height: 70vh;
  background: radial-gradient(closest-side, rgba(88, 101, 242, .12), transparent);
  animation: yb-drift-b 40s var(--ease-in-out) infinite alternate-reverse;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 50% 120%, rgba(18, 19, 24, .75), transparent 60%),
    radial-gradient(90% 60% at 50% -10%, transparent 60%, rgba(18, 19, 24, .35));
}

@keyframes yb-drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4vw, 3vh, 0) scale(1.08); }
}

@keyframes yb-drift-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-5vw, -4vh, 0); }
}

/* 05 · Header & nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}

.admin-bar .site-header { top: 32px; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
}

.nav {
  position: relative;
  max-width: var(--container-nav);
  margin: 0 auto;
  pointer-events: auto;
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 60px;
  padding: 0 9px 0 9px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(18, 19, 24, .75);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 10px 30px -14px rgba(0, 0, 0, .55);
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.site-header.is-scrolled .nav__inner {
  background: rgba(18, 19, 24, .84);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 20px 50px -18px rgba(0, 0, 0, .8);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__inner,
  .nav__panel { background: rgba(18, 19, 24, .97); }
}

.nav__brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 5px 8px 5px 5px;
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  font-size: .975rem;
  font-weight: 700;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient-mark);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -1px 0 rgba(0, 0, 0, .2), 0 6px 18px -6px rgba(88, 101, 242, .85);
  transition: transform .4s var(--ease);
}

.nav__brand:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: rgba(229, 229, 229, .72);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.nav__link:hover { color: #fff; background: rgba(255, 255, 255, .05); }

.nav__link.is-active {
  color: #fff;
  background: rgba(88, 101, 242, .16);
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .32);
}

.nav__actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle {
  position: relative;
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  color: #fff;
  transition: background-color .2s ease, border-color .2s ease;
}

.nav__toggle:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }

.nav__toggle-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.75px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}

.nav__toggle-bar:nth-child(1) { top: 16px; }
.nav__toggle-bar:nth-child(2) { top: 23px; }

.nav.is-open .nav__toggle-bar:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav.is-open .nav__toggle-bar:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.nav__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  background: rgba(18, 19, 24, .92);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .85);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(.98);
  transform-origin: top center;
  transition: opacity .25s var(--ease), transform .4s var(--ease), visibility 0s linear .4s;
}

.nav.is-open .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s var(--ease), transform .4s var(--ease), visibility 0s;
}

.nav__panel-links { display: grid; gap: 2px; }

.nav__panel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: background-color .2s ease, color .2s ease, opacity .3s var(--ease), transform .4s var(--ease);
}

.nav__panel-link .icon { color: var(--faint); transition: transform .3s var(--ease), color .2s ease; }
.nav__panel-link:hover,
.nav__panel-link.is-active { background: rgba(255, 255, 255, .05); color: #fff; }
.nav__panel-link.is-active .icon,
.nav__panel-link:hover .icon { color: var(--accent-300); transform: translateX(3px); }

.nav.is-open .nav__panel-link { opacity: 1; transform: none; }
.nav.is-open .nav__panel-links li:nth-child(2) .nav__panel-link { transition-delay: 0s, 0s, .04s, .04s; }
.nav.is-open .nav__panel-links li:nth-child(3) .nav__panel-link { transition-delay: 0s, 0s, .08s, .08s; }
.nav.is-open .nav__panel-links li:nth-child(4) .nav__panel-link { transition-delay: 0s, 0s, .12s, .12s; }
.nav.is-open .nav__panel-links li:nth-child(5) .nav__panel-link { transition-delay: 0s, 0s, .16s, .16s; }

.nav__panel-cta { margin-top: 8px; }

@media (max-width: 860px) {
  .nav__inner { grid-template-columns: minmax(0, 1fr) auto; }
  .nav__links,
  .nav__actions .nav__cta { display: none; }
  .nav__toggle { display: inline-block; }

  /* Without JS the menu button cannot open the panel: show the contact pill instead */
  .no-js .nav__toggle { display: none; }
  .no-js .nav__actions .nav__cta { display: inline-flex; }
}

@media (min-width: 861px) {
  .nav__panel { display: none; }
}

/* 06 · Buttons ----------------------------------------------------------- */
.btn {
  --btn-h: 48px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: var(--btn-h);
  padding: 0 1.45em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s ease, border-color .25s ease, color .25s ease, opacity .2s ease;
}

.btn .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform .3s var(--ease);
}

.btn:active { transform: translateY(0) scale(.98); }

.btn--primary {
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 40px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease);
  pointer-events: none;
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 16px 48px -12px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .24);
}

.btn--primary:hover::after { transform: translateX(120%); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, .15);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, .05);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  transform: translateY(-2px);
}

.btn--light {
  background: #fff;
  color: var(--bg-deeper);
  box-shadow: 0 6px 20px -8px rgba(255, 255, 255, .35);
}

.btn--light:hover {
  background: #eef0ff;
  transform: translateY(-1px);
  box-shadow: 0 10px 28px -10px rgba(165, 180, 252, .6);
}

.btn--sm { --btn-h: 38px; padding: 0 1.1em; font-size: .875rem; }
.btn--lg { --btn-h: 54px; padding: 0 1.75em; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn:hover .btn__icon--right { transform: translateX(3px); }
.btn:hover .btn__icon--down { transform: translateY(2px); }
.btn:hover .btn__icon--diag { transform: translate(2px, -2px); }

/* Copy button states */
[data-yb-copy] .icon--check { display: none; color: var(--green); }
[data-yb-copy].is-copied .icon--copy { display: none; }
[data-yb-copy].is-copied .icon--check { display: inline-block; }
[data-yb-copy].is-copied { border-color: rgba(74, 222, 128, .4); }

/* Loading state (form submit) */
.btn.is-loading { pointer-events: none; opacity: .9; }
.btn.is-loading .icon { display: none; }
.btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: yb-spin .8s linear infinite;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding-bottom: 3px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  color: var(--text);
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease;
}

.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover { color: #fff; border-color: var(--accent-300); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* 07 · Section heads ----------------------------------------------------- */
.section {
  position: relative;
  padding-block: var(--section-y);
}

.section + .section::before,
.section--related::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1100px, calc(100% - var(--gutter) * 2));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1) 30%, rgba(165, 180, 252, .22) 50%, rgba(255, 255, 255, .1) 70%, transparent);
}

/* "Diğer projeler" reads as the continuation of Projeler (v1: ~104px under the last card) */
.section--projects + .section--others { padding-top: 0; }
.section--projects + .section--others::before { content: none; }
.section--projects:has(+ .section--others) { padding-bottom: clamp(64px, 8vw, 104px); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--accent-400);
  font-size: .75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .15em;
  text-transform: uppercase;
}

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

.section-head--center .eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, currentColor, transparent);
}

.section-title {
  color: #fff;
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.section-lead {
  max-width: 40rem;
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.7;
  text-wrap: pretty;
}

.section-head--center .section-lead { margin-inline: auto; }

.section-foot {
  display: flex;
  justify-content: center;
  margin-top: clamp(36px, 5vw, 56px);
}

/* 08 · Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100svh - var(--header-h));
  padding: clamp(40px, 8vh, 96px) 0 clamp(64px, 10vh, 112px);
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: calc(var(--header-h) * -1);
  left: 0;
  right: 0;
  height: min(820px, 110%);
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 62% 55% at 50% 30%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 62% 55% at 50% 30%, #000 20%, transparent 72%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Announcement badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 5px 14px 5px 5px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.badge:hover {
  border-color: rgba(165, 180, 252, .35);
  background: rgba(88, 101, 242, .1);
  box-shadow: 0 8px 30px -10px rgba(88, 101, 242, .6);
}

.badge__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 4px 10px 4px 9px;
  border: 1px solid rgba(74, 222, 128, .25);
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, .12);
  color: #86efac;
  font-size: .75rem;
  font-weight: 700;
}

.badge > .badge__dot { margin-left: 9px; }

.badge__dot {
  position: relative;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, .8);
}

.badge__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22c55e;
  animation: yb-ping 1.8s var(--ease-out) infinite;
}

@keyframes yb-ping {
  0% { transform: scale(1); opacity: .75; }
  80%, 100% { transform: scale(3.2); opacity: 0; }
}

.badge__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge__arrow {
  color: var(--accent-300);
  transition: transform .3s var(--ease);
}

.badge:hover .badge__arrow { transform: translateX(3px); }

/* Heading */
.hero__title {
  max-width: 100%;
  margin-top: 30px;
  color: #fff;
  font-size: clamp(2.75rem, 1.1rem + 7.4vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.025em;
  overflow-wrap: break-word;
}

/* Social pills (only filled channels; e-mail opens the mail app) */
.hero__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 52rem;
  margin-top: 30px;
}

/* Tablets: wrap into two even rows instead of leaving one pill alone on the second */
@media (max-width: 879px) {
  .hero__socials { max-width: 34rem; }
}

.hero-social {
  --brand: 165 180 252;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 13px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .035);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .3s var(--ease), border-color .25s ease, background-color .25s ease, color .2s ease, box-shadow .3s var(--ease);
}

.hero-social .icon {
  width: 17px;
  height: 17px;
  color: rgb(var(--brand));
  transition: transform .3s var(--ease);
}

.hero-social:hover {
  color: #fff;
  border-color: rgb(var(--brand) / .4);
  background: rgb(var(--brand) / .08);
  box-shadow: 0 12px 30px -16px rgb(var(--brand) / .75);
  transform: translateY(-2px);
}

.hero-social:hover .icon { transform: scale(1.08); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero__socials + .hero__actions { margin-top: 32px; }

.hero__note {
  margin-top: 22px;
  color: var(--faint);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .01em;
}

/* 09 · Pills, tags & chips ---------------------------------------------- */
.status {
  --c: 165 180 252;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  height: 26px;
  padding: 0 11px 0 9px;
  border: 1px solid rgb(var(--c) / .26);
  border-radius: var(--radius-pill);
  background: rgb(var(--c) / .1);
  color: rgb(var(--c));
  font-size: .75rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .01em;
  white-space: nowrap;
}

.status::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgb(var(--c) / .18);
}

.status--yayinda { --c: 74 222 128; }
.status--yayinda::before { animation: yb-status-pulse 2.4s ease-in-out infinite; }
.status--gelistiriliyor { --c: 251 191 36; }
.status--yakinda { --c: 165 180 252; }

@keyframes yb-status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgb(var(--c) / .18); }
  50% { box-shadow: 0 0 0 5px rgb(var(--c) / .06); }
}

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

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, .04);
  color: rgba(229, 229, 229, .78);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.tags--sm .tag { height: 24px; padding: 0 8px; font-size: .7rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .03);
  color: var(--text-soft);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .25s ease, transform .25s var(--ease);
}

.chip--filter { cursor: pointer; }

.chip--filter:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06);
}

.chip--filter[aria-pressed="true"] {
  color: #fff;
  border-color: rgba(129, 140, 248, .6);
  background: rgba(88, 101, 242, .22);
  box-shadow: 0 8px 22px -10px rgba(88, 101, 242, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.chip__count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .08);
  color: var(--text-soft);
  font-size: .6875rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chip--filter[aria-pressed="true"] .chip__count { background: rgba(255, 255, 255, .16); color: #fff; }

/* 10 · Glow utility (mouse-follow border light) -------------------------- */
.glow {
  --mx: 50%;
  --my: -30%;
  --glow-size: 380px;
  position: relative;
  isolation: isolate;
}

.glow::before,
.glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease);
}

.glow::before {
  padding: 1px;
  background: radial-gradient(var(--glow-size) circle at var(--mx) var(--my), rgba(165, 180, 252, .65), rgba(139, 92, 246, .25) 35%, transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.glow::after {
  background: radial-gradient(calc(var(--glow-size) * 1.5) circle at var(--mx) var(--my), rgba(88, 101, 242, .1), transparent 60%);
}

.glow:hover::before,
.glow:hover::after,
.glow:focus-within::before { opacity: 1; }

/* 11 · Featured project -------------------------------------------------- */
.features {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
}

.feature {
  --glow-size: 640px;
  --p-accent: 88 101 242;
  display: grid;
  gap: 32px;
  padding: clamp(20px, 3.6vw, 48px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 100% 0%, rgb(var(--p-accent) / .17), transparent 55%),
    radial-gradient(60% 80% at 0% 100%, rgba(139, 92, 246, .1), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  box-shadow: var(--shadow-card), var(--inset-hi);
}

@media (min-width: 960px) {
  .feature {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: clamp(32px, 4.5vw, 64px);
  }
}

.feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-width: 0;
}

.feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.feature__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-300);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.feature__label .icon { color: var(--amber); width: .95em; height: .95em; }

.feature__year {
  color: var(--faint);
  font-size: .8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.feature__title {
  color: #fff;
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.035em;
}

.feature__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(90deg, var(--accent-300), var(--violet-300));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 3px;
  transition: background-size .5s var(--ease);
}

.feature__title a:hover { background-size: 100% 3px; }

.feature__desc {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.feature__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* Stats: big tabular numbers + tiny labels (up to 3) */
.feature__stats {
  display: grid;
  grid-auto-columns: max-content;
  grid-auto-flow: column;
  margin-top: 4px;
}

.feature__stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 5px;
  min-width: 0;
  padding: 0 clamp(18px, 2.4vw, 28px);
  border-left: 1px solid var(--border-strong);
}

.feature__stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.feature__stat-value {
  margin: 0;
  color: #fff;
  font-size: clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.feature__stat-label {
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.35;
  text-wrap: balance;
}

@media (max-width: 479px) {
  .feature__stats { grid-auto-columns: minmax(0, 1fr); }
  .feature__stat { padding: 0 12px; }
}

.feature__media {
  position: relative;
  min-width: 0;
}

.feature__media::before {
  content: "";
  position: absolute;
  inset: 8% 4% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--p-accent) / .38), transparent);
  pointer-events: none;
}

@media (max-width: 959px) {
  .feature__media { order: -1; }
}

/* Every second card puts the demo on the left (desktop only) */
@media (min-width: 960px) {
  .feature--flip {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    background:
      radial-gradient(80% 120% at 0% 0%, rgb(var(--p-accent) / .17), transparent 55%),
      radial-gradient(60% 80% at 100% 100%, rgba(139, 92, 246, .1), transparent 60%),
      linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
  }

  .feature--flip .feature__media { order: -1; }
}

/* 12 · Browser frame ----------------------------------------------------- */
.browser {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  background: var(--bg-deeper);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .35),
    var(--shadow-float),
    0 0 80px -28px rgba(88, 101, 242, .5);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(180deg, #1e1f26, #18191e);
}

.browser__dots {
  display: flex;
  flex: none;
  gap: 6px;
  width: 46px;
}

.browser__dots i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25);
  opacity: .9;
}

.browser__dots i:nth-child(2) { background: #febc2e; }
.browser__dots i:nth-child(3) { background: #28c840; }

.browser__url {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  max-width: 340px;
  height: 24px;
  margin: 0 auto;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, .05);
  color: var(--faint);
  font-size: .6875rem;
  font-weight: 500;
  white-space: nowrap;
}

.browser__url span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser__url .icon { width: 11px; height: 11px; color: var(--green); }

.browser__spacer { flex: none; width: 46px; }

.browser__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deeper);
}

.browser__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .feature .browser {
    transform: perspective(2000px) rotateY(-7deg) rotateX(2deg);
    transition: transform 1s var(--ease);
  }

  .feature:hover .browser { transform: perspective(2000px) rotateY(-2deg) rotateX(.5deg); }
  .feature--flip .browser { transform: perspective(2000px) rotateY(7deg) rotateX(2deg); }
  .feature--flip:hover .browser { transform: perspective(2000px) rotateY(2deg) rotateX(.5deg); }
}

@media (max-width: 479px) {
  .browser__bar { height: 32px; padding: 0 10px; gap: 8px; }
  .browser__dots { width: 36px; gap: 5px; }
  .browser__dots i { width: 8px; height: 8px; }
  .browser__spacer { width: 36px; }
}

/* 13 · Placeholder (no featured image) ----------------------------------- */
.placeholder {
  --ph-a: 88 101 242;
  --ph-b: 139 92 246;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  container-type: size;
  background:
    linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .035) 50%, transparent 62%),
    radial-gradient(70% 90% at 10% 0%, rgb(var(--ph-a) / .5), transparent 60%),
    radial-gradient(70% 85% at 100% 100%, rgb(var(--ph-b) / .42), transparent 62%),
    linear-gradient(135deg, #1c1d26 0%, #121318 100%);
}

.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1.6px);
  background-size: 18px 18px;
  background-position: center;
  opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 18%, transparent 74%);
}

.placeholder::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  width: 62cqh;
  height: 62cqh;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgb(var(--ph-a) / .3), rgb(var(--ph-b) / .08) 70%, transparent);
  box-shadow:
    0 0 0 28px rgba(255, 255, 255, .014),
    0 0 0 56px rgba(255, 255, 255, .008);
  box-shadow:
    0 0 0 11cqh rgba(255, 255, 255, .014),
    0 0 0 22cqh rgba(255, 255, 255, .008);
  transition: transform .8s var(--ease);
}

.placeholder__tile {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  width: 34cqh;
  height: 34cqh;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 28%;
  background: linear-gradient(150deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .03) 60%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .28),
    0 24px 50px -14px rgb(var(--ph-a) / .75),
    0 0 0 8px rgba(255, 255, 255, .025);
  transition: transform .7s var(--ease);
}

.placeholder__initial {
  background: linear-gradient(160deg, #fff 25%, rgb(var(--ph-b)) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 3rem;
  font-size: 19cqh;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  padding: .06em .04em;
}

.placeholder--v1 { --ph-a: 88 101 242;  --ph-b: 139 92 246; }
.placeholder--v2 { --ph-a: 59 130 246;  --ph-b: 34 211 238; }
.placeholder--v3 { --ph-a: 168 85 247;  --ph-b: 236 72 153; }
.placeholder--v4 { --ph-a: 20 184 166;  --ph-b: 88 101 242; }
.placeholder--v5 { --ph-a: 245 158 11;  --ph-b: 244 63 94; }
.placeholder--v6 { --ph-a: 14 165 233;  --ph-b: 99 102 241; }

.card:hover .placeholder__tile,
.feature:hover .placeholder__tile { transform: scale(1.06) rotate(-3deg); }
.card:hover .placeholder::after,
.feature:hover .placeholder::after { transform: translate(-50%, -50%) scale(1.08); }

/* 14 · Project grid, filters, cards ------------------------------------- */
.projects-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.projects-bar__title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.015em;
}

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

/* Phones: one swipeable row instead of a tall wrap of chips */
@media (max-width: 639px) {
  .filters {
    flex-wrap: nowrap;
    margin: -8px calc(var(--gutter) * -1);
    padding: 8px var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  }

  .filters::-webkit-scrollbar { display: none; }
  .filters .chip { flex: none; }
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}

.project-grid.is-filtering { opacity: 0; transform: translateY(8px); }

@media (min-width: 640px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

.project-grid__item {
  display: flex;
  min-width: 0;
}

.project-grid__item[hidden] { display: none; }

.card {
  --r: 18px;
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  box-shadow: var(--inset-hi);
  transition: transform .5s var(--ease), border-color .3s ease, box-shadow .5s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, .12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 30px 60px -30px rgba(0, 0, 0, .85),
    0 0 50px -22px rgba(88, 101, 242, .45);
}

.card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  border-radius: calc(var(--r) - 1px) calc(var(--r) - 1px) 0 0;
  background: var(--bg-deeper);
}

.card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .8s var(--ease);
}

.card:hover .card__img { transform: scale(1.04); }

.card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 18px;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__year {
  color: var(--faint);
  font-size: .75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.card__title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

.card__link {
  color: inherit;
  text-decoration: none;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r);
}

.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 3px; }

.card__desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card .tags { margin-top: 2px; }

.card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 51px; /* 16px + 34px ↗ button + 1px border */
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: .8125rem;
  font-weight: 600;
  transition: color .2s ease;
}

.card__more .icon { transition: transform .35s var(--ease); }
.card:hover .card__more { color: #fff; }
.card:hover .card__more .icon { transform: translateX(4px); color: var(--accent-300); }

.card__ext {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .3s var(--ease);
}

.card__ext:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
  transform: translate(1px, -1px);
}

.card__stat {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.card__stat-value {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

/* Placeholder project: dimmed, not clickable */
.card--soon {
  border-style: dashed;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .012);
  box-shadow: none;
}

.card--soon:hover {
  transform: none;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.card--soon .card__media {
  opacity: .5;
  filter: saturate(.55);
}

.card--soon .card__title { color: var(--text-soft); }
.card--soon .card__footer { border-top-style: dashed; border-top-color: rgba(255, 255, 255, .1); }
.card--soon .card__more,
.card--soon:hover .card__more { color: var(--muted); }
.card--soon:hover .placeholder__tile { transform: none; }
.card--soon:hover .placeholder::after { transform: translate(-50%, -50%); }

/* Empty state */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: clamp(40px, 6vw, 64px) 24px;
  border: 1px dashed rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .02);
  text-align: center;
}

.empty__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 6px;
  border: 1px solid rgba(165, 180, 252, .25);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(88, 101, 242, .22), rgba(139, 92, 246, .12));
  color: var(--accent-300);
  font-size: 24px;
}

.empty__title { color: #fff; font-size: 1.125rem; font-weight: 700; }
.empty__text { max-width: 28rem; color: var(--muted); font-size: .9375rem; }

/* 15 · Flowing demo (video / slideshow inside the browser frame) -------- */
.demo {
  position: relative;
  min-width: 0;
}

.demo--gallery .browser__screen { touch-action: pan-y; }

.demo__slides {
  position: absolute;
  inset: 0;
}

.demo__slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  /* The outgoing slide stays visible until the new one has faded in on top. */
  transition: opacity 0s linear .9s, visibility 0s linear .9s;
}

.demo__slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
  transition: opacity .9s var(--ease), visibility 0s;
}

.demo__slide .browser__img {
  transform: scale(1.03);
  transition: transform 1.6s var(--ease);
}

.demo__slide.is-active .browser__img { transform: none; }

.demo__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Clicking the demo opens the project site */
.demo__open {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  color: #fff;
  text-decoration: none;
}

.demo__open:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -4px;
}

.demo__hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-pill);
  background: rgba(18, 19, 24, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .3s var(--ease);
}

.demo__hint .icon { width: 14px; height: 14px; }

.demo__open:hover .demo__hint,
.demo__open:focus-visible .demo__hint {
  opacity: 1;
  transform: none;
}

@media (hover: none) {
  .demo__hint {
    opacity: 1;
    transform: none;
    padding: 6px 11px;
    font-size: .75rem;
  }
}

/* Big play button (reduced motion or blocked autoplay) */
.demo__bigplay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  display: none;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(18, 19, 24, .72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8);
  transition: transform .2s var(--ease), background-color .2s ease;
}

.demo__bigplay .icon { width: 24px; height: 24px; margin-left: 3px; }
.demo__bigplay:hover { transform: scale(1.06); background: rgba(88, 101, 242, .85); }
.demo.is-manual:not(.is-playing) .demo__bigplay { display: grid; }

/* Controls sit right under the frame */
.demo__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-inline: 2px;
}

.demo__progress {
  display: flex;
  flex: 1;
  gap: 6px;
  min-width: 0;
}

.demo__seg {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
}

.demo__seg-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent-300);
  background: color-mix(in srgb, rgb(var(--p-accent, 88 101 242)) 62%, #fff);
  transform: scaleX(0);
  transform-origin: left center;
}

.demo__seg.is-done .demo__seg-fill,
.demo__seg.is-current .demo__seg-fill { transform: scaleX(1); }

.demo--video .demo__seg-fill {
  transform: scaleX(var(--p, 0));
  transition: transform .25s linear;
}

.demo__count {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  white-space: nowrap;
}

.demo__buttons {
  display: flex;
  gap: 6px;
}

.demo__btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.demo__btn:hover {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.demo__btn .icon { width: 15px; height: 15px; }
.demo__btn .icon--play { display: none; }
.demo__btn.is-paused .icon--play { display: block; }
.demo__btn.is-paused .icon--pause { display: none; }

@media (pointer: coarse) {
  .demo__btn { width: 44px; height: 44px; }
}

@media (max-width: 399px) {
  .demo__controls { gap: 10px; }
  .demo__progress { gap: 4px; }
  .demo__count { display: none; }
}

/* Without JS the buttons do nothing: keep their space, hide them. */
.demo:not(.is-ready) .demo__buttons { visibility: hidden; }

/* Reduced motion: no autoplay toggle, slides change by hand. */
.demo.is-manual [data-yb-toggle] { display: none; }

/* Video failed to load: the cover stays, dead controls go. */
.demo.is-failed .demo__controls,
.demo.is-failed .demo__bigplay { display: none; }

@keyframes yb-seg-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  /* Slideshow progress; when a segment fills up, main.js moves to the next image. */
  .demo.is-ready:not(.is-manual) .demo__seg.is-current .demo__seg-fill {
    animation: yb-seg-fill var(--yb-interval, 3500ms) linear forwards;
    animation-play-state: paused;
  }

  .demo.is-playing:not(.is-manual) .demo__seg.is-current .demo__seg-fill { animation-play-state: running; }
}

/* 16 · Contact ----------------------------------------------------------- */
.section--contact {
  isolation: isolate;
  background: linear-gradient(180deg, transparent, rgba(18, 19, 24, .62) 16%, rgba(18, 19, 24, .62) 84%, transparent);
}

.section--contact::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  width: min(1000px, 100%);
  height: 560px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(88, 101, 242, .16), transparent);
  pointer-events: none;
}

.contact .section-head { max-width: 52rem; }

.mailbox {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 860px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card), var(--inset-hi), 0 0 60px -30px rgba(88, 101, 242, .6);
}

.mailbox__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(165, 180, 252, .26);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(88, 101, 242, .32), rgba(139, 92, 246, .16));
  color: #c7d2fe;
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.mailbox__main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.mailbox__label {
  color: var(--faint);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mailbox__address {
  color: #fff;
  font-size: clamp(1.05rem, .8rem + 1.1vw, 1.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.mailbox__address:hover { color: var(--accent-300); }

.mailbox__actions {
  display: flex;
  flex: none;
  gap: 8px;
}

@media (max-width: 639px) {
  .mailbox { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .mailbox__icon { width: 44px; height: 44px; font-size: 20px; }
  .mailbox__actions { width: 100%; }
  .mailbox__actions .btn { flex: 1; }
}

.contact__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 960px) {
  .contact__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 24px;
  }

  .contact__grid--solo { grid-template-columns: minmax(0, 1fr); }
}

.contact__grid--solo {
  max-width: 860px;
  margin-inline: auto;
}

.mailbox:last-child { margin-bottom: 0; }

.panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  box-shadow: var(--shadow-card), var(--inset-hi);
}

.panel__head { margin-bottom: 22px; }

.panel__title {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.panel__text {
  margin-top: 6px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

.socials {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

@media (min-width: 480px) {
  .socials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .contact__grid--solo .socials { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.social {
  --brand: 165 180 252;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  height: 100%;
  padding: 12px 14px 12px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .025);
  color: var(--text);
  text-decoration: none;
  transition: transform .4s var(--ease), border-color .25s ease, background-color .25s ease, box-shadow .4s var(--ease);
}

.social:hover {
  transform: translateY(-2px);
  border-color: rgb(var(--brand) / .38);
  background: rgb(var(--brand) / .06);
  box-shadow: 0 16px 36px -22px rgb(var(--brand) / .7);
}

.social__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(var(--brand) / .22);
  border-radius: 11px;
  background: rgb(var(--brand) / .12);
  color: rgb(var(--brand));
  font-size: 19px;
  transition: transform .4s var(--ease);
}

.social:hover .social__icon { transform: scale(1.06); }

.social__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.social__name {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
}

.social__handle {
  overflow: hidden;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social__arrow {
  flex: none;
  color: var(--faint);
  transition: transform .35s var(--ease), color .2s ease;
}

.social:hover .social__arrow { transform: translate(2px, -2px); color: #fff; }

.social--instagram, .hero-social--instagram { --brand: 244 114 182; }
.social--youtube, .hero-social--youtube { --brand: 248 113 113; }
.social--x, .hero-social--x { --brand: 229 229 229; }
.social--github, .hero-social--github { --brand: 229 229 229; }
.social--linkedin, .hero-social--linkedin { --brand: 96 165 250; }
.social--discord, .hero-social--discord { --brand: 139 156 255; }
.social--telegram, .hero-social--telegram { --brand: 56 189 248; }
.social--whatsapp, .hero-social--whatsapp { --brand: 74 222 128; }
.social--facebook, .hero-social--facebook { --brand: 96 165 250; }
.social--tiktok, .hero-social--tiktok { --brand: 45 212 191; }
.hero-social--email { --brand: 165 180 252; }

/* 17 · Form & notices ---------------------------------------------------- */
.form {
  position: relative;
  display: grid;
  gap: 16px;
}

.form__row {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field__label {
  color: var(--text);
  font-size: .8125rem;
  font-weight: 600;
}

.field__optional {
  color: var(--faint);
  font-weight: 500;
}

.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 12px;
  background: rgba(10, 11, 14, .45);
  color: #fff;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.field__input::placeholder { color: rgba(229, 229, 229, .35); opacity: 1; }
.field__input:hover { border-color: rgba(255, 255, 255, .2); }

.field__input:focus,
.field__input:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 0;
  border-color: rgba(129, 140, 248, .85);
  background: rgba(10, 11, 14, .62);
  box-shadow: 0 0 0 4px rgba(88, 101, 242, .22);
}

.field__input:user-invalid {
  border-color: rgba(248, 113, 113, .7);
  box-shadow: 0 0 0 4px rgba(248, 113, 113, .12);
}

.field__input:-webkit-autofill,
.field__input:-webkit-autofill:hover,
.field__input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;
  box-shadow: 0 0 0 1000px #1a1b22 inset;
  transition: background-color 9999s ease-out 0s;
}

textarea.field__input {
  min-height: 150px;
  resize: vertical;
}

.form__hp {
  position: absolute !important;
  top: auto;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-top: 4px;
}

.form__note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: .8125rem;
  line-height: 1.5;
}

.form__note .icon { color: var(--green); }

.form__footer > .btn:only-child { margin-left: auto; }

@media (max-width: 479px) {
  .form__footer .btn { width: 100%; }
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.55;
  animation: yb-notice-in .6s var(--ease) both;
}

.notice__icon {
  flex: none;
  margin-top: 1px;
  font-size: 20px;
}

.notice__title { color: #fff; font-weight: 700; }
.notice__text { opacity: .92; }

.notice--success {
  border-color: rgba(74, 222, 128, .32);
  background: rgba(34, 197, 94, .08);
  color: #bbf7d0;
}

.notice--success .notice__icon { color: var(--green); }

.notice--error {
  border-color: rgba(248, 113, 113, .34);
  background: rgba(239, 68, 68, .08);
  color: #fecaca;
}

.notice--error .notice__icon { color: var(--red); }

@keyframes yb-notice-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* 18 · Toast ------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-pill);
  background: rgba(18, 19, 24, .92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  box-shadow: 0 20px 50px -16px rgba(0, 0, 0, .8), 0 0 0 1px rgba(0, 0, 0, .3);
  opacity: 0;
  transform: translate(-50%, 16px) scale(.96);
  transition: opacity .3s var(--ease), transform .45s var(--ease);
  pointer-events: none;
}

.toast:empty { padding: 0; border-width: 0; }

.toast::before {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 16px rgba(34, 197, 94, .55);
}

.toast:empty::before { display: none; }

.toast--error::before {
  background: #ef4444 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 11px no-repeat;
  box-shadow: 0 0 16px rgba(239, 68, 68, .55);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

/* 19 · Footer ------------------------------------------------------------ */
.site-footer {
  position: relative;
  padding: 36px 0 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 19, 24, .5), rgba(18, 19, 24, .92));
}

.site-footer__inner {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 22px;
  text-align: center;
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr auto 1fr;
    justify-items: start;
    text-align: left;
  }

  .footer-social { justify-self: center; }
  .to-top { grid-column: 3; justify-self: end; }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: .875rem;
}

.site-footer__brand .logo-mark { width: 28px; height: 28px; border-radius: 8px; font-size: .6875rem; }
.site-footer__copy { color: var(--muted); font-size: .875rem; }

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.footer-social__link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .3s var(--ease);
}

.footer-social__link .icon { width: 18px; height: 18px; }

.footer-social__link:hover {
  color: #fff;
  border-color: var(--border);
  background: rgba(255, 255, 255, .06);
  transform: translateY(-2px);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.to-top .icon { transition: transform .3s var(--ease); }
.to-top:hover { color: #fff; border-color: var(--border-hover); background: rgba(255, 255, 255, .06); }
.to-top:hover .icon { transform: translateY(-2px); }

/* 20 · Inner pages (single project, archive, page, post, index) --------- */
.page-hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(28px, 4vw, 48px);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: calc(var(--header-h) * -1);
  left: 0;
  right: 0;
  height: 520px;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 30% 20%, #000 15%, transparent 70%);
  mask-image: radial-gradient(ellipse 60% 70% at 30% 20%, #000 15%, transparent 70%);
  pointer-events: none;
}

.page-hero > .container { position: relative; }

.page-hero__title {
  max-width: 20ch;
  color: #fff;
  font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.page-hero__lead {
  max-width: 42rem;
  margin-top: 20px;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.7;
  text-wrap: pretty;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 20px;
  color: var(--muted);
  font-size: .875rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .03);
  color: var(--text-soft);
  font-size: .8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.back-link .icon { transition: transform .3s var(--ease); }
.back-link:hover { color: #fff; border-color: var(--border-hover); background: rgba(255, 255, 255, .06); }
.back-link:hover .icon { transform: translateX(-3px); }

.project-hero__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 20px;
}

.project-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: clamp(36px, 5vw, 52px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .07);
}

.meta-row__item {
  display: flex;
  flex: 1 1 150px;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 18px 20px;
  background: rgba(24, 25, 30, .94);
}

.meta-row__item--wide { flex: 2 1 280px; }

.meta-row dt {
  color: var(--faint);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.meta-row dd {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

.project-shot { margin-top: clamp(8px, 2vw, 16px); }

.project-shot .browser {
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .35),
    0 50px 120px -40px rgba(0, 0, 0, .9),
    0 0 120px -40px rgba(88, 101, 242, .55);
}

.project-body { padding: clamp(56px, 8vw, 104px) 0 clamp(24px, 4vw, 40px); }

.section--related { padding-top: clamp(64px, 8vw, 112px); }

.section--archive { padding-top: clamp(8px, 2vw, 24px); }

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2em;
  color: var(--muted);
  font-size: .875rem;
}

/* Blog index */
.post-list { display: grid; gap: 16px; }

.post-item {
  position: relative;
  display: block;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .025);
  transition: border-color .3s ease, transform .4s var(--ease), background-color .3s ease;
}

.post-item:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); }

.post-item__meta { color: var(--faint); font-size: .8125rem; font-weight: 600; }

.post-item__title {
  margin-top: 8px;
  color: #fff;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.post-item__title a { color: inherit; text-decoration: none; }
.post-item__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-item__title a:focus-visible { outline: none; }
.post-item__title a:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 3px; }

.post-item__excerpt { margin-top: 10px; color: var(--muted); font-size: .9375rem; line-height: 1.7; }

.pagination,
.navigation.pagination { margin-top: 40px; }

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.pagination .page-numbers {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.pagination a.page-numbers:hover { color: #fff; border-color: var(--border-hover); background: rgba(255, 255, 255, .05); }
.pagination .page-numbers.current { color: #fff; border-color: rgba(129, 140, 248, .6); background: rgba(88, 101, 242, .2); }
.pagination .page-numbers.dots { border-color: transparent; }

/* 21 · Prose ------------------------------------------------------------- */
.prose {
  color: rgba(229, 229, 229, .8);
  font-size: 1.0625rem;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose :where(p, ul, ol, dl, blockquote, pre, figure, table, .wp-block-image, .wp-block-embed, .wp-block-gallery, .wp-block-buttons, .wp-block-columns) {
  margin-top: 0;
  margin-bottom: 1.4em;
}

.prose :where(h2, h3, h4, h5, h6) {
  color: #fff;
  font-weight: 700;
  letter-spacing: -.02em;
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h2 {
  margin: 2.2em 0 .75em;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
}

.prose h3 {
  margin: 1.9em 0 .6em;
  font-size: clamp(1.2rem, 1.06rem + .6vw, 1.45rem);
  line-height: 1.3;
}

.prose h4 { margin: 1.6em 0 .5em; font-size: 1.1rem; line-height: 1.4; }
.prose :where(h5, h6) { margin: 1.4em 0 .5em; font-size: 1rem; }

.prose a {
  color: var(--accent-300);
  text-decoration: underline;
  text-decoration-color: rgba(165, 180, 252, .4);
  text-underline-offset: .2em;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.prose a:hover { color: #fff; text-decoration-color: currentColor; }

.prose strong, .prose b { color: #fff; font-weight: 600; }
.prose em { color: rgba(229, 229, 229, .9); }

.prose ul, .prose ol { padding-left: 1.35em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: .5em 0; padding-left: .35em; }
.prose li > :where(ul, ol) { margin: .5em 0 0; }
.prose li::marker { color: var(--accent-400); }
.prose ol > li::marker { font-weight: 700; font-size: .9em; }

.prose blockquote,
.prose .wp-block-quote {
  margin-left: 0;
  margin-right: 0;
  padding: .3em 0 .3em 1.25em;
  border-left: 3px solid var(--accent);
  color: #fff;
  font-size: 1.125em;
  font-style: normal;
  font-weight: 500;
  line-height: 1.6;
}

.prose blockquote p { margin-bottom: .6em; }
.prose blockquote p:last-child { margin-bottom: 0; }

.prose blockquote cite,
.prose .wp-block-quote cite {
  display: block;
  margin-top: .75em;
  color: var(--muted);
  font-size: .8em;
  font-style: normal;
  font-weight: 600;
}

.prose .wp-block-pullquote {
  padding: 2em 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.prose .wp-block-pullquote blockquote { border: 0; padding: 0; font-size: 1.35em; }

.prose code,
.prose kbd {
  padding: .15em .42em;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 6px;
  background: rgba(255, 255, 255, .07);
  color: #e0e7ff;
  font-family: var(--font-mono);
  font-size: .86em;
}

.prose pre,
.prose .wp-block-code {
  overflow-x: auto;
  padding: 1.15em 1.3em;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-deeper);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: .875rem;
  line-height: 1.7;
  tab-size: 2;
  box-shadow: var(--inset-hi);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

.prose img { height: auto; border-radius: var(--radius); }
.prose figure { margin-left: 0; margin-right: 0; }

.prose figcaption,
.prose .wp-element-caption {
  margin-top: .8em;
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
  text-align: center;
}

.prose hr,
.prose .wp-block-separator {
  height: 1px;
  margin: 3em 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  opacity: 1;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9375rem;
}

.prose .wp-block-table { overflow-x: auto; }

.prose th,
.prose td {
  padding: .75em 1em;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.prose th { color: #fff; font-weight: 600; border-bottom-color: var(--border-strong); }

.prose iframe,
.prose .wp-block-embed iframe { width: 100%; border: 0; border-radius: var(--radius); }

.prose .aligncenter { margin-left: auto; margin-right: auto; text-align: center; }
.prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.prose .alignright { float: right; margin: .3em 0 1em 1.5em; }

@media (min-width: 1024px) {
  .prose .alignwide { margin-left: -120px; margin-right: -120px; max-width: none; }
}

.prose .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

.prose .alignfull img { border-radius: 0; }

.prose .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 1.4em;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-accent);
}

.prose .wp-block-button__link:hover { background: var(--accent-hover); color: #fff; }
.prose .is-style-outline .wp-block-button__link { background: transparent; border: 1px solid rgba(255, 255, 255, .2); box-shadow: none; }

.prose::after { content: ""; display: table; clear: both; }

/* 22 · 404 --------------------------------------------------------------- */
.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - 140px);
  min-height: calc(100svh - var(--header-h) - 140px);
  padding: 64px 0;
  text-align: center;
}

.error-404__code {
  font-size: clamp(7rem, 3.5rem + 18vw, 15rem);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.06em;
  padding: .04em .06em .08em;
  filter: drop-shadow(0 20px 60px rgba(88, 101, 242, .35));
}

.error-404__title {
  margin-top: 28px;
  color: #fff;
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.025em;
}

.error-404__text {
  max-width: 30rem;
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--fs-lead);
  line-height: 1.7;
}

.error-404__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* 23 · Scroll reveal ------------------------------------------------------
   Content is visible by default. [data-reveal] elements are hidden only while
   <html> has .yb-reveal: the inline <head> script adds it when motion is
   allowed and removes it again after 2.5s if main.js never takes over;
   main.js reveals elements as they scroll in and reveals everything if the
   observer stays silent. */
@media (prefers-reduced-motion: no-preference) {
  .yb-reveal [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition:
      opacity .9s var(--ease) var(--reveal-delay, 0ms),
      transform 1s var(--ease) var(--reveal-delay, 0ms);
  }

  .yb-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

/* 24 · Responsive tweaks, a11y, motion, print ---------------------------- */
@media (max-width: 639px) {
  .hero__actions { width: 100%; max-width: 360px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .feature__actions .btn,
  .project-hero__actions .btn { flex: 1 1 auto; }
  .card__body { padding: 18px 18px 16px; }
  .nav__name { font-size: .9375rem; }
}

@media (max-width: 359px) {
  .nav__name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .bg__canvas { opacity: .7; }
  .demo__slide .browser__img { transform: none; }
  .feature .browser,
  .feature:hover .browser { transform: none; }
}

@media (forced-colors: active) {
  .text-gradient,
  .placeholder__initial {
    background: none;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }

  .bg,
  .glow::before,
  .glow::after { display: none; }

  .btn,
  .chip,
  .status,
  .nav__inner,
  .card,
  .panel,
  .hero-social,
  .browser,
  .demo__btn { border: 1px solid CanvasText; }

  .demo__seg-fill { background: Highlight; }

  .chip--filter[aria-pressed="true"] { outline: 2px solid Highlight; }
}

@media print {
  .bg,
  .site-header,
  .skip-link,
  .toast,
  .filters,
  .form,
  .to-top,
  .demo__controls,
  .demo__open,
  .demo__bigplay,
  .hero::before,
  .page-hero::before { display: none !important; }

  body { background: #fff; color: #111; }

  .hero__title,
  .section-title,
  .page-hero__title,
  .prose,
  .prose :where(h2, h3, h4, strong) { color: #111; }

  .text-gradient { color: #111; -webkit-text-fill-color: #111; background: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* 25 · Slayt modu + bölüm rayı --------------------------------------------
   Ana sayfa (front-page.php, .yb-slides) geniş ekranda slayt gibi akar: her bölüm bir
   ekran boyundadır ve tekerleğin bir adımı bir bölüm kaydırır. Kaydırmayı CSS scroll-snap
   yapar; main.js yalnızca <html> öğesine .yb-snap ekler, tekerleği ele geçirmez.
   Yalnızca ≥768px + ince imleç + hareket azaltma kapalıyken. Telefon, dokunmatik ekran ve
   hareket azaltmada sayfa eskisi gibi serbestçe kayar (bu kurallar hiç devreye girmez).
   Ekrandan uzun bir slayt kesilmez: zorunlu yakalama, ekranı kaplayan uzun bir slaydın
   içinde serbest kaydırmaya izin verir; sonra bir sonraki slayda geçer.
   scroll-snap-stop: always hızlı bir savurmanın (dokunmatik yüzey, serbest dönen tekerlek)
   slayt atlamasını önler; raydan / menüden yapılan atlamaları etkilemez.
   Hassas (piksel) tekerlek girdisinde küçük bir hareket, syndra.yakupbilgin.com'daki gibi
   aynı slayda geri yakalanır; tekerlek bilerek JS ile ele geçirilmez.
   Sağdaki bölüm rayı yalnızca ≥1280px genişlikte ve main.js rayı devraldıysa görünür. */
@media (min-width: 768px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.yb-snap {
    scroll-snap-type: y mandatory;
    scroll-padding-top: 0;
  }

  /* WordPress yönetim çubuğu görünümün üstünü kaplar: slaytlar onun altına hizalanır. */
  html.yb-snap:has(body.admin-bar) { scroll-padding-top: 32px; }

  /* Slaytlar sayfanın en üstünden başlar; yapışkan menü ilk slaydın üstünde durur
     (yükleme anında yakalama sayfayı kaydırmaz). */
  .yb-slides {
    --slide-top: calc(var(--header-h) + 16px);
    margin-top: calc(var(--header-h) * -1);
  }

  .yb-slides .yb-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--slide-top) !important;
    padding-bottom: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-margin-top: 0 !important;
  }

  /* Slaytlar 0'a hizalanır (scroll-padding-top: 0), ama ekrandan uzun bir slaydın içindeki
     odak / #bağlantı hedefi yapışkan menünün altında kalmasın. Yakalama noktası olmayan
     öğelerin kenar boşluğu yakalamayı etkilemez. */
  .yb-slides .yb-slide :is(a, button, input, select, textarea, [tabindex], [id]):not(.yb-slide) {
    scroll-margin-top: calc(var(--header-h) + 16px);
  }

  .admin-bar .yb-slides .yb-slide {
    min-height: calc(100vh - 32px);
    min-height: calc(100svh - 32px);
  }

  /* Slayt taşıyan bölümün kendi boşluğu yok; boşluğu slaytlar verir. */
  .yb-slides > .section:not(.yb-slide) { padding-block: 0 !important; }
  .yb-slides .features { gap: 0; }

  .yb-slides .hero::before { top: 0; }

  /* Son kaydırma altbilgiye iner. */
  .yb-snap-end { scroll-snap-align: end; }

  /* Her slayt bir ekrana sığsın: boşluklar ekran yüksekliğiyle ölçeklenir. */
  .yb-slides .features__slide .section-head { margin-bottom: clamp(20px, 4vh, 48px); }
  .yb-slides .feature { padding: clamp(24px, 4.4vh, 44px); }
  .yb-slides .feature__body { gap: clamp(12px, 2.1vh, 20px); }
  .yb-slides .feature__actions { margin-top: 2px; }
  .yb-slides .demo__controls { margin-top: 12px; }

  .yb-slides .projects-bar { gap: 12px; margin-bottom: clamp(16px, 2.8vh, 28px); }

  .yb-slides .contact .section-head { margin-bottom: clamp(16px, 3.2vh, 36px); }
  .yb-slides .contact .eyebrow { margin-bottom: 12px; }
  .yb-slides .mailbox { margin-bottom: clamp(16px, 3vh, 32px); padding-block: 10px; }
  .yb-slides .contact .panel { padding: clamp(20px, 3.2vh, 28px); }
  .yb-slides .contact .panel__head { margin-bottom: clamp(14px, 2.2vh, 20px); }
  .yb-slides .contact .form { gap: clamp(10px, 1.7vh, 14px); }
  .yb-slides .contact .form__row { gap: 14px; }
  .yb-slides .contact .field { gap: 6px; }
  .yb-slides .contact .field__input { min-height: 44px; padding-block: 9px; }
  .yb-slides .contact textarea.field__input { height: clamp(84px, 13vh, 132px); min-height: 84px; }
  .yb-slides .contact .form__footer { flex-wrap: nowrap; gap: 10px 16px; }
  .yb-slides .contact .form__note { min-width: 0; font-size: .75rem; }
  .yb-slides .contact .form__footer .btn { flex: none; }

  /* Dar sosyal medya kutucuklarında süs okunu gizle; kullanıcı adı sığsın. */
  .yb-slides .contact .socials { container-type: inline-size; }
}

@container (max-width: 439px) {
  .yb-slides .social__arrow { display: none; }
}

/* Ray görünürken en dar içerik (≈1280–1365px): e-posta alanının yer tutucusu kesilmesin. */
@media (min-width: 1280px) and (max-width: 1365px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .yb-slides .contact .field__input { padding-inline: 12px; font-size: .9375rem; }
}

/* Geniş ekranda: proje başlığı tek satır (başlık solda, açıklama sağda), kart iki eşit sütun. */
@media (min-width: 960px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .yb-slides .features__slide .section-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    column-gap: clamp(32px, 5vw, 72px);
    max-width: none;
  }

  .yb-slides .features__slide .section-head > :not(.section-lead) { grid-column: 1; }

  .yb-slides .features__slide .section-lead {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    justify-self: end;
    max-width: 30rem;
    margin-top: 0;
    font-size: 1rem;
    line-height: 1.65;
  }

  .yb-slides .feature,
  .yb-slides .feature--flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

  /* Sosyal medya kartı daralmasın (kullanıcı adları kesilmesin). */
  .yb-slides .contact__grid:not(.contact__grid--solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Kısa ekranlar (ör. 1280×720, 1366×768): daha sıkı. Ekrandan yine de uzun kalan slayt
   kesilmez, içinde kaydırılır. */
@media (min-width: 768px) and (max-height: 820px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .yb-slides .section-title { font-size: clamp(1.9rem, 1rem + 2.2vw, 2.6rem); }
  .yb-slides .eyebrow { margin-bottom: 10px; }

  .yb-slides .feature__title { font-size: clamp(2rem, 1.2rem + 1.9vw, 2.75rem); }
  .yb-slides .feature__desc { font-size: .9375rem; line-height: 1.6; }
  .yb-slides .feature__stat-value { font-size: 1.5rem; }
  .yb-slides .feature .btn { --btn-h: 44px; }
  .yb-slides .demo__btn { width: 32px; height: 32px; }

  .yb-slides .card__media { aspect-ratio: 16 / 8; }
  .yb-slides .card__body { gap: 10px; padding: 16px 18px 14px; }
  .yb-slides .card__desc { -webkit-line-clamp: 2; }
  .yb-slides .card__footer { min-height: 46px; padding-top: 12px; }

  .yb-slides .contact .section-head,
  .yb-slides .mailbox { margin-bottom: 14px; }
  .yb-slides .contact .panel__text { display: none; }
  .yb-slides .mailbox__icon { width: 44px; height: 44px; font-size: 20px; }
}

/* Ray görünürken (≥1280px, JS var) ana sayfa içeriği rayın soluna sığar: içerik iki yandan
   eşit daralır. --rail-space = sağ boşluk 24 + nokta 16 + aralık 12 + etiket en çok
   (--rail-space − 56px) + 4px pay; uzun proje adları kısaltılır (…), böylece etkin bölüm
   hapı hiçbir kartın üstüne binmez.
   .js <head> betiğinden gelir (ilk boyamada yer ayrılır, kayma olmaz); main.js rayı
   devralamazsa .yb-rail-off eklenir ve ray gizlenip içerik eski genişliğine döner. */
:root { --rail-space: 200px; }

@media (min-width: 1280px) {
  .js:not(.yb-rail-off) .yb-slides .container {
    max-width: min(calc(var(--container) + var(--gutter) * 2), calc(100% - var(--rail-space) * 2 + var(--gutter) * 2));
  }
}

/* Yönetim çubuğu 783px altında 46px yüksekliğindedir. */
@media (min-width: 768px) and (max-width: 782px) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.yb-snap:has(body.admin-bar) { scroll-padding-top: 46px; }

  .admin-bar .yb-slides .yb-slide {
    min-height: calc(100vh - 46px);
    min-height: calc(100svh - 46px);
  }
}

/* Bölüm rayı ------------------------------------------------------------- */
.yb-rail { display: none; }

/* Rayın boş kısımları (sarmalayıcı, liste kutusu, gizli düğmeler, ipucu metni) tıklamayı
   geçirir; yalnızca görünen oklar ve bölüm öğeleri tıklanır. Böylece ray kutusu sağdaki
   kartların kenarını örtmez. */
@media (min-width: 1280px) {
  .js:not(.yb-rail-off) .yb-rail {
    position: fixed;
    top: 50%;
    right: 24px;
    z-index: 40; /* içeriğin üstünde, menünün (60) altında */
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    transform: translateY(-50%);
    pointer-events: none;
  }
}

.yb-rail__line {
  position: absolute;
  top: 12px;
  right: 7px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .2), transparent);
  pointer-events: none;
}

/* Yukarı / aşağı: bir bölüm geri / ileri. Üzerine gelince solda "Önceki bölüm" /
   "Sonraki bölüm" belirir (komşu bölümün adı zaten hemen yanında soluk görünür). */
.yb-rail__step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  pointer-events: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.yb-rail__step:not(.is-hidden) .yb-rail__arrow { pointer-events: auto; }

.yb-rail__step.is-hidden { opacity: 0; }
.yb-rail__step--prev.is-hidden { transform: translateY(8px); }
.yb-rail__step--next.is-hidden { transform: translateY(-8px); }

.yb-rail__hint {
  max-width: calc(var(--rail-space) - 64px);
  overflow: hidden;
  color: rgba(255, 255, 255, 0);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}

.yb-rail__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: -5px; /* çizginin ortasına oturur */
  border-radius: 50%;
  background: rgba(21, 22, 27, .9);
  color: rgba(255, 255, 255, .75);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
  transition: color .2s ease, box-shadow .25s ease;
}

.yb-rail__arrow .icon { width: 14px; height: 14px; }

.yb-rail__step:hover .yb-rail__hint,
.yb-rail__step:focus-visible .yb-rail__hint { color: rgba(255, 255, 255, .8); }

.yb-rail__step:hover .yb-rail__arrow,
.yb-rail__step:focus-visible .yb-rail__arrow {
  color: #fff;
  box-shadow: 0 0 0 1px rgba(139, 156, 255, .6), 0 0 18px -4px #8b9cff;
}

.yb-rail__step:focus-visible { outline: none; }
.yb-rail__step:focus-visible .yb-rail__arrow { outline: 2px solid var(--focus); outline-offset: 3px; }

/* Bölüm listesi: etkin bölüm ortada, komşular 44px arayla soluk, diğerleri gizli.
   --d = bölümün etkin bölüme uzaklığı (main.js günceller; ilk durum PHP'den gelir).
   Kutunun boş kısmı tıklamayı geçirir; sürükleme görünen bir öğeden başlar ve sürerken
   (is-dragging) kutu imleci yakalar. */
.yb-rail__nav {
  position: relative;
  width: 208px;
  height: 150px;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  pointer-events: none;
}

.yb-rail__nav.is-dragging { pointer-events: auto; }

.yb-rail__nav.is-dragging,
.yb-rail__nav.is-dragging .yb-rail__item { cursor: grabbing; }

.yb-rail__item {
  --d: 0;
  position: absolute;
  top: 50%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-50% + var(--d) * 44px)) scale(.86);
  transform-origin: right center;
  transition: transform .5s cubic-bezier(.2, .9, .3, 1), opacity .5s cubic-bezier(.2, .9, .3, 1);
}

.yb-rail__item.is-near { opacity: .38; pointer-events: auto; }

.yb-rail__item.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(calc(-50% + var(--d) * 44px)) scale(1);
}

/* Uzun proje adları kısaltılır (…); tam ad erişilebilir adda kalır, fareyle üzerine gelince
   title olarak görünür (main.js). */
.yb-rail__label {
  max-width: calc(var(--rail-space) - 56px);
  overflow: hidden;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: rgba(255, 255, 255, .85);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.25rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.yb-rail__item:hover .yb-rail__label { color: #fff; }

.yb-rail__item.is-active .yb-rail__label {
  background: rgba(88, 101, 242, .2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(139, 156, 255, .6), 0 0 26px -6px #8b9cff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.yb-rail__num {
  display: none;
  margin-right: 6px;
  color: #a5b4fc;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
}

.yb-rail__item.is-active .yb-rail__num { display: inline; }

.yb-rail__item:focus-visible { outline: none; }
.yb-rail__item:focus-visible .yb-rail__label { outline: 2px solid var(--focus); outline-offset: 2px; }

.yb-rail__dot {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

.yb-rail__core {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
  transition: width .3s ease, height .3s ease, background-color .3s ease, box-shadow .3s ease;
}

.yb-rail__item.is-active .yb-rail__core {
  width: 12px;
  height: 12px;
  background: #8b9cff;
  box-shadow: 0 0 14px #8b9cff;
}

.yb-rail__ping {
  position: absolute;
  inset: 0;
  display: none;
  border-radius: 50%;
  background: rgba(139, 156, 255, .4);
}

.yb-rail__item.is-active .yb-rail__ping {
  display: block;
  animation: yb-rail-ping 1s cubic-bezier(0, 0, .2, 1) infinite;
}

@keyframes yb-rail-ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .yb-rail__item,
  .yb-rail__step { transition: none; }
  .yb-rail__item.is-active .yb-rail__ping { animation: none; }
}

@media (forced-colors: active) {
  .yb-rail__arrow,
  .yb-rail__item.is-active .yb-rail__label { border: 1px solid CanvasText; }
  .yb-rail__core { forced-color-adjust: none; background: CanvasText; }
  .yb-rail__item.is-active .yb-rail__core { background: Highlight; }
}

@media print {
  .yb-rail { display: none !important; }
}
