/* ============================================================
   CampusHub — shared navy/gold design tokens for the portal
   homepage redesign. Locked palette, exploratory layouts.
   ============================================================ */

.ph {
  /* palette (navy + gold, locked) */
  --navy-deep: #0a2138;
  --navy:      #102f4d;
  --navy-soft: #18395a;
  --navy-card: #142f4a;
  --line:      rgba(176,203,232,0.14);
  --line-2:    rgba(176,203,232,0.22);
  --gold:      #c79a2f;
  --gold-bright:#e3b73d;
  --gold-deep: #9d7820;
  --ink:       #f3eee1;
  --muted:     #9fb2c6;
  --faint:     #6c829a;

  --serif: "Newsreader", Georgia, serif;
  --display: "Libre Caslon Display", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;

  width: 1440px;
  height: 900px;
  position: relative;
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* shared atmospheric navy field + dotted texture */
.ph-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(125% 90% at 50% -10%, var(--navy-soft) 0%, var(--navy) 44%, var(--navy-deep) 100%);
}
.ph-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(208,224,243,0.06) 1.1px, transparent 1.2px);
  background-size: 24px 24px;
  background-position: 0 0;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 88%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 88%);
}
.ph-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

/* ---- shared brand mark ---- */
.ph-brand { display: flex; align-items: center; gap: 13px; }
.ph-crest {
  height: 42px; width: auto; display: block; flex: 0 0 auto;
  filter: drop-shadow(0 2px 6px rgba(199,154,47,0.22));
}
.ph-logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold-deep));
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(199,154,47,0.28), inset 0 1px 0 rgba(255,255,255,0.35);
  flex: 0 0 auto;
}
.ph-logo span {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2.4px solid var(--navy-deep);
  position: relative;
}
.ph-logo span::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--navy-deep);
}
.ph-wordmark { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.01em; color: var(--ink); }

/* ghost sign-in button (shared baseline) */
.ph-signin {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.015);
  color: var(--ink); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.ph-signin:hover { border-color: rgba(199,154,47,0.55); background: rgba(199,154,47,0.06); }
.ph-signin svg { transition: transform .2s; }
.ph-signin:hover svg { transform: translateX(3px); }

/* eyebrow pill */
.ph-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 13px; border-radius: 100px;
  border: 1px solid rgba(199,154,47,0.32);
  background: rgba(199,154,47,0.06);
  font-family: var(--mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-bright); white-space: nowrap;
}
.ph-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 8px var(--gold-bright); }

/* =========================================================
   DIRECTION 1 — Editorial Hub
   ========================================================= */
.d1 { display: flex; flex-direction: column; padding: 40px 64px 48px; box-sizing: border-box; }
.d1-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.d1-nav { display: flex; align-items: center; gap: 28px; }
.d1-nav a { color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s; }
.d1-nav a:hover { color: var(--ink); }

.d1-body { flex: 1; display: grid; grid-template-columns: 1fr 1.02fr; gap: 72px; align-items: center; position: relative; z-index: 2; }

.d1-headline { font-family: var(--serif); font-weight: 500; font-size: 70px; line-height: 0.98; letter-spacing: -0.02em; margin: 26px 0 0; color: var(--ink); }
.d1-headline em { font-style: normal; color: var(--gold-bright); display: block; }
.d1-sub { color: var(--muted); font-size: 18px; line-height: 1.62; max-width: 430px; margin: 26px 0 0; }
.d1-helper { display: flex; align-items: center; gap: 10px; margin-top: 34px; color: var(--faint); font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; }
.d1-helper .rule { width: 40px; height: 1px; background: var(--line-2); }

