/* ============================================================
   kayacuneyt.com — Wireframe styles
   Amaç: Faz 1 değerlendirmesi. Üretim kodu değil.
   Tüm renk/tipografi değerleri tokens.css'ten gelir.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--selection);
}

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

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
  color: var(--link-hover);
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

/* ---- Utility ---- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container-wide));
  margin-inline: auto;
}

.measure {
  max-width: var(--container-text);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-mono);
  line-height: var(--lh-mono);
  text-transform: uppercase;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 0.875em;
  height: 0.875em;
}

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

.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  letter-spacing: var(--tracking-display);
  font-weight: var(--fw-regular);
  color: var(--brand-strong);
  text-wrap: balance;
}

.h1 {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--fw-regular);
  color: var(--brand-strong);
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--fw-regular);
  color: var(--brand-strong);
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--fw-medium);
  color: var(--text);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 62ch;
  text-wrap: pretty;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.flow {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: var(--fs-sm);
}

.rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: calc(var(--space-4) * -10);
  z-index: var(--z-skip);
  background: var(--brand-strong);
  color: var(--text-inverse);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-4);
}

/* ---- Preview badge (wireframe only) ---- */
.preview-badge {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  z-index: var(--z-overlay);
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  background: var(--brand-strong);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  opacity: 0.85;
}

.preview-badge a {
  color: inherit;
}

/* ---- Header ---- */
.site-header {
  border-top: 4px solid var(--brand-strong);
  position: relative;
  z-index: var(--z-header);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 76px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: var(--brand-strong);
}

.brand-mark {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav a,
.nav-dropdown-toggle {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav-dropdown-toggle:hover,
.nav a[aria-current="page"],
.nav-dropdown-toggle.is-active {
  color: var(--brand-strong);
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.nav-item--dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  cursor: pointer;
}

.nav-dropdown-toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.nav-dropdown-toggle .icon {
  transition: transform var(--duration-fast) var(--ease-standard);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + var(--space-3));
  left: 0;
  z-index: var(--z-header);
  min-width: 180px;
  display: none;
  padding: var(--space-2);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.nav-item--dropdown[data-open="true"] .nav-dropdown {
  display: grid;
}

.nav-dropdown a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.nav-dropdown a:hover {
  background: var(--brand-soft);
}

.menu-toggle {
  display: none;
  appearance: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.menu-toggle-icon--close,
.menu-toggle[aria-expanded="true"] .menu-toggle-icon--open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon--close {
  display: inline-flex;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.theme-toggle-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon--sun {
  display: inline-flex;
}

[data-theme="dark"] .theme-toggle-icon--moon {
  display: none;
}

/* ---- Hero: rail variant ---- */
.hero-rail {
  padding-block: var(--section-space) var(--space-10);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: var(--grid-gap);
  align-items: end;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.hero-portrait {
  position: relative;
}

.hero-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  filter: saturate(0.92);
}

.hero-portrait figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 42px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-strong);
  background: var(--brand-strong);
  color: var(--text-on-brand);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    color var(--duration-fast) var(--ease-standard);
}

.button:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--text-on-brand);
}

.button--ghost {
  background: transparent;
  color: var(--brand-strong);
}

.button--ghost:hover {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

/* ---- Sections ---- */
.section {
  padding-block: var(--section-space);
}

.section--tight {
  padding-block: var(--space-10);
}

.section--surface {
  background: var(--bg-surface);
  border-block: 1px solid var(--border);
}

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

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-label::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand-strong);
  white-space: nowrap;
}

.arrow-link .icon {
  transition: transform var(--duration-fast) var(--ease-standard);
}

.arrow-link:hover .icon {
  transform: translateX(3px);
}

/* ---- Stream list ---- */
.stream {
  border-top: 1px solid var(--border);
}

.stream-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: var(--space-4);
  align-items: baseline;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background var(--duration-fast) var(--ease-standard);
}

.stream-item:hover {
  background: var(--bg-surface);
}

.stream-date {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--text-subtle);
  white-space: nowrap;
}

.stream-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.25;
  color: var(--brand-strong);
  text-wrap: balance;
}

.stream-desc {
  grid-column: 2 / 3;
  margin-top: calc(var(--space-2) * -1);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  max-width: 62ch;
}

.stream-kind {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  white-space: nowrap;
}

