/* Adam Mackay — personal site.
   Brand: Real Agent. Tokens extracted verbatim from the live realagent.network
   :root (carbon #0E0E0E, lime #CCFF00, ink #1A1A1A, soft #6B6B66, paper #FAFAF8,
   bone #ECECE8) and its type system (Archivo display, Inter body). Self-contained;
   fonts load from Google Fonts exactly as the live site loads them. */

:root {
  --carbon: #0E0E0E;
  --ink: #1A1A1A;
  --soft: #6B6B66;
  --faint: #9A9A93;
  --paper: #FAFAF8;
  --bone: #ECECE8;
  --white: #FFFFFF;
  --lime: #CCFF00;
  --lime-ink: #0E0E0E;      /* text that sits on lime */
  --on-carbon: #ECECE8;     /* body text on carbon */
  --rule: rgba(20, 20, 20, 0.10);
  --rule-light: rgba(236, 236, 232, 0.14);
  --display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --wrap: 1180px;
  --radius: 18px;
  --radius-lg: 26px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* Utility display type ---------------------------------------------------- */
.display {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.035em;
  line-height: 0.94;
}
.eyebrow {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
}
.mark-lime { color: var(--lime); }

/* Buttons ----------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 14px 26px;
  font-family: var(--body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lime { background: var(--lime); color: var(--lime-ink); }
.btn-lime:hover { background: #d9ff3a; }
.btn-dark { background: var(--carbon); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--on-carbon); border-color: var(--rule-light); }
.btn-ghost-light:hover { border-color: var(--lime); color: var(--lime); }
.btn .arw { transition: transform 0.15s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* Top bar ----------------------------------------------------------------- */
.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--carbon);
  color: var(--white);
  border-bottom: 1px solid var(--rule-light);
}
.bar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 15px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--white);
  flex: none;
}
.brand-mark { width: 25px; height: 23px; color: var(--lime); flex: none; }
.brand-name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-name .thin { font-weight: 500; color: var(--bone); }
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--bone);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.14s ease;
}
.nav-link:hover { color: var(--lime); }
.nav .btn { padding: 10px 20px; font-size: 0.9rem; }
.nav-toggle { display: none; }

/* Hero -------------------------------------------------------------------- */
.hero {
  background: var(--carbon);
  color: var(--on-carbon);
  padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 8vw, 104px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -30%;
  width: 46%;
  height: 150%;
  background: radial-gradient(closest-side, rgba(204, 255, 0, 0.10), transparent 72%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }
.hero .eyebrow { color: var(--lime); margin-bottom: 22px; }
.hero h1 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0 0 26px;
  font-size: clamp(3.2rem, 11vw, 8rem);
  color: var(--white);
}
.hero h1 .line2 { display: block; color: var(--lime); }
.hero-lede {
  font-size: clamp(1.12rem, 2.3vw, 1.42rem);
  line-height: 1.5;
  color: var(--bone);
  max-width: 40rem;
  margin: 0 0 18px;
  font-weight: 400;
}
.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.hero-roles li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--on-carbon);
  border: 1px solid var(--rule-light);
  border-radius: 999px;
  padding: 7px 15px;
}
.hero-roles b { color: var(--lime); font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Section shell ----------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-bone { background: var(--bone); }
.section-carbon { background: var(--carbon); color: var(--on-carbon); }
.section-head { max-width: 42rem; margin: 0 0 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.96;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  margin: 14px 0 0;
  color: inherit;
}
.section-carbon .section-head h2 { color: var(--white); }
.section-intro { color: var(--soft); font-size: 1.06rem; margin: 16px 0 0; }
.section-carbon .section-intro { color: var(--bone); }

/* Talk cards -------------------------------------------------------------- */
.talk-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.talk-card {
  display: flex;
  flex-direction: column;
  background: var(--carbon);
  color: var(--on-carbon);
  border-radius: var(--radius-lg);
  padding: 34px 32px 30px;
  text-decoration: none;
  min-height: 260px;
  border: 1px solid rgba(204, 255, 0, 0.14);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.talk-card:hover {
  transform: translateY(-3px);
  border-color: var(--lime);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}
.talk-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}
.talk-card h3 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.9rem;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--white);
}
.talk-card p { margin: 0; color: var(--bone); font-size: 1rem; line-height: 1.5; }
.talk-go {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--lime);
}
.talk-card:hover .talk-go .arw { transform: translateX(4px); }
.talk-go .arw { transition: transform 0.16s ease; }
.talk-host { font-size: 0.82rem; color: var(--faint); font-weight: 500; }

