/* Wifeswap — mobile-first styles. No external fonts or assets. */

:root {
  --bg: #0a0610;
  --bg-soft: #120a1a;
  --surface: #171021;
  --surface-2: #1f152b;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f8f0f7;
  --muted: #b9a8bb;
  --muted-2: #8f7f93;
  --accent: #ff4f7e;
  --accent-2: #ff9a62;
  --accent-3: #ffd0dd;
  --tg: #1778a8;
  --wa: #25d366;
  --grad: linear-gradient(135deg, #ff4f7e 0%, #ff7a6b 55%, #ffb05c 100%);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(1100px 620px at 8% -10%, rgba(255, 79, 126, 0.18), transparent 62%),
    radial-gradient(820px 520px at 100% 0%, rgba(255, 154, 98, 0.1), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(120, 40, 90, 0.12), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.no-scroll {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: #1b0710;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 10px 14px;
  background: #fff;
  color: #1b0710;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 820px;
}

/* ------------------------------------------------------------------ */
/* Age notice                                                          */
/* ------------------------------------------------------------------ */

.agebar {
  background: #180b15;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}

.agebar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.agebar-btn {
  flex: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.age-ok .agebar {
  display: none;
}

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 6, 16, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--grad);
  color: #1b0710;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(255, 79, 126, 0.28);
}

.logo-text span {
  color: var(--muted-2);
  font-weight: 600;
}

.nav {
  display: none;
  align-items: center;
  gap: 22px;
  margin-left: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  transition: color 0.18s ease;
}

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

.header-cta {
  margin-left: auto;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--grad);
  color: #1b0710;
  box-shadow: 0 10px 28px rgba(255, 79, 126, 0.25);
}

.btn-primary:hover {
  filter: brightness(1.05);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-tg {
  background: var(--tg);
  color: #fff;
}

.btn-wa {
  background: var(--wa);
  color: #05230f;
}

.btn-sm {
  min-height: 38px;
  padding: 0 13px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* ------------------------------------------------------------------ */
/* Typography helpers                                                  */
/* ------------------------------------------------------------------ */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

p {
  margin: 0;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--accent-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 79, 126, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 79, 126, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(255, 79, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 79, 126, 0); }
}

.lead {
  max-width: 640px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.fine {
  color: var(--muted-2);
  font-size: 11.5px;
  line-height: 1.55;
}

.fine a {
  color: var(--muted);
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
  padding: 44px 0 26px;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(2.35rem, 8.4vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.038em;
}

.hero h1 em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  margin-top: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions.center {
  justify-content: center;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}

.hero-points li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ------------------------------------------------------------------ */
/* Sections                                                            */
/* ------------------------------------------------------------------ */

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 5vw, 2.15rem);
}

.section-head > p {
  max-width: 500px;
  color: var(--muted);
  font-size: 13.5px;
}

.section-link {
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ */
/* Profile cards                                                       */
/* ------------------------------------------------------------------ */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  isolation: isolate;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--surface-2);
  transition: transform 0.45s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 4, 12, 0.94) 0%, rgba(8, 4, 12, 0.48) 38%, transparent 66%);
}

.card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 11px;
}

.card-name {
  display: block;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  color: #ead9e8;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: #1b0710;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}

.js .card[data-batch]:not([data-batch="1"]) {
  display: none;
}

.js .card[data-batch].is-visible {
  display: block;
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 79, 126, 0.5);
  }

  .card:hover img {
    transform: scale(1.04);
  }
}

.load-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  text-align: center;
}

.load-note {
  max-width: 430px;
  color: var(--muted);
  font-size: 12.5px;
}

.load-note a {
  color: var(--accent-3);
}

.no-js #load-more {
  display: none;
}

/* ------------------------------------------------------------------ */
/* How it works                                                        */
/* ------------------------------------------------------------------ */

.steps {
  display: grid;
  gap: 10px;
}