/* ---- Work rows ---- */
.work-list {
  border-top: 1px solid var(--border);
}

.work-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 150px;
  gap: var(--space-5);
  align-items: center;
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.work-year {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.work-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.work-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.25;
  color: var(--brand-strong);
}

.work-desc {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  max-width: 60ch;
}

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, var(--brand-soft), var(--bg-sunken));
  border: 1px solid var(--border);
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.work-row:hover .work-thumb img {
  transform: scale(1.03);
}

.work-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* ---- Podcast / player ---- */
.episode {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.episode-cover {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--prussian-700), var(--prussian-500));
  position: relative;
  overflow: hidden;
}

.episode-cover::after {
  content: "PODCAST";
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: #f7f2e8;
  opacity: 0.8;
}

.episode-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.player-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--brand-strong);
  color: var(--text-on-brand);
  cursor: pointer;
  flex: 0 0 auto;
}

.player-button:hover {
  background: var(--brand);
}

/* ---- Manifesto / note ---- */
.note {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
  padding-block: var(--space-10);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.note-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.note-body {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.35;
  color: var(--brand-strong);
  max-width: 34ch;
  text-wrap: balance;
}

/* ---- Rail layout (Home A) ---- */
.rail-layout {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  gap: var(--rail-gap);
  align-items: start;
  padding-block: var(--page-top) var(--section-space);
}

.rail {
  position: sticky;
  top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.rail-portrait {
  width: 112px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
}

.rail-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rail-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.1;
  color: var(--brand-strong);
}

.rail-role {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.rail-facts {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.rail-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rail-fact dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.rail-fact dd {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text);
}

.rail-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.rail-links a {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.rail-main {
  display: flex;
  flex-direction: column;
}

.rail-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--border);
}

.rail-intro .display {
  max-width: 14ch;
}

.rail-section {
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--border);
}

.rail-section:last-child {
  border-bottom: 0;
}

/* ---- Home B: editorial single column ---- */
.editorial-hero {
  padding-block: var(--section-space) var(--space-10);
  border-bottom: 1px solid var(--border);
}

.editorial-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: var(--grid-gap);
  align-items: center;
}

.editorial-hero .display {
  max-width: 13ch;
}

.editorial-hero .lead {
  margin-top: var(--space-5);
}

.editorial-hero-aside {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-left: var(--space-6);
  border-left: 1px solid var(--border);
}

.editorial-hero-aside img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.index-section {
  padding-block: var(--space-10);
  border-bottom: 1px solid var(--border);
}

.index-section:last-child {
  border-bottom: 0;
}

.index-head {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.index-number {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--brand);
}

.index-head .h2 {
  max-width: 22ch;
}

/* ---- About: narrative (A) ---- */
.about-hero {
  padding-block: var(--section-space) var(--space-9);
  border-bottom: 1px solid var(--border);
}

.about-hero .display {
  max-width: 11ch;
}

.about-hero .lead {
  margin-top: var(--space-5);
}

.about-portrait-wide {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 22%;
  border-radius: var(--radius-lg);
  margin-top: var(--space-8);
  filter: saturate(0.92);
}

