:root {
  color-scheme: dark;
  --bg: #080a12;
  --panel: #111827;
  --panel-2: #151526;
  --text: #f5f7fb;
  --muted: #a8b0c2;
  --cyan: #42e8f5;
  --lime: #73f2a5;
  --pink: #ff4fc4;
  --amber: #ffd36a;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --font-sans: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(8, 10, 18, 0.72);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand span {
  margin-left: 8px;
  color: var(--cyan);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a:hover {
  color: var(--cyan);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 22px 84px;
}

.hero-media,
.grid-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background:
    linear-gradient(135deg, rgba(8, 10, 18, 0.84), rgba(19, 12, 39, 0.72)),
    url("./images/hero-background.jpg") center / cover;
}

.grid-overlay {
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(66, 232, 245, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 232, 245, 0.22) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, transparent, black 20%, black 74%, transparent);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 24px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4.6rem, 15vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0;
  background: linear-gradient(110deg, var(--cyan), var(--lime), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 55px rgba(66, 232, 245, 0.2);
}

.level-line {
  display: grid;
  grid-template-columns: minmax(36px, 1fr) auto minmax(36px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 30px auto;
  max-width: 580px;
}

.level-line span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

.level-line span:last-child {
  background: linear-gradient(90deg, var(--pink), transparent);
}

.level-line strong {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 5vw, 2.7rem);
}

.level-line b {
  color: var(--cyan);
}

.hero-copy {
  max-width: 720px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: clamp(1.15rem, 3vw, 1.85rem);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(66, 232, 245, 0.5);
  border-radius: 6px;
  background: rgba(66, 232, 245, 0.1);
  color: var(--text);
  font-weight: 800;
  box-shadow: 0 0 35px rgba(66, 232, 245, 0.14);
}

.section {
  padding: 96px clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

h2 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
}

.timeline-header,
.messages-header {
  text-align: center;
}

.timeline-header h2,
.messages-header h2,
.letter-header h2 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 4.7rem);
  line-height: 1.02;
  font-weight: 700;
}

.timeline-header h2 span,
.messages-header h2 span,
.letter-header h2 span {
  background: linear-gradient(110deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timeline-section {
  padding: 112px clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, var(--bg), rgba(21, 21, 38, 0.52));
}

.timeline-header {
  max-width: 1120px;
  margin: 0 auto 78px;
  text-align: center;
}

.section-rule {
  width: 96px;
  height: 2px;
  margin: 24px auto 0;
  background: linear-gradient(90deg, var(--cyan), var(--pink));
}

.timeline {
  position: relative;
  display: grid;
  gap: 88px;
  max-width: 1120px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--cyan), rgba(255, 79, 196, 0.55), transparent);
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  align-items: center;
  gap: 48px;
}

.timeline-row-reverse .timeline-card {
  grid-column: 3;
  text-align: left;
}

.timeline-row-reverse .timeline-icon {
  grid-column: 2;
  grid-row: 1;
}

.timeline-row-reverse .timeline-spacer {
  grid-column: 1;
  grid-row: 1;
}

.timeline-card {
  position: relative;
  min-height: 220px;
  padding: 28px;
  padding-left: 154px;
  text-align: right;
  background: rgba(17, 24, 39, 0.96);
  border: 1px solid rgba(66, 232, 245, 0.12);
  border-radius: 16px;
  box-shadow:
    0 0 20px rgba(66, 232, 245, 0.3),
    0 0 40px rgba(66, 232, 245, 0.1),
    var(--shadow);
  transition: border-color 220ms ease, transform 220ms ease;
}

.timeline-row-reverse .timeline-card {
  padding-right: 154px;
  padding-left: 28px;
}

.timeline-photo {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 112px;
  height: 112px;
  border: 2px solid rgba(66, 232, 245, 0.36);
  border-radius: 999px;
  object-fit: cover;
  object-position: center;
  box-shadow:
    0 0 18px rgba(66, 232, 245, 0.32),
    0 0 36px rgba(255, 79, 196, 0.12);
}

.timeline-photo-composite {
  overflow: hidden;
  background: rgba(6, 9, 20, 0.92);
}

