:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --surface-soft: #F8FAFC;
  --text: #050609;
  --muted: #4B5563;
  --muted-2: #6B7280;
  --border: #DCE3EB;
  --border-strong: #C7D0DA;
  --shadow: 0 24px 70px rgba(15, 23, 42, .08);
  --shadow-soft: 0 10px 34px rgba(15, 23, 42, .06);
  --radius: 24px;
  --radius-sm: 14px;
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #0F1117;
  --surface: #171923;
  --surface-soft: #1E2230;
  --text: #F8FAFC;
  --muted: #CBD5E1;
  --muted-2: #94A3B8;
  --border: #2A3140;
  --border-strong: #394255;
  --shadow: 0 26px 80px rgba(0, 0, 0, .50);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, .32);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  background: var(--bg)
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 255, 255, .76), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, .32), transparent 420px),
    var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .25s ease, color .25s ease;
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 72% 12%, rgba(255, 255, 255, .055), transparent 28%),
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, .035), transparent 30%),
    var(--bg);
}

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

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

.container,
.site-header__inner,
.page-section {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 244, 247, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 227, 235, .86);
  transition: background .25s ease, border-color .25s ease;
}

[data-theme="dark"] .site-header {
  background: rgba(15, 17, 23, .82);
  border-bottom-color: rgba(42, 49, 64, .82)
}

.site-header__inner {
  height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 26px
}

.logo-text {
  font-family: "JetBrains Mono", monospace;
  color: var(--text);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.08em;
  white-space: nowrap
}

.logo-text span {
  letter-spacing: -.16em
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px
}

.brand:hover {
  opacity: .72
}

.nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 700
}

.nav__link {
  position: relative;
  color: var(--text)
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: .18s ease
}

.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1)
}

.contact-btn,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #050609;
  border-radius: 9px;
  background: #050609;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .13);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease
}

.contact-btn {
  padding: 15px 20px
}

.btn {
  padding: 15px 20px;
  min-width: 150px
}

.contact-btn:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 0, 0, .16)
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: none
}

.btn--secondary:hover {
  background: var(--surface);
  box-shadow: var(--shadow-soft)
}

[data-theme="dark"] .contact-btn,
[data-theme="dark"] .btn {
  background: #F8FAFC;
  color: #0B0D10;
  border-color: #F8FAFC
}

[data-theme="dark"] .btn--secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong)
}

.theme-toggle {
  width: 52px;
  height: 30px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: border-color .2s ease, background .2s ease
}

.theme-toggle:hover {
  border-color: var(--text)
}

.theme-toggle__track {
  position: relative;
  width: 100%;
  height: 100%;
  display: block
}

.theme-toggle__thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--text);
  transition: transform .22s cubic-bezier(.2, .8, .2, 1), background .2s ease
}

[data-theme="dark"] .theme-toggle {
  background: var(--surface-soft)
}

[data-theme="dark"] .theme-toggle__thumb {
  transform: translateX(22px);
  background: var(--text)
}

.page-shell {
  width: 100%
}

.hero {
  position: relative;
  width: min(var(--container), calc(100% - 48px));
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr);
  gap: 42px;
  align-items: center;
  min-height: 585px
}

.hero::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 68px;
  width: 320px;
  height: 260px;
  opacity: .55;
  background-image: radial-gradient(var(--border-strong) 1px, transparent 1px);
  background-size: 18px 18px;
  z-index: -1;
  mask-image: linear-gradient(to bottom, #000, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent)
}

.hero__content {
  position: relative;
  z-index: 2
}

.hero__kicker {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--muted);
  font-weight: 850;
  margin: 0 0 16px
}

.hero h1 {
  font-size: clamp(64px, 8vw, 94px);
  line-height: .90;
  letter-spacing: -.075em;
  margin: 0 0 28px;
  max-width: 720px
}

.hero__role {
  font-size: 20px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 560px
}

.hero__lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 30px
}

.hero__actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 34px
}

.hero__stats {
  display: flex;
  align-items: stretch;
  gap: 26px;
  margin-top: 12px
}

.stat {
  min-width: 110px
}

.stat:not(:last-child) {
  border-right: 1px solid var(--border-strong);
  padding-right: 26px
}

.stat strong {
  display: block;
  font-size: 31px;
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.05em
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px
}

.hero__photo-wrap {
  position: relative;
  align-self: end;
  min-height: 545px;
  display: flex;
  align-items: flex-end;
  justify-content: center
}

