/* MrJ Official — tokens from DESIGN.md. Mobile-first. */
@font-face {
  font-family: "Newsreader";                   /* display serif, stands in for the ref's Reckless Neue */
  src: url("fonts/Newsreader-Display.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Mona Sans Condensed";          /* the ref's nav / eyebrow face (OFL) */
  src: url("fonts/MonaSansCondensed-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* MrJ CI — dark navy base + blue light (from the MrJ AI Era 2027 site palette) */
  --canvas: #0b1018;
  --navy: #142033;
  --blue: #00aaff;
  --surface-1: #0f1726;
  --surface-2: #142033;
  --hairline: #1c2838;
  --hairline-strong: #2a3a52;
  --ink: #f3f5f7;
  --ink-muted: #aab7c7;
  --ink-subtle: #8d9bad;
  --ink-tertiary: #7f8c9d;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, system-ui, "Segoe UI", sans-serif;
  --caps: "Mona Sans Condensed", "Inter", -apple-system, system-ui, sans-serif;
  /* hero name: light at the top-left fading into the photo's dark tones, like the ref */
  --hero-grad: linear-gradient(108deg, #f3ece1 0%, #e3dacb 30%, #a79d8e 50%, #3a3338 72%, #1b1a22 100%);
  /* landscape: the name sits in FRONT of the person and fades into the body where it crosses it */
  --hero-grad-front: linear-gradient(100deg,
    #f3ece1 0%, #e6ddcf 26%, rgba(190, 180, 166, 0.92) 42%,
    rgba(90, 82, 90, 0.60) 60%, rgba(40, 36, 48, 0.38) 78%, rgba(18, 16, 24, 0.28) 100%);

  --r-md: 12px;
  --r-lg: 16px;
  --container: 760px;
  --gutter: 20px;
  --section: 72px;
}
@media (min-width: 720px) {
  :root { --gutter: 32px; --section: 112px; }
}
@media (min-width: 960px) {
  :root { --section: 128px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--canvas);
  /* depth: three soft blue-navy glows down the page + a faint diagonal sheen, on the navy base */
  background-image:
    radial-gradient(60% 38% at 18% 22%, rgba(20, 32, 51, 0.95) 0%, rgba(20, 32, 51, 0) 70%),
    radial-gradient(55% 30% at 85% 48%, rgba(0, 170, 255, 0.10) 0%, rgba(0, 170, 255, 0) 70%),
    radial-gradient(70% 34% at 30% 84%, rgba(20, 32, 51, 0.90) 0%, rgba(20, 32, 51, 0) 72%),
    linear-gradient(160deg, rgba(0, 170, 255, 0.05) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.35) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: var(--section) 0 0; }

.eyebrow {
  font-family: var(--caps);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-subtle);
  margin: 0 0 12px;
}
.section-title {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  margin: 0 0 32px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.hero picture, .hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero img {
  object-fit: cover;
  object-position: 50% 0%;        /* portrait: keep the head clear of the name at the top */
}
/* layer order: photo (0) -> name (1) -> dark gradient (3) -> subline + chevron (4) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    to top,
    rgba(11, 16, 24, 0.96) 0%,
    rgba(11, 16, 24, 0.55) 32%,
    rgba(11, 16, 24, 0.05) 60%,
    rgba(11, 16, 24, 0.30) 82%,
    rgba(11, 16, 24, 0.60) 100%
  );
}
.hero-inner {
  position: absolute;            /* phone: name above the head, in the spotlight haze */
  left: 0; right: 0; top: 7svh;
  z-index: 1;
  width: 100%;
  padding: 0 var(--gutter);
  text-align: center;
}
.hero-title {
  font-size: clamp(40px, 10.3vw, 84px);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0;
  padding-bottom: 0.06em;             /* room for descender of J inside the clip box */
  /* ref-style: light at the top, fading into the body/clothes at the bottom */
  color: var(--ink);
  background: var(--hero-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.45));   /* lifts the name off the spotlight haze on phones */
}
.hero-foot {
  position: absolute;            /* subline + Instagram, always above the photo and the scrim */
  z-index: 4;
  left: 0; right: 0; bottom: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 0 var(--gutter);
}
.hero-follow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px 0 16px;
  border: 1px solid rgba(243, 245, 247, 0.35);
  border-radius: 9999px;
  background: rgba(11, 16, 24, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--caps);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.hero-follow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.hero-follow:hover { background: rgba(20, 32, 51, 0.7); border-color: rgba(243, 245, 247, 0.7); }
.hero-sub {
  margin: 0 auto;
  max-width: 30ch;
  text-align: center;
  font-family: var(--caps);
  font-size: clamp(12px, 3.1vw, 15px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--ink-muted);
}
.hero-cue {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  color: var(--ink-subtle);
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}
@media (min-width: 960px) and (orientation: landscape) {
  .hero { align-items: center; }
  .hero img { object-position: 50% 50%; }
  .hero-inner { position: relative; top: auto; padding-top: 22vh; }  /* MacBook: name across the chest, behind the body, like the ref */
  .hero-title {
    filter: none;
    background: var(--hero-grad-front);
    -webkit-background-clip: text; background-clip: text;
    font-size: clamp(86px, 9.5vw, 140px);   /* ~90 %, scaled with the inset photo */
    letter-spacing: 0.02em;
    white-space: nowrap;
  }
  .hero::after {
    background: linear-gradient(to top,
      rgba(11, 16, 24, 0.97) 0%,
      rgba(11, 16, 24, 0.45) 28%,
      rgba(11, 16, 24, 0.05) 60%,
      rgba(11, 16, 24, 0.22) 100%);
  }
  .hero-foot { bottom: 76px; gap: 20px; }
  .hero-sub { max-width: none; font-size: 15px; }
}

/* ---------- ABOUT card ---------- */
.card {
  background: var(--surface-1);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 170, 255, 0.04) inset;
}
.about-card { display: grid; gap: 24px; }
.about-card .photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
}
.about-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.about-card h2 { font-size: 28px; line-height: 1.2; margin-bottom: 14px; }
.about-card p { margin: 0 0 10px; color: var(--ink-muted); }
.tags {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  padding: 10px 14px;
  font-family: var(--caps);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d3dbe6;
  line-height: 1;
}
@media (min-width: 720px) {
  .hero-sub { max-width: 44ch; }
  .card { padding: 32px; }
  .about-card { grid-template-columns: 45fr 55fr; align-items: stretch; gap: 32px; }
  .about-card .photo { aspect-ratio: auto; height: 100%; min-height: 360px; }
}