.timeline-photo-composite img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: none;
  transform: none;
}

.timeline-photo-composite .timeline-photo-bg {
  position: absolute;
  inset: 0;
  background-image: url("./images/future-tech-background-clean.png");
  background-position: center;
  background-size: cover;
  filter: saturate(1.24) contrast(1.08) brightness(1.04);
}

.timeline-photo-composite .timeline-photo-subject {
  inset: -8% -10% -8%;
  width: 120%;
  height: 116%;
  object-fit: contain;
  object-position: center center;
  opacity: 0.78;
  filter: saturate(1.12) contrast(1.08) brightness(1.04);
  mix-blend-mode: screen;
}

.timeline-photo-composite::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 44%, transparent 34%, rgba(6, 9, 20, 0.18) 74%),
    linear-gradient(135deg, rgba(66, 232, 245, 0.18), rgba(255, 79, 196, 0.08));
  pointer-events: none;
}

.timeline-row:first-child .timeline-photo {
  object-position: center 92%;
}

.timeline-photo-hobbie1 {
  object-position: center 18%;
}

.timeline-photo-hobbie4 {
  object-position: center 62%;
}

.timeline-photo-hobbie7 {
  object-position: center 30%;
}

.timeline-photo-hobbie8 {
  object-position: center 34%;
}

.timeline-row-reverse .timeline-photo {
  right: 28px;
  left: auto;
}

.timeline-text {
  min-width: 0;
}

.timeline-card:hover {
  border-color: rgba(66, 232, 245, 0.34);
  transform: scale(1.02);
}

.timeline-card time {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.timeline-card h3 {
  margin-top: 8px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 600;
  overflow-wrap: normal;
  word-break: normal;
}

.timeline-card p,
.message-card p,
.passion p,
.letter-panel p {
  margin: 0;
  color: var(--muted);
}

.timeline-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow:
    0 0 20px rgba(66, 232, 245, 0.3),
    0 0 40px rgba(66, 232, 245, 0.1);
}

.timeline-icon::after {
  content: "";
  position: absolute;
  top: 64px;
  left: 50%;
  width: 2px;
  height: 96px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--cyan), rgba(255, 79, 196, 0.2));
}

.timeline-row:last-child .timeline-icon::after {
  display: none;
}

.timeline-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
}

.friends-gallery {
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
  gap: 16px;
}

figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

figure img {
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.06) brightness(1.08) hue-rotate(-10deg);
  transition: transform 700ms ease, filter 300ms ease;
}

figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(9, 42, 112, 0.12), rgba(5, 18, 56, 0.2)),
    linear-gradient(135deg, rgba(21, 162, 255, 0.38), rgba(42, 84, 226, 0.34) 70%, rgba(174, 82, 255, 0.06));
  opacity: 0.48;
  transition: opacity 300ms ease;
}

figure:hover {
  border-color: rgba(154, 244, 255, 0.7);
  box-shadow:
    0 0 34px rgba(66, 232, 245, 0.36),
    0 0 58px rgba(101, 131, 255, 0.24),
    0 0 72px rgba(255, 79, 196, 0.12);
  transform: translateY(-2px);
}

figure:hover img {
  transform: scale(1.05);
  filter: saturate(1.28) contrast(1.08) brightness(1.14) hue-rotate(-12deg);
}

figure:hover::after {
  opacity: 0.34;
}

.photo-no-filter img {
  filter: saturate(1.06) contrast(1.03) brightness(1.02);
}

.photo-no-filter:hover img {
  filter: saturate(1.08) contrast(1.04) brightness(1.03);
}

.photo-no-filter::after,
.photo-no-filter:hover::after {
  opacity: 0;
}

.photo-less-pink img {
  filter: saturate(1.04) contrast(1.04) brightness(1.03) hue-rotate(-14deg);
}

.photo-less-pink:hover img {
  filter: saturate(1.08) contrast(1.05) brightness(1.06) hue-rotate(-16deg);
}

