:root {
  --bg: #f6f2ea;
  --bg-soft: #f1ece3;
  --card: #efe8de;
  --text: #171614;
  --muted: #5f5a52;
  --border: rgba(23, 22, 20, 0.14);
  --border-strong: rgba(23, 22, 20, 0.24);
  --accent: #22201d;
  --accent-soft: rgba(23, 22, 20, 0.04);
  --frame: 68rem;
  --narrow: 48rem;
  --transition: 220ms ease;
}

body.dark-mode {
  --bg: #090909;
  --bg-soft: #141414;
  --card: #111111;
  --text: #f3efe7;
  --muted: #b8b0a4;
  --border: rgba(243, 239, 231, 0.16);
  --border-strong: rgba(243, 239, 231, 0.28);
  --accent: #f3efe7;
  --accent-soft: rgba(243, 239, 231, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "CMU Serif", "Crimson Text", "Times New Roman", Times, serif;
  line-height: 1.7;
}

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

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

p {
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
}

.frame,
.section-inner {
  width: min(calc(100% - 3rem), var(--frame));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 3rem), var(--narrow));
}

.center-text {
  text-align: center;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgba(246, 242, 234, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

body.dark-mode .site-header {
  background: rgba(9, 9, 9, 0.9);
}

.nav-frame {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-name {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.125rem;
  letter-spacing: 0.08em;
  text-transform: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-mark {
  width: 2.44rem;
  height: 1.95rem;
  flex: 0 0 auto;
  border-radius: 0.2rem;
  transition: filter var(--transition);
  filter: invert(1) brightness(1.05);
}

body.dark-mode .site-mark {
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.958rem;
  letter-spacing: 0.08em;
  text-transform: none;
  margin-left: 2.25rem;
}

.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

.site-nav a,
.footer-links a,
.footer-link-button,
.hero-links a,
.inline-link,
.outline-button {
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition),
    transform var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-link-button:hover,
.footer-link-button:focus-visible,
.hero-links a:hover,
.inline-link:hover {
  color: var(--muted);
}

.site-nav a {
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.site-nav a[aria-current="page"] {
  color: var(--muted);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem;
  border: 1px solid var(--border);
  background: transparent;
}

.lang-select {
  min-width: 5.25rem;
  min-height: 1.8rem;
  padding: 0 1.6rem 0 0.45rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 0.8rem) calc(50% - 0.12rem),
    calc(100% - 0.55rem) calc(50% - 0.12rem);
  background-size: 0.32rem 0.32rem, 0.32rem 0.32rem;
  background-repeat: no-repeat;
  transition: color var(--transition);
}

.header-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  min-width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.header-icon-button:hover,
.header-icon-button:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--accent-soft);
  outline: none;
}

.header-icon-button svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.lang-select:hover,
.lang-select:focus-visible {
  color: var(--text);
  outline: none;
}

.lang-select option {
  color: #171614;
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 4.35rem;
  min-width: 4.35rem;
  height: 2.35rem;
  padding: 0 0.45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  overflow: hidden;
  transition:
    color var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.theme-toggle-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
}

.theme-toggle svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.theme-toggle-icon-moon svg {
  transform: translateX(-0.22rem);
}
.theme-toggle-thumb {
  position: absolute;
  top: 0.22rem;
  left: 0.22rem;
  width: 1.72rem;
  height: 1.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition:
    transform var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

body:not(.dark-mode) .theme-toggle-icon-sun,
body.dark-mode .theme-toggle-icon-moon {
  color: var(--text);
}

body.dark-mode .theme-toggle-thumb {
  transform: translateX(2rem);
}

.nav-toggle {
  display: none;
  width: 1.5rem;
  height: 1.1rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: transform var(--transition), opacity var(--transition), top var(--transition), bottom var(--transition);
}

.nav-toggle span:nth-child(1) {
  top: 0;
}

.nav-toggle span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle span:nth-child(3) {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.hero,
.blog-hero {
  position: relative;
  padding: 6rem 1.5rem 3rem;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 46rem;
  text-align: center;
}

.hero-background {
  position: absolute;
  inset: 6rem 0 auto;
  width: 100%;
  opacity: 0.18;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 22%, transparent 78%);
  -webkit-mask-image: linear-gradient(to bottom, black 22%, transparent 78%);
}

.hero-role,
.section-index {
  display: inline-block;
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-role {
  margin-bottom: 1rem;
}

.hero h1,
.blog-title {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-subtitle,
.blog-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 auto;
  font-weight: 400;
}

.hero-subtitle span {
  display: block;
}

.hero-detail {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  color: var(--muted);
  font-style: italic;
}

.hero-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.75rem;
}

.hero-links a {
  color: var(--muted);
}

.hero-links svg,
.outline-button svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  animation: float 2s ease-in-out infinite;
}

.scroll-cue svg {
  width: 1.3rem;
  height: 1.3rem;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.section {
  padding: 8rem 0;
}

.section-alt {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 1.875rem;
  margin-bottom: 3rem;
}

.section-title-centered {
  text-align: center;
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 1.25rem 0 2.5rem;
}

.section-intro {
  max-width: 38rem;
  margin-bottom: 3rem;
  color: var(--muted);
  font-size: 1.25rem;
}

.center-text .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.body-copy {
  max-width: 42rem;
  margin: 0 auto;
  color: var(--text);
  font-size: 0.95rem;
}

.profile-actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.body-copy p + p {
  margin-top: 1.55rem;
}

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

.interest-trigger {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.interest-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.interest-card p {
  color: var(--muted);
  font-size: 1rem;
}

.interest-card,
.interest-trigger,
.figure-shell {
  transition:
    transform var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.interest-card:hover .figure-shell,
.interest-trigger:focus-visible .figure-shell {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.interest-card:hover,
.interest-trigger:focus-visible {
  transform: translateY(-2px);
}

.interest-trigger:focus-visible {
  outline: none;
}

.interest-figure {
  margin: 0 0 1.25rem;
}

.figure-shell {
  height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--bg-soft);
}

.interest-figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-style: italic;
  text-align: center;
}

body.modal-open {
  overflow: hidden;
}

.interest-modal[hidden] {
  display: none;
}

.interest-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.interest-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 9, 9, 0.6);
  cursor: pointer;
}

.interest-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 44rem);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
    overscroll-behavior: contain;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  background: var(--bg);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.interest-modal-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
}

