/* ────────────────────────────────────────────────
   ERMAN DEMIREL — Design System
   Palette: ink-black / bone / brass (museum vibe)
   Type: Fraunces (display) · Inter (body) · JetBrains Mono (mono)
   ──────────────────────────────────────────────── */

:root {
  --ink-black: #0B0B0D;
  --ink-deep: #16161A;
  --ink-line: #26262B;
  --ink-line-strong: #3A3A40;
  --bone: #F2EDE4;
  --bone-muted: #9C968B;
  --bone-faint: #5C5A55;
  --brass: #00CC56;
  --brass-deep: #007A33;
  --brass-glow: rgba(0, 204, 86, 0.35);
  --pink: #EC4899;
  --pink-deep: #BE185D;
  --pink-glow: rgba(236, 72, 153, 0.4);
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html { scroll-behavior: smooth; }
body { font-feature-settings: "ss01", "ss02"; }

::selection { background: var(--brass); color: var(--ink-black); }

/* Scrollbar — minimal */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink-black); }
::-webkit-scrollbar-thumb { background: var(--ink-line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-line-strong); }

/* ───── LOADER ───── */
#loader { transition: opacity 0.8s ease, visibility 0.8s ease; }
#loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-bar { width: 180px; height: 1px; background: var(--ink-line); position: relative; overflow: hidden; }
.loader-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0%; background: var(--brass); transition: width 0.4s ease-out; }

/* ───── NAV ───── */
.nav-floating { transition: transform 0.5s ease, opacity 0.5s ease; }
.nav-floating.nav-hidden { transform: translateY(-120%); opacity: 0; }

.glass-nav {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
}

.logo-mark { color: var(--brass); transition: transform 0.4s ease; }
a:hover .logo-mark { transform: rotate(45deg); }

/* Logo image */
.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  transition: opacity 0.3s ease, transform 0.4s ease;
}
.logo-link:hover .logo-img {
  opacity: 0.85;
  transform: translateY(-1px);
}
.logo-link:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
  border-radius: 8px;
}
@media (max-width: 640px) {
  .logo-img { height: 36px; }
}

.nav-link {
  position: relative;
  transition: color 0.2s ease;
  cursor: pointer;
}
.nav-link:hover { color: var(--bone); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--brass);
  transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

.btn-brass {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--brass);
  color: var(--ink-black);
  border-radius: 9999px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}
.btn-brass:hover { background: var(--bone); transform: translateY(-1px); }
.btn-brass:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.btn-brass-large {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--brass);
  color: var(--ink-black);
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: background 0.2s ease;
  cursor: pointer;
}
.btn-brass-large:hover { background: var(--bone); }
.btn-brass-large:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

/* ───── HERO ───── */
#hero-canvas { display: block; }

/* ───── HERO PILLARS (green glow, behind model) ───── */
.hero-pillars {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  perspective: 1400px;
}

.hero-pillar {
  position: absolute;
  background: #00CC56;
  box-shadow:
    0 0 45px 6px rgba(0, 204, 86, 0.32),
    0 0 110px 24px rgba(0, 204, 86, 0.1);
  border-radius: 2px;
  --scroll-y: 0px;
  --mouse-x: 0;
  --mouse-y: 0;
  --idle-x: 0;
  --idle-y: 0;
  --idle-rot: 0;
  --depth: 30;
  --tilt-y: 8;
  --tilt-x: 4;
  transform:
    translate3d(
      calc(var(--mouse-x) * var(--depth) * 1px + var(--idle-x) * 1px),
      calc(var(--scroll-y) + var(--mouse-y) * var(--depth) * 0.4px + var(--idle-y) * 1px),
      0
    )
    rotateY(calc(var(--mouse-x) * var(--tilt-y) * 1deg + var(--idle-rot) * 1deg))
    rotateX(calc(var(--mouse-y) * var(--tilt-x) * -1deg));
  transform-style: preserve-3d;
  transform-origin: center center;
  will-change: transform;
}

/* Pillar 1 — taller, slightly behind model's left side (shifted 60px left total) */
.hero-pillar-1 {
  width: 78px;
  height: 360px;
  right: calc(32% + 60px);
  top: 36%;
  --depth: 45;
  --tilt-y: 10;
}

/* Pillar 2 — shorter, behind model's upper-right area (shifted 180px left total) */
.hero-pillar-2 {
  width: 64px;
  height: 280px;
  right: calc(13% + 180px);
  top: 22%;
  --depth: 28;
  --tilt-y: 7;
}

@media (max-width: 768px) {
  .hero-pillar-1 { width: 50px; height: 230px; right: calc(38% + 60px); top: 38%; }
  .hero-pillar-2 { width: 42px; height: 180px; right: calc(8% + 180px); top: 28%; }
}

/* Vizyon pillars — shifted 240px to the left vs hero */
#vizyon .hero-pillar-1 { right: calc(32% + 300px); }
#vizyon .hero-pillar-2 { right: calc(13% + 420px); }