.photo-less-pink::after {
  opacity: 0.18;
  background: linear-gradient(135deg, rgba(28, 146, 255, 0.18), rgba(18, 60, 146, 0.1));
}

.photo-less-pink:hover::after {
  opacity: 0.12;
}

.photo-natural-pop img {
  filter: saturate(1.14) contrast(1.05) brightness(1.03);
}

.photo-natural-pop:hover img {
  filter: saturate(1.18) contrast(1.06) brightness(1.05);
}

.photo-natural-pop::after,
.photo-natural-pop:hover::after {
  opacity: 0;
}

.photo-cooler img {
  filter: saturate(1.08) contrast(1.05) brightness(1.01) hue-rotate(-12deg);
}

.photo-cooler:hover img {
  filter: saturate(1.12) contrast(1.06) brightness(1.03) hue-rotate(-14deg);
}

figcaption {
  display: none;
}

.gallery figure:first-child,
.friends-gallery figure:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.friends-gallery figure:first-child img {
  object-position: center 96%;
}

.gallery figure:nth-child(4),
.friends-gallery figure:nth-child(4) {
  grid-row: span 2;
}

.gallery figure:nth-child(9),
.friends-gallery figure:nth-child(9) {
  grid-column: 1 / span 2;
  grid-row: 4;
}

.gallery figure:nth-child(5),
.friends-gallery figure:nth-child(5) {
  grid-column: 3;
  grid-row: 4;
}

.gallery figure:nth-child(8),
.friends-gallery figure:nth-child(8) {
  grid-column: 4;
  grid-row: 4;
}

.family-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 88px;
}

.family-gallery figure {
  grid-column: auto !important;
  grid-row: auto !important;
}

.family-gallery .tile-large {
  grid-column: span 2 !important;
  grid-row: span 4 !important;
  min-height: 400px;
}

.family-gallery .tile-wide {
  grid-column: span 2 !important;
  grid-row: span 4 !important;
  min-height: 400px;
}

.family-gallery .tile-tall {
  grid-column: span 1 !important;
  grid-row: span 4 !important;
  min-height: 400px;
}

.family-gallery .tile-large img,
.family-gallery .tile-wide img {
  object-position: center center;
}

.family-gallery .tile-tall img {
  object-position: center 36%;
}

.family-gallery .tile-rotate-portrait img {
  transform: rotate(-45deg) scale(1.46);
}

.family-gallery .tile-rotate-portrait:hover img {
  transform: rotate(-45deg) scale(1.52);
}

.friends-gallery figure:nth-child(13) {
  grid-column: auto;
  grid-row: auto;
}

.friends-gallery figure:nth-child(13) img {
  object-position: center 42%;
}

.friends-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 96px;
}

.friends-gallery figure {
  grid-column: auto !important;
  grid-row: auto !important;
}

.friends-gallery .tile-feature {
  grid-column: span 2 !important;
  grid-row: span 5 !important;
  min-height: 496px;
}

.friends-gallery .tile-tall {
  grid-column: span 1 !important;
  grid-row: span 5 !important;
  min-height: 496px;
}

.friends-gallery .tile-feature img,
.friends-gallery .tile-tall img {
  object-position: center 34%;
}

.friends-gallery .tile-feature:first-child img {
  object-position: center 62%;
}

.friends-gallery .photo-copains13-natural img {
  filter: saturate(1.08) contrast(1.04) brightness(1.04) hue-rotate(4deg);
}

.friends-gallery .photo-copains13-natural:hover img {
  filter: saturate(1.12) contrast(1.05) brightness(1.08) hue-rotate(2deg);
}

.friends-gallery .photo-copains13-natural::after {
  opacity: 0.24;
  background: linear-gradient(135deg, rgba(48, 216, 255, 0.18), rgba(255, 79, 196, 0.08));
}

.friends-gallery .photo-copains13-natural:hover::after {
  opacity: 0.16;
}

.friends-gallery .photo-copains1 img {
  object-position: center 28%;
  filter: saturate(1.12) contrast(1.06) brightness(0.98) hue-rotate(-8deg);
}