body.dark-mode .interest-modal-close {
  background: rgba(9, 9, 9, 0.82);
}

.interest-modal-close:hover,
.interest-modal-close:focus-visible {
  border-color: var(--border-strong);
  background: var(--bg-soft);
  outline: none;
}

.interest-modal-close svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.interest-modal-figure {
  margin: 0;
  padding: 1.4rem 1.4rem 0;
}

.interest-modal-image-shell {
  min-height: 16rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  background: var(--bg-soft);
}

.interest-modal-caption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
}

.interest-modal-copy {
  padding: 1rem 1.4rem 1.5rem;
}

.interest-modal-title {
  font-size: 1.7rem;
  margin-bottom: 0.9rem;
}

.interest-modal-description {
  color: var(--muted);
}

.interest-modal-description p + p {
  margin-top: 1rem;
}

.timeline-list {
  display: grid;
  gap: 3rem;
}

.timeline-item {
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
  transition: border-color var(--transition);
}

.timeline-item:hover {
  border-color: var(--border-strong);
}

.timeline-meta,
.timeline-subtle,
.tag,
.blog-more {
  color: var(--muted);
  font-size: 0.875rem;
}

.timeline-meta {
  margin-bottom: 0.45rem;
}

.timeline-item h3,
.blog-entry-title {
  font-size: 1.125rem;
  margin-bottom: 0.45rem;
}

.timeline-subtle {
  margin-bottom: 0.8rem;
}

.timeline-item p:last-child {
  color: var(--muted);
}