/* Vizyon section eyebrow — 100px left + 50px above left pillar */
.vizyon-eyebrow {
  position: absolute;
  /* pillar-1: right calc(32% + 300px), width 78px → left edge at calc(32% + 378px)
     label's right edge = pillar left + 100px → right: calc(32% + 478px) */
  right: calc(32% + 478px);
  /* pillar-1 top: 36% → label sits 50px above; subtract ~20px label height */
  top: calc(36% - 70px);
  z-index: 5;
  white-space: nowrap;
  pointer-events: none;
}
@media (max-width: 768px) {
  /* Pillars hidden on mobile, so hide the eyebrow too (would be unanchored) */
  .vizyon-eyebrow { display: none; }
}

@media (max-width: 768px) {
  #vizyon .hero-pillar-1 { right: calc(38% + 300px); }
  #vizyon .hero-pillar-2 { right: calc(8% + 420px); }
}

/* Subtle neon-hum flicker — mostly steady with brief glow dips */
.hero-title-bulb {
  animation: title-neon-hum 5.2s linear infinite;
}

@keyframes title-neon-hum {
  /* Long steady-bright periods */
  0%, 7%, 11%, 36%, 38.5%, 39.5%, 70%, 74%, 100% {
    text-shadow:
      0 0 6px rgba(0, 204, 86, 0.5),
      0 0 18px rgba(0, 204, 86, 0.32),
      0 0 45px rgba(0, 204, 86, 0.18);
  }
  /* Short glow dips — color stays brass, only halo dims briefly */
  9%, 72% {
    text-shadow:
      0 0 2px rgba(0, 204, 86, 0.22),
      0 0 6px rgba(0, 204, 86, 0.12);
  }
  /* Double-tap micro-flicker */
  37% {
    text-shadow:
      0 0 3px rgba(0, 204, 86, 0.28),
      0 0 8px rgba(0, 204, 86, 0.15);
  }
  39% {
    text-shadow:
      0 0 1.5px rgba(0, 204, 86, 0.18),
      0 0 4px rgba(0, 204, 86, 0.1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-bulb {
    animation: none;
    text-shadow:
      0 0 6px rgba(0, 204, 86, 0.4),
      0 0 16px rgba(0, 204, 86, 0.25);
  }
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-photo img {
  position: absolute;
  height: 96%;
  width: auto;
  right: 14%;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  animation: hero-portrait-float 9s ease-in-out infinite;
  will-change: transform, mask-image;
  /* Initial: bottom 20% fades gradually to hide the cropped feet edge.
     JS overrides this on scroll to wipe image from bottom upward. */
  -webkit-mask-image: linear-gradient(to top, transparent 0%, transparent 0%, black 20%, black 100%);
  mask-image: linear-gradient(to top, transparent 0%, transparent 0%, black 20%, black 100%);
}

@keyframes hero-portrait-float {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translateY(calc(-50% - 8px)); }
}

.hero-vignette {
  background: transparent;
}

/* Mobile: portrait shrinks, lower opacity, text stays readable */
@media (max-width: 768px) {
  .hero-photo img {
    height: 70%;
    right: -8%;
    opacity: 0.45;
    object-fit: contain;
  }
  /* Vizyon: smaller portrait anchored top-right so it doesn't sit behind text */
  #vizyon .hero-photo img {
    height: 42%;
    width: auto;
    right: 3%;
    top: calc(6% - 70px);
    transform: translateY(0);
    opacity: 0.7;
    object-fit: contain;
    animation: vizyon-mobile-portrait-float 9s ease-in-out infinite;
  }
  /* Compact paragraph + shift content slightly down so it sits clearly below the photo */
  #vizyon p { font-size: 0.85rem; line-height: 1.6; }
  #vizyon > .absolute.inset-0 > .text-left { margin-top: 2.25rem; }
}

@keyframes vizyon-mobile-portrait-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

[data-reveal] { will-change: transform, opacity; }

.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--bone-faint), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(1.4); opacity: 1; }
}

/* ───── REVEAL TEXT (scroll trigger) ───── */
.reveal-text { opacity: 0; transform: translateY(30px); }
.reveal-text.is-visible { opacity: 1; transform: translateY(0); transition: opacity 0.8s ease, transform 0.8s ease; }

/* ───── PROJECT CARDS ───── */
.project-card { display: block; }
.project-visual {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--ink-deep);
  border: 1px solid var(--ink-line);
  transition: border-color 0.4s ease;
}
/* Default fallback aspect — overridden per card via Tailwind classes */
.project-visual:not([class*="aspect-"]) { aspect-ratio: 4 / 5; }
.project-card:hover .project-visual { border-color: var(--brass); }