.friends-gallery .photo-copains1:hover img {
  filter: saturate(1.18) contrast(1.08) brightness(1.03) hue-rotate(-10deg);
}

.friends-gallery .photo-copains-balanced img {
  filter: saturate(1.12) contrast(1.06) brightness(0.98) hue-rotate(-8deg);
}

.friends-gallery .photo-copains-balanced:hover img {
  filter: saturate(1.18) contrast(1.08) brightness(1.03) hue-rotate(-10deg);
}

.cards,
.passions,
.friend-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.passion,
.letter-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.94), rgba(21, 21, 38, 0.82));
  box-shadow: var(--shadow);
}

.passion {
  padding: 22px;
}

.messages-section {
  padding: 112px clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(21, 21, 38, 0.5), var(--bg));
}

.messages-inner,
.friends-messages-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
}

.messages-header {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.messages-header > p:not(.eyebrow) {
  max-width: 560px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.message-card-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.message-card-stack .message-card {
  min-height: 0;
}

.message-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: clamp(24px, 3vw, 30px);
  border: 1px solid rgba(255, 79, 196, 0.12);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: var(--shadow);
  transition: border-color 220ms ease, transform 220ms ease;
}

.message-card:hover {
  border-color: rgba(255, 79, 196, 0.34);
  transform: translateY(-4px);
}

.message-card::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: rgba(66, 232, 245, 0.05);
}

.message-icon {
  position: absolute;
  top: -14px;
  left: -14px;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 79, 196, 0.1);
  font-size: 0;
  transform: rotate(12deg);
}

.message-icon::before {
  content: "";
  width: 20px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.message-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translate(7px, 12px) rotate(45deg);
}

.message-body {
  position: relative;
  z-index: 1;
  padding-top: 24px;
}

.message-body > p {
  margin: 0 0 24px;
  color: var(--text);
  font-size: clamp(0.98rem, 1.25vw, 1.08rem);
  line-height: 1.55;
}

.message-body > p::before,
.message-body > p::after {
  color: rgba(255, 79, 196, 0.65);
}

.message-body > p::before {
  content: "“";
}

.message-body > p::after {
  content: "”";
}

.message-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.message-author > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  color: var(--bg);
  font-size: 1.08rem;
  font-weight: 900;
}

.message-author h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
}

.message-author small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
}

.friends-messages {
  position: relative;
  overflow: hidden;
  padding: 112px clamp(18px, 5vw, 72px);
  background: var(--bg);
}

.friends-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(66, 232, 245, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 232, 245, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
}

.friend-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.friend-card-stack {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.friend-card-stack .friend-card {
  min-height: 0;
}

.friend-card {
  position: relative;
  min-height: 265px;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(66, 232, 245, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(66, 232, 245, 0.1), rgba(255, 79, 196, 0.05));
  backdrop-filter: blur(8px);
  transition: border-color 220ms ease, transform 220ms ease;
}

.friend-card:nth-child(2n) {
  background: linear-gradient(135deg, rgba(255, 79, 196, 0.1), rgba(66, 232, 245, 0.05));
}

.friend-card:nth-child(3n) {
  background: linear-gradient(135deg, rgba(115, 242, 165, 0.1), rgba(66, 232, 245, 0.05));
}

.friend-card:hover {
  border-color: rgba(66, 232, 245, 0.34);
  transform: translateY(-5px);
}

.friend-card::after {
  content: "";
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: rgba(66, 232, 245, 0.06);
  filter: blur(10px);
}

.friend-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.friend-avatar {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid rgba(66, 232, 245, 0.22);
  border-radius: 16px;
  background: rgba(21, 21, 38, 0.92);
  font-size: 1.65rem;
}

.friend-head h3 {
  margin: 2px 0 2px;
  color: var(--text);
  font-size: 1.18rem;
  font-weight: 600;
}

.friend-head span {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.friend-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-style: italic;
  line-height: 1.56;
}

.friend-card p::before,
.friend-card p::after {
  position: absolute;
  color: rgba(66, 232, 245, 0.22);
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
}

.friend-card p::before {
  content: "“";
  left: -4px;
  top: -8px;
}

.friend-card p::after {
  content: "”";
  right: 0;
  bottom: -24px;
}

.friends-gallery-section {
  background:
    linear-gradient(180deg, rgba(8, 10, 18, 0.4), rgba(8, 10, 18, 0.95)),
    #0d0f1a;
}

.passions-section {
  padding: 112px clamp(18px, 5vw, 72px);
  background: rgba(21, 21, 38, 0.5);
}

.passions {
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.passion {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  padding: 32px;
  border: 1px solid rgba(66, 232, 245, 0.12);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(66, 232, 245, 0.2), rgba(66, 232, 245, 0.05));
  backdrop-filter: blur(8px);
  transition: border-color 220ms ease, transform 220ms ease;
}

.passion:nth-child(2n) {
  background: linear-gradient(135deg, rgba(255, 79, 196, 0.2), rgba(255, 79, 196, 0.05));
}

.passion:nth-child(3n) {
  background: linear-gradient(135deg, rgba(115, 242, 165, 0.2), rgba(115, 242, 165, 0.05));
}

.passion:hover {
  border-color: rgba(66, 232, 245, 0.48);
  transform: translateY(-5px) scale(1.02);
}

.passion::before,
.passion::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  transition: transform 500ms ease;
}