.about-narrative {
  max-width: var(--container-text);
  padding-block: var(--section-space);
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-block h2 {
  max-width: 24ch;
}

.about-block p {
  color: var(--text-muted);
  max-width: 62ch;
}

.about-block p strong {
  color: var(--text);
  font-weight: var(--fw-semibold);
}

.pullquote {
  margin: 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.35;
  color: var(--brand-strong);
  max-width: 36ch;
}

/* ---- About: asymmetric (B) ---- */
.about-grid {
  display: grid;
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
  gap: var(--rail-gap);
  align-items: start;
  padding-block: var(--page-top) var(--section-space);
}

.about-aside {
  position: sticky;
  top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about-aside img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-facts {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

/* ---- Footer ---- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding-block: var(--space-10) var(--space-7);
  margin-top: var(--section-space);
}

.site-footer a {
  color: var(--footer-fg);
  text-decoration-color: var(--footer-line);
}

.site-footer a:hover {
  color: var(--paper-raised);
  text-decoration-color: currentColor;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(120px, 0.6fr));
  gap: var(--space-7);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-name {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: 1.1;
}

.footer-note {
  font-size: var(--fs-sm);
  color: var(--footer-muted);
  max-width: 36ch;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-muted);
  margin: 0 0 var(--space-3);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  font-size: var(--fs-sm);
}

.footer-col a {
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  align-items: baseline;
  margin-top: var(--space-8);
  padding-top: var(--space-4);
  border-top: 1px solid var(--footer-line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--footer-muted);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-grid,
  .editorial-hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    max-width: 420px;
  }

  .editorial-hero-aside {
    padding-left: 0;
    border-left: 0;
    max-width: 420px;
  }

  .about-aside {
    position: static;
    max-width: 420px;
  }

  .rail-layout {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .rail {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: var(--space-4);
  }

  .rail-portrait {
    width: 72px;
    grid-row: span 2;
  }

  .rail-facts,
  .rail-links {
    display: none;
  }

  .work-row {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .work-thumb {
    display: none;
  }
}

@media (max-width: 720px) {
  .header-inner {
    min-height: 68px;
  }

  .header-actions {
    margin-left: auto;
  }

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

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: var(--z-header);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4) var(--gutter);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

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

  .nav a,
  .nav-dropdown-toggle {
    width: 100%;
    padding: var(--space-3) 0;
    font-size: var(--fs-md);
    text-align: left;
    justify-content: space-between;
  }

  .nav a[aria-current="page"] {
    text-decoration: none;
  }

  .nav-item--dropdown {
    width: 100%;
  }

  .nav-dropdown {
    position: static;
    min-width: 0;
    padding: 0 0 var(--space-2) var(--space-4);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  body.nav-open {
    overflow: hidden;
  }

  .stream-item {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  .stream-date,
  .stream-kind {
    grid-column: 1;
  }

  .stream-desc {
    grid-column: 1;
    margin-top: 0;
  }

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

  .episode-cover {
    max-width: 120px;
  }

  .note,
  .index-head {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .work-row {
    grid-template-columns: 1fr;
  }

  .work-year {
    order: -1;
  }

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

/* ============================================================
   Blog + proje wireframe bileşenleri
   ============================================================ */

.page-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-block: var(--section-space) var(--space-9);
  border-bottom: 1px solid var(--border);
}

.page-head .display {
  max-width: 12ch;
}

.page-head .lead {
  margin-top: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.filter-bar a {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid transparent;
}

.filter-bar a:hover,
.filter-bar a[aria-current="page"] {
  color: var(--brand);
}

.filter-bar a[aria-current="page"] {
  border-color: var(--brand);
}

.filter-note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.year-block {
  padding-block: var(--space-9);
  border-bottom: 1px solid var(--border);
}

.year-block:last-child {
  border-bottom: 0;
}

.year-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

/* ---- Article ---- */
.article-shell {
  padding-block: var(--section-space);
}

.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 3px;
  pointer-events: none;
  background: transparent;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-7);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}

.breadcrumb [aria-current="page"] {
  max-width: 34ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: none;
}

.article-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--fw-regular);
  color: var(--brand-strong);
  text-wrap: balance;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.02em;
  color: var(--text-subtle);
}

.article-lead {
  margin-top: 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 100%;
}

.article-cover {
  margin-block: var(--space-8);
  aspect-ratio: 16 / 9;
  max-height: 520px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--brand-soft), var(--bg-sunken));
  overflow: hidden;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover--reading {
  max-width: 68ch;
  margin-inline: auto;
  border: 0;
  background: transparent;
}

.article-cover--reading img {
  border-radius: var(--radius-lg);
}

.article-layout {
  display: block;
}

.article-layout--with-toc {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 68ch);
  justify-content: center;
  align-items: start;
  gap: clamp(var(--space-7), 5vw, var(--space-10));
}

.article-toc {
  position: sticky;
  top: var(--space-7);
  max-height: calc(100vh - var(--space-9));
  overflow-y: auto;
  padding-block: var(--space-2);
}

