/* Role Model Academy — link hub
   Brand colours come from the dashboard (CSS variables set in the page). */

:root {
  --line: color-mix(in srgb, var(--text) 11%, transparent);
  --line-strong: color-mix(in srgb, var(--accent) 50%, transparent);
  --surface-hover: color-mix(in srgb, var(--surface) 82%, var(--text));
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(90% 55% at 50% -12%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(70% 50% at 100% 100%, color-mix(in srgb, var(--surface) 70%, transparent), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* faint structural grid — gives the page its own texture without clutter */
.bg-texture {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 3.5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 3.5%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 75%);
}

.hub {
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
}

/* ---------- Profile ---------- */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 26px;
}

.logo {
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  margin-bottom: 26px;
}

.avatar-ring {
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), color-mix(in srgb, var(--accent) 25%, transparent) 40%, var(--accent) 80%);
  box-shadow: 0 14px 40px -12px color-mix(in srgb, var(--accent) 45%, transparent);
}
.avatar {
  display: block;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
  background: var(--surface);
}

.name {
  margin-top: 18px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: .015em;
  text-transform: uppercase;
}

.tagline {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}

.rule {
  display: block;
  width: 44px;
  height: 2px;
  margin: 16px 0 14px;
  background: var(--accent);
  border-radius: 2px;
}

.bio {
  max-width: 36ch;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Main call to action ---------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 18px 20px 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cta::after { /* one slow sheen on load */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 1.4s .9s var(--ease) 1 forwards;
  pointer-events: none;
}
.cta-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cta-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
}
.cta-label {
  margin-top: 2px;
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-weight: 700;
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.cta-sub { margin-top: 4px; font-size: 14.5px; font-weight: 500; opacity: .82; }
.cta-arrow {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-text);
  color: var(--accent);
  transition: transform .25s var(--ease);
}
.cta-arrow svg { width: 22px; height: 22px; }

/* ---------- Links ---------- */
.links {
  list-style: none;
  padding: 0;
  margin-top: 14px;
  display: grid;
  gap: 10px;
}
.link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  text-decoration: none;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.link-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  color: var(--accent);
}
.link-icon svg { width: 22px; height: 22px; }
.link-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.link-label { font-size: 17px; font-weight: 600; line-height: 1.25; }
.link-sub { font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.link-chev { flex: none; color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.link-chev svg { width: 18px; height: 18px; display: block; }

.foot {
  margin-top: 28px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .06em;
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

/* ---------- Interaction ---------- */
@media (hover: hover) {
  .cta:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -18px color-mix(in srgb, var(--accent) 80%, transparent); }
  .cta:hover .cta-arrow { transform: translateX(3px); }
  .link:hover { transform: translateY(-1px); border-color: var(--line-strong); background: var(--surface-hover); }
  .link:hover .link-chev { transform: translateX(3px); color: var(--accent); }
}
.cta:active, .link:active { transform: scale(.985); transition-duration: .08s; }
.cta:focus-visible, .link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cta:focus-visible { outline-color: var(--text); }

/* ---------- Entrance animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  animation: rise .55s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 55ms);
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes sheen { to { transform: translateX(120%); } }

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .cta::after { display: none; }
  .cta, .link, .cta-arrow, .link-chev { transition: none; }
}

/* ---------- Small phones ---------- */
@media (max-width: 360px) {
  .name { font-size: 30px; }
  .cta-label { font-size: 24px; }
  .link-label { font-size: 16px; }
}

/* ---------- Desktop: two columns, profile pinned on the left ---------- */
@media (min-width: 960px) {
  .hub {
    max-width: 1000px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 72px;
    align-items: start;
    padding: 72px 40px;
  }
  .profile {
    position: sticky;
    top: 72px;
    align-items: flex-start;
    text-align: left;
    padding: 0;
  }
  .logo { margin-bottom: 40px; }
  .avatar { width: 136px; height: 136px; }
  .name { font-size: 44px; margin-top: 24px; }
  .bio { font-size: 17.5px; }
  .links-col { padding-top: 6px; }
  .cta { padding: 26px 24px 26px 28px; }
  .cta-label { font-size: 32px; }
  .links { gap: 12px; margin-top: 16px; }
  .link { min-height: 76px; padding: 14px 18px 14px 14px; }
  .link-label { font-size: 18px; }
  .foot { text-align: left; }
}
