/* G2K Labs — team link pages (link-in-bio). Brand system: navy #14264A, corporate blue #363583, indigo #5B5BD6. */

:root {
  --ink: #14264A;
  --ink-deep: #0C182F;
  --body: #3D4A61;
  --muted-text: #5F6B80;
  --corp: #363583;
  --accent: #5B5BD6;
  --paper: #FFFFFF;
  --line: #E2E6EE;
  --radius: 14px;
  --display: "Avenir Next", "Segoe UI", "Helvetica Neue", -apple-system, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--text);
  color: #E8ECF4;
  background:
    radial-gradient(1100px 700px at 50% -10%, rgba(91, 91, 214, 0.35), transparent 65%),
    radial-gradient(900px 600px at 90% 110%, rgba(54, 53, 131, 0.35), transparent 60%),
    linear-gradient(180deg, #14264A 0%, #0C182F 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 18px 40px;
}

/* faint dot grid, matching the house "washed" section texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  z-index: 0;
}

.shell { position: relative; z-index: 1; width: 100%; max-width: 520px; }

/* ---------- profile head ---------- */

.profile { text-align: center; }

.photo-frame {
  position: relative;
  width: 150px;
  max-width: 42%;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #1B2F58, #0F1F3D);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-frame .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 24, 47, 0) 45%, rgba(12, 24, 47, 0.85) 100%);
}

/* Placeholder tile: the G2K ring mark (white ring, corporate-blue square)
   until a photo exists for that person. */
.monogram {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: linear-gradient(160deg, #F2F4F9, #DFE4EE);
}
.monogram svg { width: 62%; height: auto; display: block; }

.name {
  font-family: var(--display);
  font-size: clamp(24px, 6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 20px 0 4px;
  color: #FFFFFF;
}

.role {
  margin: 0;
  font-size: 15px;
  color: #B9C4D8;
}

.role .org { color: #FFFFFF; }

.tagline {
  margin: 12px auto 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.55;
  color: #9FADC6;
}

/* ---------- link buttons ---------- */

.links {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.links a {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.links a:hover,
.links a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  background: #FBFCFF;
}

.links a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.links a:active { transform: translateY(0); }

.links .ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EEF1F8;
}

.links .ico svg { width: 20px; height: 20px; display: block; }

.links .txt { text-align: center; padding: 0 4px; }

.links .label {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: 0.01em;
}

.links .sub {
  display: block;
  font-size: 12px;
  color: var(--muted-text);
  margin-top: 2px;
}

/* primary action (save contact) */
.links a.primary {
  background: var(--corp);
  color: #FFFFFF;
}
.links a.primary:hover,
.links a.primary:focus-visible { background: #2F2E74; }
.links a.primary .ico { background: rgba(255, 255, 255, 0.16); }
.links a.primary .ico svg { color: #FFFFFF; }
.links a.primary .sub { color: rgba(255, 255, 255, 0.72); }

.links a .chev { display: flex; align-items: center; justify-content: center; opacity: 0.35; }
.links a .chev svg { width: 16px; height: 16px; }

/* ---------- directory ---------- */

.dir-head { text-align: center; margin-bottom: 26px; }
.dir-head .cobrand { display: inline-block; color: #FFFFFF; }
.dir-head .cobrand svg { width: 52px; height: 52px; display: block; margin: 0 auto; }
.dir-head h1 {
  font-family: var(--display);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 600;
  color: #FFFFFF;
  margin: 18px 0 8px;
}
.dir-head p { margin: 0; color: #A9B6CE; font-size: 15px; line-height: 1.55; }

.people { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.people a {
  display: grid;
  grid-template-columns: 60px 1fr 24px;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.people a:hover, .people a:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32); }
.people a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.people .thumb {
  width: 60px; height: 60px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(160deg, #24407A, #14264A);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 20px; color: #FFFFFF;
}
.people .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.people .thumb.mark { color: var(--ink); background: linear-gradient(160deg, #F2F4F9, #DFE4EE); }
.people .thumb.mark svg { width: 62%; height: auto; display: block; }
.people .who strong { display: block; font-family: var(--display); font-size: 16px; font-weight: 600; }
.people .who span { display: block; font-size: 13px; color: var(--muted-text); margin-top: 2px; }
.people .chev { opacity: 0.35; display: flex; align-items: center; }
.people .chev svg { width: 16px; height: 16px; }

/* ---------- footer co-brand ---------- */

.foot { margin: 30px 0 0; text-align: center; }

.foot .cobrand {
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 8px 4px;
}
.foot .cobrand svg { width: 30px; height: 30px; display: block; }
.foot .cobrand .wordmark {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #FFFFFF;
}
.foot .meta { margin: 10px 0 0; font-size: 12px; line-height: 1.7; color: #8494B0; }
.foot .meta a { color: #B9C4D8; }
.foot .back { display: inline-block; margin-top: 14px; font-size: 13px; color: #B9C4D8; }

/* ---------- motion: once, on entry (house rule) ---------- */

.reveal { opacity: 0; transform: translateY(10px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.5s ease, transform 0.5s ease; }
.links li:nth-child(2) .reveal, .people li:nth-child(2) .reveal { transition-delay: 0.05s; }
.links li:nth-child(3) .reveal, .people li:nth-child(3) .reveal { transition-delay: 0.1s; }
.links li:nth-child(4) .reveal, .people li:nth-child(4) .reveal { transition-delay: 0.15s; }
.links li:nth-child(5) .reveal, .people li:nth-child(5) .reveal { transition-delay: 0.2s; }
.links li:nth-child(6) .reveal, .people li:nth-child(6) .reveal { transition-delay: 0.25s; }
.links li:nth-child(n+7) .reveal, .people li:nth-child(n+7) .reveal { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .links a, .people a { transition: none; }
}

@media (max-width: 380px) {
  .links a { grid-template-columns: 40px 1fr 28px; min-height: 58px; }
}

/* On desktop the full-width square portrait is overpowering — cap it, keep the
   phone view (where link-in-bio pages actually get used) full-bleed. */
@media (min-width: 700px) {
  body { padding-top: 44px; }
}