.project-visual-inner {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .project-visual-inner { transform: scale(1.04); }

.project-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 40%, var(--ink-black) 95%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.project-card:hover .project-visual::after { opacity: 0.6; }

.project-meta { padding: 1.25rem 0.25rem 0; }

/* ───── PROJECT MARKS (placeholder visuals) ───── */
/* STRATA — stratified lines */
.strata-mark {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 60%;
  max-width: 280px;
}
.strata-line {
  height: 4px;
  background: var(--brass);
  opacity: 0.85;
  transform-origin: left;
}
.strata-line:nth-child(1) { width: 100%; opacity: 1; }
.strata-line:nth-child(2) { width: 70%; opacity: 0.6; background: var(--bone); }
.strata-line:nth-child(3) { width: 90%; opacity: 0.8; }
.strata-line:nth-child(4) { width: 45%; opacity: 0.4; background: var(--bone-muted); }

/* HALO — concentric rings */
.halo-ring, .halo-ring-inner {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--brass);
}
.halo-ring { width: 220px; height: 220px; opacity: 0.5; }
.halo-ring-inner { width: 80px; height: 80px; background: radial-gradient(circle, var(--brass) 0%, transparent 70%); border: none; box-shadow: 0 0 60px var(--brass-glow); }

/* MURMUR — soft wave lines */
.murmur-frame { width: 70%; max-width: 280px; display: flex; flex-direction: column; gap: 24px; }
.murmur-line {
  height: 2px;
  background: linear-gradient(to right, transparent, var(--bone) 30%, var(--bone) 70%, transparent);
  border-radius: 2px;
  opacity: 0.7;
}
.murmur-line:nth-child(2) { opacity: 1; background: linear-gradient(to right, transparent, var(--brass) 50%, transparent); }

/* VESPERTINE — handled in HTML with big V */

/* LIMINAL — single square aperture */
.liminal-square {
  width: 160px;
  height: 160px;
  border: 1px solid var(--brass);
  position: relative;
}
.liminal-square::before, .liminal-square::after {
  content: "";
  position: absolute;
  background: var(--brass);
}
.liminal-square::before { left: 50%; top: 0; bottom: 0; width: 1px; opacity: 0.4; }
.liminal-square::after { top: 50%; left: 0; right: 0; height: 1px; opacity: 0.4; }

/* ATELIER — 3x3 dot grid */
.atelier-dots {
  display: grid;
  grid-template-columns: repeat(3, 16px);
  gap: 24px;
}
.atelier-dots span {
  width: 16px;
  height: 16px;
  background: var(--brass);
  border-radius: 50%;
  opacity: 0.7;
}
.atelier-dots span:nth-child(odd) { background: var(--bone); opacity: 0.9; }
.atelier-dots span:nth-child(5) { background: var(--brass); opacity: 1; box-shadow: 0 0 24px var(--brass-glow); }

/* ───── MANIFESTO STATS — Compact, aligned with paragraph column ───── */
.stats-wrap {
  margin: 3.5rem 0 0;
  max-width: 48rem; /* matches paragraph max-w-3xl */
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-line);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  overflow: hidden;
}

.stat-cell {
  background: var(--ink-black);
  padding: 2rem 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
  transition: background 0.4s ease;
}
.stat-cell:hover { background: var(--ink-deep); }

.stat-figure {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--bone);
  letter-spacing: -0.04em;
  position: relative;
  display: inline-flex;
  align-items: flex-start;
}
.stat-figure-plus {
  font-size: 0.3em;
  color: var(--brass);
  font-weight: 400;
  margin-left: 3px;
  margin-top: 0.4em;
}

.stat-key {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brass);
}

.stat-rule {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--brass);
  opacity: 0.4;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}
.stat-cell:hover .stat-rule {
  width: 48px;
  opacity: 1;
}

.stat-note {
  font-size: 0.7rem;
  color: var(--bone-muted);
  font-weight: 300;
  line-height: 1.45;
  max-width: 180px;
}

@media (max-width: 768px) {
  .stats-wrap { margin-top: 2.5rem; max-width: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-cell { padding: 2rem 1.5rem 1.75rem; gap: 1rem; }
  .stat-figure { font-size: 3rem; }
}

/* ───── WORKSHOP — Light bento section (replaces editorial list) ───── */
.workshop-section {
  background: #e8e8e8;
  color: #0B0B0D;
}

.workshop-section.is-dark {
  background: var(--ink-black);
  color: var(--bone);
}
.workshop-section.is-dark .workshop-title-soft { color: #4a4a4a; }
.workshop-section.is-dark .workshop-title-dark { color: var(--bone); }

.workshop-eyebrow {
  color: #00CC56;
}

.workshop-title {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--brass);
  font-size: clamp(1.4rem, 4.6vw, 3.75rem);
}
.workshop-title span { display: block; margin-bottom: 0.15em; }
.workshop-title span:last-child { margin-bottom: 0; }
.workshop-title-soft {
  color: #B7B7B7;
}
.workshop-title-dark {
  color: #1A1A1A;
}
.workshop-title-indent {
  padding-left: 2ch;
}
@media (max-width: 768px) {
  .workshop-title { font-size: clamp(1.05rem, 5vw, 2rem); line-height: 1.05; letter-spacing: -0.03em; }
  .workshop-title-indent { padding-left: 0; }
  .workshop-title span { margin-bottom: 0.08em; }
}

/* ───── BENTO GRID ───── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 78px;
  gap: 18px;
  margin-bottom: 24px;
}

.bento-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  outline: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-box:hover { transform: translateY(-3px); }
.bento-box:focus-visible {
  outline: 2px solid #0B0B0D;
  outline-offset: 4px;
}

/* Bento layout — 7 boxes, asymmetric like the reference */
.bento-box-1 { grid-column: 1 / 6;  grid-row: 1 / 3; }
.bento-box-2 { grid-column: 6 / 10; grid-row: 1 / 4; }
.bento-box-3 { grid-column: 10 / 13; grid-row: 1 / 4; }
.bento-box-4 { grid-column: 1 / 6;  grid-row: 3 / 7; }
.bento-box-5 { grid-column: 6 / 13; grid-row: 4 / 7; }
.bento-box-6 { grid-column: 1 / 7;  grid-row: 7 / 9; }
.bento-box-7 { grid-column: 7 / 13; grid-row: 7 / 9; }

/* ───── ARCHIVE CUSTOM PROJECT GROUPS ───── */
.custom-projects-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}
.custom-group { display: grid; gap: 18px; }
.custom-group .bento-box { border-radius: 8px; position: relative; overflow: hidden; }

