@import url("https://fonts.googleapis.com/css2?family=Domine:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #020304;
  --bg-soft: rgba(7, 8, 10, 0.92);
  --card: rgba(14, 15, 18, 0.9);
  --card-strong: rgba(11, 12, 15, 0.98);
  --card-elevated: linear-gradient(180deg, rgba(17, 18, 22, 0.98), rgba(10, 11, 14, 0.98));
  --card-light: #f2f0ea;
  --text: #f7f7f4;
  --text-soft: #d7d9de;
  --muted: #8c9098;
  --muted-soft: #686e77;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.3);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top center, rgba(83, 106, 145, 0.18), transparent 32%),
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.05), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 62%, transparent 100%);
  opacity: 0.76;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
}

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

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

svg {
  display: block;
}

.site-shell {
  width: min(100% - 24px, 1040px);
  margin: 0 auto;
  position: relative;
}

.topbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 1040px);
  height: 50px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  background: rgba(5, 6, 8, 0.84);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 40;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.brand-button,
.nav-icon,
.lang-pill {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  color: var(--muted);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.brand-button {
  background: rgba(255, 255, 255, 0.03);
}

.brand-button svg,
.nav-icon svg {
  width: 17px;
  height: 17px;
}

.nav-center {
  display: flex;
  justify-content: center;
  gap: 5px;
}

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

.lang-pill {
  width: auto;
  min-width: 34px;
  padding: 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.brand-button:hover,
.nav-icon:hover,
.lang-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.page {
  padding-top: 88px;
}

.hero,
.section,
.contact-card {
  animation: fade-up 500ms ease both;
}

.hero {
  padding: 18px 0 34px;
}

.portrait-stack {
  position: relative;
  width: min(100%, 250px);
  height: 156px;
  margin: 0 0 22px;
}

.portrait-card {
  position: absolute;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  box-shadow: var(--shadow);
}

.portrait-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-card-back {
  width: 112px;
  height: 94px;
  left: 8px;
  top: 22px;
  transform: rotate(-6deg);
}

.portrait-card-back img {
  object-position: 52% 30%;
  filter: saturate(0.9) brightness(0.82);
}

.portrait-card-front {
  width: 132px;
  height: 104px;
  left: 94px;
  top: 10px;
  transform: rotate(4deg);
}

.portrait-card-front img {
  object-position: center 26%;
}

.hero-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.hero-headline h1 {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-headline .muted {
  color: var(--muted);
  font-weight: 500;
}

.verified-badge {
  width: 16px;
  height: 16px;
  color: #5ba6ff;
}

.verified-badge svg {
  width: 100%;
  height: 100%;
}

.hero-mini-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.hero-mini-link svg {
  width: 14px;
  height: 14px;
}

.interest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.interest-row span,
.project-links a,
.writing-link,
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.project-links a:hover,
.writing-link:hover,
.footer-nav a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.hero-copy {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--text-soft);
  font-family: "Domine", serif;
  font-size: clamp(1.2rem, 4.2vw, 2.72rem);
  line-height: 1.16;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero-copy span {
  color: var(--text);
}

.launch-strip {
  margin-bottom: 20px;
}

.launch-strip p {
  margin: 0 0 8px;
  color: var(--muted-soft);
  font-size: 0.8rem;
}

.launch-strip a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  font-size: 0.83rem;
  font-weight: 600;
}

.launch-strip a svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

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

.stat-card {
  min-height: 110px;
  padding: 16px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.stat-card:hover,
.project-card:hover,
.skill-card:hover,
.writing-card:hover,
.catalog-card:hover,
.contact-panel:hover,
.contact-socials a:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.stat-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-label svg {
  width: 15px;
  height: 15px;
}

.stat-card strong {
  display: block;
  margin-top: 28px;
  color: var(--text);
  font-family: "Domine", serif;
  font-size: clamp(1.75rem, 7vw, 2.3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.section-jump {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.section-jump svg {
  width: 14px;
  height: 14px;
}

.section {
  padding-top: 56px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-heading svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: "Domine", serif;
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.section-intro,
.catalog-intro,
.page-intro {
  max-width: 760px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

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

.project-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.project-visual {
  min-height: 220px;
  background: var(--card-light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.project-visual-apps {
  display: grid;
  place-items: center;
  padding: 20px;
}

.app-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.app-badge-grid img,
.placeholder-badge {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.placeholder-badge {
  display: grid;
  place-items: center;
  color: #151515;
  font-size: 0.9rem;
  font-weight: 800;
}

.placeholder-badge.dark {
  background: #121212;
  color: #f4f4f0;
}

.project-visual-web {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 8px;
}

.project-visual-web img {
  width: 100%;
  height: 106px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.project-body {
  padding: 16px;
}

.project-body h3,
.writing-card h3,
.post-hero h1 {
  margin: 0 0 8px;
  font-family: "Domine", serif;
  font-size: clamp(1.35rem, 4vw, 2.05rem);
  letter-spacing: -0.045em;
}

.project-body p,
.writing-card p,
.post-content p,
.post-content li {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.68;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
}

.timeline-item {
  position: relative;
  padding-left: 38px;
}

.timeline-item + .timeline-item {
  margin-top: 20px;
}

.timeline-meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.timeline-content {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--card-elevated);
  box-shadow: var(--shadow-soft);
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-title-group {
  min-width: 0;
  flex: 1 1 220px;
}

.timeline-title-group h3 {
  margin: 0;
  font-family: "Domine", serif;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.timeline-role {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.timeline-dot {
  position: absolute;
  left: 0;
  top: 32px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 7px solid rgba(255, 255, 255, 0.98);
  background: #23d18b;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05);
}

.timeline-dot.live {
  background: #22d37d;
}

.timeline-dot.teal {
  background: #4cc7d8;
}

.timeline-dot.amber {
  background: #f5b445;
}

.timeline-dot.rose {
  background: #ff7c97;
}

.timeline-dot.slate {
  background: #7e8aa0;
}

.timeline-chip,
.skill-badge,
.writing-kicker,
.footer-eyebrow,
.page-label,
.post-meta span,
.writing-meta span,
.timeline-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.muted-chip {
  background: rgba(255, 255, 255, 0.03);
}

.timeline-content > p:last-of-type {
  margin-bottom: 14px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills-layout {
  display: grid;
  gap: 14px;
}

.skill-group {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-elevated);
  box-shadow: var(--shadow-soft);
}

.skill-group-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 16px;
}

.skill-group h3 {
  margin: 0;
  font-family: "Domine", serif;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.skill-group-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  max-width: 340px;
}

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

.skill-card {
  min-height: 134px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(17, 18, 22, 0.92), rgba(11, 12, 15, 0.92));
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.skill-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 800;
}

.skill-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Domine", serif;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.skill-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.58;
}

.accent-orange {
  background: rgba(255, 146, 66, 0.18);
  color: #ffb16d;
}

.accent-blue {
  background: rgba(91, 166, 255, 0.18);
  color: #8ec0ff;
}

.accent-white {
  background: rgba(255, 255, 255, 0.1);
  color: #f0f0ed;
}

.accent-cyan {
  background: rgba(70, 213, 255, 0.16);
  color: #7be5ff;
}

.accent-yellow {
  background: rgba(245, 198, 75, 0.16);
  color: #ffd765;
}

.accent-green {
  background: rgba(45, 214, 131, 0.16);
  color: #67efaa;
}

.accent-pink {
  background: rgba(255, 105, 180, 0.16);
  color: #ff8ed0;
}

.accent-lime {
  background: rgba(176, 234, 72, 0.16);
  color: #cff97c;
}

.accent-violet {
  background: rgba(153, 108, 255, 0.17);
  color: #c3a2ff;
}

.accent-slate {
  background: rgba(140, 152, 170, 0.16);
  color: #bec7d3;
}

.accent-purple {
  background: rgba(188, 112, 255, 0.16);
  color: #d1a8ff;
}

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

.writing-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-elevated);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.writing-feature {
  background:
    radial-gradient(circle at top right, rgba(91, 166, 255, 0.15), transparent 30%),
    linear-gradient(180deg, rgba(17, 19, 24, 0.98), rgba(10, 11, 15, 0.98));
}

.writing-kicker,
.footer-eyebrow,
.page-label {
  margin-bottom: 12px;
  width: fit-content;
}

.writing-card p + .writing-meta,
.post-content p + .post-divider {
  margin-top: 14px;
}

.writing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.writing-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.writing-link {
  margin-top: 16px;
  width: fit-content;
}

.contact-card {
  margin: 56px 0 40px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at top right, rgba(94, 132, 201, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(18, 19, 22, 0.96), rgba(11, 12, 16, 0.98));
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.contact-copy h2 {
  margin: 0 0 10px;
  font-family: "Domine", serif;
  font-size: clamp(1.65rem, 4.6vw, 2.3rem);
  letter-spacing: -0.05em;
}

.contact-summary {
  max-width: 420px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.contact-copy > a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.contact-copy small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.contact-panels {
  display: grid;
  gap: 12px;
}

.contact-panel {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.contact-panel strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Domine", serif;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.contact-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-social-block {
  display: grid;
  gap: 10px;
}

.contact-socials {
  display: grid;
  grid-template-columns: repeat(2, 52px);
  gap: 8px;
  justify-content: start;
}

.contact-socials a {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.contact-socials a svg {
  width: 18px;
  height: 18px;
}

.catalog-page,
.blog-page,
.post-page {
  padding-bottom: 8px;
}

.catalog-hero,
.page-hero {
  padding: 18px 0 8px;
}

.catalog-grid,
.blog-list {
  display: grid;
  gap: 14px;
  padding-top: 12px;
}

.catalog-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(18, 19, 23, 0.98), rgba(12, 13, 16, 1));
  box-shadow: var(--shadow);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.catalog-body {
  padding: 16px;
}

.catalog-body h2 {
  margin: 0 0 6px;
  font-family: "Domine", serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.catalog-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.58;
}

.catalog-app-top {
  min-height: 154px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.catalog-icon-tile {
  width: 70px;
  height: 70px;
  padding: 10px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.catalog-icon-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-dot {
  width: 14px;
  height: 14px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.catalog-dot.warm {
  background: rgba(245, 180, 69, 0.32);
}

.catalog-dot.cool {
  background: rgba(76, 199, 216, 0.32);
}

.catalog-preview {
  min-height: 188px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalog-preview-bar {
  width: 84px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.catalog-preview-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.catalog-preview-content img {
  width: 72px;
  height: 72px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(4, 8, 20, 0.78);
  backdrop-filter: blur(12px);
}

.catalog-preview-content strong,
.catalog-preview-content span {
  display: block;
}

.catalog-preview-content strong {
  font-family: "Domine", serif;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.catalog-preview-content span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.78rem;
  font-weight: 600;
}

.catalog-preview-omni {
  background:
    radial-gradient(circle at 78% 18%, rgba(133, 221, 255, 0.36), transparent 30%),
    linear-gradient(135deg, #041a37 10%, #0a4b98 55%, #07101d 100%);
}

.catalog-preview-omni-soft {
  background:
    radial-gradient(circle at 22% 26%, rgba(255, 255, 255, 0.18), transparent 22%),
    linear-gradient(135deg, #051625 0%, #14456f 55%, #04070e 100%);
}

.catalog-preview-senda {
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 239, 183, 0.26), transparent 26%),
    linear-gradient(135deg, #241102 0%, #8b5b15 58%, #120603 100%);
}

.catalog-preview-senda-soft {
  background:
    radial-gradient(circle at 70% 18%, rgba(255, 215, 111, 0.25), transparent 24%),
    linear-gradient(135deg, #3b2202 0%, #7f4c16 48%, #110603 100%);
}

.catalog-preview-fresta {
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 183, 216, 0.22), transparent 20%),
    linear-gradient(135deg, #201326 0%, #7f3558 52%, #14060d 100%);
}

.catalog-preview-fresta-soft {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 204, 227, 0.26), transparent 22%),
    linear-gradient(135deg, #2a1521 0%, #6e3455 48%, #13060d 100%);
}

.page-label {
  margin-bottom: 14px;
}

.page-intro-bar {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.blog-search {
  position: relative;
}

.blog-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.blog-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
}

.blog-input::placeholder {
  color: var(--muted);
}

.blog-card-link {
  display: block;
}

.blog-card-link:hover h2 {
  color: #92beff;
}

.blog-empty {
  display: none;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed var(--border);
  color: var(--muted);
  text-align: center;
}

.blog-empty.is-visible {
  display: block;
}

.post-shell {
  max-width: 760px;
}

.post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.post-back svg {
  width: 14px;
  height: 14px;
}

.post-hero {
  margin-bottom: 22px;
}

.post-hero p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.post-content {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--card-elevated);
  box-shadow: var(--shadow-soft);
}

.post-content h2 {
  margin: 30px 0 10px;
  font-family: "Domine", serif;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.post-content h2:first-child {
  margin-top: 0;
}

.post-content p + p,
.post-content p + ul,
.post-content ul + p {
  margin-top: 16px;
}

.post-content ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.post-divider {
  height: 1px;
  margin: 26px 0;
  background: rgba(255, 255, 255, 0.08);
}

.post-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 700px) {
  .site-shell {
    width: min(100% - 48px, 1040px);
  }

  .topbar {
    top: 18px;
    width: min(calc(100% - 48px), 1040px);
    height: 56px;
    padding: 0 12px;
    gap: 10px;
  }

  .page {
    padding-top: 112px;
  }

  .hero {
    padding-top: 18px;
  }

  .portrait-stack {
    width: 360px;
    height: 212px;
    margin-bottom: 28px;
  }

  .portrait-card-back {
    width: 160px;
    height: 128px;
    top: 34px;
    left: 20px;
  }

  .portrait-card-front {
    width: 194px;
    height: 152px;
    top: 12px;
    left: 152px;
  }

  .hero-headline h1 {
    font-size: 1.35rem;
  }

  .hero-mini-link {
    height: 32px;
    padding-inline: 13px;
  }

  .launch-strip a {
    font-size: 0.95rem;
  }

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

  .stat-card {
    min-height: 132px;
    padding: 20px;
  }

  .stat-card strong {
    margin-top: 34px;
  }

  .section {
    padding-top: 86px;
  }

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

  .writing-grid {
    grid-template-columns: 1.18fr 1fr;
    gap: 18px;
  }

  .writing-feature {
    grid-row: span 2;
    min-height: 100%;
  }

  .project-visual {
    min-height: 240px;
  }

  .project-visual-web img {
    height: 112px;
  }

  .project-body,
  .catalog-body {
    padding: 18px 20px 20px;
  }

  .catalog-app-top {
    min-height: 178px;
    padding: 20px;
  }

  .catalog-preview {
    min-height: 214px;
    padding: 18px;
  }

  .timeline::before {
    left: 192px;
  }

  .timeline-item {
    display: grid;
    grid-template-columns: 156px 1fr;
    gap: 36px;
    padding-left: 0;
  }

  .timeline-item + .timeline-item {
    margin-top: 24px;
  }

  .timeline-meta {
    margin: 4px 0 0;
    text-align: right;
  }

  .timeline-dot {
    left: 176px;
    top: 22px;
  }

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

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    margin-top: 88px;
    padding: 26px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 18px;
  }

  .contact-panels {
    gap: 18px;
  }

  .contact-social-block {
    align-content: start;
  }

  .post-content {
    padding: 28px;
  }
}

@media (max-width: 390px) {
  .site-shell {
    width: calc(100% - 16px);
  }

  .topbar {
    width: calc(100% - 16px);
    gap: 4px;
    padding-inline: 8px;
  }

  .nav-center {
    gap: 2px;
  }

  .brand-button,
  .nav-icon {
    width: 30px;
    height: 30px;
  }

  .lang-pill {
    min-width: 30px;
    padding-inline: 8px;
  }

  .app-badge-grid img,
  .placeholder-badge {
    width: 48px;
    height: 48px;
  }

  .contact-card,
  .post-content,
  .skill-group,
  .writing-card,
  .timeline-content {
    padding: 16px;
  }
}

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

  .hero,
  .section,
  .contact-card,
  .brand-button,
  .nav-icon,
  .lang-pill,
  .stat-card,
  .project-card,
  .skill-card,
  .writing-card,
  .catalog-card,
  .contact-panel,
  .contact-socials a {
    animation: none;
    transition: none;
  }
}