.article-toc-title {
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.article-toc nav {
  display: grid;
  gap: var(--space-1);
  border-left: 1px solid var(--border);
}

.article-toc-link {
  display: block;
  padding: var(--space-1) var(--space-3);
  border-left: 2px solid transparent;
  margin-left: -1px;
  color: var(--text-subtle);
  font-size: var(--fs-xs);
  line-height: 1.45;
  text-decoration: none;
}

.article-toc-link--level-3 {
  padding-left: var(--space-5);
  font-size: 11px;
}

.article-toc-link:hover,
.article-toc-link.active {
  border-left-color: var(--accent);
  color: var(--brand);
}

.article-body {
  max-width: none;
}

.article-reading-column {
  max-width: 68ch;
  margin-inline: auto;
}

.article-layout--with-toc .article-reading-column {
  margin-inline: 0;
}

.prose {
  font-size: var(--fs-md);
  line-height: 1.78;
  color: var(--text);
}

.prose > * + * {
  margin-top: var(--space-5);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  font-weight: var(--fw-regular);
  color: var(--brand-strong);
  margin-top: var(--space-9);
  text-wrap: balance;
}

.prose h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  line-height: var(--lh-heading);
  font-weight: var(--fw-medium);
  color: var(--text);
  margin-top: var(--space-7);
}

.prose p {
  color: var(--text);
}

.prose ul,
.prose ol {
  padding-left: var(--space-6);
  display: grid;
  gap: var(--space-2);
}

.prose blockquote {
  margin: var(--space-8) 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--accent);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.5;
  color: var(--brand-strong);
}

.prose figure {
  margin: var(--space-8) 0;
}

.prose .figure-box {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--brand-soft), var(--bg-sunken));
}

.prose figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-9);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.article-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
  margin-top: var(--space-9);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}

.article-tools a,
.article-copy {
  color: var(--brand);
  font: inherit;
  text-decoration: none;
}

.article-copy {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.article-tools a:hover,
.article-copy:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article-copy-status {
  color: var(--text-subtle);
}

.article-signoff {
  display: grid;
  gap: var(--space-1);
  margin-top: var(--space-8);
  padding: var(--space-5) 0;
  border-block: 1px solid var(--border);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--brand);
  text-decoration: none;
}

.tag::before {
  content: "#";
  color: var(--text-subtle);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.article-nav a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.article-nav a:last-child {
  text-align: right;
}

.article-nav .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.article-nav .title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.3;
  color: var(--brand-strong);
}

/* ---- Project detail (article sibling) ---- */
.project-article .article-header {
  max-width: 76ch;
}

.project-article .article-title {
  max-width: 18ch;
}

.project-article .article-cover {
  margin-bottom: var(--space-8);
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  margin: 0 0 var(--space-8);
  padding-block: var(--space-5);
  border-block: 1px solid var(--border);
}

.project-facts dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.project-facts dd {
  margin: var(--space-1) 0 0;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--text);
}

.project-prose {
  max-width: none;
}

.article-related {
  margin-top: var(--space-9);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.article-related .h2 {
  margin-bottom: var(--space-5);
}

.project-section {
  max-width: none;
  padding-block: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.project-section:last-child {
  border-bottom: 0;
}

.project-section h2 {
  margin-bottom: var(--space-4);
}

.project-section p {
  color: var(--text-muted);
  max-width: 62ch;
}

.project-gallery-section {
  padding-bottom: 0;
}

.project-carousel {
  position: relative;
  margin-top: var(--space-6);
}

.project-carousel-viewport {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--brand-soft), var(--bg-sunken));
}

.project-carousel .hs-carousel-body {
  display: flex;
  flex-wrap: nowrap;
  transition: transform var(--duration-normal) var(--ease-standard);
}

.project-carousel .hs-carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.project-gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-gallery-item figcaption {
  position: absolute;
  right: var(--space-3);
  bottom: var(--space-3);
  padding: var(--space-1) var(--space-2);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: var(--radius-xs);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
}

.project-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.project-carousel-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--brand);
  cursor: pointer;
}

.project-carousel-button:hover {
  background: var(--brand);
  color: var(--text-inverse);
}

.project-carousel-button.disabled,
.project-carousel-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.project-carousel-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-subtle);
  text-align: center;
}

.live-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand);
}