.education-block {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.education-heading {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.education-row {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 1.5rem;
}

.education-row + .education-row {
  margin-top: 1.5rem;
}

.education-degree {
  font-size: 1rem;
  font-weight: 600;
}

.education-school,
.education-note,
.education-years {
  color: var(--muted);
}

.education-school,
.education-years {
  font-size: 0.875rem;
}

.education-note {
  margin-top: 0.3rem;
  font-size: 0.875rem;
  font-style: italic;
}

.education-years {
  white-space: nowrap;
  padding-left: 1rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

.tag-muted {
  background: transparent;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 3.25rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1.042rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.outline-button:hover,
.outline-button:focus-visible {
  background: var(--text);
  color: var(--bg);
}

.outline-button-muted {
  border-color: var(--border-strong);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.contact-form-intro {
  max-width: 36rem;
  margin: 2rem auto 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.contact-form {
  width: min(100%, 40rem);
  margin: 0 auto;
  text-align: left;
}

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

.contact-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.contact-field span {
  color: var(--muted);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  padding: 0.9rem 1rem;
  transition:
    border-color var(--transition),
    background-color var(--transition),
    box-shadow var(--transition);
}

.contact-field textarea {
  resize: vertical;
  min-height: 9rem;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 0.12rem var(--accent-soft);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contact-form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.contact-form-status {
  min-height: 1.6rem;
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
}

.contact-form-status.is-success {
  color: var(--text);
}

.contact-form-status.is-error {
  color: #9f4c47;
}

.contact-card-modal[hidden] {
  display: none;
}

.contact-card-modal {
  position: fixed;
  inset: 0;
  z-index: 42;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.contact-card-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 9, 9, 0.6);
  cursor: pointer;
}

.contact-card-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
  max-height: calc(100vh - 3rem);
}

.contact-card-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  cursor: pointer;
}

body.dark-mode .contact-card-close {
  background: rgba(9, 9, 9, 0.84);
}

.contact-card-close svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-card-sheet {
  border: 1px solid var(--border-strong);
  border-radius: 0.9rem;
  background: var(--bg);
  padding: 1.6rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
    overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.contact-card-mark {
  width: 3.25rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: 0.35rem;
  filter: invert(1) brightness(1.05);
}

body.dark-mode .contact-card-mark {
  filter: none;
}

.contact-card-eyebrow {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card-title {
  font-size: 1.65rem;
  margin: 0.25rem 0;
}

.contact-card-role {
  color: var(--muted);
}

.contact-card-list {
  display: grid;
  gap: 0.95rem;
  padding: 1.35rem 0;
}

.contact-card-row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.contact-card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-card-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
}

.contact-card-label-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.contact-card-value {
  word-break: break-word;
}

.contact-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  padding-top: 0.25rem;
}

.share-modal[hidden] {
  display: none;
}

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 44;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 9, 9, 0.6);
  cursor: pointer;
}

.share-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 34rem);
}

.share-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  cursor: pointer;
}

body.dark-mode .share-modal-close {
  background: rgba(9, 9, 9, 0.84);
}

.share-modal-close svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.share-modal-shell {
  border: 1px solid var(--border-strong);
  border-radius: 0.9rem;
  background: var(--bg);
  padding: 1.45rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
}

.share-modal-header {
  padding: 0.2rem 2.4rem 1rem 0;
}

.share-modal-title {
  font-size: 1.65rem;
  margin-top: 0.2rem;
}

.share-modal-intro {
  margin-top: 0.45rem;
  color: var(--muted);
}

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

.share-option {
  width: 100%;
  min-height: 2.35rem;
}

.share-status {
  min-height: 1.5rem;
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
}

.cv-modal[hidden] {
  display: none;
}

.cv-modal {
  position: fixed;
  inset: 0;
  z-index: 43;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.cv-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(9, 9, 9, 0.6);
  cursor: pointer;
}

.cv-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 58rem);
  max-height: calc(100vh - 3rem);
}

.cv-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  cursor: pointer;
}

body.dark-mode .cv-modal-close {
  background: rgba(9, 9, 9, 0.84);
}

.cv-modal-close svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cv-modal-shell {
  border: 1px solid var(--border-strong);
  border-radius: 0.9rem;
  background: var(--bg);
  padding: 1.2rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.18);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
    overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cv-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 2.6rem 1rem 0;
}

.cv-modal-title {
  font-size: 1.65rem;
  margin-top: 0.2rem;
}

.cv-modal-open-button {
  flex: 0 0 auto;
  min-height: 2.9rem;
  padding-inline: 1.25rem;
}

.cv-modal-viewer {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  overflow: hidden;
  background: var(--bg-soft);
}

