/* ==========================================================================
   RESWONS 2026 — Bento Grid System
   Asimetrik kart bloklari, hover-expand, parallax katmanlar
   ========================================================================== */

/* ---------- Bento grid container ---------- */
.rw-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--sp-4);
}

@media (max-width: 768px) {
  .rw-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: var(--sp-3);
  }
}

/* ---------- Card base ---------- */
.rw-cell {
  position: relative;
  grid-column: span 4;
  padding: var(--sp-6);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--sp-3);
  isolation: isolate;
  transition:
    transform var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    background var(--dur-base) var(--ease-out);
  will-change: transform;
  text-decoration: none;
  color: inherit;
}

.rw-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in oklab, var(--rw-volt) 18%, transparent),
              transparent 60%);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  pointer-events: none;
  z-index: 0;
}

.rw-cell > * { position: relative; z-index: 1; }

.rw-cell:hover {
  transform: translateY(-4px);
  border-color: var(--rw-volt);
}

.rw-cell:hover::before { opacity: 1; }

/* Tum boyut varyantlari */
.rw-cell-wide { grid-column: span 8; }
.rw-cell-full { grid-column: span 12; }
.rw-cell-tall { grid-row: span 2; }
.rw-cell-half { grid-column: span 6; }

@media (max-width: 991px) {
  .rw-cell { grid-column: span 6; }
  .rw-cell-wide,
  .rw-cell-full,
  .rw-cell-half { grid-column: span 12; }
  .rw-cell-tall { grid-row: auto; }
}

@media (max-width: 768px) {
  .rw-cell { grid-column: span 1; }
  .rw-cell-wide,
  .rw-cell-full,
  .rw-cell-half { grid-column: span 1; }
}

/* ---------- Cell header / icon / number ---------- */
.rw-cell-num {
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  z-index: 2;
}

.rw-cell-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  color: var(--rw-volt);
  font-size: 1.5rem;
  margin-bottom: var(--sp-4);
  transition: border-color var(--dur-base), background var(--dur-base);
}

.rw-cell:hover .rw-cell-icon {
  border-color: var(--rw-volt);
  background: color-mix(in oklab, var(--rw-volt) 12%, transparent);
}

.rw-cell h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--text-primary);
}

.rw-cell p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Cell expand on hover ---------- */
.rw-cell-detail {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition:
    max-height var(--dur-slow) var(--ease-out),
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rw-cell:hover .rw-cell-detail,
.rw-cell.open .rw-cell-detail {
  max-height: 80px;
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Cell link arrow ---------- */
.rw-cell-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rw-volt);
  margin-top: var(--sp-4);
}

.rw-cell-link i,
.rw-cell-link::after {
  content: '\2192';
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
}

.rw-cell:hover .rw-cell-link::after,
.rw-cell:hover .rw-cell-link i { transform: translateX(6px); }

/* ---------- Cell variants ---------- */
.rw-cell-dark {
  background: var(--rw-ink);
  border-color: var(--rw-gray-700);
  color: var(--rw-paper);
}

.rw-cell-dark h3,
.rw-cell-dark p { color: inherit; }

.rw-cell-volt {
  background: var(--rw-volt);
  border-color: var(--rw-volt);
  color: white;
}

.rw-cell-volt h3,
.rw-cell-volt p,
.rw-cell-volt .rw-cell-link { color: white; }
.rw-cell-volt .rw-cell-icon {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.rw-cell-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
}

/* ---------- Cell image / cover ---------- */
.rw-cell-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.rw-cell-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform var(--dur-slow) var(--ease-out);
  filter: grayscale(0.3) contrast(1.1);
}

.rw-cell:hover .rw-cell-cover img { transform: scale(1.1); filter: grayscale(0) contrast(1.1); }

.rw-cell-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 10, 0.85) 100%);
}

/* ---------- Hero özel cell ---------- */
.rw-hero-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-12);
}

.rw-hero-bento .rw-cell-headline {
  grid-column: span 8;
  grid-row: span 2;
  padding: var(--sp-10);
}

.rw-hero-bento .rw-cell-stat {
  grid-column: span 4;
}

@media (max-width: 991px) {
  .rw-hero-bento .rw-cell-headline {
    grid-column: span 12;
    grid-row: auto;
  }
  .rw-hero-bento .rw-cell-stat {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .rw-hero-bento .rw-cell-stat { grid-column: span 12; }
}

/* ---------- Stat / metric blocks ---------- */
.rw-stat {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-2) 0;
}