@media (max-width: 720px) {
  .article-layout--with-toc {
    display: block;
  }

  .article-toc {
    position: static;
    max-height: none;
    margin-bottom: var(--space-7);
  }

  .article-toc nav {
    max-height: 12rem;
    overflow-y: auto;
  }

  .article-layout--with-toc .article-reading-column {
    margin-inline: auto;
  }

  .preview-badge {
    position: static;
    width: fit-content;
    margin: var(--space-4) auto 0;
    opacity: 0.7;
  }

  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-carousel-hint {
    max-width: 16ch;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav a:last-child {
    text-align: left;
  }

  .filter-note {
    margin-left: 0;
    flex-basis: 100%;
  }
}

@media (max-width: 480px) {
  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-gallery-item {
    aspect-ratio: 4 / 3;
  }
}

.audio-native {
  width: 100%;
  margin-top: var(--space-4);
  accent-color: var(--brand);
}

/* ---- Forms ---- */
.form {
  display: grid;
  gap: var(--space-4);
  max-width: 620px;
}

.field {
  display: grid;
  gap: var(--space-2);
}

.field label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text);
  font: inherit;
  padding: var(--space-3) var(--space-4);
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.field-help {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.checkbox {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}

.checkbox input {
  margin-top: 0.35em;
}

.form-error {
  color: #a33224;
  font-size: var(--fs-sm);
}

.notice {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
}

.notice--success {
  border-left-color: var(--sage);
}

/* ---- Podcast player / compact episode card ---- */
.podcast-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
}
.podcast-card-layout { display: flex; align-items: flex-start; gap: var(--space-5); }
.podcast-card-cover { flex: 0 0 96px; width: 96px; height: 96px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--brand-soft); }
.podcast-card-cover img, .podcast-card-cover-fallback { display: block; width: 100%; height: 100%; object-fit: cover; }
.podcast-card-cover-fallback { display: grid; place-items: center; color: var(--brand-strong); font-family: var(--font-display); font-size: var(--fs-lg); }
.podcast-card-content { flex: 1; min-width: 0; }
.podcast-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); color: var(--brand-strong); font: 600 11px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.podcast-card-meta time, .podcast-card-meta span:last-child { color: var(--text-muted); font-weight: 500; }
.podcast-card-title { margin-top: var(--space-1); max-width: 34ch; color: var(--text); font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; line-height: 1.2; }
.podcast-card-excerpt { display: -webkit-box; overflow: hidden; margin-top: var(--space-2); color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.podcast-player-bar { display: flex; align-items: center; gap: var(--space-2); min-width: 0; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border); }
.podcast-player-button, .podcast-player-option { appearance: none; border: 0; cursor: pointer; }
.podcast-player-button--play { display: inline-grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-strong); color: var(--text-inverse); }
.podcast-player-button--play:hover { background: var(--brand); }
.podcast-player-button svg { width: 17px; height: 17px; }
.podcast-player-button .player-icon-play { transform: translateX(1px); }
.podcast-player-skip { appearance: none; flex: 0 0 auto; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; padding: var(--space-1); font: 500 11px var(--font-mono); }
.podcast-player-skip:hover, .podcast-player-option:hover { color: var(--text); background: var(--brand-soft); }
.podcast-player-progress { display: flex; align-items: center; flex: 1 1 auto; min-width: 100px; gap: var(--space-2); }
.podcast-player-time { flex: 0 0 auto; color: var(--text-subtle); font: 10px var(--font-mono); white-space: nowrap; }
.podcast-player-seek { width: 100%; height: 5px; margin: 0; accent-color: var(--brand-strong); cursor: pointer; }
.podcast-player-seek:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.podcast-player-option { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; min-width: 36px; min-height: 30px; padding: var(--space-1) var(--space-2); border-radius: var(--radius-xs); background: var(--brand-soft); color: var(--text-muted); font: 500 11px var(--font-mono); }
.podcast-player-mute { background: transparent; border-radius: var(--radius-full); }
.podcast-player-mute svg { width: 16px; height: 16px; }
.player-icon-pause, .player-icon-volume-off { display: none; }
.podcast-card[data-playing="true"] .player-icon-play { display: none; }
.podcast-card[data-playing="true"] .player-icon-pause { display: inline-flex; }
.podcast-card[data-muted="true"] .player-icon-volume { display: none; }
.podcast-card[data-muted="true"] .player-icon-volume-off { display: inline-flex; }
.podcast-player-rate { position: relative; }
.podcast-player-rate .hs-dropdown-menu { position: absolute; right: 0; bottom: calc(100% + var(--space-2)); z-index: 20; display: grid; min-width: 70px; gap: 2px; padding: var(--space-1); border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-surface); box-shadow: var(--shadow-md); }
.podcast-player-rate .hs-dropdown-menu.hidden { display: none; }
.podcast-player-rate-option { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; padding: var(--space-2); text-align: left; font: 11px var(--font-mono); }
.podcast-player-rate-option:hover, .podcast-player-rate-option:focus-visible { background: var(--brand-soft); color: var(--text); }
.podcast-card-link { display: inline-flex; margin-top: var(--space-3); }
@media (max-width: 720px) {
  .podcast-card { padding: var(--space-4); }
  .podcast-card-layout { gap: var(--space-4); }
  .podcast-card-cover { flex-basis: 80px; width: 80px; height: 80px; }
  .podcast-card-title { font-size: var(--fs-lg); }
  .podcast-player-bar { flex-wrap: wrap; }
  .podcast-player-progress { order: 5; flex-basis: 100%; }
}
@media (max-width: 460px) {
  .podcast-card-layout { flex-direction: column; }
  .podcast-card-cover { width: 84px; height: 84px; }
  .podcast-player-bar { gap: var(--space-1); }
  .podcast-player-skip { font-size: 10px; }
  .podcast-player-progress { order: 0; min-width: 0; }
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  padding-block: var(--section-space);
}