.d1-cards { display: flex; flex-direction: column; gap: 16px; }
.d1-card {
  position: relative; display: flex; gap: 20px; padding: 26px 26px;
  border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255,255,255,0.035), rgba(255,255,255,0.008));
  cursor: pointer; overflow: hidden;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), border-color .28s, box-shadow .28s, background .28s;
}
.d1-card::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px;
  background: radial-gradient(120% 140% at 100% 0%, rgba(199,154,47,0.14), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.d1-card:hover { transform: translateY(-4px); border-color: rgba(199,154,47,0.5); box-shadow: 0 18px 44px rgba(5,15,28,0.55); }
.d1-card:hover::before { opacity: 1; }
.d1-card:active { transform: translateY(-1px) scale(0.995); }
.d1-card.locked { cursor: default; opacity: 0.62; }
.d1-card.locked:hover { transform: none; border-color: var(--line); box-shadow: none; }
.d1-card.locked:hover::before { opacity: 0; }

.d1-ico {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(199,154,47,0.12); border: 1px solid rgba(199,154,47,0.28);
  color: var(--gold-bright); position: relative; z-index: 1;
}
.d1-cmain { position: relative; z-index: 1; flex: 1; }
.d1-ctitle { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.d1-cdesc { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 6px; max-width: 340px; }
.d1-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.d1-tag { font-size: 11.5px; color: var(--faint); padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); white-space: nowrap; }
.d1-arrow { position: relative; z-index: 1; align-self: center; color: var(--faint); transition: transform .28s, color .28s; flex: 0 0 auto; }
.d1-card:hover .d1-arrow { color: var(--gold-bright); transform: translateX(4px); }
.d1-pill-soon { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); padding: 3px 8px; border-radius: 100px; }

.d1-coming { margin-top: 16px; display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 14px; border: 1px dashed var(--line-2); background: rgba(255,255,255,0.012); }
.d1-coming-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.d1-coming-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.d1-chip { font-size: 12.5px; color: var(--muted); padding: 5px 12px; border-radius: 8px; background: rgba(255,255,255,0.025); border: 1px solid var(--line); }

/* =========================================================
   DIRECTION 2 — Directory Board
   ========================================================= */
.d2 { display: flex; flex-direction: column; padding: 40px 0 0; box-sizing: border-box; }
.d2-top { display: flex; align-items: center; justify-content: space-between; padding: 0 56px; position: relative; z-index: 3; }
.d2-side {
  position: absolute; left: 14px; top: 0; bottom: 0; width: 30px;
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.d2-side span {
  transform: rotate(180deg); writing-mode: vertical-rl;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--faint);
}
.d2-head { padding: 54px 56px 40px 96px; position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.d2-eyebrow-wrap { flex: 0 0 auto; }
.d2-title { font-family: var(--display); font-weight: 400; font-size: 62px; line-height: 0.98; letter-spacing: -0.015em; margin: 18px 0 0; white-space: nowrap; }
.d2-title em { font-style: italic; color: var(--gold-bright); }
.d2-meta { flex: 0 0 auto; text-align: right; color: var(--faint); font-family: var(--mono); font-size: 12px; line-height: 1.7; letter-spacing: 0.04em; }
.d2-meta b { color: var(--muted); font-weight: 500; }

.d2-list { margin-top: 6px; padding-left: 40px; margin-left: 36px; position: relative; z-index: 2; }
.d2-row {
  position: relative; display: grid; grid-template-columns: 132px 1fr auto 64px;
  align-items: center; gap: 28px; padding: 30px 56px 30px 56px;
  border-top: 1px solid var(--line); cursor: pointer; overflow: hidden;
  transition: padding-left .35s cubic-bezier(.2,.7,.3,1);
  text-decoration: none; color: inherit;
}
.d2-row:last-child { border-bottom: 1px solid var(--line); }
.d2-row::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(199,154,47,0.16), rgba(199,154,47,0.02));
  transition: width .4s cubic-bezier(.2,.7,.3,1);
}
.d2-row:not(.locked):hover { padding-left: 80px; }
.d2-row:not(.locked):hover::before { width: 100%; }
.d2-idx { position: relative; z-index: 1; font-family: var(--mono); font-size: 16px; color: var(--gold); letter-spacing: 0.06em; }
.d2-name { position: relative; z-index: 1; font-family: var(--display); font-size: 52px; font-weight: 400; line-height: 1; letter-spacing: -0.01em; color: var(--ink); transition: color .3s; }
.d2-row:not(.locked):hover .d2-name { color: #fff; }
.d2-desc { position: relative; z-index: 1; color: var(--muted); font-size: 14.5px; line-height: 1.5; max-width: 280px; }
.d2-arrow { position: relative; z-index: 1; justify-self: end; color: var(--faint); transition: transform .35s, color .35s; }
.d2-row:not(.locked):hover .d2-arrow { color: var(--gold-bright); transform: translateX(6px); }
.d2-row.locked { cursor: default; }
.d2-row.locked .d2-name, .d2-row.locked .d2-idx { color: var(--faint); }
.d2-lock-pill { position: relative; z-index: 1; justify-self: end; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line); padding: 5px 11px; border-radius: 100px; }

