:root {
  --bg: #0c0d10;
  --bg-elev: #14161c;
  --ink: #f2ebe1;
  --muted: #a79f93;
  --line: rgba(242, 235, 225, 0.12);
  --accent: #d27a3a;
  --accent-soft: rgba(210, 122, 58, 0.18);
  --copper: #b86a36;
  --steel: #7d8796;
  --danger-ink: #1a120c;
  --font-display: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --max: 1120px;
  --header-h: 4.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(210, 122, 58, 0.16), transparent 55%),
    radial-gradient(900px 500px at 0% 100%, rgba(125, 135, 150, 0.12), transparent 50%),
    linear-gradient(180deg, #101218 0%, var(--bg) 45%, #090a0d 100%);
  font-family: var(--font-display);
  line-height: 1.55;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(242, 235, 225, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 235, 225, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
  opacity: 0.45;
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  display: block;
  height: 1.55rem;
  width: auto;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-brand img {
  display: block;
  height: 1.1rem;
  width: auto;
  opacity: 0.92;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  font: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  cursor: pointer;
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  min-height: calc(100vh - var(--header-h) - 5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 1.25rem 3rem;
}

.about-brand {
  margin: 0 0 1.75rem;
}

.hero-brand {
  margin: 0 0 1.15rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 40ms forwards;
}

.logo-avatar-sm {
  width: 148px;
}

.logo-avatar-hero {
  width: 176px;
}

.hero h1,
.page-header h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.35;
  padding-bottom: 0.12em;
  max-width: 16ch;
  overflow: visible;
}

.hero h1 {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 80ms forwards;
}

.lede {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 34ch;
  font-size: 1.05rem;
}

.lede.wide {
  max-width: 48ch;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  font-size: 0.9rem;
}

.back-link:hover {
  color: var(--ink);
}

.character-hero {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.character-portrait {
  width: 100%;
}

.character-intro h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.25;
  max-width: 18ch;
  padding-bottom: 0.08em;
}

.character-intro .role {
  margin-top: 0.35rem;
}

.character-prose {
  margin-bottom: 2.5rem;
}

.chat-platforms h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.section-note {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 860px) {
  .character-hero {
    grid-template-columns: 1fr;
  }

  .character-portrait {
    max-width: 320px;
  }
}

.hero .lede {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 180ms forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 280ms forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid transparent;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--danger-ink);
  font-weight: 700;
}

.btn-primary:hover {
  background: #e08945;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(20, 22, 28, 0.55);
}

.btn-ghost:hover {
  border-color: rgba(242, 235, 225, 0.28);
}

.hero-visual {
  min-height: min(58vh, 560px);
  position: relative;
  display: grid;
  place-items: center;
  opacity: 0;
  animation: fade 1200ms ease 160ms forwards;
}

.logo-avatar {
  width: 176px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ffffff;
  border: 2px solid rgba(242, 235, 225, 0.22);
  box-shadow:
    0 0 0 1px rgba(210, 122, 58, 0.18),
    0 14px 36px rgba(0, 0, 0, 0.4);
}

.logo-avatar img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.14);
}

.hero-video {
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #090a0d;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.strip {
  max-width: var(--max);
  margin: 0 auto 3rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-header {
  margin-bottom: 2.5rem;
  max-width: 40rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--accent);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
}

.page-header .lede {
  max-width: 48ch;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.fineprint {
  margin-top: 2rem;
  font-size: 0.85rem;
}

.profile-list {
  display: grid;
  gap: 1.5rem;
}

.profile {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 1.25rem;
  align-items: stretch;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.profile-media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(210, 122, 58, 0.2), transparent 45%),
    linear-gradient(180deg, #1a1d25, #0f1116);
}

.profile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% 18%;
  display: block;
}

.profile-media.placeholder {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(242, 235, 225, 0.04),
      rgba(242, 235, 225, 0.04) 8px,
      transparent 8px,
      transparent 16px
    ),
    #14161c;
}

.profile h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2rem;
}

.role {
  margin: 0 0 0.85rem;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.profile-body p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 48ch;
}

.text-link {
  color: var(--ink);
  letter-spacing: 0.04em;
}

.text-link:hover {
  color: var(--accent);
}

.link-list {
  display: grid;
  gap: 0.65rem;
  max-width: 40rem;
}

.link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 0 1.15rem;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
  overflow: visible;
  transition: color 160ms ease, padding-left 160ms ease;
}

.link-main {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  line-height: 1.5;
  overflow: visible;
}

.link-icon {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  color: var(--ink);
  opacity: 0.9;
}

.link-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.link-row > span:last-child {
  color: var(--muted);
  text-align: right;
  line-height: 1.5;
  overflow: visible;
  padding-bottom: 0.12em;
}

.link-row:hover {
  padding-left: 0.35rem;
  color: var(--accent);
}

.link-row:hover .link-icon {
  color: var(--accent);
  opacity: 1;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer strong {
  color: var(--ink);
  margin-right: 0.75rem;
  letter-spacing: 0.12em;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a:hover {
  color: var(--ink);
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2rem;
  }

  .hero-visual {
    order: -1;
    min-height: auto;
  }

  .hero-video {
    width: min(72vw, 280px);
  }

  .logo-avatar-hero {
    width: 140px;
  }

  .profile {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(12, 13, 16, 0.96);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }

  .site-header {
    position: relative;
  }
}