.gallery-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: inherit;
  text-decoration: none;
}

.gallery-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--brand-soft), var(--bg-sunken));
}

.gallery-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.gallery-card:hover .gallery-card-image img {
  transform: scale(1.02);
}

.gallery-card-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.gallery-card-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  line-height: 1.25;
  color: var(--brand-strong);
}

.gallery-card-caption {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.gallery-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: var(--rail-gap);
  align-items: start;
  padding-block: var(--section-space);
}

.gallery-visual {
  position: sticky;
  top: var(--space-8);
}

.gallery-visual img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.gallery-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.gallery-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: var(--lh-heading);
  letter-spacing: var(--tracking-heading);
  color: var(--brand-strong);
}

.gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
}

.gallery-caption {
  color: var(--text-muted);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

.comment-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.comment {
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.comment-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: baseline;
}

.comment-author {
  font-weight: var(--fw-semibold);
  color: var(--text);
  font-size: var(--fs-sm);
}

.comment-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
}

.comment-body {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.auth-prompt {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

.auth-prompt p {
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.auth-prompt .hero-actions {
  margin-top: var(--space-3);
}

@media (max-width: 900px) {
  .gallery-detail {
    grid-template-columns: 1fr;
  }

  .gallery-visual {
    position: static;
  }
}

@media (max-width: 640px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Project showcase / case study ---- */
.project-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-width: 76ch;
}

.project-header .article-title {
  max-width: 18ch;
}

.project-showcase {
  max-width: 960px;
  margin: var(--space-8) auto var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-sunken);
  box-shadow: 0 18px 50px rgba(10, 26, 38, 0.12);
}

.project-showcase-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.project-showcase img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
}

.project-showcase-hint {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(247, 242, 232, 0.3);
  border-radius: var(--radius-xs);
  background: rgba(10, 26, 38, 0.82);
  color: #f7f2e8;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.project-case-study {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(var(--space-8), 7vw, var(--space-11));
  align-items: start;
}

.project-sidebar {
  position: sticky;
  top: var(--space-7);
}

.project-sidebar .project-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin: 0;
  padding-block: 0;
  border-block: 0;
}

.project-sidebar .project-facts dd {
  margin-top: var(--space-1);
}

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.project-tech-badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-sunken);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  line-height: 1.4;
}

.project-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-7);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-xs);
  background: var(--brand);
  color: var(--text-inverse);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.03em;
  text-decoration: none;
}

.project-cta:hover {
  background: var(--brand-strong);
  color: var(--text-inverse);
}

.project-sections {
  min-width: 0;
}

.project-sections .project-section {
  padding-block: 0 var(--space-9);
  border-bottom: 0;
}

.project-sections .project-section + .project-section {
  padding-top: var(--space-9);
}

.project-sections .project-section h2 {
  margin-bottom: var(--space-3);
}

.project-sections .project-section p {
  max-width: 62ch;
}

.project-nav {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-11);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.project-nav a {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--brand);
  text-decoration: none;
}

.project-nav a:not(.project-nav-back) {
  text-align: right;
}

.project-nav span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.project-nav strong {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: 1.35;
}

