/* ============================================================
   OLUSCHI HARMON — Homepage Styles
   css/home.css
   ============================================================ */

/* ── BG WORD ── */
#bg-word {
  position: fixed; top: 80vh; left: 50%;
  transform: translate(-50%, -50%);
  font-style: italic; font-size: clamp(48px, 12vw, 120px); font-weight: 700;
  color: rgba(154,143,168,0.055);
  pointer-events: none; z-index: 0;
  white-space: nowrap; letter-spacing: -.02em;
  transition: opacity 1.2s ease; user-select: none;
}

/* ── STAR ── */
@keyframes starPulse { 0%,100% { opacity: .35; transform: scale(1) rotate(0deg); } 50% { opacity: .7; transform: scale(1.15) rotate(15deg); } }
#star-motif { position: fixed; bottom: calc(var(--tab-h) + 20px); right: 32px; font-size: 14px; color: var(--mid); pointer-events: none; z-index: 3; animation: starPulse 3.5s ease-in-out infinite; }

/* ── MAIN ── */
main {
  position: fixed; top: var(--header-h); top: -8vh; bottom: var(--tab-h); left: 0; right: 0;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.gif-stage { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.gif-stage img { height: clamp(140px, 45vh, 550px); width: auto; object-fit: contain; }
.site-copy { text-align: center; max-width: 400px; padding: 0 20px; }
.copy-body { font-size: 11px; line-height: 1.95; color: var(--mid); font-style: italic; }
.copy-body strong { font-style: normal; font-weight: 700; color: var(--dark); }
.copy-cred { margin-top: 14px; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mid); }

/* ── ABOUT OVERLAY ── */
#about-overlay {
  left: 50%;
  bottom: var(--tab-h);
  transform: translateX(-50%) translateY(24px);
  width: min(700px, calc(100% - 24px));
  max-height: calc(100vh - var(--header-h) - var(--tab-h) - 24px);
  overflow-y: auto;
}
#about-overlay.open { transform: translateX(-50%) translateY(0); }

.about-top { display: grid; grid-template-columns: 1fr 2fr; }
.about-img-col { padding: 18px 0 18px 18px; }
.about-portrait { width: 100%; height: auto; display: block; border-radius: 1px; }
.about-star { position: absolute; bottom: 14px; right: 14px; width: 56px; height: auto; z-index: 3; }
.about-info-col { padding: 18px 24px 18px 16px; display: flex; flex-direction: column; gap: 11px; }
.about-name { font-size: 14px; font-weight: 700; color: var(--dark); letter-spacing: -.01em; line-height: 1.2; }
.about-role { font-size: 10px; font-style: italic; color: var(--mid); line-height: 1.6; }
.about-bio { font-size: 10px; line-height: 1.85; color: var(--mid); }
.about-quote { font-style: italic; font-size: 10px; color: var(--dark); border-left: 2px solid var(--lavender); padding-left: 10px; line-height: 1.7; }

.about-mid { padding: 12px 20px; border-top: var(--border); }
.a-label { font-size: 8px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mid); display: block; margin-bottom: 6px; }
.exp-row { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; border-bottom: 1px solid rgba(46,46,46,.05); font-size: 9px; }
.exp-row:last-child { border-bottom: none; }
.exp-role { font-weight: 700; color: var(--dark); }
.exp-co { color: var(--mid); font-size: 9px; margin-left: 5px; }
.exp-yr { color: var(--mid); font-size: 9px; white-space: nowrap; }
.tags-wrap { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.atag { font-size: 8px; padding: 3px 8px; border: var(--border); color: var(--mid); }
/* lead tier — what you DO (creative); filled so it carries more weight than tools */
.atag.lead { background: var(--lavender); border-color: rgba(46,46,46,.14); color: var(--dark); font-weight: 700; }
.about-bottom { border-top: var(--border); }
.about-bottom-col { padding: 12px 20px; }
.about-bottom-col:first-child { border-right: var(--border); }
.about-bottom-col p { font-size: 9px; color: var(--mid); line-height: 1.9; }
.play-ph { border: 1px dashed rgba(154,143,168,.35); padding: 10px 12px; display: flex; align-items: center; gap: 9px; background: rgba(237,232,242,.3); transition: background .15s; }
.play-ph:hover { background: var(--lavender-lt); }
.play-btn-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--lavender); border: 1px solid rgba(154,143,168,.3); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.play-btn-icon::after { content: ''; display: block; width: 0; height: 0; border-style: solid; border-width: 4px 0 4px 7px; border-color: transparent transparent transparent var(--mid); margin-left: 2px; }
.play-ph-text { font-size: 9px; color: var(--mid); line-height: 1.5; }
.play-ph-text strong { display: block; font-size: 9px; font-weight: 700; color: var(--dark); margin-bottom: 1px; }