.passion::before {
  right: -32px;
  bottom: -32px;
  width: 128px;
  height: 128px;
  background: rgba(66, 232, 245, 0.05);
}

.passion::after {
  right: -16px;
  top: -16px;
  width: 64px;
  height: 64px;
  background: rgba(255, 79, 196, 0.05);
}

.passion:hover::before {
  transform: scale(1.5);
}

.passion:hover::after {
  transform: scale(1.25);
}

.passion-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border: 1px solid rgba(66, 232, 245, 0.22);
  border-radius: 16px;
  background: rgba(21, 21, 38, 0.92);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 900;
  box-shadow:
    0 0 20px rgba(66, 232, 245, 0.3),
    0 0 40px rgba(66, 232, 245, 0.1);
}

.passion h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 600;
}

.passion p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.65;
}

.letter {
  position: relative;
  overflow: hidden;
  padding: 112px clamp(18px, 5vw, 72px);
  background:
    radial-gradient(circle at 12% 6%, rgba(66, 232, 245, 0.09), transparent 28%),
    radial-gradient(circle at 88% 95%, rgba(255, 79, 196, 0.09), transparent 30%),
    linear-gradient(180deg, var(--bg), rgba(21, 21, 38, 0.5));
}

.letter-panel {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(72px, 8vw, 104px) clamp(28px, 6vw, 64px) clamp(32px, 5vw, 52px);
  border: 1px solid rgba(66, 232, 245, 0.12);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.96);
  box-shadow: var(--shadow);
}

.terminal-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: rgba(21, 21, 38, 0.96);
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.terminal-bar span:nth-child(1) {
  background: rgba(255, 79, 196, 0.8);
}

.terminal-bar span:nth-child(2) {
  background: rgba(255, 211, 106, 0.8);
}

.terminal-bar span:nth-child(3) {
  background: rgba(115, 242, 165, 0.8);
}