.step {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.step-num {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  margin: 10px 0 5px;
  font-size: 19px;
}

.step p {
  color: var(--muted);
  font-size: 13.5px;
}

/* ------------------------------------------------------------------ */
/* Prose                                                               */
/* ------------------------------------------------------------------ */

.prose {
  max-width: 760px;
  color: #d8c9d7;
  font-size: 15px;
  line-height: 1.72;
}

.prose > * + * {
  margin-top: 14px;
}

.prose h2 {
  margin-top: 30px;
  color: var(--text);
  font-size: clamp(1.45rem, 4.4vw, 1.85rem);
}

.prose h3 {
  margin-top: 22px;
  color: var(--text);
  font-size: 1.2rem;
}

.prose p,
.prose li {
  color: var(--muted);
}

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

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

.prose ul,
.prose ol {
  padding-left: 20px;
}

.prose li + li {
  margin-top: 6px;
}

.prose blockquote {
  margin: 22px 0;
  padding: 4px 0 4px 16px;
  border-left: 2px solid var(--accent);
  color: #f2dce8;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.prose th,
.prose td {
  padding: 9px 10px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.prose td {
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Ad slots                                                            */
/* ------------------------------------------------------------------ */

.ad-slot {
  margin: 24px auto;
  overflow: hidden;
  text-align: center;
}

.ad-slot:empty {
  display: none;
}

.ad-slot ins,
.ad-slot iframe,
.ad-slot img {
  max-width: 100%;
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */

.faq {
  display: grid;
  gap: 9px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 15px;
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  color: var(--accent);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-a {
  padding: 0 15px 15px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.faq-more {
  margin-top: 16px;
  font-size: 13px;
}

.faq-more a {
  color: var(--accent-3);
  font-weight: 700;
  text-decoration: none;
}

/* ------------------------------------------------------------------ */
/* CTA panel                                                           */
/* ------------------------------------------------------------------ */

.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 28px 18px;
  border: 1px solid rgba(255, 79, 126, 0.28);
  border-radius: 24px;
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(255, 79, 126, 0.18), transparent 70%),
    linear-gradient(145deg, rgba(255, 79, 126, 0.1), rgba(255, 154, 98, 0.04));
  text-align: center;
}

.cta-panel .kicker {
  justify-content: center;
}

.cta-panel h2 {
  font-size: clamp(1.65rem, 5.4vw, 2.3rem);
}

.cta-panel > p:not(.kicker) {
  max-width: 560px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 14px;
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

.site-footer {
  margin-top: 30px;
  padding: 32px 0 26px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
}

.footer-brand {
  grid-column: 1 / -1;
}

.footer-brand p {
  max-width: 320px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 12.5px;
}

.badge-18 {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid rgba(255, 79, 126, 0.45);
  border-radius: 999px;
  color: var(--accent-3);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer h3 {
  margin-bottom: 9px;
  color: var(--muted-2);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li {
  margin: 5px 0;
}

.site-footer li a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.site-footer li a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}

.footer-bottom .fine {
  max-width: 760px;
}

/* ------------------------------------------------------------------ */
/* Page hero / breadcrumbs                                             */
/* ------------------------------------------------------------------ */

.page-hero {
  padding: 30px 0 8px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.1rem, 7vw, 3.5rem);
  line-height: 1.02;
}

.page-hero .lead {
  margin-top: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 13px 0 0;
  color: var(--muted-2);
  font-size: 11px;
}

.breadcrumbs a {
  color: var(--muted-2);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs span[aria-hidden] {
  color: rgba(255, 255, 255, 0.22);
}

/* ------------------------------------------------------------------ */
/* Profile page                                                        */
/* ------------------------------------------------------------------ */

.profile-hero {
  display: grid;
  gap: 20px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.profile-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-media > img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.media-link {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 6, 16, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
}

.media-badges {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.media-badges span {
  padding: 5px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 6, 16, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #f3e6f1;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-body h1 {
  font-size: clamp(2.35rem, 8vw, 3.5rem);
  line-height: 0.98;
}

.h1-sub {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.3em;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

.tagline {
  margin: 13px 0 0;
  color: var(--accent-3);
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.45;
}

.intro {
  max-width: 620px;
  margin-top: 10px;
  color: #d9cad8;
  font-size: 15px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 19px 0;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 20px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
}

.facts div {
  min-width: 0;
}

.facts dt {
  color: var(--muted-2);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.facts dd {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.profile-story h2,
.profile-body h2 {
  margin: 27px 0 9px;
  font-size: clamp(1.4rem, 4.5vw, 1.7rem);
}

.profile-story p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.quote {
  margin: 22px 0;
  padding: 4px 0 4px 15px;
  border-left: 2px solid var(--accent);
  color: #f2dce8;
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #e6d5e4;
  font-size: 12px;
  font-weight: 600;
}

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  margin: 8px 0;
  padding-left: 23px;
  color: var(--muted);
  font-size: 13.5px;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.looking {
  margin: 24px 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 79, 126, 0.08), rgba(255, 255, 255, 0.02));
}

.looking h2 {
  margin-top: 0;
}

.looking p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.connect {
  margin: 26px 0;
  padding: 24px 17px;
  border: 1px solid rgba(255, 79, 126, 0.3);
  border-radius: 22px;
  background:
    radial-gradient(460px 220px at 50% 0%, rgba(255, 79, 126, 0.17), transparent 72%),
    #150c1f;
  text-align: center;
}

.connect .kicker {
  justify-content: center;
}

.connect h2 {
  font-size: clamp(1.55rem, 5.2vw, 2rem);
}

.connect > p:not(.kicker):not(.fine) {
  max-width: 520px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13.5px;
}

.connect-actions {
  display: grid;
  gap: 9px;
  margin-top: 17px;
}

.connect .fine {
  margin-top: 12px;
}

/* ------------------------------------------------------------------ */
/* Related profiles                                                    */
/* ------------------------------------------------------------------ */

.related {
  margin: 30px auto;
}

.related-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 46%;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.related-grid::-webkit-scrollbar {
  display: none;
}

.related-grid .card {
  scroll-snap-align: start;
}

/* ------------------------------------------------------------------ */
/* Sticky profile CTA                                                  */
/* ------------------------------------------------------------------ */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(12, 7, 18, 0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0.25s ease;
}

.sticky-cta.show {
  transform: none;
  visibility: visible;
}

.sticky-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.3;
}

.sticky-info strong {
  font-family: var(--serif);
  font-size: 15px;
}

.sticky-info span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-cta .btn {
  margin-left: auto;
  flex: none;
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

@media (max-width: 899px) {
  .profile-page {
    padding-bottom: 76px;
  }
}

/* ------------------------------------------------------------------ */
/* Dialogs                                                             */
/* ------------------------------------------------------------------ */

.dialog {
  position: relative;
  width: min(420px, calc(100% - 32px));
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #150d1f;
  color: var(--text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

.dialog::backdrop {
  background: rgba(5, 2, 8, 0.74);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog h2 {
  margin: 0 0 8px;
  font-size: 1.9rem;
}

.dialog-copy {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 13.5px;
}

.dialog-actions {
  display: grid;
  gap: 9px;
}

.dialog-close-form {
  position: absolute;
  top: 9px;
  right: 9px;
  margin: 0;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.photo-dialog {
  width: min(900px, calc(100% - 20px));
  padding: 9px;
  background: #0d0813;
}

.photo-dialog img {
  display: block;
  width: 100%;
  border-radius: 14px;
}

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 120;
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  color: #1b0710;
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%);
}

/* ------------------------------------------------------------------ */
/* Blog                                                                */
/* ------------------------------------------------------------------ */

.post-grid {
  display: grid;
  gap: 14px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.post-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--surface-2);
}

.post-body {
  padding: 15px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  color: var(--accent-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-body h3 {
  margin: 6px 0 7px;
  font-size: 1.3rem;
  line-height: 1.15;
}

.post-body > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.post-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-3);
  font-size: 11.5px;
  font-weight: 800;
}

@media (hover: hover) {
  .post-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 79, 126, 0.5);
  }
}

.article-head {
  padding-top: 22px;
  padding-bottom: 16px;
}

.article-head h1 {
  max-width: 900px;
  font-size: clamp(2.1rem, 6.8vw, 3.4rem);
  line-height: 1.02;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 11.5px;
}

.article-cover {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.takeaways {
  margin: 22px 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.takeaways h2 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-3);
}

.takeaways ul {
  margin: 0;
  padding-left: 18px;
}

.takeaways li {
  color: var(--muted);
  font-size: 13.5px;
}

.takeaways li + li {
  margin-top: 5px;
}

.author-box {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.author-box strong {
  font-size: 13.5px;
}

.author-box p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.article-cta {
  margin: 24px 0;
  padding: 22px 17px;
  border: 1px solid rgba(255, 79, 126, 0.28);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 79, 126, 0.1), rgba(255, 255, 255, 0.02));
}

.article-cta h2 {
  font-size: 1.55rem;
}

.article-cta p {
  margin: 8px 0 16px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ------------------------------------------------------------------ */
/* Values / contact / 404                                              */
/* ------------------------------------------------------------------ */

.values {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.value {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.value h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.contact-card {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid rgba(255, 79, 126, 0.28);
  border-radius: 18px;
  background: rgba(255, 79, 126, 0.06);
}

.contact-email {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  line-height: 1.2;
}

.contact-email a {
  color: var(--accent-3);
  text-decoration: none;
}

.error-page {
  padding: 60px 0 40px;
  text-align: center;
}

.error-page h1 {
  font-size: clamp(2.5rem, 9vw, 4.5rem);
  line-height: 1;
}

.error-page .lead {
  margin: 14px auto 0;
}

/* ------------------------------------------------------------------ */
/* Larger screens                                                      */
/* ------------------------------------------------------------------ */

@media (min-width: 620px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

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

  .connect-actions {
    grid-template-columns: 1fr 1fr;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .values {
    grid-template-columns: 1fr 1fr;
  }

  .related-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}

@media (min-width: 900px) {
  .wrap {
    padding: 0 24px;
  }

  .nav {
    display: flex;
  }

  .hero {
    padding: 72px 0 36px;
  }

  .hero .lead {
    font-size: 17px;
  }

  .section {
    padding: 46px 0;
  }

  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
  }

  .section-head > p {
    text-align: right;
  }

  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .card-body {
    padding: 13px;
  }

  .card-name {
    font-size: 21px;
  }

  .profile-hero {
    grid-template-columns: minmax(320px, 480px) 1fr;
    align-items: start;
    gap: 44px;
    padding-top: 14px;
  }

  .profile-media {
    position: sticky;
    top: 82px;
  }

  .profile-body h1 {
    font-size: clamp(2.6rem, 4.2vw, 3.4rem);
  }

  .facts {
    gap: 15px 22px;
    padding: 19px;
  }

  .facts dd {
    font-size: 13.5px;
  }

  .connect {
    padding: 32px 28px;
  }

  .footer-grid {
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
  }

  .article-cover {
    max-height: 520px;
  }

  .article-head {
    padding-top: 30px;
  }
}

@media (min-width: 1120px) {
  .wrap {
    padding: 0 28px;
  }
}

/* ------------------------------------------------------------------ */
/* Small phones                                                        */
/* ------------------------------------------------------------------ */

@media (max-width: 380px) {
  .wrap {
    padding: 0 13px;
  }

  .grid {
    gap: 8px;
  }

  .card-body {
    padding: 9px;
  }

  .card-name {
    font-size: 17px;
  }

  .card-cta {
    font-size: 9.5px;
    padding: 4px 7px;
  }

  .card-meta {
    font-size: 9px;
  }

  .header-cta {
    padding: 0 11px;
    font-size: 11px;
  }

  .logo {
    font-size: 17px;
  }

  .logo-mark {
    width: 26px;
    height: 26px;
    font-size: 17px;
  }

  .facts {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------ */
/* Motion preferences                                                  */
/* ------------------------------------------------------------------ */

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