.cv-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.52);
}

body.dark-mode .cv-modal-toolbar {
  background: rgba(255, 255, 255, 0.04);
}

.cv-zoom-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cv-zoom-label {
  min-width: 3.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.cv-pdf-pages {
  max-height: min(68vh, 48rem);
  overflow-y: auto;
  padding: 1rem 0.85rem 1.15rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cv-pdf-page {
  width: 100%;
}

.cv-pdf-page + .cv-pdf-page {
  margin-top: 1rem;
}

.cv-pdf-page canvas {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  background: #fff;
}

.cv-pdf-status {
  margin: 0;
  padding: 1.4rem 1rem;
  text-align: center;
  color: var(--muted);
}

.blog-hero {
  padding-top: 8.5rem;
  padding-bottom: 3rem;
}

.blog-title {
  margin-bottom: 1rem;
}

.blog-section {
  padding-top: 1rem;
}

.blog-entry-title {
  margin-bottom: 0.7rem;
  font-size: 1.5rem;
}

.blog-more {
  display: inline-block;
  margin-top: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-list {
  margin-bottom: 1.75rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
}

.footer-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}

.socials-sheet {
  max-width: 34rem;
}

.socials-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.socials-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  align-items: center;
  text-decoration: none;
}

.socials-row:focus-visible {
  outline: none;
}

.socials-row > span:not(.socials-icon) {
  display: none;
}

.socials-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  transition:
    border-color var(--transition),
    background-color var(--transition),
    color var(--transition);
}

.socials-icon svg {
  width: 1.17rem;
  height: 1.17rem;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}