/* Library / collections --------------------------------------------------- */
.collection { margin-top: 8px; }
.collection + .collection { margin-top: 56px; }
.collection-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.collection-head h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
  margin: 0;
  color: var(--ink);
}
.collection-head p { margin: 0; color: var(--soft); font-size: 0.98rem; }
.badge-soon {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime-ink);
  background: var(--lime);
  border-radius: 999px;
  padding: 5px 11px;
  line-height: 1;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tile {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
}
.section-bone .tile { background: var(--white); }
.tile-thumb {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--bone);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.section-bone .tile-thumb { background: var(--paper); }
.tile-thumb svg { width: 23px; height: 23px; }
.tile h4 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.06rem;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.tile p { margin: 0; color: var(--soft); font-size: 0.93rem; line-height: 1.5; }
.tile-foot {
  margin-top: auto;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

/* Events ------------------------------------------------------------------ */
.event-empty {
  background: var(--white);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  padding: 44px 34px;
  text-align: center;
}
.event-empty h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.6rem;
  margin: 0 0 10px;
  color: var(--ink);
}
.event-empty p { margin: 0 auto 22px; color: var(--soft); max-width: 34rem; }

/* Connect / socials ------------------------------------------------------- */
.connect-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 22px;
  align-items: stretch;
}
.connect-primary {
  background: var(--carbon);
  color: var(--on-carbon);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
}
.connect-primary h3 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.7rem;
  margin: 0 0 10px;
  color: var(--white);
}
.connect-primary p { margin: 0 0 26px; color: var(--bone); }
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--lime);
  color: var(--lime-ink);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease;
}
.social-link:hover { transform: translateY(-1px); }
.social-link svg { width: 18px; height: 18px; }
.social-soon {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.social-soon h4 {
  font-family: var(--body);
  font-weight: 700;
  font-size: 1.02rem;
  margin: 0 0 6px;
  color: var(--ink);
}
.social-soon > p { margin: 0 0 20px; color: var(--soft); font-size: 0.93rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px dashed var(--rule);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--faint);
  background: var(--paper);
}
.chip svg { width: 15px; height: 15px; opacity: 0.6; }

/* Book CTA band ----------------------------------------------------------- */
.book-band { background: var(--carbon); color: var(--on-carbon); }
.book-inner {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 32px;
  align-items: center;
}
.book-band h2 {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.94;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  margin: 0;
  color: var(--white);
}
.book-band h2 .mark-lime { color: var(--lime); }
.book-band p { margin: 16px 0 0; color: var(--bone); max-width: 34rem; }
.book-cta { display: flex; flex-direction: column; gap: 12px; }
.book-cta .btn { justify-content: center; }
.book-cta .fine { font-size: 0.82rem; color: var(--faint); text-align: center; }

/* Footer ------------------------------------------------------------------ */
.foot { background: var(--paper); border-top: 1px solid var(--rule); }
.foot-brands { padding: 48px 0 8px; text-align: center; }
.foot-brands-title {
  margin: 0 0 24px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
}
.foot-brands-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 54px;
}
.foot-brand-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.foot-brand-img {
  width: auto;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(100%);
  transition: opacity 0.18s ease, filter 0.18s ease;
}
.foot-brand-link:hover .foot-brand-img { opacity: 1; filter: grayscale(0%); }
.foot-muvin { height: 30px; }
.foot-ra { height: 54px; }
.foot-ragency { height: 40px; transform: translateY(1px); }

.foot-base {
  border-top: 1px solid var(--rule);
  margin-top: 40px;
  padding: 26px 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.foot-tag {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: 0.92rem;
  color: var(--ink);
}
.foot-tag .mark-lime { color: #8fae00; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--soft); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.foot-links a:hover { color: var(--ink); }

/* Back to top ------------------------------------------------------------- */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--carbon);
  color: var(--lime);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 920px) {
  .talk-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .connect-grid { grid-template-columns: 1fr; }
  .book-inner { grid-template-columns: 1fr; gap: 26px; }
  .book-cta { flex-direction: row; flex-wrap: wrap; }
  .book-cta .btn { flex: 1 1 auto; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--carbon);
    padding: 12px clamp(20px, 5vw, 48px) 22px;
    border-bottom: 1px solid var(--rule-light);
  }
  .nav.open .nav-link { padding: 12px 0; border-bottom: 1px solid var(--rule-light); }
  .nav.open .btn { margin-top: 10px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--rule-light);
    background: transparent;
    color: var(--white);
    cursor: pointer;
  }
  .nav-toggle svg { width: 22px; height: 22px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-roles li { font-size: 0.84rem; }
  .talk-card { padding: 28px 24px 26px; }
  .foot-base { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