/* Single template — 400×300 standart */
.custom-group-single {
  grid-template-columns: minmax(0, 400px);
  justify-content: center;
}
.custom-group-single .bento-box { aspect-ratio: 4 / 3; }

/* Pair2 template — Atelier+Pulse düzeni: iki geniş landscape */
.custom-group-pair2 { grid-template-columns: 1fr 1fr; }
.custom-group-pair2 .bento-box { aspect-ratio: 16 / 9; }

/* Bento5 template — Strata+Halo+Murmur+Vespertine+Liminal düzeni */
.custom-group-bento5 {
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 110px;
}
.custom-group-bento5 .bento-box[data-slot="a"] { grid-column: 1 / 6;  grid-row: 1 / 3; }
.custom-group-bento5 .bento-box[data-slot="b"] { grid-column: 6 / 10; grid-row: 1 / 4; }
.custom-group-bento5 .bento-box[data-slot="c"] { grid-column: 10 / 13; grid-row: 1 / 4; }
.custom-group-bento5 .bento-box[data-slot="d"] { grid-column: 1 / 6;  grid-row: 3 / 7; }
.custom-group-bento5 .bento-box[data-slot="e"] { grid-column: 6 / 13; grid-row: 4 / 7; }

/* Box backgrounds — solid brass with subtle gradient variations per project */
.bento-box-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.bento-bg-strata     { background: linear-gradient(135deg, #00CC56 0%, #00B34A 100%); }
.bento-bg-halo       { background: linear-gradient(160deg, #00D158 0%, #009E40 100%); }
.bento-bg-murmur     { background: linear-gradient(120deg, #00C754 0%, #00AC47 100%); }
.bento-bg-vespertine { background: linear-gradient(140deg, #00CB55 0%, #008F39 100%); }
.bento-bg-liminal    { background: linear-gradient(180deg, #00D058 0%, #00A848 100%); }
.bento-bg-atelier    { background: linear-gradient(115deg, #00C552 0%, #00B649 100%); }
.bento-bg-pulse      { background: linear-gradient(155deg, #00CB55 0%, #009D40 100%); }

/* Pulse — audio waveform marks */
.bento-bg-pulse .pulse-bars {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 60%;
}
.bento-bg-pulse .pulse-bars span {
  width: 4px;
  background: rgba(11, 11, 13, 0.35);
  border-radius: 2px;
  display: block;
}
.bento-bg-pulse .pulse-bars span:nth-child(1) { height: 40%; }
.bento-bg-pulse .pulse-bars span:nth-child(2) { height: 72%; }
.bento-bg-pulse .pulse-bars span:nth-child(3) { height: 92%; background: rgba(255, 255, 255, 0.65); }
.bento-bg-pulse .pulse-bars span:nth-child(4) { height: 58%; }
.bento-bg-pulse .pulse-bars span:nth-child(5) { height: 100%; background: #0B0B0D; }
.bento-bg-pulse .pulse-bars span:nth-child(6) { height: 48%; background: rgba(255, 255, 255, 0.55); }
.bento-bg-pulse .pulse-bars span:nth-child(7) { height: 78%; }
.bento-bg-pulse .pulse-bars span:nth-child(8) { height: 32%; }

/* Project mark visibility on brass — use dark/transparent overlays */
.bento-box-bg .strata-mark .strata-line { background: rgba(11, 11, 13, 0.35); }
.bento-box-bg .strata-mark .strata-line:nth-child(2) { background: rgba(255, 255, 255, 0.45); }
.bento-box-bg .strata-mark .strata-line:nth-child(4) { background: rgba(11, 11, 13, 0.2); }

.bento-box-bg .halo-ring        { border-color: rgba(11, 11, 13, 0.35); width: 56%; height: 56%; }
.bento-box-bg .halo-ring-inner  { background: radial-gradient(circle, rgba(255,255,255,0.6) 0%, transparent 70%); box-shadow: 0 0 50px rgba(255,255,255,0.4); width: 22%; height: 22%; }

.bento-box-bg .murmur-line { background: linear-gradient(to right, transparent, rgba(11,11,13,0.4) 30%, rgba(11,11,13,0.4) 70%, transparent); }
.bento-box-bg .murmur-line:nth-child(2) { background: linear-gradient(to right, transparent, rgba(255,255,255,0.65) 50%, transparent); }

.bento-vesper-mark {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(8rem, 18vw, 16rem);
  line-height: 1;
  color: rgba(11, 11, 13, 0.22);
  user-select: none;
}

.bento-box-bg .liminal-square {
  width: 38%;
  height: 38%;
  border-color: rgba(11, 11, 13, 0.4);
}
.bento-box-bg .liminal-square::before,
.bento-box-bg .liminal-square::after { background: rgba(11, 11, 13, 0.25); }

.bento-box-bg .atelier-dots {
  grid-template-columns: repeat(3, 14px);
  gap: 18px;
}
.bento-box-bg .atelier-dots span         { background: rgba(11, 11, 13, 0.3); width: 14px; height: 14px; }
.bento-box-bg .atelier-dots span:nth-child(odd)  { background: rgba(255, 255, 255, 0.7); }
.bento-box-bg .atelier-dots span:nth-child(5)    { background: #0B0B0D; box-shadow: 0 0 18px rgba(11,11,13,0.25); }

/* ───── PROGRESSIVE BLUR ───── */
.progressive-blur {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1;
}
.bento-box:hover .progressive-blur,
.bento-box:focus-visible .progressive-blur { opacity: 1; }

/* ───── BENTO BOX INFO (revealed on hover) ───── */
.bento-box-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1.75rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.bento-box:hover .bento-box-info,
.bento-box:focus-visible .bento-box-info {
  opacity: 1;
  transform: translateY(0);
}

.bento-box-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #ffffff;
  line-height: 1.1;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.bento-box-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* ───── EXPLORE CTA ───── */
.bento-explore {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  background: #00CC56;
  color: #0B0B0D;
  padding: 22px 32px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, gap 0.3s ease;
  text-decoration: none;
}
.bento-explore:hover {
  background: #0B0B0D;
  color: #00CC56;
  gap: 22px;
}
.bento-explore-arrow { width: 18px; height: 18px; }

/* ───── MOBILE — stack everything ───── */
@media (max-width: 768px) {
  .workshop-title { font-size: clamp(1.05rem, 5vw, 2rem); line-height: 1.05; letter-spacing: -0.03em; }
  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 14px;
  }
  .bento-box,
  .bento-box-1, .bento-box-2, .bento-box-3,
  .bento-box-4, .bento-box-5, .bento-box-6, .bento-box-7 {
    grid-column: 1;
    grid-row: auto;
  }
  /* Mobilde her kart kendi önerilen thumb oranıyla render edilir
     (admin'deki PROJECT_DIMENSIONS ile birebir) — bu sayede yüklenen
     görseller kırpılmadan tam oturur. */
  .bento-box-1 { aspect-ratio: 500 / 174; }   /* Strata — wide landscape */
  .bento-box-2 { aspect-ratio: 396 / 270; }   /* Halo */
  .bento-box-3 { aspect-ratio: 293 / 270; }   /* Murmur */
  .bento-box-4 { aspect-ratio: 500 / 366; }   /* Vespertine — portrait */
  .bento-box-5 { aspect-ratio: 707 / 270; }   /* Liminal */
  .bento-box-6 { aspect-ratio: 603 / 174; }   /* Atelier — ultra wide */
  .bento-box-7 { aspect-ratio: 603 / 174; }   /* Pulse */

  /* Custom grupları da mobilde tek kolona düşür, slot oranı korunsun */
  .custom-group-pair2 { grid-template-columns: 1fr; }
  .custom-group-pair2 .bento-box { aspect-ratio: 603 / 174; }
  .custom-group-bento5 { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .custom-group-bento5 .bento-box {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .custom-group-bento5 .bento-box[data-slot="a"] { aspect-ratio: 500 / 174; }
  .custom-group-bento5 .bento-box[data-slot="b"] { aspect-ratio: 396 / 270; }
  .custom-group-bento5 .bento-box[data-slot="c"] { aspect-ratio: 293 / 270; }
  .custom-group-bento5 .bento-box[data-slot="d"] { aspect-ratio: 500 / 366; }
  .custom-group-bento5 .bento-box[data-slot="e"] { aspect-ratio: 707 / 270; }
  /* Mobilde kart üstündeki yazılar gizli — tıklayınca modal'da açılır.
     Hover yok ama tıklama her zaman çalışır. */
  .bento-box-info { opacity: 0; transform: none; }
  .progressive-blur { opacity: 0; }
  .bento-explore { padding: 18px 22px; font-size: 0.72rem; }
}

/* ───── LEGACY editorial list (kept for safety) ───── */
.works-list {
  position: relative;
  cursor: default;
}

.work-row {
  display: block;
  border-top: 1px solid var(--ink-line);
  cursor: pointer;
  position: relative;
}
.work-row:last-child { border-bottom: 1px solid var(--ink-line); }

.work-row-grid {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  padding: 2rem 0.5rem 2rem 0;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), padding 0.4s ease;
}

@media (min-width: 768px) {
  .work-row-grid {
    grid-template-columns: 80px 1fr auto 28px;
    gap: 2rem;
    padding: 2.25rem 0;
  }
  .work-row:hover .work-row-grid {
    transform: translateX(24px);
    padding-left: 0;
  }
}

.work-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--bone-faint);
  transition: color 0.4s ease;
}
.work-row:hover .work-num { color: var(--brass); }

.work-text { min-width: 0; }

.work-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--bone);
  transition: color 0.4s ease, font-style 0.4s ease;
  margin: 0;
}
@media (min-width: 640px) {
  .work-title { font-size: 2.75rem; }
}
@media (min-width: 1024px) {
  .work-title { font-size: 3.75rem; }
}
@media (min-width: 1280px) {
  .work-title { font-size: 4.5rem; }
}
.work-row:hover .work-title {
  color: var(--brass);
}

.work-sub {
  font-size: 0.75rem;
  color: var(--bone-faint);
  font-weight: 300;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
  transition: color 0.4s ease;
}
.work-row:hover .work-sub { color: var(--bone-muted); }

.work-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--bone-faint);
  transition: color 0.4s ease;
}
.work-row:hover .work-year { color: var(--bone); }

.work-arrow {
  width: 22px;
  height: 22px;
  color: var(--bone-faint);
  transform: translateX(-12px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease, color 0.4s ease;
}
.work-row:hover .work-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--brass);
}

/* Mobile inline thumbnail (visible only on small screens) */
.work-mobile-thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--ink-line);
  grid-column: 3;
  grid-row: 1 / 2;
  justify-self: end;
}
@media (max-width: 767px) {
  .work-row-grid {
    grid-template-columns: 40px 1fr 56px;
    grid-template-rows: auto auto;
  }
  .work-num { grid-column: 1; grid-row: 1 / 3; align-self: center; }
  .work-text { grid-column: 2; grid-row: 1 / 3; }
  .work-mobile-thumb { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .work-year, .work-arrow { display: none; }
  .work-title { font-size: 1.75rem; }
  .work-sub { font-size: 0.7rem; }
}

/* Floating cursor-following preview (desktop) */
.works-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 440px;
  pointer-events: none;
  opacity: 0;
  z-index: 10;
  will-change: transform, opacity;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.works-preview.is-visible { opacity: 1; }

.works-preview-slide {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink-deep);
  border: 1px solid var(--ink-line);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.works-preview-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

/* Per-slide custom dimensions for visual rhythm */
.works-preview-strata     { width: 420px; height: 320px; }
.works-preview-halo       { width: 300px; height: 400px; }
.works-preview-murmur     { width: 360px; height: 360px; }
.works-preview-vespertine { width: 280px; height: 440px; }
.works-preview-liminal    { width: 460px; height: 260px; }
.works-preview-atelier    { width: 340px; height: 340px; }

/* ───── SERVICES ───── */
.service-card {
  background: var(--ink-black);
  transition: background 0.3s ease;
  display: flex;
}
.service-card:hover { background: var(--ink-deep); }
.service-inner {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  flex: 1;
  width: 100%;
}
.service-inner ul { flex: 1; }
@media (min-width: 1280px) {
  .service-inner { padding: 2rem 1.25rem; }
}
.service-cta {
  margin-top: auto;
  padding-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bone);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease, gap 0.3s ease;
  cursor: pointer;
  align-self: flex-start;
}
.service-cta:hover { color: var(--brass); gap: 0.75rem; }
.service-cta:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; border-radius: 2px; }

/* ───── LESSONS ───── */
.lesson-row { background: var(--ink-black); transition: background 0.3s ease; cursor: pointer; }
.lesson-row:hover { background: var(--ink-deep); }
.lesson-inner { padding: 2rem; }

/* ───── FORM ───── */
.form-input {
  width: 100%;
  background: var(--ink-black);
  border: 1px solid var(--ink-line);
  border-radius: 8px;
  padding: 0.875rem 1.125rem;
  color: var(--bone);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-family: inherit;
}
.form-input::placeholder { color: var(--bone-faint); }
.form-input:hover { border-color: var(--ink-line-strong); }
.form-input:focus { outline: none; border-color: var(--brass); background: var(--ink-deep); }

/* Form status message (post-submit feedback) */
.contact-form-status {
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0.5rem 0 0;
  min-height: 1.5em;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
}
.contact-form-status[data-type="ok"]    { color: var(--brass); }
.contact-form-status[data-type="info"]  { color: var(--bone-muted); }
.contact-form-status[data-type="error"] { color: #FF6B7A; }

/* select dropdown styling */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239C968B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ───── SOCIAL & LINKS ───── */
.social-link {
  color: var(--bone-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  padding: 0.5rem;
  margin: -0.5rem;
  cursor: pointer;
}
.social-link:hover { color: var(--brass); transform: translateY(-2px); }
.social-link:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--bone);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--ink-line-strong);
  transition: color 0.2s ease, border-color 0.2s ease, gap 0.3s ease;
  cursor: pointer;
}
.link-arrow:hover { color: var(--brass); border-color: var(--brass); gap: 0.875rem; }
.link-arrow:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

/* ───── FOOTER ───── */
.footer-mark {
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-weight: 300;
  position: relative;
}

/* ───── ACCESSIBILITY ───── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* Focus visible for all interactive */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* sr-only utility */
.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;
}

/* ───── RESPONSIVE TUNINGS ───── */
@media (max-width: 768px) {
  .service-inner { min-height: 380px; padding: 2rem 1.5rem; }
  .lesson-inner { padding: 1.5rem; }
  /* Hide green pillars on mobile — model is faded on small screens, pillars lose context */
  .hero-pillars { display: none; }
  /* Push hero text slightly inward (no md:ml-200 on mobile) */
  .hero-title { letter-spacing: -0.03em; }
  /* Reduce hero text padding to give more room */
  #hero .absolute, #vizyon .absolute { padding-top: 5rem; }
}

/* ───── ATÖLYE — Pricing section ───── */
.atolye-section { background: var(--ink-black); }

.atolye-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}

.atolye-glow {
  background:
    radial-gradient(ellipse at 10% 95%, rgba(236, 72, 153, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 5%, rgba(236, 72, 153, 0.06) 0%, transparent 45%);
}

/* Pricing cards */
.pricing-card {
  position: relative;
  background: rgba(22, 22, 26, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.pricing-card:hover {
  border-color: rgba(236, 72, 153, 0.35);
  transform: translateY(-4px);
}

.pricing-card-popular {
  border-color: var(--pink);
  box-shadow: 0 0 50px rgba(236, 72, 153, 0.18);
}
.pricing-card-popular:hover {
  border-color: var(--pink);
  box-shadow: 0 0 70px rgba(236, 72, 153, 0.28);
  transform: translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: #fff;
  padding: 4px 14px;
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  white-space: nowrap;
}

.pricing-tier {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--bone-muted);
  margin-bottom: 1.5rem;
}

.pricing-price {
  margin-bottom: 2rem;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing-amount {
  font-family: 'Fraunces', serif;
  font-size: 3rem;
  font-weight: 500;
  color: var(--bone);
  letter-spacing: -0.03em;
  line-height: 1;
}
.pricing-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--bone-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--bone);
  line-height: 1.4;
}
.pricing-features li.excluded {
  color: var(--bone-faint);
}
.pricing-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--pink);
}
.pricing-features li.excluded .pricing-icon {
  color: var(--bone-faint);
}

.pricing-cta {
  width: 100%;
  padding: 0.875rem;
  background: transparent;
  border: 1px solid var(--ink-line-strong);
  border-radius: 9999px;
  color: var(--bone);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}
.pricing-cta:hover {
  background: var(--bone);
  color: var(--ink-black);
  border-color: var(--bone);
}
.pricing-cta:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 3px;
}

.pricing-cta-popular {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.pricing-cta-popular:hover {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
  color: #fff;
}

@media (max-width: 768px) {
  .pricing-card { padding: 2rem 1.5rem; }
  .atolye-grid { background-size: 35px 35px; }
  .pricing-amount { font-size: 2.5rem; }
}

/* ───── WORKSHOP ARCHIVE PAGE (workshop.html) ───── */
.archive-page { background: var(--ink-deep); min-height: 100vh; }

.archive-header {
  padding: 9rem 1.5rem 4rem;
  max-width: 1280px;
  margin: 0 auto;
}
.archive-header-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.archive-header h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  color: var(--bone);
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}
.archive-header h1 em {
  font-style: normal;
  color: var(--brass);
  font-weight: 400;
}
.archive-header p {
  font-size: 1rem;
  color: var(--bone-muted);
  font-weight: 300;
  max-width: 540px;
  line-height: 1.6;
  margin: 0;
}

.archive-section {
  padding: 1rem 1.5rem 6rem;
  max-width: 1280px;
  margin: 0 auto;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .archive-grid { grid-template-columns: 1fr; } }

.archive-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  outline: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.archive-card:hover { transform: translateY(-4px); }
.archive-card:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.archive-card-visual {
  position: absolute;
  inset: 0;
}
.archive-card-visual > .bento-box-bg {
  position: absolute;
  inset: 0;
}

.archive-card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem 1.5rem;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1), transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.archive-card:hover .archive-card-info,
.archive-card:focus-visible .archive-card-info {
  opacity: 1;
  transform: translateY(0);
}
.archive-card-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.15rem;
  line-height: 1.1;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.archive-card-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.archive-back {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 4rem;
  padding: 0.875rem 1.5rem;
  background: transparent;
  border: 1px solid var(--ink-line-strong);
  border-radius: 9999px;
  color: var(--bone-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.3s ease;
}
.archive-back:hover {
  color: var(--brass);
  border-color: var(--brass);
  gap: 0.875rem;
}

/* ───── PROJECT LIGHTBOX MODAL ───── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(11, 11, 13, 0.85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 3rem;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-modal.is-open {
  display: flex;
  opacity: 1;
}
body.modal-open { overflow: hidden; }

.project-modal-close {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--ink-deep);
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  color: var(--bone);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s ease;
  z-index: 201;
}
.project-modal-close svg { width: 22px; height: 22px; }
.project-modal-close:hover {
  background: var(--brass);
  color: var(--ink-black);
  transform: rotate(90deg);
}
.project-modal-close:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.project-modal-inner {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3.5rem;
  align-items: center;
  transform: translateY(20px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.project-modal.is-open .project-modal-inner {
  transform: translateY(0) scale(1);
}

.project-modal-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-deep);
  border: 1px solid var(--ink-line);
}

/* ───── Aspect-aware modal layouts ───── */
/* Square: side-by-side, 1:1 visual */
.project-modal.is-square .project-modal-visual { aspect-ratio: 1/1; }

/* Portrait: side-by-side, 4:5 tall visual */
.project-modal.is-portrait .project-modal-visual { aspect-ratio: 4/5; }
.project-modal.is-portrait .project-modal-inner { grid-template-columns: 0.9fr 1fr; }

/* Landscape: stacked layout — visual on top, content below */
.project-modal.is-landscape .project-modal-inner {
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 960px;
  align-items: start;
}
.project-modal.is-landscape .project-modal-visual {
  aspect-ratio: 16/9;
  width: 100%;
}
.project-modal.is-landscape .project-modal-content {
  max-width: 720px;
}
.project-modal-visual > .bento-box-bg {
  position: absolute;
  inset: 0;
}

.project-modal-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-modal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--brass);
  text-transform: uppercase;
}
.project-modal-title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--bone);
  margin: 0.25rem 0 0;
}
.project-modal-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--bone-muted);
  text-transform: uppercase;
  margin: 0;
}
.project-modal-divider {
  height: 1px;
  background: var(--ink-line-strong);
  width: 48px;
  margin: 1rem 0;
}
.project-modal-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--bone-muted);
  font-weight: 300;
  margin: 0;
}
.project-modal-cta {
  margin-top: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  align-self: flex-start;
  padding: 0.875rem 1.5rem;
  background: var(--brass);
  color: var(--ink-black);
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s ease, gap 0.3s ease, color 0.2s ease;
  cursor: pointer;
}
.project-modal-cta svg { width: 16px; height: 16px; }
.project-modal-cta:hover { background: var(--bone); gap: 0.875rem; }