.rw-stat-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.rw-stat-value {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-primary);
}

.rw-stat-suffix {
  font-size: 0.6em;
  color: var(--rw-volt);
}

/* ---------- Sticky section progress ---------- */
.rw-progress-bar {
  position: fixed;
  top: 64px;
  left: 0;
  height: 2px;
  background: var(--rw-volt);
  width: 0%;
  z-index: var(--z-sticky);
  transition: width 60ms linear;
  pointer-events: none;
}

/* ---------- Sticky section header (for long pages) ---------- */
.rw-sticky-head {
  position: sticky;
  top: 72px;
  z-index: var(--z-sticky);
  padding: var(--sp-4) 0;
  background: color-mix(in oklab, var(--surface-0) 90%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--sp-8);
}

.rw-sticky-head .rw-mono { color: var(--text-tertiary); }

/* ---------- Page hero (alt sayfalar için) ---------- */
.rw-page-hero {
  padding-block: clamp(5rem, 12vw, 9rem) clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.rw-page-hero .rw-eyebrow { margin-bottom: var(--sp-6); }

.rw-page-hero h1 {
  font-size: var(--fs-5xl);
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin: 0;
}

.rw-page-hero .rw-lead {
  margin-top: var(--sp-6);
  max-width: 50ch;
}

/* Parallax katmani: arka-plan grid */
.rw-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--border-subtle) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border-subtle) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Process / timeline ---------- */
.rw-process {
  display: grid;
  gap: var(--sp-4);
}

.rw-step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--sp-6);
  padding: var(--sp-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  transition: border-color var(--dur-base), transform var(--dur-base);
}

.rw-step:hover {
  border-color: var(--rw-volt);
  transform: translateX(8px);
}

.rw-step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--rw-volt);
  letter-spacing: 0.1em;
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--rw-volt);
  border-radius: var(--r-sm);
}

.rw-step-body h4 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-lg);
}

.rw-step-body p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.rw-step-tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .rw-step {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .rw-step:hover { transform: none; }
}

/* ---------- Form ---------- */
.rw-form {
  display: grid;
  gap: var(--sp-5);
}

.rw-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.rw-field label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
}

.rw-field input,
.rw-field textarea,
.rw-field select {
  padding: var(--sp-4);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast), background var(--dur-fast);
  width: 100%;
}

.rw-field input:focus,
.rw-field textarea:focus,
.rw-field select:focus {
  border-color: var(--rw-volt);
  outline: none;
  background: var(--surface-2);
}

.rw-field textarea {
  min-height: 160px;
  resize: vertical;
}

.rw-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

@media (max-width: 768px) {
  .rw-form-row { grid-template-columns: 1fr; }
}

/* ---------- Article / blog ---------- */
.rw-article {
  max-width: 760px;
  margin-inline: auto;
}

.rw-article h2 {
  font-size: var(--fs-3xl);
  margin-top: var(--sp-12);
  margin-bottom: var(--sp-4);
}

.rw-article h3 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
}

.rw-article p {
  font-size: var(--fs-lg);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
  max-width: none;
}

.rw-article ul,
.rw-article ol {
  font-size: var(--fs-lg);
  line-height: 1.7;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.rw-article li { margin-bottom: var(--sp-2); }

.rw-article blockquote {
  border-left: 3px solid var(--rw-volt);
  padding: var(--sp-2) var(--sp-6);
  margin: var(--sp-8) 0;
  font-size: var(--fs-xl);
  font-family: var(--font-display);
  color: var(--text-primary);
  font-style: italic;
}

.rw-article a {
  color: var(--rw-volt);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rw-article img {
  width: 100%;
  border-radius: var(--r-md);
  margin: var(--sp-6) 0;
}

.rw-article pre,
.rw-article code {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  background: var(--surface-2);
  border-radius: var(--r-sm);
}

.rw-article code { padding: 0.1em 0.4em; }
.rw-article pre {
  padding: var(--sp-4);
  overflow-x: auto;
  margin: var(--sp-6) 0;
}

.rw-article-meta {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-6);
}

.rw-article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-tertiary);
}

/* ==========================================================================
   BRIDGE COMPONENTS — sayfaları bütünleştiren parçalar
   ========================================================================== */

/* ---------- Manifesto: tam ekran kalın metin ---------- */
.rw-manifesto {
  padding-block: clamp(5rem, 12vw, 9rem);
  border-block: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.rw-manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 50%, color-mix(in oklab, var(--rw-volt) 12%, transparent), transparent 70%),
    radial-gradient(ellipse 60% 60% at 0% 0%, color-mix(in oklab, var(--rw-volt) 8%, transparent), transparent 70%);
  pointer-events: none;
  opacity: 0.7;
}

