:root {
  color-scheme: only light;
  --bg: #ecebeb;
  --surface: #f8f8f8;
  --surface-strong: #ffffff;
  --surface-muted: #f1f1f1;
  --ink: #111113;
  --ink-soft: #57595f;
  --line: #dfdfdf;
  --accent: #d58631;
  --accent-soft: #e9bb84;
  --good: #77d88a;
  --shadow-soft: 0 10px 35px rgba(10, 10, 10, 0.05);
  --shadow-panel: 0 14px 38px rgba(16, 16, 16, 0.06);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

::selection {
  background: #f3c98f;
  color: #111113;
}

::-moz-selection {
  background: #f3c98f;
  color: #111113;
}

html,
body {
  color-scheme: only light;
  margin: 0;
  padding: 0;
}

body {
  background: radial-gradient(circle at 16% 8%, #f8f8f8 0%, var(--bg) 48%, #e6e6e6 100%);
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow: hidden;
}

a {
  color: inherit;
}

.bg-orb {
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.24;
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.orb-a {
  background: #f8d6ab;
  height: 320px;
  right: -120px;
  top: -80px;
  width: 320px;
}

.orb-b {
  background: #cdd8ff;
  bottom: -130px;
  height: 340px;
  left: -140px;
  width: 340px;
}

.site-shell {
  margin: 0 auto;
  max-width: 980px;
  padding: 2.25rem 1.2rem 2.2rem;
  position: relative;
  z-index: 2;
}

.standard-page .site-shell {
  max-width: 1240px;
}

.scroll-root {
  height: 100vh;
}

.scroll-root .simplebar-mask {
  overflow: hidden !important;
}

.scroll-root .simplebar-content-wrapper {
  overflow-x: hidden !important;
}

.scroll-root .simplebar-track.simplebar-vertical {
  background: rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  margin: 0.65rem 0.5rem 0.65rem 0;
  width: 11px;
}

.scroll-root .simplebar-scrollbar::before {
  background: linear-gradient(180deg, #c98942, #bc7a34);
  border-radius: 999px;
  left: 1px;
  opacity: 0.8;
  right: 1px;
}

.scroll-root .simplebar-scrollbar.simplebar-visible::before {
  opacity: 0.95;
}

.shell-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 2.4rem;
  position: relative;
  z-index: 30;
}

.identity {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
  text-decoration: none;
}

.logo-shape {
  border: 5px solid var(--ink);
  border-radius: 0.7rem;
  display: inline-block;
  height: 26px;
  transform: rotate(-32deg);
  width: 26px;
}

.identity-dot {
  background: var(--accent);
  border-radius: 999px;
  display: inline-block;
  height: 7px;
  margin-right: 0.05rem;
  width: 7px;
}

.identity-email {
  border-bottom: 1px solid #cfcfcf;
  color: #2e2f34;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  padding-bottom: 0.05rem;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 0.65rem;
}

.top-links {
  display: flex;
  gap: 0.65rem;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(8px);
  transition: max-width 0.34s ease, opacity 0.26s ease, transform 0.26s ease;
  white-space: nowrap;
}

.shell-top.is-nav-open .top-links {
  max-width: 240px;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.top-link {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  color: #575a60;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
  transition: all 0.28s ease;
}

.top-link:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.menu-orb {
  align-items: center;
  background: #f4f4f4;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  color: #41434a;
  cursor: pointer;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  opacity: 0.95;
  transition: background-color 0.24s ease, transform 0.24s ease, color 0.24s ease;
  width: 46px;
}

.menu-orb i {
  font-size: 1.12rem;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.32s ease;
}

.menu-orb:hover {
  background: #ffffff;
  color: #2f3239;
  transform: translateY(-1px);
}

.shell-top.is-nav-open .menu-orb i {
  transform: rotate(180deg);
}

.shell-main {
  display: grid;
  gap: 1.2rem;
}

.shell-footer {
  border-top: 1px solid var(--line);
  color: #72757d;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  justify-content: center;
  margin-top: 2.2rem;
  padding-top: 1rem;
}

.shell-footer a {
  font-size: 0.85rem;
  text-decoration: none;
}

.shell-footer a:hover {
  color: var(--ink);
}

.footer-build-note {
  color: #8a8e97;
  flex-basis: 100%;
  font-size: 0.75rem;
  text-align: center;
}

.panel {
  background: color-mix(in srgb, var(--surface) 88%, #ffffff 12%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-panel);
  padding: 1.25rem;
  position: relative;
  transform-style: preserve-3d;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.js-tilt {
  will-change: transform;
}

.panel:hover {
  border-color: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 15, 15, 0.08);
}

.panel-chip {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 999px;
  color: #444750;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 0.9rem;
  padding: 0.38rem 0.76rem;
}

.hero-panel {
  overflow: hidden;
  padding: 1.9rem 1.9rem 1.4rem;
}

.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  line-height: 1.05;
  margin: 0;
}

.hero-line {
  display: block;
}

.hero-line-muted {
  color: #a9a9ad;
  font-weight: 800;
  margin-top: 0.25rem;
}

.hero-line-accent {
  color: var(--accent);
  font-family: "Instrument Serif", serif;
  font-size: clamp(2.2rem, 5.4vw, 4.1rem);
  font-style: italic;
  letter-spacing: 0.01em;
  margin-top: 0.2rem;
}

.hero-line-muted-inline {
  color: #a9a9ad;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: clamp(2.1rem, 5.2vw, 4rem);
  font-style: normal;
  font-weight: 800;
}

.inline-avatar-wrap {
  border-radius: 20px;
  display: inline-flex;
  height: 64px;
  margin: 0 0.35rem;
  overflow: hidden;
  vertical-align: -0.18em;
  width: 64px;
}

.inline-avatar {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.availability-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  color: #35383f;
  display: inline-flex;
  font-size: 0.88rem;
  font-weight: 700;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.42rem 0.9rem;
}

.availability-dot {
  background: var(--good);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(119, 216, 138, 0.18);
  display: inline-block;
  height: 9px;
  width: 9px;
}

.hero-cta-row {
  align-items: center;
  display: flex;
  gap: 1.15rem;
  margin-top: 1.5rem;
}

.hero-cta-row p {
  color: #35373e;
  font-size: 1rem;
  margin: 0;
  max-width: 470px;
}

.cta-primary {
  background: #0d0d10;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  min-width: 184px;
  padding: 0.85rem 1.25rem;
  position: relative;
  transition: background-color 0.28s ease;
}

.cta-primary:hover {
  background: #25262b;
}

.cta-primary span {
  display: inline-block;
  transition: transform 0.28s ease;
}

.home-grid {
  display: grid;
  gap: 1.05rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.experience-panel {
  grid-column: span 4;
}

.posts-panel {
  grid-column: span 8;
}

.location-panel {
  grid-column: span 4;
}

.workflow-panel {
  grid-column: span 8;
}

.about-panel {
  grid-column: span 8;
}

.contact-panel,
.publications-panel,
.portfolio-panel {
  grid-column: span 4;
}

.timeline-list {
  list-style: none;
  margin: 0;
  padding: 0.2rem 0 0;
}

.timeline-list li {
  border-left: 2px solid #d8d8d8;
  margin-left: 0.35rem;
  padding: 0 0 1rem 0.95rem;
  position: relative;
}

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

.timeline-list.timeline-list--suggestive li:last-child {
  padding-bottom: 1.05rem;
}

.timeline-list.timeline-list--suggestive li:last-child::after {
  border-left: 2px solid #d8d8d8;
  content: "";
  left: -2px;
  position: absolute;
  top: 1.35rem;
  bottom: -1.05rem;
}

.timeline-list li::before {
  background: #111113;
  border: 2px solid #f6f6f6;
  border-radius: 999px;
  content: "";
  height: 11px;
  left: -7px;
  position: absolute;
  top: 0.35rem;
  width: 11px;
}

.timeline-year {
  color: #8b8e96;
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.timeline-list strong {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.1rem;
}

.timeline-list span {
  color: #5f646d;
  display: block;
  font-size: 0.86rem;
}

.panel-cta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.9rem;
}

.panel-cta-link {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  color: #2f3137;
  display: inline-flex;
  font-size: 0.8rem;
  gap: 0.36rem;
  font-weight: 700;
  padding: 0.44rem 0.82rem;
  text-decoration: none;
}

.panel-cta-link:hover {
  background: #f4f4f4;
}

.posts-featured h2 {
  font-size: 1.28rem;
  line-height: 1.2;
  margin: 0.6rem 0 0.55rem;
}

.posts-featured h2 a {
  text-decoration: none;
}

.posts-featured p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin: 0;
}

.posts-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.posts-recent {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: var(--radius-lg);
  padding: 0.9rem 0.9rem 0.25rem;
}

.posts-recent h3 {
  font-size: 1rem;
  margin: 0 0 0.72rem;
}

.featured-media {
  border-radius: var(--radius-lg);
  display: block;
  height: 165px;
  margin-bottom: 0.45rem;
  overflow: hidden;
}

.featured-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.featured-media-fallback {
  align-items: center;
  background: linear-gradient(132deg, #dadde6, #f2d7b7);
  color: #32343c;
  display: flex;
  font-size: 0.92rem;
  font-weight: 800;
  justify-content: center;
}

.panel-meta-row {
  align-items: center;
  color: #767a82;
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.8rem;
  text-transform: uppercase;
}

.post-read-btn {
  align-items: center;
  background: #111113;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.83rem;
  font-weight: 800;
  gap: 0.36rem;
  margin-top: 0.7rem;
  padding: 0.54rem 0.9rem;
  text-decoration: none;
}

.post-read-btn:hover {
  background: #25262b;
}

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

.recent-list li {
  align-items: flex-start;
  border-top: 1px solid #e2e2e2;
  display: flex;
  gap: 0.7rem;
  padding: 0.75rem 0;
}

.recent-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.recent-num {
  color: #9a9ea6;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.recent-list a {
  display: inline-block;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.25rem;
  text-decoration: none;
}

.recent-list p {
  color: #8f949d;
  font-size: 0.76rem;
  margin: 0;
  text-transform: uppercase;
}

.map-art {
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.map-art img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.location-name {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  margin: 0;
  text-align: center;
}

.location-sub {
  color: #8a8f96;
  font-size: 0.72rem;
  letter-spacing: 0.23em;
  margin: 0.2rem 0 0;
  text-align: center;
  text-transform: uppercase;
}

.workflow-panel h3 {
  font-size: 1.5rem;
  margin: 0.15rem 0 0.45rem;
}

.workflow-panel p {
  color: #5b6069;
  margin: 0;
  max-width: 620px;
}

.workflow-tabs {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 1rem;
}

.workflow-tabs button {
  background: transparent;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  color: #51545d;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.52rem 0.2rem;
}

.workflow-tabs button.is-active {
  background: #0e0f12;
  border-color: #0e0f12;
  color: #ffffff;
}

.about-panel h3,
.publications-panel h3,
.portfolio-panel h3 {
  font-size: 1.18rem;
  margin: 0.1rem 0 0.55rem;
}

.about-panel p,
.publications-panel p,
.portfolio-panel p {
  color: #59606a;
  font-size: 0.95rem;
  margin: 0;
}

.about-panel p + p {
  margin-top: 0.65rem;
}

.about-panel .about-panel-followup {
  margin-top: 1rem;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.9rem;
}

.about-actions a,
.about-actions button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 999px;
  color: #2f3137;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 0.36rem;
  padding: 0.47rem 0.82rem;
  text-decoration: none;
}

.about-actions a:hover {
  background: #f4f4f4;
}

.about-actions button {
  color: #8a8f98;
  cursor: not-allowed;
}

.contact-panel {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  justify-content: center;
  min-height: 255px;
  padding: 1.45rem;
  text-align: center;
}

.contact-panel .panel-chip {
  left: 1.25rem;
  margin: 0;
  position: absolute;
  top: 1.25rem;
}

.contact-launch-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 24px;
  color: #4c5059;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 130px;
  min-width: 130px;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.contact-launch-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #32353c;
  transform: translateY(-1px);
}

.contact-message-icon {
  font-size: clamp(4.2rem, 9vw, 5.8rem);
  line-height: 1;
}

.contact-panel-copy {
  color: #666b75;
  font-size: 0.9rem;
  margin: 0;
  max-width: 26ch;
}

.contact-modal {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.26s ease;
  z-index: 35;
}

.contact-modal-backdrop {
  background: rgba(14, 14, 16, 0.4);
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.28s ease;
}

.contact-modal-dialog {
  background: #f7f7f7;
  border: 1px solid #ececec;
  border-radius: 24px;
  box-shadow: 0 26px 60px rgba(15, 15, 15, 0.24);
  left: 50%;
  max-width: 560px;
  opacity: 0;
  padding: 1.15rem 1.15rem 1.2rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -47%) scale(0.96);
  transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.18, 0.89, 0.32, 1.22);
  width: min(92vw, 560px);
}

.contact-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal.is-open .contact-modal-backdrop {
  opacity: 1;
}

.contact-modal.is-open .contact-modal-dialog {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.contact-modal-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.contact-modal-head h3 {
  font-size: 1.24rem;
  margin: 0;
}

.contact-modal-intro {
  color: #60656e;
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
}

.contact-modal-close {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfdfdf;
  border-radius: 999px;
  color: #3c4048;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.contact-modal-close:hover {
  background: #f0f0f0;
}

.contact-feedback {
  border-radius: 12px;
  font-size: 0.9rem;
  margin: 0 0 0.8rem;
  padding: 0.6rem 0.7rem;
}

.contact-feedback-success {
  background: #e8f7ea;
  border: 1px solid #cfead3;
  color: #2a5b32;
}

.contact-feedback-error {
  background: #faeded;
  border: 1px solid #f3d0d0;
  color: #7c2d2d;
}

.contact-success-state {
  display: grid;
  gap: 0.5rem;
}

.contact-form {
  display: grid;
  gap: 0.5rem;
}

.contact-required-note {
  color: #676b74;
  font-size: 0.8rem;
  margin: 0 0 0.2rem;
}

.contact-form label {
  color: #3d4149;
  font-size: 0.82rem;
  font-weight: 700;
}

.contact-required-mark {
  color: #8a2f2f;
}

.contact-input,
.contact-textarea {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  color: #24262b;
  font: inherit;
  outline: none;
  padding: 0.62rem 0.7rem;
}

.contact-input:focus,
.contact-textarea:focus {
  border-color: #b6b9c1;
  box-shadow: 0 0 0 3px rgba(197, 156, 107, 0.2);
}

.contact-textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-field-error {
  color: #8a2f2f;
  font-size: 0.78rem;
  margin: 0.05rem 0 0.25rem;
}

.contact-submit-btn {
  align-items: center;
  background: #111113;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.83rem;
  font-weight: 800;
  gap: 0.36rem;
  justify-content: center;
  margin-top: 0.6rem;
  padding: 0.54rem 0.9rem;
}

.contact-submit-btn:hover {
  background: #25262b;
}

.coming-soon-panel {
  background: #f0f0f0;
  border-color: #e3e3e3;
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.03);
}

.coming-soon-panel .panel-chip {
  background: #ececec;
  border-color: #dbdbdb;
  color: #676b74;
}

.coming-soon-panel h3 {
  color: #50545d;
}

.coming-soon-panel p {
  color: #70757e;
}

.is-muted {
  opacity: 0.58;
}

.muted-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.muted-badges span {
  background: #efefef;
  border: 1px solid #dddddd;
  border-radius: 999px;
  color: #777b84;
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0.35rem 0.68rem;
}

.about-page .about-hero {
  align-items: center;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 220px 1fr;
  padding: 1.4rem;
}

.about-hero-media img {
  border-radius: 28px;
  height: 220px;
  object-fit: cover;
  width: 220px;
}

.about-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.06;
  margin: 0 0 0.65rem;
}

.about-hero p {
  color: #585d66;
  margin: 0 0 0.65rem;
}

.about-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.35rem;
}

