:root {
  color-scheme: light;
  --background: #f5f0e8;
  --surface: #fffaf3;
  --surface-soft: #fff4f0;
  --surface-hover: #fae4e1;
  --text: #302b27;
  --muted: #776d64;
  --faint: #9b8e83;
  --line: rgba(80, 61, 47, 0.14);
  --accent: #d96870;
  --accent-soft: rgba(217, 104, 112, 0.11);
  --warm: #f1b0ad;
  --shadow: 0 20px 60px rgba(126, 73, 68, 0.09);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.2, 0.8, 0.2, 1.2);
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Light.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 300;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 500;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 600;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-Bold.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  scrollbar-color: var(--accent) rgba(241, 176, 173, 0.14);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  isolation: isolate;
  font-family: "Space Grotesk";
  font-synthesis: none;
  line-height: 1.65;
}

html::-webkit-scrollbar {
  width: 0.72rem;
}

html::-webkit-scrollbar-track {
  background: rgba(241, 176, 173, 0.1);
}

html::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--warm), var(--accent)) padding-box;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--accent) padding-box;
}

::selection {
  background: var(--warm);
  color: var(--text);
}

a {
  color: inherit;
}

.cursor-glow {
  position: fixed;
  z-index: 0;
  top: var(--pointer-y, 50vh);
  left: var(--pointer-x, 50vw);
  width: 25rem;
  height: 25rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 104, 112, 0.1), transparent 68%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 500ms ease;
  mix-blend-mode: multiply;
}

.js.has-pointer .cursor-glow {
  opacity: 0.5;
}

.atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 88% 0%, rgba(241, 176, 173, 0.18), transparent 29rem),
    radial-gradient(circle at 0% 58%, rgba(217, 104, 112, 0.09), transparent 25rem);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 3rem, 1120px);
  margin: 0 auto;
  padding: 1rem 0 2rem;
}

.js [data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(1.5rem);
  transition: opacity 900ms var(--ease-out), filter 900ms var(--ease-out), transform 900ms var(--ease-out);
}

.js [data-reveal="hero-copy"] {
  transition-delay: 100ms;
}

.js [data-reveal="hero-aside"] {
  transition-delay: 220ms;
}

.js [data-reveal="scroll-cue"] {
  transition-delay: 500ms;
}

.js [data-reveal].is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

.hero {
  --spot-x: 86%;
  --spot-y: 5%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
  min-height: 500px;
  margin-top: 0;
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem, 6vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
  border: 1px solid rgba(80, 61, 47, 0.1);
  border-radius: 2rem;
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(241, 176, 173, 0.15), transparent 26rem),
    rgba(255, 250, 243, 0.76);
  box-shadow: var(--shadow);
  transition: box-shadow 700ms var(--ease-out), background 700ms var(--ease-out);
}

.hero:hover {
  box-shadow: 0 24px 75px rgba(126, 73, 68, 0.13);
}

.hero::after {
  position: absolute;
  top: 0.5rem;
  right: 3rem;
  width: 14rem;
  height: 14rem;
  background: rgba(241, 176, 173, 0.11);
  content: "";
  -webkit-mask: url("heart.svg") center / contain no-repeat;
  mask: url("heart.svg") center / contain no-repeat;
  opacity: 0.58;
  animation: heart-breathe 7s ease-in-out infinite;
}

.hero-copy,
.hero-aside {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 1100px;
}

.hero-heart {
  position: absolute;
  right: 0.75rem;
  bottom: 0.85rem;
  z-index: 0;
  width: 4.75rem;
  height: 4.75rem;
  background: linear-gradient(145deg, var(--accent), var(--warm));
  filter: drop-shadow(0 12px 24px rgba(166, 83, 91, 0.2));
  opacity: 0.72;
  -webkit-mask: url("heart.svg") center / contain no-repeat;
  mask: url("heart.svg") center / contain no-repeat;
  animation: heart-float 12s ease-in-out infinite;
}

.scroll-cue {
  position: absolute;
  bottom: 1.7rem;
  left: clamp(1.5rem, 6vw, 5.5rem);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 250ms ease, gap 250ms var(--ease-spring);
}

.scroll-cue:hover {
  gap: 0.9rem;
  color: var(--accent);
}

.scroll-cue-line {
  display: block;
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  animation: cue-line 2.4s ease-in-out infinite;
}

.eyebrow,
.stat-label {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Space Grotesk";
  font-weight: 500;
}