.rw-manifesto-inner {
  position: relative;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.rw-manifesto h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 var(--sp-6);
  color: var(--text-primary);
}

.rw-manifesto h2 em {
  font-style: normal;
  color: var(--rw-volt);
  font-family: var(--font-display);
}

.rw-manifesto .rw-manifesto-byline {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}

.rw-manifesto .rw-manifesto-byline::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--rw-volt);
}

/* ---------- Quote wall: editorial alıntı bandı ---------- */
.rw-quote-wall {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  padding: clamp(2.5rem, 5vw, 4rem);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  position: relative;
}

.rw-quote-wall::before {
  content: '"';
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-4);
  font-family: var(--font-display);
  font-size: clamp(6rem, 16vw, 12rem);
  line-height: 0.8;
  color: var(--rw-volt);
  opacity: 0.25;
  pointer-events: none;
}

.rw-quote-wall blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: 28ch;
  position: relative;
  z-index: 1;
}

.rw-quote-wall cite {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.rw-quote-wall cite::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--rw-volt);
}

/* ---------- Ribbon: kalın yatay bant ---------- */
.rw-ribbon {
  background: var(--rw-ink);
  color: var(--rw-paper);
  padding: var(--sp-5) 0;
  overflow: hidden;
  position: relative;
}

.rw-ribbon-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.rw-ribbon-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rw-volt);
}

.rw-ribbon-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  letter-spacing: -0.02em;
  margin: 0;
  flex: 1;
  min-width: 280px;
}

.rw-ribbon-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rw-paper);
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-sm);
  transition: all var(--dur-base) var(--ease-out);
  white-space: nowrap;
}

.rw-ribbon-link:hover {
  background: var(--rw-volt);
  border-color: var(--rw-volt);
}

.rw-ribbon-link::after {
  content: '\2192';
  transition: transform var(--dur-base);
}

.rw-ribbon-link:hover::after { transform: translateX(4px); }

/* ---------- Split: iki sütunlu hikaye bandı ---------- */
.rw-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.rw-split-sticky {
  position: sticky;
  top: 100px;
}

.rw-split-aside h3 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--rw-volt);
  margin: 0 0 var(--sp-4);
}

.rw-split-aside h2 {
  font-size: var(--fs-3xl);
  margin: 0 0 var(--sp-4);
}

.rw-split-aside p {
  font-size: var(--fs-lg);
  line-height: 1.55;
  color: var(--text-secondary);
}

.rw-split-list {
  display: grid;
  gap: var(--sp-4);
  list-style: none;
  padding: 0;
  margin: 0;
}

.rw-split-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  transition: border-color var(--dur-base), transform var(--dur-base);
}

.rw-split-list li:hover {
  border-color: var(--rw-volt);
  transform: translateY(-2px);
}

.rw-split-list strong {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--rw-volt);
  align-self: start;
  padding-top: 3px;
}

.rw-split-list span {
  display: block;
}

.rw-split-list span b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
  letter-spacing: -0.01em;
}

.rw-split-list span small {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .rw-split { grid-template-columns: 1fr; }
  .rw-split-sticky { position: static; }
}

/* ---------- Comparison table ---------- */
.rw-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.rw-compare-col {
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
}

.rw-compare-col.do {
  border-color: var(--rw-volt);
  background: color-mix(in oklab, var(--rw-volt) 5%, var(--surface-1));
}

.rw-compare-col h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin: 0 0 var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.rw-compare-col.do h4 { color: var(--rw-volt); }
.rw-compare-col.dont h4 { color: #C44; }

.rw-compare-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--sp-3);
}

.rw-compare-col li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.rw-compare-col li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-top: 3px;
}

.rw-compare-col.do li::before {
  background: var(--rw-volt);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--rw-volt) 20%, transparent);
}

.rw-compare-col.dont li::before {
  background: #C44;
  box-shadow: 0 0 0 4px rgba(204, 68, 68, 0.18);
}

@media (max-width: 768px) {
  .rw-compare { grid-template-columns: 1fr; }
}

/* ---------- Link grid: çapraz sayfa navigasyon stripi ---------- */
.rw-link-strip {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-1);
}

.rw-link-strip-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.rw-link-strip-head h3 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
  margin: 0;
}

.rw-link-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
}