.hero__photo {
  position: relative;
  width: min(100%, 590px);
  height: 560px;
  overflow: visible;
  background: transparent;
  border: 0;
  box-shadow: none
}

.hero__photo::before {
  content: "";
  position: absolute;
  left: 14%;
  right: 8%;
  top: 10%;
  bottom: 18%;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .68), rgba(255, 255, 255, .18));
  z-index: 0
}

.hero__photo::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 12%;
  bottom: 8px;
  height: 86px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .20), transparent 70%);
  filter: blur(24px);
  z-index: 1;
  pointer-events: none
}

.hero__photo img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(100%, 520px);
  height: auto;
  max-height: 580px;
  object-fit: contain;
  object-position: bottom center;
  z-index: 2;
  filter: drop-shadow(0 22px 30px rgba(15, 23, 42, .20));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 76%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 76%, rgba(0, 0, 0, 0) 100%)
}

[data-theme="dark"] .hero__photo::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  border-color: var(--border)
}

[data-theme="dark"] .hero__photo::after {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55), transparent 70%)
}

.cards {
  width: min(var(--container), calc(100% - 48px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px
}

.feature-card {
  position: relative;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 30px 26px;
  min-height: 180px;
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .25s ease
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--border-strong)
}

[data-theme="dark"] .feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04)
}

.icon-box {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  margin-bottom: 18px
}

.icon-box svg,
.social-links svg {
  width: 26px;
  height: 26px;
  fill: currentColor
}

.feature-card h2,
.feature-card h3 {
  font-size: 28px;
  letter-spacing: -.045em;
  margin: 0 0 8px
}

.feature-card p {
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 280px
}

.text-link {
  font-weight: 800;
  display: inline-flex;
  gap: 12px;
  align-items: center
}

.feature-card .text-link {
  font-size: 0
}

.feature-card .text-link span {
  font-size: 28px;
  line-height: 1
}

.feature-card::after {
  content: "";
  position: absolute;
  left: 30px;
  bottom: 20px;
  width: 34px;
  height: 3px;
  background: var(--text);
  border-radius: 999px;
  opacity: .95
}

.tech-section {
  width: min(var(--container), calc(100% - 48px));
  margin: 68px auto 0
}

.section-title {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -.045em;
  margin: 0 0 10px
}

.section-rule {
  width: 42px;
  height: 2px;
  background: var(--text);
  margin: 0 0 30px
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 18px;
  align-items: end
}

.tech-item {
  text-align: center;
  color: var(--text);
  font-size: 13px
}

.tech-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  margin: 0 auto 10px;
  filter: grayscale(1) contrast(1.15);
  opacity: .72;
  transition: filter .2s ease, opacity .2s ease, transform .2s ease
}

.tech-item:hover img {
  filter: none;
  opacity: 1;
  transform: translateY(-2px)
}

[data-theme="dark"] .tech-item img {
  filter: grayscale(1) invert(1) contrast(1.1);
  opacity: .72
}

[data-theme="dark"] .tech-item:hover img {
  filter: none;
  opacity: 1
}

.quote-card {
  width: min(var(--container), calc(100% - 48px));
  margin: 64px auto 0;
  background: rgba(255, 255, 255, .72);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 42px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  min-height: 110px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7);
  transition: background .25s ease, border-color .25s ease
}

[data-theme="dark"] .quote-card {
  background: rgba(255, 255, 255, .045);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04)
}

.quote-card__mark {
  font-size: 76px;
  line-height: 0;
  font-weight: 900;
  letter-spacing: -.08em;
  color: var(--text);
  opacity: .9
}

.quote-card p {
  font-size: 21px;
  line-height: 1.5;
  margin: 0;
  max-width: 780px;
  color: var(--muted)
}

.footer {
  margin-top: 72px;
  padding: 40px 0 52px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .42);
  transition: background .25s ease, border-color .25s ease
}

[data-theme="dark"] .footer {
  background: rgba(23, 25, 35, .45)
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 60px
}

.footer strong {
  display: block;
  font-size: 15px;
  margin-bottom: 8px
}

.footer small,
.footer a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin: 4px 0
}

.brand--footer {
  margin-bottom: 14px
}

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

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px
}

.social-links a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text)
}

.social-links a:hover {
  border-color: var(--text)
}

.page-hero {
  width: min(var(--container), calc(100% - 48px));
  margin: 62px auto 34px
}

.page-hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -.06em;
  margin: 0 0 14px
}

.page-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 690px;
  margin: 0
}

.content-page {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto
}

.list-stack {
  display: grid;
  gap: 14px
}

