/* ─────────────────────────────────────────────────────────────
   profile.css — individual animator profile page
   Loaded after celwork.css + sections.css.
   ───────────────────────────────────────────────────────────── */

/* ─── HERO ────────────────────────────────────────────── */

.prof-hero {
  padding-top: clamp(48px, 8vw, 100px);
  padding-bottom: clamp(60px, 10vw, 120px);
}
.prof-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 880px) {
  .prof-hero-grid { grid-template-columns: 1fr; }
}

.prof-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  white-space: nowrap;
  transition: color 180ms, gap 180ms;
}
.prof-back:hover { color: var(--accent); gap: 12px; }

.prof-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  white-space: nowrap;
}
.prof-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}

.prof-name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.96;
}
.prof-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.8vw, 22px);
  color: var(--text-soft);
  margin: 16px 0 18px;
  font-weight: 400;
}
[data-direction="studio"] .prof-tagline {
  font-style: italic;
  font-family: var(--sans);
}
.prof-bio {
  max-width: 60ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 0 0 28px;
}

.prof-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.prof-platforms {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.prof-platforms-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 6px;
}

/* right column — avatar + contact card */

.prof-hero-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px;
}
@media (max-width: 880px) {
  .prof-hero-right { position: static; }
}

.prof-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #0B0B0E;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(120px, 14vw, 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  align-self: center;
}
.prof-avatar-letter {
  position: relative;
  z-index: 1;
  pointer-events: none;
  line-height: 1;
}
.prof-avatar-slot {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  --is-bg: transparent !important;
  --is-border: transparent !important;
  --is-label: transparent !important;
  z-index: 2;
}
.prof-avatar:has(image-slot[data-filled]) .prof-avatar-letter {
  display: none;
}

.prof-card {
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.prof-card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  font-size: 13px;
  font-family: var(--sans);
}
.prof-card-row .dim {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.prof-card-row > :last-child {
  text-align: right;
  color: var(--text);
}

.prof-cta {
  width: 100%;
  justify-content: center;
}
.prof-cta-note {
  font-size: 11px;
  line-height: 1.5;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  margin: -4px 0 0;
  text-align: center;
}

/* ─── REEL PRINCIPAL ────────────────────────────────────── */

.prof-reel-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.prof-reel-slot {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.prof-reel-caption {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.prof-reel-caption > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.prof-reel-caption .dim {
  font-size: 10px;
  color: var(--muted);
}
.prof-reel-caption > a {
  justify-self: end;
}
@media (max-width: 720px) {
  .prof-reel-caption { grid-template-columns: 1fr 1fr; }
  .prof-reel-caption > a { grid-column: span 2; justify-self: start; }
}

/* ─── WORKS ─────────────────────────────────────────── */

.prof-works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  grid-auto-rows: 220px;
}
@media (max-width: 880px) {
  .prof-works-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
}
.prof-work {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 200ms;
}
.prof-work:hover { transform: scale(0.985); }
.prof-work-slot {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  --is-bg: transparent !important;
  --is-border: transparent !important;
  --is-label: transparent !important;
}
.prof-work-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  padding: 10px 12px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
}
.prof-work-title {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.01em;
}
.prof-work-note {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ─── CREWS (mini cards) ──────────────────────────────── */

.prof-crews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .prof-crews-grid { grid-template-columns: 1fr; } }
.prof-crew-mini .info { padding-bottom: 24px; }
.prof-crew-role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}
.prof-crew-role .dim {
  font-size: 10px;
  color: var(--muted);
}

/* ─── PARCOURS ───────────────────────────────────────── */

.prof-parcours {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--hairline);
}
.prof-parcours-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
@media (max-width: 600px) {
  .prof-parcours-item { grid-template-columns: 1fr; gap: 6px; }
}
.prof-parcours-year {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding-top: 2px;
}
.prof-parcours-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.prof-parcours-body {
  font-family: var(--serif);
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text);
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
[data-direction="studio"] .prof-parcours-body { font-weight: 700; }