.socials-row:hover .socials-icon,
.socials-row:focus-visible .socials-icon {
  color: var(--muted);
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.footer-inner p {
  color: var(--muted);
  font-size: 0.958rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 650ms ease,
    transform 650ms ease;
  transition-delay: var(--delay, 0ms);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

@media (max-width: 1100px) {
  .nav-frame {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    grid-column: 2;
    justify-self: center;
    margin: 0;
    z-index: 25;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 50%;
    width: min(26rem, calc(100vw - 3rem));
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem 1.35rem;
    border: 1px solid var(--border);
    background: rgba(246, 242, 234, 0.97);
    margin-left: 0;
    transform: translateX(-50%);
    z-index: 24;
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.08);
  }

  body.dark-mode .site-nav {
    background: rgba(9, 9, 9, 0.97);
  }

  .site-nav a {
    display: block;
    width: 100%;
    text-align: left;
  }


  .site-nav.open {
    display: flex;
  }

  .header-tools {
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
    flex: 0 1 auto;
    min-width: 0;
  }

  .interest-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    justify-items: center;
  }

  .interest-card {
    width: min(100%, 42rem);
  }

  .education-row {
    flex-direction: column;
    gap: 0.55rem;
  }

  .education-years {
    padding-left: 0;
  }

  .hero-links {
    gap: 1.1rem;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 5.15rem;
    left: 0;
    width: 1.65rem;
    height: 2.35rem;
    padding: 0;
    border: 1px solid var(--border);
    border-left: 0;
    border-radius: 0 0.75rem 0.75rem 0;
    background: rgba(246, 242, 234, 0.96);
    color: var(--text);
    z-index: 26;
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.08);
  }

  body.dark-mode .nav-toggle {
    background: rgba(9, 9, 9, 0.96);
  }

  .nav-toggle span {
    background: currentColor;
  }


  .nav-toggle:not([aria-expanded="true"]) span {
    width: 54%;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-toggle:not([aria-expanded="true"]) span:nth-child(2) {
    transform: translate(-50%, -50%);
  }
  .nav-toggle:not([aria-expanded="true"]) span:nth-child(1) {
    top: 23%;
  }

  .nav-toggle:not([aria-expanded="true"]) span:nth-child(3) {
    bottom: 23%;
  }

  .site-nav {
    position: fixed;
    top: 4.5rem;
    left: 0;
    bottom: 0;
    width: min(17rem, calc(100vw - 3.25rem));
    height: calc(100dvh - 4.5rem);
    max-height: calc(100dvh - 4.5rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.15rem 2rem;
    border: 0;
    border-right: 1px solid var(--border);
    background: rgba(246, 242, 234, 0.97);
    margin-left: 0;
    transform: translateX(-105%);
    transition: transform var(--transition);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 24;
    box-shadow: 0 0.8rem 1.6rem rgba(0, 0, 0, 0.08);
  }

  body.dark-mode .site-nav {
    background: rgba(9, 9, 9, 0.97);
  }

  .site-nav a {
    display: block;
    width: 100%;
    text-align: left;
    padding-left: 0.85rem;
  }


  .site-nav.open {
    display: flex;
    transform: translateX(0);
  }

  .header-tools {
    margin-left: auto;
    flex: 0 1 auto;
    min-width: 0;
  }
}
@media (max-width: 640px) {
  .nav-frame {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
  }

  .frame,
  .section-inner,
  .narrow {
    width: min(calc(100% - 2rem), var(--frame));
  }

  .section {
    padding: 6rem 0;
  }

  .hero,
  .blog-hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-subtitle,
  .blog-subtitle {
    font-size: 1.25rem;
  }

  .hero-detail {
    font-size: 1.125rem;
  }

  .section-title {
    margin-bottom: 2.25rem;
  }

  .outline-button {
    width: 100%;
  }

  .contact-action-row {
    flex-direction: column;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .site-name {
    font-size: 1rem;
    gap: 0.5rem;
  }

  .site-mark {
    width: 2.11rem;
    height: 1.69rem;
  }

  .theme-toggle {
    width: 4rem;
    min-width: 4rem;
    height: 2.2rem;
    padding: 0 0.42rem;
  }

  .theme-toggle-thumb {
    width: 1.56rem;
    height: 1.56rem;
  }

  .theme-toggle-icon-sun {
    transform: translateX(0.08rem);
  }

  .theme-toggle-icon-moon {
    transform: translateX(-0.08rem);
  }

  body.dark-mode .theme-toggle-thumb {
    transform: translateX(1.76rem);
  }

  .header-tools {
    gap: 0.45rem;
  }

  .lang-select {
    min-width: 4.8rem;
    min-height: 1.7rem;
    font-size: 0.72rem;
  }

  .contact-card-sheet {
    padding: 1.2rem;
    max-height: calc(100vh - 1.5rem);
  }

  .contact-card-header {
    align-items: stretch;
  }

  .contact-card-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .share-modal-shell {
    padding: 1.1rem;
  }

  .share-modal-header {
    padding-right: 2.2rem;
  }

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

  .cv-modal {
    padding: 0.75rem;
  }

  .cv-modal-dialog {
    width: min(calc(100vw - 1.5rem), 58rem);
    max-height: calc(100dvh - 1.5rem);
  }

  .cv-modal-shell {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem;
    max-height: calc(100dvh - 1.5rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .cv-modal-header {
    align-items: stretch;
    flex-direction: column;
    padding-right: 2.4rem;
    flex: 0 0 auto;
  }
  .cv-modal-open-button {
    width: 100%;
  }

  .cv-modal-viewer {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .cv-modal-toolbar {
    gap: 0.65rem;
    padding-inline: 0.75rem;
  }

  .cv-pdf-pages {
    width: 100%;
    max-width: 100%;
    max-height: min(58vh, 34rem);
    overflow: auto;
    padding-inline: 0.65rem;
  }

  .cv-pdf-page {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .interest-modal {
    padding: 1rem;
  }

  .interest-modal-dialog {
    max-height: calc(100vh - 2rem);
  }

  .interest-modal-figure {
    padding: 1rem 1rem 0;
  }

  .interest-modal-copy {
    padding: 0.9rem 1rem 1.15rem;
  }

  .interest-modal-title {
    font-size: 1.35rem;
  }
}

@media (min-width: 768px) {
  .hero h1,
  .blog-title {
    font-size: 4.5rem;
  }

  .hero-subtitle,
  .blog-subtitle {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .blog-entry-title {
    font-size: 1.875rem;
  }
}


@media (min-width: 641px) {
  .site-nav a[aria-current="page"] {
    color: inherit;
  }

  .site-nav a[aria-current="page"]:hover,
  .site-nav a[aria-current="page"]:focus-visible {
    color: var(--muted);
  }
}