.post-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: 220px 1fr 38px;
  gap: 24px;
  align-items: center
}

.post-row__thumb {
  height: 110px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0B0D10, #30343C);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: "JetBrains Mono", monospace
}

.post-row h2 {
  font-size: 20px;
  margin: 0 0 6px;
  letter-spacing: -.03em
}

.post-row p {
  margin: 0;
  color: var(--muted)
}

.post-row__meta {
  font-size: 13px;
  color: var(--muted-2);
  margin-top: 8px
}

.post-row__arrow,
.project-card__icons a {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: grid;
  place-items: center
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  min-height: 220px
}

.project-card h2 {
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -.035em
}

.project-card p {
  color: var(--muted)
}

.tag-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px
}

.tag {
  font-size: 12px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text)
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px
}

.article,
.project-detail {
  width: min(880px, calc(100% - 48px));
  margin: 52px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 42px
}

.article h1,
.project-detail h1 {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.055em;
  margin: 0 0 18px
}

.post__meta,
.project__meta {
  color: var(--muted-2)
}

.article p,
.article li,
.project-detail p,
.project-detail li {
  color: var(--muted)
}

.article pre,
.project-detail pre {
  background: #0B0D10;
  color: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  overflow: auto
}

.article code,
.project-detail code {
  font-family: "JetBrains Mono", monospace
}

.about-hero {
  position: relative;
  width: min(var(--container), calc(100% - 48px));
  margin: 58px auto 0;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(380px, 1fr);
  gap: 58px;
  align-items: center;
  min-height: 560px
}

.about-hero__content {
  position: relative;
  z-index: 2
}

.about-hero h1 {
  font-size: clamp(58px, 7vw, 86px);
  line-height: .92;
  letter-spacing: -.07em;
  margin: 0 0 26px
}

.about-hero__lead {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 570px;
  margin: 0 0 32px
}

.about-hero__photo {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center
}

.about-hero__photo::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 7%;
  top: 8%;
  bottom: 16%;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .65), rgba(255, 255, 255, .18));
  z-index: 0
}

.about-hero__photo::after {
  content: "";
  position: absolute;
  left: 22%;
  right: 12%;
  bottom: 12px;
  height: 82px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, .18), transparent 70%);
  filter: blur(24px);
  z-index: 1
}

.about-hero__photo img {
  position: relative;
  z-index: 2;
  width: min(100%, 470px);
  filter: drop-shadow(0 22px 30px rgba(15, 23, 42, .20));
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 76%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 76%, rgba(0, 0, 0, 0) 100%)
}

[data-theme="dark"] .about-hero__photo::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015))
}

.about-timeline {
  width: min(var(--container), calc(100% - 48px));
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px
}

.timeline-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--shadow-soft)
}

.timeline-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  margin-bottom: 18px
}

.timeline-item h3 {
  font-size: 20px;
  letter-spacing: -.035em;
  margin: 0 0 8px
}

.timeline-item p {
  color: var(--muted);
  margin: 0
}

.about-chips {
  width: min(var(--container), calc(100% - 48px));
  margin: 52px auto 0
}

.chip-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.about-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  font-weight: 700
}