.project-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  overflow-y: auto;
  padding: var(--space-6);
  background: rgba(10, 26, 38, 0.92);
}

.project-lightbox-panel {
  width: min(100%, 1080px);
  margin: auto;
  padding: var(--space-5);
  border: 1px solid rgba(247, 242, 232, 0.18);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.project-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.project-lightbox-head h2 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-regular);
  color: var(--brand-strong);
}

.project-lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
}

.project-lightbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.project-lightbox-grid figure {
  margin: 0;
}

.project-lightbox-grid img {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--bg-sunken);
}

.project-lightbox-grid figcaption {
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-subtle);
}

@media (max-width: 800px) {
  .project-case-study {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .project-sidebar {
    position: static;
  }

  .project-sidebar .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-cta {
    margin-top: var(--space-5);
  }

  .project-nav {
    grid-template-columns: 1fr;
  }

  .project-nav a:not(.project-nav-back) {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .project-showcase {
    margin-top: var(--space-6);
    margin-bottom: var(--space-8);
    border-radius: var(--radius-md);
  }

  .project-sidebar .project-facts,
  .project-lightbox-grid {
    grid-template-columns: 1fr;
  }

  .project-lightbox {
    padding: var(--space-3);
  }

  .project-lightbox-panel {
    padding: var(--space-4);
  }
}

/* ---- Shared About-inspired detail split ---- */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: var(--rail-gap);
  align-items: start;
}

.detail-main {
  min-width: 0;
}

.detail-rail {
  position: sticky;
  top: var(--space-8);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.detail-rail-intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.detail-rail-intro .article-title {
  max-width: 14ch;
  font-size: var(--fs-2xl);
  line-height: 1.12;
  letter-spacing: var(--tracking-heading);
}

.detail-rail-intro .article-lead {
  max-width: 32ch;
  font-size: var(--fs-md);
  line-height: 1.65;
}

.article-rail .article-cover--rail {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: none;
  margin: 0;
  border: 0;
  background: transparent;
}

.article-cover--rail img {
  border-radius: var(--radius-md);
}

.detail-rail .article-toc {
  position: static;
  max-height: 20rem;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.detail-grid--article .article-reading-column {
  max-width: 68ch;
  margin-inline: 0;
}

.detail-grid--article .article-tools,
.detail-grid--article .article-signoff,
.detail-grid--article .article-related {
  max-width: 68ch;
}

.detail-grid--project {
  margin-top: var(--space-2);
}

.detail-grid--project .project-rail {
  order: 2;
}

.detail-grid--project .project-main {
  order: 1;
}

.detail-grid--project .project-showcase {
  max-width: none;
  margin: 0;
  border-radius: var(--radius-md);
  box-shadow: 0 14px 36px rgba(10, 26, 38, 0.1);
}

.detail-grid--project .project-showcase img {
  aspect-ratio: 16 / 10;
}

.detail-grid--project .project-facts {
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin: 0;
  padding-block: var(--space-5);
  border-block: 1px solid var(--border);
}

.detail-grid--project .project-cta {
  align-self: flex-start;
  margin-top: 0;
}

.detail-grid--project .project-sections {
  max-width: 68ch;
}

.detail-grid--project .project-sections .project-section {
  padding-block: 0 var(--space-9);
  border-bottom: 0;
}

.detail-grid--project .project-sections .project-section + .project-section {
  padding-top: var(--space-9);
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    gap: var(--space-7);
  }
}

@media (max-width: 720px) {
  .detail-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
  }

  .detail-rail,
  .detail-grid--project .project-rail,
  .detail-grid--project .project-main {
    position: static;
    order: 0;
    width: 100%;
  }

  .detail-rail {
    gap: var(--space-5);
  }

  .detail-rail-intro .article-title {
    max-width: 18ch;
    font-size: var(--fs-xl);
  }

  .detail-grid--article .detail-rail,
  .detail-grid--project .detail-rail {
    order: -1;
  }

  .article-rail .article-cover--rail {
    max-width: 30rem;
    aspect-ratio: 16 / 10;
  }

  .detail-grid--project .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid--project .project-cta {
    margin-top: var(--space-1);
  }
}

@media (max-width: 480px) {
  .detail-grid--project .project-facts {
    grid-template-columns: 1fr;
  }
}