.rw-link-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
  color: inherit;
  min-height: 140px;
  position: relative;
  overflow: hidden;
}

.rw-link-card::after {
  content: '\2197';
  position: absolute;
  top: var(--sp-4);
  right: var(--sp-4);
  font-family: var(--font-display);
  color: var(--text-tertiary);
  font-size: 1.25rem;
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base);
}

.rw-link-card:hover {
  background: var(--rw-volt);
  border-color: var(--rw-volt);
  transform: translateY(-3px);
}

.rw-link-card:hover,
.rw-link-card:hover * { color: white !important; }

.rw-link-card:hover::after {
  transform: translate(3px, -3px);
  color: white;
}

.rw-link-card .rw-mono {
  color: var(--text-tertiary);
}

.rw-link-card h4 {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--text-primary);
}

.rw-link-card p {
  font-size: var(--fs-sm);
  margin: 0;
  color: var(--text-secondary);
}

@media (max-width: 991px) {
  .rw-link-strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .rw-link-strip-grid { grid-template-columns: 1fr; }
}

/* ---------- Number wall: büyük metrik bandı ---------- */
.rw-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.rw-numbers > div {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2vw, 2rem);
  border-right: 1px solid var(--border-subtle);
}

.rw-numbers > div:last-child { border-right: 0; }

.rw-numbers strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.rw-numbers strong .rw-text-volt { color: var(--rw-volt); }

.rw-numbers span {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}

@media (max-width: 991px) {
  .rw-numbers { grid-template-columns: repeat(2, 1fr); }
  .rw-numbers > div:nth-child(2) { border-right: 0; }
  .rw-numbers > div:nth-child(1), .rw-numbers > div:nth-child(2) {
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 540px) {
  .rw-numbers { grid-template-columns: 1fr; }
  .rw-numbers > div {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .rw-numbers > div:last-child { border-bottom: 0; }
}

/* ---------- Section divider with label ---------- */
.rw-divider-label {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-block: var(--sp-12);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-tertiary);
}

.rw-divider-label::before,
.rw-divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.rw-divider-label-volt { color: var(--rw-volt); }
.rw-divider-label-volt::before,
.rw-divider-label-volt::after { background: color-mix(in oklab, var(--rw-volt) 30%, transparent); }

/* ---------- Page nav strip (bottom of every page) ---------- */
.rw-page-nav {
  padding-block: clamp(3rem, 6vw, 5rem);
  background: var(--surface-1);
  border-top: 1px solid var(--border-subtle);
}

.rw-page-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.rw-page-nav-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

.rw-page-nav-card:hover {
  border-color: var(--rw-volt);
  transform: translateY(-3px);
}

.rw-page-nav-card .rw-mono {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.rw-page-nav-card .rw-mono::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--rw-volt);
}

.rw-page-nav-card.next .rw-mono { justify-content: flex-end; }
.rw-page-nav-card.next .rw-mono::after {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--rw-volt);
  margin-left: var(--sp-2);
}
.rw-page-nav-card.next .rw-mono::before { display: none; }
.rw-page-nav-card.next { text-align: right; align-items: flex-end; }

.rw-page-nav-card h4 {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

.rw-page-nav-card p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin: 0;
  max-width: 38ch;
}

@media (max-width: 768px) {
  .rw-page-nav-grid { grid-template-columns: 1fr; }
  .rw-page-nav-card.next { text-align: left; align-items: flex-start; }
  .rw-page-nav-card.next .rw-mono { justify-content: flex-start; }
  .rw-page-nav-card.next .rw-mono::before { display: inline-block; }
  .rw-page-nav-card.next .rw-mono::after { display: none; }
}

/* ---------- Section intro: küçük sayı + başlık ---------- */
.rw-section-intro {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: baseline;
  margin-bottom: var(--sp-12);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--border-subtle);
}

.rw-section-intro-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--rw-volt);
}

.rw-section-intro-body h2 {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-3xl);
}

.rw-section-intro-body p {
  margin: 0;
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 56ch;
}

@media (max-width: 768px) {
  .rw-section-intro { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ---------- Tech stack pill grid ---------- */
.rw-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.rw-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface-1);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  transition: all var(--dur-base) var(--ease-out);
  cursor: default;
}

.rw-pill:hover {
  background: var(--rw-volt);
  color: white;
  border-color: var(--rw-volt);
  transform: translateY(-2px);
}

.rw-pill i,
.rw-pill::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rw-volt);
}

.rw-pill:hover::before { background: white; }
