/* O&Y Studio — Features layer 2
   Project modal · Testimonials · Scramble-text
*/

/* ---------- PROJECT MODAL ---------- */
.pm-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}
.pm-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.pm-shell {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 30px));
  width: min(1100px, 92vw);
  max-height: 86vh;
  background: #0a0a0a;
  border: 1px solid #1a1a1a;
  z-index: 101;
  opacity: 0;
  pointer-events: none;
  transition: opacity 380ms cubic-bezier(.22,.61,.36,1),
              transform 480ms cubic-bezier(.22,.61,.36,1);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
}
.pm-shell.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.pm-media {
  position: relative;
  background: #000;
  overflow: hidden;
  min-height: 420px;
}
.pm-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.pm-body {
  padding: 44px 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}
.pm-eyebrow {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #888;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pm-eyebrow .dash { width: 22px; height: 1px; background: #555; }
.pm-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0;
}
.pm-deck {
  color: #b8b8b8;
  font-size: 16px;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0;
}
.pm-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid #1a1a1a;
  margin-top: 8px;
}
.pm-meta-cell {
  padding: 16px 0;
  border-bottom: 1px solid #1a1a1a;
}
.pm-meta-cell:nth-child(odd) { padding-right: 24px; border-right: 1px solid #1a1a1a; padding-left: 0; }
.pm-meta-cell:nth-child(even) { padding-left: 24px; }
.pm-meta-label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 6px;
}
.pm-meta-val { color: #fff; font-size: 15px; }

.pm-actions {
  margin-top: auto;
  display: flex;
  gap: 12px;
  padding-top: 16px;
}

.pm-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 3;
  transition: background 150ms linear, transform 200ms ease;
}
.pm-close:hover { background: rgba(255,255,255,0.18); transform: rotate(90deg); }
.pm-close svg { width: 18px; height: 18px; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 100px 40px;
  background: #050505;
  border-top: 1px solid #1a1a1a;
  border-bottom: 1px solid #1a1a1a;
}
.ts-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.ts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 40px;
}
.ts-eyebrow {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #888;
}
.ts-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 12px 0 0;
}
.ts-nav {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ts-nav button {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #fff;
  display: grid;
  place-items: center;
  transition: background 150ms linear, border-color 150ms linear;
}
.ts-nav button:hover { background: #fff; color: #000; border-color: #fff; }
.ts-nav button svg { width: 18px; height: 18px; }
.ts-count {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 12px;
  color: #888;
  letter-spacing: 0.15em;
  margin: 0 10px;
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ts-viewport {
  overflow: hidden;
  position: relative;
}
.ts-track {
  display: flex;
  transition: transform 600ms cubic-bezier(.22,.61,.36,1);
}
.ts-card {
  flex: 0 0 100%;
  padding: 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.ts-quote {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: #fff;
  font-style: italic;
  position: relative;
  margin: 0;
}
.ts-quote::before {
  content: "\201C";
  font-size: 140px;
  line-height: 0.8;
  color: #fff;
  opacity: 0.25;
  position: absolute;
  top: -30px;
  left: -60px;
  font-style: normal;
}
/* RTL: mirror the giant quote mark to the right side */
.ts-card[dir="rtl"] .ts-quote::before {
  left: auto;
  right: -60px;
  content: "\201D";
}
.ts-card[dir="rtl"] .ts-who {
  padding-left: 0;
  padding-right: 24px;
  border-left: none;
  border-right: 1px solid #2a2a2a;
}
.ts-who {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 24px;
  border-left: 1px solid #2a2a2a;
}
.ts-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #444, #111);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 26px;
  font-style: italic;
  margin-bottom: 12px;
}
.ts-name { color: #fff; font-size: 18px; }
.ts-role {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #888;
}
.ts-project { color: #b8b8b8; font-size: 14px; margin-top: 4px; }

/* ---------- SCRAMBLE TEXT cursor tweak ---------- */
.scramble { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .pm-backdrop, .pm-shell, .ts-track { transition: none !important; }
}