.about-showcase-main {
  display: grid;
  gap: 1.35rem;
}

.focus-list {
  margin: 0;
  padding-left: 1rem;
}

.focus-list li {
  margin-bottom: 0.5rem;
}

.timeline-list.compact strong {
  font-size: 0.95rem;
}

.cv-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0.1rem 0 0.4rem;
}

.cv-intro p {
  margin: 0;
}

.cv-layout {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 72px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.cv-back-rail {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  padding-top: 0.2rem;
}

.cv-back-btn {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d9dbe0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.1);
  color: #303541;
  display: inline-flex;
  font-size: 1.22rem;
  font-weight: 700;
  height: 56px;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  width: 56px;
}

.cv-back-glyph {
  display: inline-block;
  transform: translate(-1px, 1px);
}

.cv-back-btn:hover {
  box-shadow: 0 10px 22px rgba(10, 10, 10, 0.12);
  background: #fcfcfd;
  transform: translateY(-1px) scale(1.01);
}

.cv-back-btn:active {
  transform: translateY(-1px) scale(0.99);
}

.cv-stage {
  min-width: 0;
}

.cv-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-top: 1.35rem;
  padding: 0;
}

.cv-list {
  list-style: none;
  margin: 0 auto;
  max-width: 1080px;
  padding: 0;
}

