/* =========================================================================
   COMPONENTS — TYPOGRAPHY VOICES, PILLS, BUTTONS, FACADES, MODAL
   ========================================================================= */

.font-display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.89;
  color: var(--text-primary);
}

.font-serif-whisper {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text-primary);
}

.font-mono-label {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* Minimal 12-point editorial starburst mark */
.starburst-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  color: var(--text-primary);
}

.starburst-spin {
  animation: slowSpin 36s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Hairline & Solid Pill Buttons (>= 44px touch floor, stable hit targets) */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-control);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-expo),
              color var(--dur-fast) var(--ease-expo),
              border-color var(--dur-fast) var(--ease-expo);
}

.pill-btn:hover {
  border-color: var(--text-primary);
  background: rgba(245, 238, 230, 0.1);
}

.pill-btn--solid {
  background: var(--accent-bone);
  color: var(--on-accent);
  border-color: var(--accent-bone);
}

.pill-btn--solid:hover {
  background: var(--accent-bronze);
  border-color: var(--accent-bronze);
  color: var(--on-accent);
}

.pill-btn--bronze {
  border-color: var(--accent-bronze);
  color: var(--accent-bronze);
}

.pill-btn--bronze:hover {
  background: var(--accent-bronze);
  color: var(--on-accent);
}

.pill-btn--compact {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  font-size: 0.7rem;
}

/* Editorial slight angle accent on secondary paired CTA only (restores level on hover) */
.pill-tilt {
  transform: rotate(-1.5deg);
  transition: transform var(--dur-base) var(--ease-expo),
              background-color var(--dur-fast) var(--ease-expo),
              color var(--dur-fast) var(--ease-expo),
              border-color var(--dur-fast) var(--ease-expo);
}

.pill-tilt:hover {
  transform: rotate(0deg);
}

/* Small hairline tag (Capabilities & Tools — no percentage bars) */
.spec-tag {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline-strong);
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.spec-tag--interactive {
  min-height: 44px;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-expo),
              color var(--dur-fast) var(--ease-expo),
              border-color var(--dur-fast) var(--ease-expo);
}

.spec-tag--interactive:hover,
.spec-tag--interactive.is-selected {
  background: var(--accent-bone);
  color: var(--on-accent);
  border-color: var(--accent-bone);
}

.status-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-bronze);
}

.status-label--verified {
  color: var(--status-success);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Segmented Filter Pills */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-pill {
  min-height: 44px;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline-strong);
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-expo),
              color var(--dur-fast) var(--ease-expo),
              border-color var(--dur-fast) var(--ease-expo);
}

.filter-pill:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.filter-pill.active {
  background: var(--accent-bone);
  border-color: var(--accent-bone);
  color: var(--on-accent);
}

/* Video Facade (Zero pre-click third-party requests; native 16:9 & capped 9:16) */
.yt-facade {
  position: relative;
  width: 100%;
  background: #0c0c0c;
  border: 1px solid var(--border-hairline);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-facade[data-orientation="landscape"] {
  aspect-ratio: 16 / 9;
}

.yt-facade[data-orientation="portrait"] {
  aspect-ratio: 9 / 16;
  width: 224px;
  max-width: 100%;
  margin-inline: auto;
}

.yt-facade__poster,
.yt-facade__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-reveal) var(--ease-expo), filter var(--dur-reveal) var(--ease-expo);
}

.video-row:hover .yt-facade__poster img {
  transform: scale(1.03);
}

.yt-facade__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.14) 0%, rgba(19, 19, 19, 0.68) 100%);
  pointer-events: none;
}

.yt-facade__play-btn {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.65rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--accent-bone);
  background: rgba(19, 19, 19, 0.86);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-expo), color var(--dur-fast) var(--ease-expo);
}

.yt-facade__play-btn:hover {
  background: var(--accent-bone);
  color: var(--on-accent);
}

.yt-facade__play-btn[hidden] {
  display: none;
}

.yt-facade iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 4;
}

.yt-facade__notice {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 1.2rem;
  background: rgba(19, 19, 19, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.65rem;
}

/* Case Study Modal Dialog */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(12, 12, 12, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-sheet {
  width: 100%;
  max-width: 54rem;
  max-height: 88dvh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--radius-frame);
  padding: 2rem;
  animation: modalEnter 240ms var(--ease-expo) both;
}

@keyframes modalEnter {
  from { opacity: 0.6; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 1.5rem;
}

.modal-close-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-control);
  background: transparent;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--dur-fast) var(--ease-expo), color var(--dur-fast) var(--ease-expo);
}

.modal-close-btn:hover {
  background: var(--accent-bone);
  color: var(--on-accent);
}

.modal-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  margin-bottom: 1.5rem;
}

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

.modal-grid {
  display: grid;
  gap: 1.15rem;
}

.modal-block {
  padding-top: 1rem;
  border-top: 1px solid var(--border-hairline);
}

.modal-block:first-child {
  padding-top: 0;
  border-top: 0;
}

/* Progressive scroll reveal — default visible so content never stays trapped */
.reveal-block {
  opacity: 1;
  transition: opacity var(--dur-reveal) var(--ease-expo), transform var(--dur-reveal) var(--ease-expo);
}

.js-anim .reveal-block.is-pending {
  opacity: 0;
  transform: translateY(14px);
}

.js-anim .reveal-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}