/* ---------- LEARN ---------- */
.learn-grid {
  display: grid;
  gap: 16px;
}
.learn-card {
  background: linear-gradient(180deg, rgba(20, 32, 51, 0.35), rgba(20, 32, 51, 0.05));
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color 0.3s ease;
}
.learn-card:hover { border-color: var(--hairline-strong); }
.learn-card svg {
  width: 28px;
  height: 28px;
  stroke: var(--ink);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 22px;
}
.learn-card h3 { font-size: 28px; line-height: 1.2; margin-bottom: 10px; }
.learn-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-subtle); }
@media (min-width: 900px) {
  .learn { --container: 1040px; }
  .learn .section-title, .learn .eyebrow { text-align: center; }
  .learn-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}

/* ---------- FOLLOW ---------- */
.follow { text-align: center; }
.follow .section-title { margin-bottom: 12px; }
.follow p { margin: 0 auto 28px; color: var(--ink-muted); max-width: 40ch; }
.follow-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid var(--hairline-strong);
  border-radius: 9999px;
  font-family: var(--caps);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.btn:hover { background: var(--surface-2); border-color: #3a4d6a; }
@media (min-width: 720px) {
  .follow-links { flex-direction: row; justify-content: center; }
  .btn { min-width: 180px; }
}

/* ---------- FOOTER ---------- */
footer {
  margin-top: var(--section);
  border-top: 1px solid var(--hairline);
  padding: 40px 0 48px;
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--ink-tertiary);
  text-align: center;
}
footer p { margin: 0; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-cue { animation: none; }
}