.cv-timeline-shell {
  padding: 0.25rem 0;
  position: relative;
}

.cv-timeline-line {
  background: linear-gradient(180deg, rgba(120, 126, 138, 0.22), rgba(120, 126, 138, 0.35));
  border-radius: 999px;
  bottom: 0.6rem;
  left: 50%;
  position: absolute;
  top: 0.6rem;
  transform: translateX(-50%);
  width: 2px;
}

.cv-timeline-line::after {
  background: #c58a43;
  border-radius: 999px;
  bottom: -6px;
  content: "";
  height: 12px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 12px;
}

.cv-timeline-progress {
  background: linear-gradient(180deg, #c58a43, #b6762f 80%);
  border-radius: 999px;
  display: block;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.18s linear;
  width: 100%;
}

.cv-list > li {
  align-items: center;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr 46px 1fr;
  min-height: 240px;
  padding: 1.4rem 0;
  position: relative;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.cv-list > li.is-visible {
  opacity: 1;
}

.cv-list > li::before {
  background: #ffffff;
  border: 2px solid #c58a43;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(197, 138, 67, 0.14);
  content: "";
  height: 12px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
}

.cv-period {
  align-self: center;
  background: linear-gradient(120deg, #cd8f47, #be7b33);
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(190, 123, 51, 0.24);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  max-width: max-content;
  padding: 0.48rem 0.9rem;
  text-transform: uppercase;
}

.cv-list > li:nth-child(odd) .cv-period {
  grid-column: 1;
  place-self: center end;
  transform: translateX(-1.1rem);
}

.cv-list > li:nth-child(even) .cv-period {
  grid-column: 3;
  place-self: center start;
  transform: translateX(1.1rem);
  text-transform: uppercase;
}

.cv-main {
  align-self: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(16, 16, 16, 0.08);
  max-width: 500px;
  padding: 0.92rem 1rem 0.9rem;
  transition: none;
}

.cv-list > li:nth-child(odd) .cv-main {
  grid-column: 3;
  justify-self: start;
}

.cv-list > li:nth-child(even) .cv-main {
  grid-column: 1;
  justify-self: end;
}

.cv-entry.is-active .cv-main {
  box-shadow: 0 10px 24px rgba(16, 16, 16, 0.08);
}

.cv-main h2 {
  font-size: 1.25rem;
  margin: 0;
}

.cv-org {
  color: #2f3440;
  font-weight: 700;
  margin: 0.35rem 0 0;
}

.cv-context {
  color: #6b7079;
  margin: 0.25rem 0 0;
}

.cv-main ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
}

.cv-main li {
  color: #5d626c;
  margin-bottom: 0.35rem;
}

.cv-empty {
  margin-top: 0.8rem;
}

.cv-page .cv-panel,
.cv-page .cv-panel:hover {
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
}

.standard-page .page-markdown {
  margin: 0 auto;
  max-width: 820px;
}

.reading-progress {
  background: rgba(15, 16, 20, 0.08);
  height: 3px;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
}

.reading-progress-bar {
  background: linear-gradient(90deg, #b17e45, #d49a5b);
  display: block;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  width: 100%;
}

.post-doc-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 72px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1240px;
}

.post-back-rail {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  padding-top: 0.2rem;
}

.post-view-layout {
  align-items: start;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 760px) 290px;
  justify-content: start;
  margin: 0;
  max-width: none;
}

.post-shell {
  min-width: 0;
}

.post-side-panel {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.86);
  align-self: start;
  max-height: calc(100vh - 2.4rem);
  overflow: auto;
  position: sticky;
  top: 1rem;
}