[data-theme="dark"] .post-row__thumb {
  background: linear-gradient(135deg, #F8FAFC, #94A3B8);
  color: #0B0D10
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .project-card,
[data-theme="dark"] .article,
[data-theme="dark"] .project-detail,
[data-theme="dark"] .quote-card,
[data-theme="dark"] .post-row {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04)
}

::selection {
  background: #0B0D10;
  color: #FFFFFF
}

[data-theme="dark"] ::selection {
  background: #F8FAFC;
  color: #0B0D10
}

.bmc-button,
.bmc-btn-container {
  display: none !important
}

@media(max-width:900px) {
  .site-header__inner {
    height: auto;
    padding: 18px 0;
    grid-template-columns: 1fr auto auto;
    align-items: center
  }

  .nav {
    order: 4;
    grid-column: 1/-1;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow: auto;
    padding-bottom: 4px
  }

  .hero,
  .about-hero {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 38px;
    min-height: auto
  }

  .hero__photo-wrap,
  .about-hero__photo {
    min-height: 440px
  }

  .hero__photo {
    height: 455px
  }

  .hero h1,
  .about-hero h1 {
    font-size: 56px
  }

  .cards,
  .project-grid,
  .about-timeline {
    grid-template-columns: 1fr
  }

  .tech-grid {
    grid-template-columns: repeat(5, 1fr)
  }

  .footer__inner {
    grid-template-columns: 1fr
  }

  .post-row {
    grid-template-columns: 1fr
  }

  .post-row__thumb {
    height: 140px
  }

  .contact-btn {
    padding: 14px 16px
  }

  .container,
  .site-header__inner,
  .page-section,
  .hero,
  .cards,
  .tech-section,
  .quote-card,
  .page-hero,
  .content-page,
  .article,
  .project-detail,
  .about-hero,
  .about-timeline,
  .about-chips {
    width: min(100% - 28px, var(--container))
  }
}

@media(max-width:560px) {
  .logo-text {
    font-size: 27px
  }

  .site-header__inner {
    gap: 14px
  }

  .contact-btn {
    font-size: 0
  }

  .contact-btn span {
    font-size: 16px
  }

  .hero h1,
  .about-hero h1 {
    font-size: 46px
  }

  .hero__role,
  .about-hero__lead {
    font-size: 18px
  }

  .hero__lead {
    font-size: 16px
  }

  .btn {
    width: 100%
  }

  .hero__stats {
    gap: 14px
  }

  .stat {
    min-width: 0
  }

  .stat:not(:last-child) {
    padding-right: 14px
  }

  .tech-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .quote-card {
    grid-template-columns: 1fr;
    padding: 28px
  }

  .quote-card p {
    font-size: 18px
  }

  .feature-card {
    padding: 26px
  }

  .nav {
    font-size: 13px
  }

  .article,
  .project-detail {
    padding: 28px
  }

  .hero__photo-wrap,
  .about-hero__photo {
    min-height: 360px
  }

  .hero__photo {
    height: 380px
  }

  .hero__photo img {
    width: 105%
  }
}

/* Resume / CV section */
.resume-section {
  width: min(var(--container), calc(100% - 48px));
  margin: 62px auto 0;
}

.resume-header {
  max-width: 760px;
  margin-bottom: 30px;
}

.resume-header h2 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
  letter-spacing: -.06em;
  margin: 0 0 14px;
}

.resume-header p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

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

.resume-column {
  display: grid;
  gap: 16px;
  align-content: start;
}

.resume-column>h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted-2);
  margin: 0 0 4px;
}

.resume-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, transform .18s ease;
}

.resume-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

[data-theme="dark"] .resume-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}

.resume-item__period {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 750;
}

.resume-item h4 {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -.04em;
  margin: 0 0 6px;
}

.resume-item__place {
  margin: 0 0 12px;
  color: var(--text) !important;
  font-weight: 750;
}

.resume-item p {
  color: var(--muted);
  margin: 0;
}

.resume-item ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

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

@media(max-width:900px) {
  .resume-section {
    width: min(100% - 28px, var(--container));
  }

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

/* v6: hero, timeline real y footer de marca */
.footer__claim {
  max-width: 340px;
  margin: 8px 0 12px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 750;
  letter-spacing: -.025em;
}

.footer__inner--brand {
  align-items: start;
}

.timeline-section {
  width: min(var(--container), calc(100% - 48px));
  margin: 64px auto 0;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 0;
  margin-top: 28px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  left: 148px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--border-strong);
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 56px;
  padding: 0 0 28px;
}

.timeline-row:last-child {
  padding-bottom: 0;
}

.timeline-row__period {
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 800;
  padding-top: 8px;
  text-align: right;
}

.timeline-row__body {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: var(--shadow-soft);
}

.timeline-row__body::before {
  content: "";
  position: absolute;
  left: -37px;
  top: 30px;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 0 0 6px var(--bg);
}

.timeline-row__type {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 800;
}

.timeline-row h3 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.timeline-row__place {
  margin: 0 0 10px !important;
  color: var(--text) !important;
  font-weight: 800;
}

.timeline-row p {
  margin: 0;
  color: var(--muted);
}

[data-theme="dark"] .timeline-row__body {
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .025));
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}

[data-theme="dark"] .timeline-row__body::before {
  box-shadow: 0 0 0 6px var(--bg);
}

@media(max-width:900px) {
  .timeline-section {
    width: min(100% - 28px, var(--container));
  }

  .timeline-list::before {
    left: 10px;
  }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 34px;
  }

  .timeline-row__period {
    text-align: left;
    padding-top: 0;
  }

  .timeline-row__body::before {
    left: -31px;
  }
}

/* =========================================================
   Project Detail Content
   ========================================================= */