/* ── WORK OVERLAY ── */
#work-overlay { inset: 0; top: var(--header-h); bottom: var(--tab-h); transform: translateY(30px); display: flex; align-items: flex-end; padding: 0 20px; }
#work-overlay.open { transform: translateY(0); }
.work-folder { width: 100%; max-width: 760px; margin: 0 auto; }
.work-row { display: grid; grid-template-columns: 36px 1fr auto 20px; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid rgba(46,46,46,.06); transition: background .12s; color: inherit; text-decoration: none; }
.work-row:hover { background: var(--lavender-lt); }
.work-row:last-child { border-bottom: none; }
.work-num { font-size: 9px; color: var(--mid); letter-spacing: .08em; }
.work-title { font-size: 11px; font-weight: 700; color: var(--dark); }
.work-sub { font-size: 9px; color: var(--mid); margin-top: 2px; }
.work-meta { font-size: 9px; color: var(--mid); text-align: right; white-space: nowrap; }
.work-arrow { font-size: 11px; color: var(--mid); transition: transform .15s, color .15s; }
.work-row:hover .work-arrow { transform: translateX(4px); color: var(--dark); }
.work-preview { position: fixed; width: 180px; height: auto; border: 1px solid var(--lavender); pointer-events: none; z-index: 60; display: none; opacity: 0; transition: opacity .15s; object-fit: cover; }
.work-preview.show { display: block; opacity: 1; }

/* ── ARCHIVE OVERLAY ── */
#archive-overlay {
  inset: 0; top: var(--header-h); bottom: var(--tab-h);
  transform: translateY(100%); background: var(--dark); overflow: hidden;
  position: fixed; z-index: 40; opacity: 0; pointer-events: none;
  transition: opacity .22s, transform .32s cubic-bezier(.22,1,.36,1);
}
#archive-overlay.open { opacity: 1; pointer-events: all; transform: translateY(0); }

.archive-bar {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--dark); border-bottom: 1px solid rgba(220,211,231,.1);
  padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; z-index: 5;
}
.archive-bar-label { font-size: 9px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(220,211,231,.5); display: flex; align-items: center; gap: 9px; }
.archive-bar-label::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1px solid rgba(220,211,231,.2); }
.archive-bar-hint { font-size: 9px; font-style: italic; color: rgba(220,211,231,.2); letter-spacing: .04em; }
.archive-close { background: none; border: 1px solid rgba(220,211,231,.18); width: 22px; height: 22px; border-radius: 50%; font-size: 13px; color: rgba(220,211,231,.45); display: flex; align-items: center; justify-content: center; transition: all .15s; line-height: 1; }
.archive-close:hover { background: var(--lavender); color: var(--dark); border-color: var(--lavender); }

.archive-stage { position: absolute; top: 44px; left: 0; right: 0; bottom: 0; overflow-y: auto; overflow-x: hidden; }
.archive-stage::-webkit-scrollbar { width: 3px; }
.archive-stage::-webkit-scrollbar-thumb { background: rgba(220,211,231,.2); }

/* 3-col on desktop, 1-col on mobile */
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 20px 20px 48px; }

