/* ==========================================================================
   Md Shakib Molla — profile page
   Static recreation of the Framer profile template
   ========================================================================== */

@font-face {
  font-family: "Urbanist";
  src: url("assets/fonts/urbanist-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("assets/fonts/urbanist-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("assets/fonts/urbanist-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Urbanist";
  src: url("assets/fonts/urbanist-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #f1efea;
  --surface-3: #f2f2f2;
  --text: #16151a;
  --muted: #6e6b73;
  --border: #e8e6e1;
  --accent: #0052cc;
  --accent-soft: rgba(0, 82, 204, 0.1);
  --on-accent: #ffffff;
  --green: #16a34a;
  --green-soft: rgba(34, 197, 94, 0.14);
  --orange: #ff6b4a;
  --like: #ff4d6d;
  --invert-bg: #16151a;
  --invert-text: #f2f2f2;
  --bubble: rgba(242, 242, 242, 0.5);
  --ring-gradient: linear-gradient(135deg, #003a99 0%, #0052cc 50%, #6699ee 100%);
  --node-gradient: linear-gradient(135deg, #003a99 0%, #337ddd 100%);
  --shadow-card: 0 1px 2px rgba(22, 21, 26, 0.04), 0 4px 12px rgba(22, 21, 26, 0.03);
  --shadow-nav: 0 1px 2px rgba(22, 21, 26, 0.04), 0 8px 24px rgba(22, 21, 26, 0.05);
  --shadow-lift: 0 16px 40px rgba(22, 21, 26, 0.12);
  --font: "Urbanist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-card: 28px;
  --container: 728px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060608;
  --surface: #18171c;
  --surface-2: #201f25;
  --surface-3: #060608;
  --text: #f4f3f0;
  --muted: #9c99a3;
  --border: #2a2930;
  --accent: #3385e6;
  --accent-soft: rgba(51, 133, 230, 0.13);
  --on-accent: #060608;
  --green: #4ade80;
  --green-soft: rgba(74, 222, 128, 0.14);
  --orange: #ff8466;
  --like: #ff6b8a;
  --invert-bg: #f4f3f0;
  --invert-text: #060608;
  --bubble: rgba(255, 255, 255, 0.04);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(0, 0, 0, 0.16);
  --shadow-nav: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lift: 0 16px 40px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, p, figure, dl, dd {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font);
  text-wrap: balance;
}

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

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

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

button {
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: var(--on-accent);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.verified {
  color: var(--accent);
  width: 14px;
  height: 14px;
}

.verified--lg {
  width: 22px;
  height: 22px;
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Page loader (matches the template's avatar-to-nav intro)
   -------------------------------------------------------------------------- */

html.js-loading,
html.js-loading body {
  overflow: hidden;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  pointer-events: auto;
}

html.js-loading .page-loader {
  display: block;
}

.page-loader-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}

.page-loader-orb {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  padding: 2px;
  border-radius: 50%;
  background: var(--ring-gradient);
  box-shadow: 0 12px 32px -12px rgba(22, 21, 26, 0.25);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}

.page-loader-orb-gap {
  width: 100%;
  height: 100%;
  padding: 3px;
  border-radius: 50%;
  background: var(--bg);
}

.page-loader-orb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */

.page {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  width: min(var(--container), calc(100% - 24px));
  margin: 12px auto 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 8px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-nav);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.topbar.is-scrolled .topbar-inner {
  box-shadow: var(--shadow-lift);
}

.identity-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 14px;
}

.identity-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.identity-name {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.availability {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.blip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.avatar-ring {
  display: block;
  flex: none;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
}

.avatar-ring img {
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--ring-gradient) border-box;
  object-fit: cover;
}

.avatar-ring--sm {
  width: 44px;
  height: 44px;
  padding: 3px;
}

.avatar-ring--sm img {
  border-width: 1.5px;
}

.avatar-ring--lg {
  width: 118px;
  height: 118px;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(22, 21, 26, 0.1), 0 0 0 1px rgba(22, 21, 26, 0.04);
}

.avatar-ring--lg img {
  border-width: 2px;
}

[data-theme="dark"] .avatar-ring--lg {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-btn .icon {
  width: 20px;
  height: 20px;
}

.icon-btn:hover {
  background: var(--surface-2);
}

.icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: 54px;
  left: 50%;
  z-index: 60;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--invert-bg);
  color: var(--invert-text);
  box-shadow: 0 6px 16px rgba(22, 21, 26, 0.18);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(-2px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.icon-btn[data-tip]:hover::after,
.icon-btn[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.theme-toggle .theme-icon--sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon--sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .theme-icon--moon {
  display: none;
}

.talk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.talk-btn:hover {
  filter: brightness(1.06);
}

.talk-btn:active {
  transform: scale(0.98);
}

.talk-icon {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   Feed & cards
   -------------------------------------------------------------------------- */

.feed {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(var(--container), calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 32px;
}

.card {
  position: relative;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

/* --------------------------------------------------------------------------
   Load-in choreography (the original Framer appear animations)
   -------------------------------------------------------------------------- */

.topbar-inner {
  opacity: 0.001;
  transform: translateY(-8px);
  animation: nav-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
}

.profile {
  opacity: 0.001;
  transform: translateY(16px);
  animation: profile-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.avatar-ring--lg {
  opacity: 0.001;
  transform: scale(0.6);
  animation: avatar-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s forwards;
}

.profile-actions {
  opacity: 0.001;
  transform: translateY(10px);
  animation: fade-up-10 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

.profile-name-row h1 .word {
  display: inline-block;
  opacity: 0.001;
  filter: blur(6px);
  transform: translateY(14px);
  animation: word-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.profile-name-row h1 .word:nth-child(1) { animation-delay: 0.5s; }
.profile-name-row h1 .word:nth-child(2) { animation-delay: 0.56s; }
.profile-name-row h1 .word:nth-child(3) { animation-delay: 0.62s; }

.verified--lg {
  opacity: 0.001;
  transform: scale(0);
  animation: verified-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.05s forwards;
}

.profile-role {
  opacity: 0.001;
  transform: translateY(10px);
  animation: fade-up-10 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.62s forwards;
}

.profile-bio {
  opacity: 0.001;
  transform: translateY(12px);
  animation: fade-up-12 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards;
}

.meta-row {
  opacity: 0.001;
  transform: translateY(12px);
  animation: fade-up-12 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
}

.socials {
  opacity: 0.001;
  transform: translateY(12px);
  animation: fade-up-12 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

.stats-row {
  opacity: 0.001;
  transform: translateY(12px);
  animation: fade-up-12 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.85s forwards;
}

.highlights {
  opacity: 0.001;
  transform: translateY(16px);
  animation: fade-up-16 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.9s forwards;
}

.story {
  opacity: 0.001;
  transform: scale(0.6);
  transform-origin: 50% 50%;
  animation: story-in 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1.05s forwards;
}

@keyframes nav-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes profile-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes avatar-in {
  0% { opacity: 0.001; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.035); }
  82% { opacity: 1; transform: scale(0.988); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes fade-up-10 {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up-12 {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-up-16 {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes word-in {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes verified-in {
  0% { opacity: 0.001; transform: scale(0); }
  60% { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes story-in {
  0% { opacity: 0.001; transform: scale(0.6); }
  60% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

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

.profile {
  overflow: hidden;
}

.cover-wrap {
  padding: 8px 8px 0;
}

.cover {
  position: relative;
  height: 202px;
  overflow: hidden;
  border-radius: 20px;
  background: #0b0b12;
}

.cover picture,
.cover img {
  display: block;
  width: 100%;
  height: 100%;
}

.cover img {
  object-fit: cover;
}

.cover-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.cover.is-shader-ready .cover-canvas {
  opacity: 1;
}

.profile-body {
  position: relative;
  padding: 14px 28px 24px;
}

.profile-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 42px;
}

.circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.circle-btn:hover {
  background: var(--surface-2);
}

.gmail-btn img {
  width: 20px;
  height: 15px;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.resume-btn .icon {
  width: 16px;
  height: 16px;
}

.resume-btn:hover {
  background: var(--surface-2);
}

.avatar-wrap {
  position: absolute;
  top: -60px;
  left: 28px;
}

.profile-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.profile-identity {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-name-row h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.profile-role {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.profile-bio {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.meta-chip .icon {
  width: 14px;
  height: 14px;
}

.socials {
  display: flex;
  gap: 8px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(22, 21, 26, 0.05), inset 0 2px 2px -1px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

[data-theme="dark"] .social-link {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.social-link img,
.social-link .x-glyph {
  width: 20px;
  height: 20px;
}

[data-theme="dark"] .social-link img[src$="github.svg"],
[data-theme="dark"] .social-link img[src$="website.svg"] {
  filter: brightness(0) invert(1);
}

.social--linkedin { border-color: rgba(10, 102, 194, 0.26); }
.social--x { border-color: color-mix(in srgb, var(--text) 20%, transparent); }
.social--behance { border-color: rgba(23, 105, 255, 0.26); }
.social--dribbble { border-color: rgba(234, 76, 137, 0.28); }

.social-link:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
}

.x-glyph {
  color: var(--text);
  stroke: none;
}

.stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.stats-numbers {
  display: flex;
  gap: 24px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
  line-height: 1;
}

.stat strong {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.trusted {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 28px;
  height: 28px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
  margin-left: -8px;
  background: var(--surface);
}

.avatar-stack img:first-child {
  margin-left: 0;
}

/* --------------------------------------------------------------------------
   Highlights
   -------------------------------------------------------------------------- */

.highlights {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
}

.section-heading h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.section-heading p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.stories {
  display: flex;
  justify-content: space-between;
  gap: 19px;
}

.story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 96px;
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
}

.story-avatar {
  position: relative;
  display: block;
  width: 96px;
  height: 96px;
}

.story-ring {
  display: flex;
  width: 96px;
  height: 96px;
  padding: 3px;
  border-radius: 50%;
  background: var(--ring-gradient);
  box-shadow: 0 0 0 5px rgba(0, 82, 204, 0.06);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease;
}

.story-ring img {
  width: 100%;
  height: 100%;
  border: 2px solid var(--surface);
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}

.story-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(22, 21, 26, 0.12);
  color: var(--accent);
}

[data-theme="dark"] .story-badge {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.story-badge .icon {
  width: 16px;
  height: 16px;
}

.story-label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.story:hover .story-ring,
.story:focus-visible .story-ring {
  transform: scale(1.05);
  box-shadow: 0 0 0 8px var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Pinned posts
   -------------------------------------------------------------------------- */

.pinned {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
}

.tray-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tray-pin {
  width: 17px;
  height: 17px;
}

.tray-title h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.count-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  margin-left: 6px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.count-chip strong {
  color: var(--text);
  font-weight: 700;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 781px) {
  .post-list {
    margin-top: -8px;
  }
}

.post-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
}

.post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 14px;
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.post-author-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.post-author-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.post-author-name .verified {
  width: 18px;
  height: 18px;
}

.post-time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.category-chip > span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.post-caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 24px 16px;
}

.post-caption h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.post-caption p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.post-media {
  display: block;
  width: calc(100% - 24px);
  margin: 0 12px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--surface-2);
}

.post-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post-media:hover img {
  transform: scale(1.018);
}

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 74px;
  padding: 10px 24px 14px 12px;
}

.post-actions-left {
  display: flex;
  align-items: center;
  gap: 2px;
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.post-action .icon {
  width: 18px;
  height: 18px;
}

.post-action:hover {
  background: var(--surface-2);
}

.like-btn.is-liked {
  color: var(--like);
}

.like-btn.is-liked .icon {
  fill: var(--like);
  stroke: var(--like);
}

.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 129px;
  height: 50px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--invert-bg);
  color: var(--invert-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

[data-theme="dark"] .view-btn {
  box-shadow: none;
}

.view-btn:hover {
  background: var(--accent);
  color: var(--on-accent);
}

.view-btn:active {
  transform: scale(0.98);
}

.more-from {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.more-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.more-title .icon {
  width: 16px;
  height: 16px;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 16px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.view-all .icon {
  width: 14px;
  height: 14px;
}

.view-all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.tile {
  position: relative;
  display: block;
  aspect-ratio: 219 / 200;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--surface-2);
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(22, 21, 26, 0.5);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tile-overlay span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tile-overlay .icon {
  width: 17px;
  height: 17px;
}

.tile:hover img,
.tile:focus-visible img {
  transform: scale(1.04);
}

.tile:hover .tile-overlay,
.tile:focus-visible .tile-overlay {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   Journey
   -------------------------------------------------------------------------- */

.journey {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 28px 16px 16px;
}

.journey-head {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 12px 14px;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
}

.section-icon .icon {
  width: 18px;
  height: 18px;
}

.journey-title h2 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.journey-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
}

.years-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin-left: auto;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--invert-bg);
  color: var(--invert-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.years-pill .icon {
  width: 14px;
  height: 14px;
}

.timeline {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.entry {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 12px 12px 14px 0;
}

.entry:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  left: 8px;
  width: 2px;
  height: calc(100% - 40px);
  background: var(--border);
}

.entry--current:not(:last-child)::after {
  background: linear-gradient(180deg, var(--accent), var(--border));
}

.node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  margin-left: -12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(22, 21, 26, 0.05);
  color: var(--text);
}

[data-theme="dark"] .node {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.node .icon {
  width: 18px;
  height: 18px;
}

.entry--current .node {
  background: var(--node-gradient);
  color: #fff;
  box-shadow: 0 0 0 5px var(--accent-soft);
}

.entry-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-top: 1px;
}

.entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 20px;
}

.entry-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.current-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.year-pill {
  flex: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.entry--current .year-pill {
  color: var(--accent);
}

.company {
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.entry-desc {
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 0;
}

.tags span {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */

.reviews {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
}

.reviews-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.reviews-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.reviews-title h2 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
}

.reviews-title p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.rating-pill strong {
  font-weight: 700;
}

.rating-pill .star {
  width: 14px;
  height: 14px;
  color: var(--orange);
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
}

.review-bubble {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px 20px 16px;
  border-radius: 6px 20px 20px 20px;
  background: var(--bubble);
}

.reviewer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.reviewer strong {
  color: var(--text);
  font-weight: 700;
}

.review-bubble p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Contact / chat
   -------------------------------------------------------------------------- */

.contact {
  overflow: hidden;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
}

.chat-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  flex: none;
}

.chat-avatar img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.online {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--green);
}

.chat-contact h2 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.chat-contact p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
}

.mail-btn {
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 0;
  background: var(--surface-2);
}

.mail-btn .icon {
  width: 17px;
  height: 17px;
}

.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 28px 20px;
}

.chat-day {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.bubble {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.bubble--tail {
  border-radius: 20px 20px 20px 6px;
}

.bubble--out {
  align-self: flex-end;
  border-color: transparent;
  border-radius: 20px 20px 6px 20px;
  background: var(--accent);
  color: var(--on-accent);
}

.quick-q {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.quick-q button {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.quick-q button:hover {
  background: var(--surface-2);
}

.composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 28px 20px;
  background: var(--surface-2);
}

.topic-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 14px 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.topic .icon {
  width: 14px;
  height: 14px;
}

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

.topic.is-active {
  color: var(--text);
  border-color: var(--accent-soft);
}

.topic.is-active .icon {
  color: var(--accent);
}

.form-row {
  display: flex;
  gap: 8px;
}

.field {
  flex: 1;
  min-width: 0;
}

.field input {
  width: 100%;
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: box-shadow 0.2s ease;
}

.field input::placeholder,
.message-field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

.field input:focus-visible,
.message-field textarea:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.message-field {
  position: relative;
}

.message-field textarea {
  display: block;
  width: 100%;
  height: 96px;
  padding: 12px 60px 12px 20px;
  border: 0;
  border-radius: 20px;
  outline: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  resize: none;
  transition: box-shadow 0.2s ease;
}

.send-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.send-btn .icon {
  width: 17px;
  height: 17px;
}

.send-btn:hover {
  filter: brightness(1.07);
}

.send-btn:active {
  transform: scale(0.96);
}

.form-note {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.4;
}

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

.footer {
  display: flex;
  flex-direction: column;
}

.footer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 28px;
  text-align: center;
}

.all-caught {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.check-row .line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 35%, transparent));
}

.check-row .line:last-child {
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 35%, transparent), transparent);
}

.check-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: none;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent-soft);
  color: var(--accent);
}

.check-ring .icon {
  width: 22px;
  height: 22px;
}

.footer-card h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.all-caught > p {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

.footer-email .icon {
  width: 16px;
  height: 16px;
}

.footer-email:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 3px;
}

.meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 28px 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.meta-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.meta-bar .icon {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Overlays
   -------------------------------------------------------------------------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.overlay[hidden] {
  display: none;
}

.overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 21, 26, 0.85);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.overlay.is-open .overlay-backdrop {
  opacity: 1;
}

/* Story modal -------------------------------------------------------------- */

.story-shell {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.story-card {
  position: relative;
  width: min(520px, 100%);
  height: min(792px, calc(100vh - 40px));
  height: min(792px, calc(100dvh - 40px));
  overflow: hidden;
  border-radius: 24px;
  background: #16151a;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: scale(0.96) translateY(8px);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}

.overlay.is-open .story-card {
  opacity: 1;
  transform: none;
}

.story-slides {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
  will-change: transform;
}

.story-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.story-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22, 21, 26, 0.55) 0%, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, 0) 35%, rgba(22, 21, 26, 0.92) 100%);
}

.story-progress {
  position: absolute;
  top: 12px;
  left: 80px;
  right: 80px;
  z-index: 3;
  display: flex;
  gap: 3px;
}

.story-progress i {
  position: relative;
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.story-progress i.is-active {
  background: #fff;
}

.story-top {
  position: absolute;
  top: 34px;
  left: 80px;
  right: 80px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.story-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.story-user img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.story-handle {
  white-space: nowrap;
}

.story-category {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.story-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease;
}

.story-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.story-close .icon {
  width: 18px;
  height: 18px;
}

.story-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 80px 16px;
}

.service-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.service-pill .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.story-body h2 {
  margin-top: 2px;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.story-desc {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.feature-list span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  backdrop-filter: blur(6px);
}

.feature-list .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.story-price {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.story-price .icon {
  width: 16px;
  height: 16px;
}

.story-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.story-ask {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 40px;
  padding: 0 16px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: transparent;
}

.story-ask:focus-within {
  border-color: rgba(255, 255, 255, 0.8);
}

.story-ask input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.story-ask input::placeholder {
  color: rgba(255, 255, 255, 0.85);
  opacity: 1;
}

.story-ask button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}

.story-ask .icon {
  width: 15px;
  height: 15px;
}

.story-like {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  transition: color 0.2s ease, transform 0.2s ease;
}

.story-like:hover {
  transform: scale(1.06);
}

.story-like .icon {
  width: 18px;
  height: 18px;
}

.story-like.is-liked {
  color: var(--like);
}

.story-like.is-liked .icon {
  fill: currentColor;
  stroke: currentColor;
}

.story-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
  transition: background-color 0.2s ease;
}

.story-arrow:hover {
  background: rgba(0, 0, 0, 0.5);
}

.story-arrow .icon {
  width: 18px;
  height: 18px;
}

.story-arrow[hidden] {
  display: none;
}

.story-arrow--prev {
  left: max(16px, calc(50% - 260px + 14px));
}

.story-arrow--next {
  right: max(16px, calc(50% - 260px + 14px));
}

/* Project modal ------------------------------------------------------------ */

.project-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: scale(0.97) translateY(8px);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}

.overlay.is-open .project-card {
  opacity: 1;
  transform: none;
}

.project-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
}

.project-hero {
  position: relative;
  height: 300px;
  background: var(--surface-2);
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-category {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.project-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 32px 32px;
  background: var(--surface);
}

.project-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.project-content > h2 {
  margin-top: 2px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.project-desc {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
}

.project-engagement {
  display: flex;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.project-engagement span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-engagement .icon {
  width: 16px;
  height: 16px;
}

.project-engagement strong {
  color: var(--text);
  font-weight: 700;
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 0;
}

.project-meta dt {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.project-meta dd {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.project-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 6px;
}

.project-sections h3 {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.project-sections p {
  color: var(--muted);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.6;
}

.project-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--surface-2);
}

.project-foot p {
  font-size: 14px;
  font-weight: 500;
}

.project-talk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--invert-bg);
  color: var(--invert-text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.project-talk .icon {
  width: 14px;
  height: 14px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 21, 26, 0.55);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: background-color 0.2s ease;
}

.modal-close:hover {
  background: rgba(22, 21, 26, 0.75);
}

.modal-close .icon {
  width: 18px;
  height: 18px;
}

/* All projects modal ------------------------------------------------------- */

.gallery-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  padding: 24px;
  overflow-y: auto;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  opacity: 0;
  transform: scale(0.97) translateY(8px);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s ease;
}

.overlay.is-open .gallery-card {
  opacity: 1;
  transform: none;
}

.gallery-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-right: 40px;
}

.gallery-head h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.gallery-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.modal-close--static {
  position: static;
  flex: none;
  background: var(--surface-2);
  color: var(--text);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.gallery-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--surface-2);
}

.gallery-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}

.gallery-item-body strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.gallery-item-body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--invert-bg);
  color: var(--invert-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}

.toast[hidden] {
  display: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 780px) {
  :root {
    --radius-card: 24px;
  }

  html {
    scroll-padding-top: 84px;
  }

  .topbar {
    width: calc(100% - 24px);
  }

  .topbar-inner {
    gap: 8px;
  }

  .identity-text {
    display: none;
  }

  .avatar-ring--sm {
    width: 40px;
    height: 40px;
  }

  .nav-actions {
    gap: 6px;
  }

  .nav-divider {
    display: none;
  }

  .talk-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }

  .talk-btn span {
    display: none;
  }

  .talk-icon {
    width: 17px;
    height: 17px;
  }

  .feed {
    gap: 12px;
    padding: 16px 0 24px;
  }

  .profile {
    margin-bottom: -4px;
  }

  .footer {
    margin-top: 12px;
  }

  .cover-wrap {
    padding: 0 8px;
  }

  .cover {
    height: 202px;
  }

  .profile-body {
    padding: 12px 20px 20px;
  }

  .avatar-wrap {
    left: 20px;
  }

  .profile-name-row h1 {
    font-size: 26px;
  }

  .profile-bio {
    font-size: 15px;
  }

  .profile-intro {
    margin-top: 16px;
  }

  .trusted {
    display: none;
  }

  .highlights {
    gap: 24px;
    padding: 20px 0 16px;
  }

  .section-heading {
    padding: 0 20px;
  }

  .stories {
    justify-content: flex-start;
    gap: 22px;
    padding: 4px 20px 13px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-padding-inline: 20px;
    scroll-snap-type: x proximity;
  }

  .stories::-webkit-scrollbar {
    display: none;
  }

  .story {
    width: 70px;
    scroll-snap-align: start;
  }

  .story-avatar,
  .story-ring {
    width: 70px;
    height: 70px;
  }

  .story-ring {
    padding: 2px;
  }

  .story-ring img {
    border-width: 2px;
  }

  .story-badge {
    right: -2px;
    bottom: -2px;
    width: 24px;
    height: 24px;
  }

  .story-badge .icon {
    width: 13px;
    height: 13px;
  }

  .story-label {
    font-size: 13px;
  }

  .pinned {
    padding: 20px;
  }

  .post-card {
    border-radius: 20px;
  }

  .post-head {
    padding: 14px 14px 10px;
  }

  .post-avatar {
    width: 40px;
    height: 40px;
  }

  .post-caption {
    gap: 4px;
    padding: 0 14px 12px;
  }

  .post-caption h3 {
    font-size: 18px;
  }

  .post-caption p {
    font-size: 14px;
    line-height: 1.45;
  }

  .post-media {
    width: calc(100% - 16px);
    margin: 0 8px;
    border-radius: 14px;
  }

  .post-media img {
    height: 300px;
  }

  .post-actions {
    min-height: 54px;
    padding: 6px 10px 10px 2px;
  }

  .post-action {
    padding: 10px 12px;
    font-size: 13px;
  }

  .view-btn {
    min-width: 105px;
    height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .more-title {
    font-size: 14px;
  }

  .tile {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .journey {
    padding: 20px 12px 12px;
  }

  .journey-head {
    padding: 0 8px 14px;
  }

  .section-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .years-pill {
    height: 30px;
    padding: 0 10px 0 8px;
    font-size: 11.5px;
  }

  .entry {
    padding: 12px 8px 14px 12px;
  }

  .entry:not(:last-child)::after {
    left: 31px;
  }

  .entry .node {
    margin-left: 0;
  }

  .entry-title {
    font-size: 15px;
  }

  .year-pill {
    padding: 8px 12px;
    font-size: 12px;
  }

  .entry-top {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 6px;
  }

  .reviews {
    padding: 20px;
  }

  .chat-head {
    padding: 16px 20px;
  }

  .chat-thread {
    padding: 20px 16px 16px;
  }

  .composer {
    padding: 14px 16px 16px;
  }

  .topic-tabs {
    display: none;
  }

  .all-caught {
    gap: 16px;
  }

  .footer-card {
    padding: 24px 20px;
  }

  .meta-bar {
    min-height: 81px;
    padding: 16px 20px 24px;
  }
}

@media (max-width: 780px) {
  .form-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .footer-card h2 {
    font-size: 22px;
  }

  .project-meta {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 560px) {
  .overlay {
    padding: 0;
  }

  .story-card {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .story-top {
    top: 26px;
    right: 16px;
    left: 16px;
  }

  .story-progress {
    left: 16px;
    right: 16px;
  }

  .story-body {
    padding: 20px;
  }

  .story-body h2 {
    font-size: 28px;
  }

  .story-arrow {
    display: none;
  }

  .project-card {
    width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }

  .project-hero {
    height: 240px;
  }

  .project-content {
    padding: 22px 20px 28px;
  }

  .project-content > h2 {
    font-size: 25px;
  }

  .project-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .gallery-card {
    width: calc(100% - 24px);
    padding: 20px;
  }

  .gallery-head {
    padding-right: 0;
  }
}

@media (min-width: 640px) and (max-width: 780px) {
  .feed {
    padding-top: 8px;
  }

  .highlights {
    padding: 20px 0 16px;
  }

  .section-heading {
    padding: 0 20px;
  }

  .stories {
    justify-content: space-between;
    gap: 12px;
    padding: 4px 20px 0;
    overflow: visible;
  }

  .story {
    width: 80px;
  }

  .story-avatar,
  .story-ring {
    width: 80px;
    height: 80px;
  }

  .story-label {
    font-size: 14px;
  }
}

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

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

  .topbar-inner,
  .profile,
  .avatar-ring--lg,
  .profile-actions,
  .profile-name-row h1 .word,
  .verified--lg,
  .profile-role,
  .profile-bio,
  .meta-row,
  .socials,
  .stats-row,
  .highlights,
  .story {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}