.project__content {
  margin-top: 42px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.project__content>*:first-child {
  margin-top: 0;
}

/* Headings */

.project__content h2 {
  margin: 48px 0 18px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--text);
}

.project__content h3 {
  margin: 36px 0 14px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.03em;
  color: var(--text);
}

.project__content h4 {
  margin: 28px 0 12px;
  font-size: 20px;
  color: var(--text);
}

/* Text */

.project__content p {
  margin: 0 0 20px;
}

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

.project__content em {
  font-style: italic;
}

.project__content blockquote {
  margin: 28px 0;
  padding: 20px 24px;
  border-left: 4px solid var(--text);
  background: var(--surface-soft);
  border-radius: 0 12px 12px 0;
  color: var(--muted);
}

/* Links */

.project__content a {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Lists */

.project__content ul,
.project__content ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.project__content li {
  margin-bottom: 8px;
}

/* Images */

.project__content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;

  margin: 32px auto;

  border-radius: 16px;
  border: 1px solid var(--border);

  box-shadow: var(--shadow-soft);
}

.project__content figure {
  margin: 32px 0;
}

.project__content figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  color: var(--muted-2);
}

/* Horizontal rule */

.project__content hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 48px 0;
}

/* Tables */

.project__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  overflow: hidden;
  border-radius: 12px;
}

.project__content th,
.project__content td {
  padding: 12px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.project__content th {
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 700;
}

.project__content tr:nth-child(even) {
  background: rgba(0, 0, 0, .02);
}

[data-theme="dark"] .project__content tr:nth-child(even) {
  background: rgba(255, 255, 255, .02);
}

/* Code */

.project__content pre {
  margin: 28px 0;
  padding: 22px;

  overflow-x: auto;

  background: #0B0D10;
  color: #F8FAFC;

  border-radius: 14px;
  border: 1px solid var(--border);
}

.project__content code {
  font-family: "JetBrains Mono", monospace;
}

.project__content p code,
.project__content li code,
.project__content td code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text);
}

.project__content pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

/* Videos / iframes */

.project__content iframe {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 16px;
  margin: 32px 0;
}



@media (max-width:768px) {

  .project__content {
    font-size: 15px;
    line-height: 1.75;
  }

  .project__content h2 {
    font-size: 28px;
    margin-top: 40px;
  }

  .project__content h3 {
    font-size: 22px;
  }

  .project__content h4 {
    font-size: 18px;
  }

  .project__content img {
    margin: 24px 0;
    border-radius: 12px;
  }

  .project__content pre {
    padding: 18px;
  }

  .project__content table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}


@media screen and (max-width: 900px) {

  /* Oculta fotos principales */
  .hero__photo-wrap,
  .hero__photo,
  .hero__photo img,
  .about-hero__photo,
  .about-hero__photo img {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
  }

  /* Elimina decoraciones visuales asociadas a imágenes */
  .hero::after,
  .hero__photo::before,
  .hero__photo::after,
  .about-hero__photo::before,
  .about-hero__photo::after {
    display: none !important;
    content: none !important;
  }

  /* Hero y about pasan a una sola columna */
  .hero,
  .about-hero {
    display: block !important;
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    margin-top: 32px !important;
  }

  .hero__content,
  .about-hero__content {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Oculta thumbnails de posts/proyectos */
  .post-row__thumb {
    display: none !important;
  }

  .post-row {
    grid-template-columns: 1fr auto !important;
  }

  /* Oculta iconos/imágenes de tecnologías */
  .tech-item img,
  .stack__icons img {
    display: none !important;
  }

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

  .tech-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: var(--surface);
    font-weight: 750;
  }

  /* Layout general móvil */
  .cards,
  .project-grid,
  .about-timeline,
  .resume-grid,
  .footer__inner {
    grid-template-columns: 1fr !important;
  }

  .container,
  .site-header__inner,
  .page-section,
  .hero,
  .cards,
  .tech-section,
  .quote-card,
  .page-hero,
  .content-page,
  .article,
  .project-detail,
  .about-hero,
  .about-timeline,
  .about-chips,
  .resume-section,
  .timeline-section {
    width: min(100% - 24px, var(--container)) !important;
  }
}

@media screen and (max-width: 560px) {

  .hero__photo-wrap,
  .hero__photo,
  .hero__photo img,
  .about-hero__photo,
  .about-hero__photo img {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  .hero h1,
  .about-hero h1 {
    font-size: 42px !important;
  }

  .hero__actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  .btn {
    width: 100% !important;
  }

  .tech-grid {
    grid-template-columns: 1fr !important;
  }
}