/* =========================================================
   DIRECTION 3 — Atrium Portals
   ========================================================= */
.d3 { display: flex; flex-direction: column; }
.d3-top { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 34px 48px; }
.d3-headline { position: absolute; top: 116px; left: 0; right: 0; z-index: 4; text-align: center; pointer-events: none; }
.d3-headline .eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-bright); }
.d3-headline h1 { font-family: var(--serif); font-weight: 500; font-size: 40px; letter-spacing: -0.015em; margin: 12px 0 0; color: var(--ink); }
.d3-headline h1 em { font-style: normal; color: var(--gold-bright); }

.d3-panels { display: flex; height: 900px; width: 100%; }
.d3-panel {
  position: relative; flex: 1; height: 100%; cursor: pointer; overflow: hidden;
  border-right: 1px solid rgba(8,22,38,0.6);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 48px; box-sizing: border-box;
  transition: flex .55s cubic-bezier(.3,.8,.3,1);
}
.d3-panel:last-child { border-right: none; }
.d3-panel .veil { position: absolute; inset: 0; transition: background .5s, opacity .5s; }
.d3-panel .grad { position: absolute; inset: 0; opacity: 0.0; transition: opacity .55s; }
.d3-edge { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 0; background: linear-gradient(var(--gold-bright), var(--gold-deep)); transition: height .55s cubic-bezier(.3,.8,.3,1); box-shadow: 0 0 18px rgba(227,183,61,0.5); }
.d3-panels:hover .d3-panel { flex: 0.82; }
.d3-panels:hover .d3-panel:hover { flex: 1.55; }
.d3-panel:hover .grad { opacity: 1; }
.d3-panel:hover .d3-edge { height: 60%; }
.d3-panel.locked { cursor: default; }
.d3-panels:hover .d3-panel.locked { flex: 0.6; }

.d3-pstack { position: relative; z-index: 2; max-width: 340px; }
.d3-num { font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; color: var(--gold); }
.d3-pico { width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: rgba(199,154,47,0.1); border: 1px solid rgba(199,154,47,0.3); color: var(--gold-bright); margin: 18px 0 26px; transition: transform .5s; }
.d3-panel:hover .d3-pico { transform: translateY(-2px); }
.d3-pname { font-family: var(--display); font-size: 46px; font-weight: 400; line-height: 1.04; letter-spacing: -0.01em; color: var(--ink); }
.d3-pdesc { color: var(--muted); font-size: 15px; line-height: 1.55; max-width: 300px; margin-top: 0; opacity: 0; max-height: 0; overflow: hidden; transition: max-height .5s, opacity .45s, margin-top .5s; }
.d3-panel:hover .d3-pdesc { max-height: 120px; opacity: 1; margin-top: 16px; }
.d3-enter { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 14px; font-weight: 500; color: var(--gold-bright); opacity: 0; transform: translateY(6px); transition: opacity .45s .05s, transform .45s .05s; }
.d3-panel:hover .d3-enter { opacity: 1; transform: translateY(0); }
.d3-locktag { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
