/* ─────────────────────────────────────────────────────────
   Dylan Haggett — personal hub
   Brand-neutral dark shell; each venture card carries its
   own brand colour via the --brand custom property.
   ───────────────────────────────────────────────────────── */

:root {
  --canvas:      #0A0C0F;
  --surface:     #13161C;
  --surface-hi:  #191D25;
  --line:        rgba(255, 255, 255, .09);
  --line-hi:     rgba(255, 255, 255, .18);

  --text:        #F4F5F7;
  --muted:       #A6ADBB;
  --faint:       #6C7484;

  --radius:      16px;
  --radius-lg:   22px;
  --maxw:        720px;
  --ease:        cubic-bezier(.2, .7, .3, 1);
}

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

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

body {
  margin: 0;
  overflow-x: clip; /* hero image bleeds past the wrap gutters */
  background: var(--canvas);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; height: auto; }

/* Soft ambient light behind the hero */
.glow {
  position: fixed;
  top: -22vh;
  left: 50%;
  width: min(900px, 130vw);
  height: 60vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(78, 127, 181, .16), transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(40px, 9vw, 80px) 20px 56px;
}

/* ── Hero ──────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

.hero__text { position: relative; }

/* Full-bleed hero image with no frame — the edges are masked away so the
   photo dissolves straight into the canvas instead of sitting on a card.
   Two gradients intersect: a vertical fade top-and-bottom, a horizontal
   fade left-and-right. */
.hero__photo {
  position: relative;
  width: min(100vw, 560px);
  aspect-ratio: 1 / 1;
  /* cancel the page's top padding so the photo runs flush to the top edge,
     then let the bottom fade overlap the name */
  margin-top: calc(-1 * clamp(40px, 9vw, 80px));
  margin-bottom: clamp(-72px, -9vw, -36px);

  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 46%, transparent 90%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent 0%, #000 14%, #000 46%, transparent 90%),
    linear-gradient(to right, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-composite: intersect;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 8vw, 46px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.hero__role {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.hero__bio {
  margin: 14px auto 0;
  max-width: 46ch;
  font-size: 15px;
  color: var(--muted);
}

/* ── Primary actions ───────────────────────────────────── */

.actions {
  display: grid;
  gap: 10px;
  margin-top: clamp(32px, 6vw, 44px);
}

.action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.action:hover,
.action:focus-visible {
  background: var(--surface-hi);
  border-color: var(--line-hi);
  transform: translateY(-2px);
}

.action--primary {
  background: #F4F5F7;
  color: #0A0C0F;
  border-color: transparent;
}

.action--primary:hover,
.action--primary:focus-visible {
  background: #FFFFFF;
  border-color: transparent;
}

.action__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
}

.action--primary .action__icon {
  background: rgba(10, 12, 15, .08);
  color: #0A0C0F;
}

.action__icon svg { width: 19px; height: 19px; }

.action__label { flex: 1 1 auto; min-width: 0; }

.action__label strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -.01em;
}

.action__label small {
  display: block;
  margin-top: 1px;
  font-size: 13px;
  color: var(--faint);
}

.action--primary .action__label small { color: rgba(10, 12, 15, .58); }

.action__arrow {
  flex: 0 0 auto;
  font-size: 17px;
  color: var(--faint);
  transition: transform .25s var(--ease), color .25s var(--ease);
}

.action--primary .action__arrow { color: rgba(10, 12, 15, .5); }

.action:hover .action__arrow,
.action:focus-visible .action__arrow {
  transform: translateX(3px);
  color: currentColor;
}

/* ── Section heading ───────────────────────────────────── */

.section-title {
  margin: clamp(44px, 8vw, 60px) 0 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ── Venture cards ─────────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  position: relative;
  display: block;
  height: 100%;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

/* Brand wash, revealed on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 16%, transparent), transparent 62%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 42%, transparent);
}

.card:hover::before,
.card:focus-visible::before { opacity: 1; }

.card__chip {
  position: relative;
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
  margin-bottom: 13px;
}

.card h3 {
  position: relative;
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.card p {
  position: relative;
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.card__host {
  position: relative;
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--faint);
  transition: color .25s var(--ease);
}

.card:hover .card__host { color: var(--brand); }

/* ── Social ────────────────────────────────────────────── */

.social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(40px, 7vw, 56px);
}

.social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}

.social a:hover,
.social a:focus-visible {
  color: var(--text);
  border-color: var(--line-hi);
  transform: translateY(-2px);
}

.social svg { width: 19px; height: 19px; }

/* ── Footer ────────────────────────────────────────────── */

.footer {
  margin-top: clamp(40px, 7vw, 56px);
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 12.5px;
  color: var(--faint);
}

/* ── Focus ─────────────────────────────────────────────── */

a:focus-visible {
  outline: 2px solid #7FB0E8;
  outline-offset: 3px;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .card p { margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