.post-section-nav {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.post-section-nav-badge {
  align-self: flex-start;
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 999px;
  color: #5b606b;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 0.38rem;
  padding: 0.26rem 0.58rem;
  text-transform: uppercase;
}

.post-section-nav a {
  border-radius: 10px;
  color: #5b606a;
  font-size: 0.91rem;
  font-weight: 600;
  line-height: 1.34;
  padding: 0.28rem 0.38rem;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.post-section-nav a:hover {
  color: #1b1c21;
  background: rgba(255, 255, 255, 0.7);
}

.post-section-nav a.is-active {
  background: #ffffff;
  color: #18191d;
  font-weight: 700;
}

.post-side-block {
  border-top: 1px solid rgba(20, 20, 20, 0.1);
  margin-top: 1rem;
  padding-top: 0.9rem;
}

.post-side-block h2 {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  margin: 0 0 0.55rem;
}

.post-author-list {
  display: grid;
  gap: 0.55rem;
}

.post-author-card {
  align-items: center;
  border-radius: 14px;
  color: inherit;
  display: grid;
  gap: 0.68rem;
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 0.35rem 0.18rem;
  text-decoration: none;
}

.post-author-card img,
.post-author-avatar-fallback {
  border-radius: 999px;
  display: inline-flex;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.post-author-avatar-fallback {
  align-items: center;
  background: #d7dae2;
  color: #3a3f4b;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
}

.post-author-card strong {
  display: block;
  font-size: 1.06rem;
  line-height: 1.15;
}

.post-author-card em {
  color: #626874;
  display: block;
  font-size: 0.86rem;
  font-style: normal;
  margin-top: 0.14rem;
}

.post-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.post-tag-list span {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 999px;
  color: #2f3137;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.64rem;
}

.post-reading-time-block {
  margin-top: 0.8rem;
  padding-top: 0.75rem;
}

.post-reading-time {
  align-items: center;
  color: #7a7f89;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.36rem;
  letter-spacing: 0.03em;
  margin: 0;
  text-transform: uppercase;
}

.post-reading-time i {
  font-size: 0.9rem;
}

.post-hero-image {
  border-radius: var(--radius-lg);
  background: #151518;
  margin-bottom: 1.2rem;
  overflow: clip;
}

.post-hero-image img {
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.markdown-body {
  color: #23262d;
  font-size: 1.06rem;
  line-height: 1.76;
}

.post-shell .markdown-body {
  margin: 0 auto;
  max-width: 690px;
}

.post-shell .markdown-body p {
  margin: 0 0 1.22rem;
}

.post-shell .markdown-body .md-lead {
  color: #3f434d;
  font-size: 1.06rem;
  line-height: 1.76;
}

.post-shell .markdown-body .md-lead::first-letter {
  color: #b58149;
  font-family: "Instrument Serif", serif;
  float: none;
  font-size: 5em;
  font-style: normal;
  font-weight: 200;
  line-height: 1;
  margin-right: 0.02em;
  margin-top: 0;
  padding-left: 0;
}

.post-shell .markdown-body .md-lead--narrow-initial::first-letter {
  font-size: 4.2em;
  margin-right: 0.015em;
}

.cv-page .markdown-body .md-lead::first-letter {
  color: inherit;
  float: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  line-height: 1.18;
}

.markdown-body h2 {
  font-size: clamp(1.3rem, 2.1vw, 1.72rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.95rem;
  position: relative;
  scroll-margin-top: 1.1rem;
}

.markdown-body h2::after {
  background: linear-gradient(90deg, rgba(196, 124, 45, 0.65), rgba(196, 124, 45, 0.05));
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  margin-top: 0.42rem;
  width: min(180px, 42%);
}

.markdown-body h3 {
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 2rem 0 0.7rem;
}

.markdown-body h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.15rem 0 0.95rem;
}

.markdown-body a {
  color: #2d4f86;
}

.markdown-body img {
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 28px rgba(15, 15, 15, 0.12);
  max-width: 100%;
}

.markdown-body blockquote {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.45));
  border-left: 4px solid rgba(177, 126, 69, 0.78);
  border-radius: 16px;
  color: #23262d;
  font-size: 1.24rem;
  line-height: 1.62;
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
}

.meta {
  color: #767b86;
  font-size: 0.79rem;
  letter-spacing: 0.08em;
  margin-bottom: 1.35rem;
  text-transform: uppercase;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.js-tilt[data-reveal] {
  transform: none;
  transition: opacity 0.7s ease;
}

.js-tilt[data-reveal].is-visible {
  transform: none;
}

@media (pointer: coarse) {
  .panel {
    transform: none !important;
  }
}

@media (max-width: 1024px) {
  .hero-cta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .experience-panel,
  .posts-panel,
  .location-panel,
  .workflow-panel,
  .about-panel,
  .contact-panel,
  .publications-panel,
  .portfolio-panel {
    grid-column: span 6;
  }

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

  .contact-modal-dialog {
    width: min(94vw, 560px);
  }

  .cv-list > li {
    grid-template-columns: 1fr 32px 1fr;
    min-height: 220px;
  }

  .post-view-layout {
    grid-template-columns: 1fr;
  }

  .post-side-panel {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .post-doc-layout {
    grid-template-columns: 1fr;
  }

  .post-back-rail {
    justify-content: flex-start;
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 1.1rem 0.8rem 1.6rem;
  }

  .shell-top {
    align-items: flex-start;
    margin-bottom: 1.25rem;
  }

  .top-actions {
    position: relative;
  }

  .top-links {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(220, 220, 220, 0.95);
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(12, 12, 14, 0.1);
    max-width: none;
    opacity: 0;
    padding: 0.45rem;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    transform: translateY(-6px);
    transition: opacity 0.24s ease, transform 0.24s ease;
    z-index: 20;
  }

  .shell-top.is-nav-open .top-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .identity-email {
    font-size: 0.86rem;
  }

  .logo-shape {
    border-width: 4px;
    height: 22px;
    width: 22px;
  }

  .panel {
    border-radius: 24px;
    padding: 1rem;
  }

  .hero-panel {
    padding: 1.15rem 1rem 1rem;
  }

  .inline-avatar-wrap {
    border-radius: 14px;
    height: 48px;
    width: 48px;
  }

  .hero-title {
    font-size: clamp(1.7rem, 10.6vw, 2.9rem);
  }

  .hero-line-accent {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .cta-primary {
    font-size: 1rem;
    min-width: 150px;
  }

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

  .experience-panel,
  .posts-panel,
  .location-panel,
  .workflow-panel,
  .about-panel,
  .contact-panel,
  .publications-panel,
  .portfolio-panel {
    grid-column: auto;
  }

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

  .contact-panel {
    min-height: 220px;
  }

  .contact-modal-dialog {
    border-radius: 18px;
    max-height: 90vh;
    overflow: auto;
    padding: 1rem;
    top: 50%;
    width: min(95vw, 560px);
  }

  .posts-layout {
    grid-template-columns: 1fr;
  }

  .location-name {
    font-size: 1.45rem;
    letter-spacing: 0.14em;
  }

  .about-page .about-hero {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .about-hero-media img {
    height: 180px;
    width: 180px;
  }

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

  .post-section-nav a {
    font-size: 0.88rem;
  }

  .cv-layout {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .cv-back-rail {
    justify-content: flex-start;
    padding-top: 0;
  }

  .cv-back-btn {
    height: 48px;
    width: 48px;
  }

  .cv-timeline-shell {
    padding-left: 0;
  }

  .cv-list > li::before {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
  }

  .cv-list > li {
    grid-template-columns: 1fr;
    min-height: 0;
    opacity: 1;
    padding-left: 1.8rem;
  }

  .cv-timeline-line {
    left: 20px;
    transform: none;
  }

  .cv-list > li .cv-period,
  .cv-list > li:nth-child(odd) .cv-period,
  .cv-list > li:nth-child(even) .cv-period {
    grid-column: 1;
    place-self: start;
    margin: 0 0 0.55rem;
    transform: none;
  }

  .cv-list > li .cv-main,
  .cv-list > li:nth-child(odd) .cv-main,
  .cv-list > li:nth-child(even) .cv-main {
    grid-column: 1;
    justify-self: stretch;
    max-width: none;
  }
}

/* CV document layout */
.cv-doc-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 72px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.cv-document {
  background: rgba(250, 250, 250, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(18, 18, 18, 0.08);
  padding: 1.4rem 1.45rem;
}

.cv-page .cv-document:hover {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(18, 18, 18, 0.08);
}

.cv-doc-header h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 0.35rem 0 0.4rem;
}

.cv-doc-header p {
  color: #535861;
  margin: 0;
  max-width: 860px;
}

.cv-doc-section {
  margin-top: 1.8rem;
}

.cv-doc-section h2 {
  border-bottom: 1px solid rgba(17, 17, 19, 0.12);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.8rem;
  padding-bottom: 0.45rem;
  text-transform: uppercase;
}

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

.cv-doc-list li {
  border-bottom: 1px dashed rgba(17, 17, 19, 0.12);
  display: grid;
  gap: 1rem;
  grid-template-columns: 170px minmax(0, 1fr);
  padding: 0.95rem 0;
}

.cv-doc-list li:last-child {
  border-bottom: 0;
}

.cv-doc-period {
  color: #727780;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
  text-transform: uppercase;
}

.cv-doc-body h3 {
  font-size: 1.5rem;
  line-height: 1.15;
  margin: 0 0 0.35rem;
}

.cv-doc-body ul {
  margin: 0.55rem 0 0;
  padding-left: 1rem;
}

.cv-doc-body li {
  border: 0;
  color: #5d626c;
  display: list-item;
  font-size: 0.97rem;
  margin-bottom: 0.32rem;
  padding: 0;
}

.cv-doc-list-edu .cv-doc-body h3 {
  font-size: 1.24rem;
}

.cv-skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.cv-skill-grid span {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid #dddfe4;
  border-radius: 999px;
  color: #2f3440;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.45rem 0.82rem;
}

@media (max-width: 900px) {
  .cv-doc-layout {
    grid-template-columns: 1fr;
  }

  .cv-back-rail {
    justify-content: flex-start;
  }

  .cv-doc-list li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}
