:root {
  --bg: #f6f4f1;
  --surface: #ffffff;
  --ink: #1a1f2e;
  --muted: #5c6478;
  --accent: #2d6a8f;
  --accent-soft: rgba(45, 106, 143, 0.12);
  --border: rgba(26, 31, 46, 0.08);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(26, 31, 46, 0.08);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.05rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
.nav a,
.brand-link {
  touch-action: manipulation;
}

.wrap {
  width: min(1120px, min(92vw, 100% - 1.5rem));
  margin-inline: auto;
  padding-inline: max(0px, 0.25rem);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(246, 244, 241, 0.88);
  border-bottom: 1px solid var(--border);
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  min-width: 0;
  color: var(--ink);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  padding: 0.15rem 0.35rem 0.15rem 0.15rem;
  margin: -0.15rem -0.35rem -0.15rem -0.15rem;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.brand-link:hover {
  background: rgba(45, 106, 143, 0.06);
  box-shadow: 0 0 0 1px rgba(45, 106, 143, 0.1);
}

.brand-mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 8px rgba(15, 39, 68, 0.18));
}

.brand-mark img {
  width: 2.75rem;
  height: 2.75rem;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  line-height: 1.12;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.05rem, 2.5vw, 1.28rem);
  letter-spacing: -0.035em;
}

.brand-tag {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.92;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  background: var(--accent-soft);
  border-color: rgba(45, 106, 143, 0.2);
}

.hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.hero .lede {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero .lede strong {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1.12em;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.personas {
  padding: 2rem 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.persona {
  scroll-margin-top: 5.5rem;
}

.persona-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.persona-grid {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 0;
}

@media (max-width: 820px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }

  .persona-photo {
    aspect-ratio: 16 / 10;
    max-height: min(70vw, 420px);
  }

  .persona-photo:not(.persona-photo--panorama) {
    aspect-ratio: 1;
    max-height: min(92vw, 420px);
  }

  .personas {
    gap: 2.75rem;
    padding-bottom: 3rem;
  }

  .hero {
    padding: 2.25rem 0 1.75rem;
  }

  .hero .lede {
    font-size: 1rem;
    padding-inline: 0.25rem;
  }

  .persona {
    scroll-margin-top: 4.5rem;
  }
}

@media (max-width: 520px) {
  .site-header .inner {
    flex-direction: column;
    align-items: stretch;
    padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
  }

  .nav {
    justify-content: flex-start;
    gap: 0.4rem;
  }

  .nav a {
    font-size: 0.8rem;
    padding: 0.5rem 0.65rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
  }

  .brand-mark img {
    width: 2.4rem;
    height: 2.4rem;
  }

  .brand-tag {
    letter-spacing: 0.1em;
    font-size: 0.58rem;
  }

  .x-feed-toggle {
    min-height: 44px;
    width: 100%;
    justify-content: center;
  }

  .x-feed-host {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.persona-photo {
  margin: 0;
  background: #eef1f6;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: stretch;
}

.persona-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wide reference shots — keep subject centred when cropping to portrait slot */
.persona-photo--panorama img {
  object-position: center 38%;
}

/* Profile screenshots — anchor left; crop away empty/sidebar space on the right */
.persona-photo--crop-left img {
  object-position: left 22%;
}

.persona-body {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.persona-body header {
  margin-bottom: 1.25rem;
}

.persona-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}

.pill {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.persona-body h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 1.5rem 0 0.5rem;
}

.persona-body p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.persona-body p:last-child {
  margin-bottom: 0;
}

.list-clean {
  margin: 0 0 0.85rem;
  padding-left: 1.2rem;
  color: var(--ink);
}

.list-clean li {
  margin-bottom: 0.35rem;
}

/* Jace — Instagram reach highlighted at top of bio stack */
.bio-highlight-stat {
  margin: 0.35rem 0 1rem;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  background: linear-gradient(105deg, rgba(45, 106, 143, 0.12), rgba(45, 106, 143, 0.04));
  border-radius: 10px;
  border: 1px solid rgba(45, 106, 143, 0.2);
  max-width: max-content;
}

.bio-highlight-stat strong {
  color: var(--ink);
  font-weight: 700;
}

.pull-quote {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-left: 4px solid var(--accent);
  background: rgba(45, 106, 143, 0.06);
  font-style: italic;
  color: var(--muted);
}

.pull-quote + .pull-quote {
  margin-top: 0.75rem;
}

.example-voice-note {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.example-voice-note + .pull-quote {
  margin-top: 0.55rem;
}

/* Lazy X (Twitter) profile timeline embeds */
.x-feed-slot {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.x-feed-slot .x-feed-heading {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.x-feed-slot .x-feed-note {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  max-width: 62ch;
}

.x-feed-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(45, 106, 143, 0.35);
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
}

.x-feed-toggle:hover:not(:disabled) {
  background: rgba(45, 106, 143, 0.2);
}

.x-feed-toggle:disabled {
  opacity: 0.75;
  cursor: wait;
}

.x-feed-host {
  margin-top: 1rem;
  min-height: 120px;
  overflow: auto;
  max-width: 100%;
}

.x-feed-host[hidden] {
  display: none;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2rem 0 2.5rem;
  margin-top: 2rem;
}

.site-footer p {
  margin: 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
  font-weight: 600;
}