/* Modal visual marks rendered larger than in bento */
.project-modal-visual .strata-mark { width: 70%; max-width: 360px; gap: 22px; }
.project-modal-visual .strata-mark .strata-line { height: 6px; }
.project-modal-visual .halo-ring { width: 65%; height: 65%; max-width: 320px; max-height: 320px; }
.project-modal-visual .halo-ring-inner { width: 28%; height: 28%; max-width: 140px; max-height: 140px; }
.project-modal-visual .murmur-frame { width: 75%; max-width: 380px; gap: 32px; }
.project-modal-visual .murmur-line { height: 3px; }
.project-modal-visual .bento-vesper-mark { font-size: clamp(10rem, 22vw, 18rem); }
.project-modal-visual .liminal-square { width: 45%; height: 45%; max-width: 240px; max-height: 240px; }
.project-modal-visual .atelier-dots { grid-template-columns: repeat(3, 22px); gap: 30px; }
.project-modal-visual .atelier-dots span { width: 22px; height: 22px; }
.project-modal-visual .pulse-bars { gap: 12px; height: 65%; }
.project-modal-visual .pulse-bars span { width: 7px; }

@media (max-width: 768px) {
  .project-modal { padding: 4rem 1rem 2rem; }
  .project-modal-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .project-modal-visual { aspect-ratio: 4/3; }
  .project-modal-title { font-size: 2.25rem; }
  .project-modal-close { width: 40px; height: 40px; top: 1rem; right: 1rem; }
}

/* ───── MOBILE MENU ───── */
#mobile-menu { display: none; }
#mobile-menu.is-open { display: flex; }
body.menu-open { overflow: hidden; }

.mobile-nav-link {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--bone-muted);
  font-weight: 300;
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  padding: 0.25rem 1rem;
}
.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--bone);
  outline: none;
}
.mobile-nav-link-accent {
  color: var(--brass);
  font-weight: 400;
  margin-top: 0.5rem;
}
.mobile-nav-link-accent:hover,
.mobile-nav-link-accent:focus-visible {
  color: var(--bone);
}