.terminal-bar small {
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.letter-header {
  margin-bottom: 48px;
  text-align: center;
}

.letter-header .eyebrow {
  margin-bottom: 16px;
}

.spark-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.spark-rule i {
  width: 48px;
  height: 1px;
  background: rgba(66, 232, 245, 0.45);
}

.spark-rule i:last-child {
  background: rgba(255, 79, 196, 0.45);
}

.spark-rule b {
  color: var(--pink);
}

.letter-content {
  display: grid;
  gap: 24px;
}

.video-embed {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(66, 232, 245, 0.2);
  border-radius: 14px;
  background: rgba(6, 9, 20, 0.9);
  box-shadow:
    0 0 26px rgba(66, 232, 245, 0.16),
    0 0 38px rgba(255, 79, 196, 0.12);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.letter-content p {
  margin: 0;
  color: rgba(245, 247, 251, 0.8);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.72;
}

.letter-content .letter-greeting {
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
}

.letter-greeting span {
  color: var(--cyan);
  font-family: var(--font-mono);
}

.letter-panel strong {
  display: block;
  margin-top: 48px;
  background: linear-gradient(110deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-align: right;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.site-footer {
  position: relative;
  overflow: hidden;
  padding: 64px 22px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid rgba(66, 232, 245, 0.1);
  background: var(--bg);
}

.footer-grid {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background-image:
    linear-gradient(rgba(66, 232, 245, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 232, 245, 0.16) 1px, transparent 1px);
  background-size: 30px 30px;
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.footer-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--pink);
}

.footer-icons strong {
  color: var(--cyan);
  font-size: 1.8rem;
}

.site-footer h3 {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.site-footer h3 span:first-child {
  color: var(--cyan);
}

.site-footer h3 span:last-child {
  color: var(--pink);
}

.site-footer h3 em {
  margin: 0 12px;
  color: var(--muted);
  font-style: normal;
}

.site-footer p {
  margin: 0 0 26px;
  color: rgba(245, 247, 251, 0.8);
  font-size: 1.18rem;
}

.site-footer p strong {
  background: linear-gradient(110deg, var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-rule {
  width: 128px;
  height: 1px;
  margin: 0 auto 26px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.site-footer small {
  display: block;
  color: var(--muted);
}

.footer-copy {
  margin-top: 14px;
  color: rgba(168, 176, 194, 0.5);
  font-family: var(--font-mono);
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .gallery,
  .friends-gallery,
  .cards,
  .friend-cards,
  .passions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery,
  .friends-gallery {
    grid-auto-rows: 180px;
  }

  .friend-card-stack {
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-start;
    gap: 24px;
  }
}

@media (min-width: 721px) {
  .friends-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 96px;
    gap: 16px;
  }

  .friends-gallery figure {
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .friends-gallery .tile-feature {
    grid-column: span 2 !important;
    grid-row: span 5 !important;
    min-height: 496px;
  }

  .friends-gallery .tile-tall {
    grid-column: span 1 !important;
    grid-row: span 5 !important;
    min-height: 496px;
  }
}

@media (max-width: 720px) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .topbar {
    align-items: flex-start;
  }

  .menu-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font: inherit;
    font-weight: 800;
    padding: 0 12px;
  }

  .nav-links {
    position: absolute;
    top: 62px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    padding: 14px;
    background: rgba(8, 10, 18, 0.94);
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero {
    min-height: 92vh;
  }

  .timeline::before,
  .timeline-icon,
  .timeline-spacer {
    display: none;
  }

  .timeline {
    gap: 22px;
  }

  .timeline-row,
  .timeline-row-reverse {
    grid-template-columns: 1fr;
  }

  .timeline-row-reverse .timeline-card {
    grid-column: auto;
  }

  .timeline-card,
  .timeline-row-reverse .timeline-card {
    min-height: 0;
    padding: 28px;
    text-align: left;
  }

  .timeline-photo,
  .timeline-row-reverse .timeline-photo {
    position: static;
    transform: none;
    width: 98px;
    height: 98px;
    margin-bottom: 18px;
  }

  .timeline-photo-composite {
    position: relative;
    overflow: hidden;
  }

  .timeline-photo-composite .timeline-photo-bg {
    display: none;
  }

  .timeline-photo-composite .timeline-photo-subject {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    object-fit: cover;
    mix-blend-mode: normal;
  }

  .cards,
  .friend-cards,
  .passions {
    grid-template-columns: 1fr;
  }

  .gallery,
  .friends-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 155px;
    gap: 12px;
  }

  .gallery figure:first-child,
  .friends-gallery figure:first-child {
    grid-column: span 2;
  }

  .gallery figure:nth-child(4),
  .gallery figure:nth-child(5),
  .gallery figure:nth-child(8),
  .gallery figure:nth-child(9),
  .friends-gallery figure:nth-child(4),
  .friends-gallery figure:nth-child(5),
  .friends-gallery figure:nth-child(8),
  .friends-gallery figure:nth-child(9) {
    grid-column: auto;
    grid-row: auto;
  }
}