.arc-card { background: rgba(255,255,255,.04); border: 1px solid rgba(220,211,231,.1); overflow: hidden; transition: border-color .2s; }
.arc-card:hover { border-color: rgba(220,211,231,.3); }

.arc-img-strip { width: 100%; height: 180px; overflow-x: auto; overflow-y: hidden; display: flex; gap: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.arc-img-strip::-webkit-scrollbar { display: none; }
.arc-img-strip img { height: 100%; width: auto; flex-shrink: 0; display: block; object-fit: cover; }

.arc-card-info { padding: 12px 14px 14px; }
.arc-card-title { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.9); letter-spacing: .02em; margin-bottom: 3px; }
.arc-card-sub { font-size: 9px; color: rgba(220,211,231,.45); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.arc-card-body { font-size: 9px; color: rgba(220,211,231,.5); line-height: 1.7; }

/* ── PROJECT DETAIL PANEL ── */
#project-detail {
  position: fixed; inset: 0; z-index: 48;
  opacity: 0; pointer-events: none; transition: opacity .25s;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0 20px; top: var(--header-h); bottom: var(--tab-h);
}
#project-detail.open { opacity: 1; pointer-events: all; }
.project-scrim { position: absolute; inset: 0; background: rgba(10,8,14,.55); z-index: 0; }
.project-panel {
  position: relative; z-index: 1; width: 100%; max-width: 680px;
  background: var(--dark); border: 1px solid rgba(220,211,231,.15); border-bottom: none;
  overflow: hidden; transform: translateY(40px); transition: transform .3s cubic-bezier(.22,1,.36,1);
  max-height: 85%; display: flex; flex-direction: column;
}
#project-detail.open .project-panel { transform: translateY(0); }
.project-panel-bar { background: var(--lavender); border-bottom: var(--border); padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; }
.project-panel-bar span { font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.project-panel-bar span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(46,46,46,.2); background: rgba(255,255,255,.5); }
.project-panel-close { background: none; border: 1px solid rgba(46,46,46,.2); width: 22px; height: 22px; border-radius: 50%; font-size: 13px; color: var(--dark); display: flex; align-items: center; justify-content: center; transition: all .15s; line-height: 1; }
.project-panel-close:hover { background: var(--dark); color: var(--smoke); }
.project-strip { display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; height: 220px; flex-shrink: 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.project-strip::-webkit-scrollbar { display: none; }
.project-strip img { height: 100%; width: auto; flex-shrink: 0; object-fit: cover; }
.project-copy { padding: 20px; overflow-y: auto; flex: 1; }
.project-copy::-webkit-scrollbar { width: 2px; }
.project-copy::-webkit-scrollbar-thumb { background: rgba(220,211,231,.15); }
.project-title { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.92); margin-bottom: 4px; letter-spacing: -.01em; }
.project-sub { font-size: 9px; color: rgba(220,211,231,.4); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.project-body { font-size: 10px; color: rgba(220,211,231,.55); line-height: 1.85; }

/* ── MOBILE ── */
@media (max-width: 680px) {
  #about-overlay { width: calc(100% - 16px); max-height: calc(100vh - var(--header-h) - var(--tab-h) - 12px); }
  .about-top { grid-template-columns: 1fr; }
  .about-img-col, .about-star { display: none; }
  .about-info-col { padding: 14px 16px 14px 12px; }
  .about-bottom { grid-template-columns: 1fr; }
  .about-bottom-col:first-child { border-right: none; border-bottom: var(--border); }

  .work-row { grid-template-columns: 28px 1fr auto; gap: 10px; padding: 12px 14px; }
  .work-arrow { display: none; }
  .work-meta { font-size: 9px; }

  .archive-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 14px 40px; }
  .arc-img-strip { height: 140px; }

  #project-detail { padding: 0 8px; }
  .project-panel { max-height: 90%; }
  .project-strip { height: 160px; }
}

@media (max-width: 420px) {
  .archive-grid { grid-template-columns: 1fr; }
  .about-top { grid-template-columns: 1fr; }
}