h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(2.15rem, 2.8vw, 3.35rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero-title-line {
  display: inline;
}

.hero-aside {
  max-width: 640px;
  color: var(--muted);
  font-size: 1rem;
}

.hero-aside p:last-of-type {
  margin-bottom: 0;
}

.aside-signoff {
  margin-top: 1.75rem;
  padding-left: 1.15rem;
  border-left: 3px solid var(--warm);
  color: var(--text);
}

.quiet-stat {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: baseline;
  margin-top: 2rem;
  padding: 1rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  background: rgba(255, 250, 243, 0.65);
  box-shadow: 0 12px 35px rgba(112, 79, 49, 0.05);
}

.quiet-stat .stat-label {
  margin: 0;
}

.stat-number {
  color: var(--accent);
  font-family: "Space Grotesk";
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 0.9;
}

.stat-description {
  max-width: none;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: normal;
}

.people-section {
  padding: 6rem 0 5.5rem;
}

.former-people-section {
  padding-top: 0;
}

.section-heading {
  display: block;
  max-width: 720px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

h2 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 2.8vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-heading > p:last-child {
  max-width: 600px;
  margin: 1.4rem 0 0;
  color: var(--muted);
}

.people-count {
  margin: 4rem 0 1.25rem;
  color: var(--faint);
  font-size: 0.86rem;
}

.people-count strong {
  color: var(--text);
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0.65rem;
}

.person-card {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  --scale: 1;
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 250, 243, 0.7);
  box-shadow: 0 5px 20px rgba(112, 79, 49, 0.035);
  cursor: default;
  text-decoration: none;
  opacity: 0;
  filter: blur(6px);
  transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(var(--lift)) scale(var(--scale));
  animation: card-in 800ms var(--ease-out) forwards;
  animation-delay: calc(var(--index) * 8ms);
  transition: border-color 220ms ease, background 220ms ease, transform 180ms var(--ease-spring), box-shadow 220ms ease;
  transform-style: preserve-3d;
}

.person-card:hover {
  --lift: -5px;
  --scale: 1.015;
  border-color: rgba(217, 104, 112, 0.36);
  background: var(--surface-hover);
  box-shadow: 0 10px 25px rgba(112, 79, 49, 0.09);
}

.person-card.is-mutual::after {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 0.72rem;
  height: 0.72rem;
  background: var(--accent);
  content: "";
  opacity: 0.82;
  -webkit-mask: url("heart.svg") center / contain no-repeat;
  mask: url("heart.svg") center / contain no-repeat;
}

.person-card img {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 2px solid rgba(255, 250, 243, 0.9);
  border-radius: 0.85rem;
  object-fit: cover;
  box-shadow: 0 3px 12px rgba(112, 79, 49, 0.12);
  transition: transform 400ms var(--ease-spring), box-shadow 300ms ease;
}

.person-card:hover img {
  box-shadow: 0 7px 18px rgba(126, 73, 68, 0.17);
  transform: scale(1.06) rotate(-4deg);
}

.person-meta {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.person-meta strong,
.person-meta span,
.person-username {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-meta strong {
  font-size: 0.88rem;
  font-weight: 650;
}

.person-meta span,
.person-username {
  color: var(--faint);
  font-size: 0.74rem;
}

.person-card.is-former {
  background: rgba(255, 250, 243, 0.48);
}

.person-card.is-former:hover {
  background: rgba(255, 250, 243, 0.78);
}

.person-username {
  display: inline-block;
  text-decoration: none;
}

.person-record {
  display: none;
}

.person-username:hover {
  color: var(--accent);
}

.closing-note {
  max-width: none;
  padding: 3.75rem clamp(1.5rem, 5vw, 4rem) 4.25rem;
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  background: rgba(255, 250, 243, 0.62);
  box-shadow: 0 12px 35px rgba(112, 79, 49, 0.05);
}

.closing-note h2 {
  max-width: none;
  margin-bottom: 1.4rem;
  font-size: clamp(1.5rem, 2.1vw, 2.2rem);
}

.closing-note > p:not(.eyebrow) {
  max-width: none;
  color: var(--muted);
}

.text-link {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
}

@keyframes card-in {
  from {
    opacity: 0;
    filter: blur(6px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes heart-breathe {
  0%, 100% {
    opacity: 0.7;
    transform: rotate(10deg) scale(1);
  }

  50% {
    opacity: 1;
    transform: rotate(10deg) scale(1.05);
  }
}

@keyframes heart-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(-0.8rem, -0.6rem, 0) rotate(18deg);
  }
}

@keyframes cue-line {
  0%, 100% {
    transform: scaleX(0.5);
    opacity: 0.45;
  }

  50% {
    transform: scaleX(1);
    opacity: 1;
  }
}

@supports (animation-timeline: view()) {
  .people-grid .person-card {
    animation-name: card-in;
    animation-delay: 0s;
    animation-timeline: view();
    animation-range: entry 0% cover 24%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cursor-glow,
  .hero::after,
  .hero-heart,
  .scroll-cue-line {
    animation: none;
  }

  .js [data-reveal] {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .person-card {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
    transition: none;
  }
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .hero::after {
    top: -2rem;
    right: 1rem;
    width: 11rem;
    height: 11rem;
    opacity: 0.52;
  }

  .hero-aside {
    max-width: 560px;
  }

  .quiet-stat {
    grid-template-columns: auto auto;
  }

  .stat-description {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .people-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 2rem, 1120px);
    padding-top: 1rem;
  }

  .hero {
    gap: 2.5rem;
    margin-top: 1rem;
    padding: 4rem 1.25rem 4rem;
    border-radius: 1.5rem;
  }

  .hero::after {
    top: -1.5rem;
    right: 0.5rem;
    width: 9rem;
    height: 9rem;
    opacity: 0.42;
  }

  .hero-heart {
    right: 0.75rem;
    bottom: 1rem;
    width: 4.5rem;
    height: 4.5rem;
    opacity: 0.55;
  }

  .scroll-cue {
    bottom: 1.25rem;
    left: 1.25rem;
  }

  h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .quiet-stat {
    grid-template-columns: auto auto;
    padding: 1.1rem 1.2rem;
    border-radius: 1.2rem;
  }

  .stat-description {
    grid-column: 1 / -1;
    white-space: normal;
  }

  .section-heading h2 {
    margin-bottom: 1.4rem;
  }

  .people-section {
    padding: 5.5rem 0;
  }

  .people-grid {
    gap: 0.45rem;
  }

  .person-card {
    gap: 0.5rem;
    padding: 0.45rem;
    border-radius: 0.8rem;
  }

  .person-card img {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
    border-radius: 0.7rem;
  }

  .person-meta strong {
    font-size: 0.77rem;
  }

  .person-meta span {
    font-size: 0.66rem;
  }

  .closing-note {
    padding: 3.5rem 1.25rem 4rem;
    border-radius: 1.5rem;
  }

  .closing-note h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

}

@media (min-width: 900px) {
  h1,
  .closing-note h2 {
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .person-card {
    padding: 0.6rem;
  }
}
