@charset "UTF-8";
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  color: #14110f;
  background-color: #f7f5f2;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
  color: #14110f;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.05rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.25rem;
  }
  h2 {
    font-size: 2.25rem;
  }
  h3 {
    font-size: 1.4rem;
  }
}
p {
  margin: 0 0 1rem;
}

a {
  color: #c1121f;
  text-decoration: none;
  transition: color 180ms ease;
}

a:hover,
a:focus {
  color: #9d0e19;
  text-decoration: underline;
}

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

blockquote {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 3px solid #c1121f;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #14110f;
}

hr {
  border: 0;
  border-top: 1px solid rgba(20, 17, 15, 0.12);
  margin: 2rem 0;
}

::selection {
  background: #c1121f;
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid #1f3a3d;
  outline-offset: 2px;
}

.container-tight {
  width: 100%;
  max-width: 1140px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 768px) {
  .container-tight {
    padding-inline: 2rem;
  }
}

.section {
  padding-block: 4rem;
}
@media (min-width: 768px) {
  .section {
    padding-block: 6rem;
  }
}

.section--paper-dim {
  background: #ece8e2;
}

.section--ink {
  background: #14110f;
  color: #f7f5f2;
}
.section--ink h1, .section--ink h2, .section--ink h3 {
  color: #ffffff;
}
.section--ink a {
  color: #ff6b74;
}
.section--ink a:hover {
  color: #ff9198;
}

.section-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c1121f;
  margin-bottom: 0.5rem;
}

.lead {
  font-size: 1.15rem;
  color: #3a3532;
}
@media (min-width: 768px) {
  .lead {
    font-size: 1.3rem;
  }
}

.text-measure {
  max-width: 62ch;
}

.placeholder-note {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1f3a3d;
  background: rgba(31, 58, 61, 0.1);
  border: 1px dashed rgba(31, 58, 61, 0.4);
  border-radius: 4px;
  padding: 0.15rem 0.5rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 1100;
  background: #14110f;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: top 180ms ease;
}
.skip-link:focus {
  top: 0.5rem;
  color: #ffffff;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(20, 17, 15, 0.12);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
  position: relative;
}

.site-brand {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #14110f;
}
.site-brand:hover, .site-brand:focus {
  color: #14110f;
  text-decoration: none;
}
.site-brand span {
  color: #c1121f;
}

.nav-toggle-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 768px) {
  .nav-toggle-checkbox {
    display: none;
  }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-radius: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #14110f;
  transition: transform 180ms ease, opacity 180ms ease;
}
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

.nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-toggle-checkbox:checked ~ .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle-checkbox:focus-visible ~ .nav-toggle {
  outline: 2px solid #1f3a3d;
  outline-offset: 2px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  gap: 0;
  background: #f7f5f2;
  border-bottom: 1px solid rgba(20, 17, 15, 0.12);
  box-shadow: 0 12px 24px rgba(20, 17, 15, 0.14);
}
.nav-menu li {
  border-top: 1px solid rgba(20, 17, 15, 0.12);
}
.nav-menu a {
  display: block;
  padding: 1rem;
  color: #14110f;
  font-weight: 500;
}
.nav-menu a:hover, .nav-menu a:focus {
  color: #c1121f;
  text-decoration: none;
  background: #ece8e2;
}
.nav-menu a[aria-current=page] {
  color: #c1121f;
}

.nav-toggle-checkbox:checked ~ .nav-menu {
  display: flex;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 2rem;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav-menu li {
    border: 0;
  }
  .nav-menu a {
    padding: 0.25rem 0;
    position: relative;
  }
  .nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #c1121f;
    transition: width 180ms ease;
  }
  .nav-menu a:hover::after, .nav-menu a:focus::after, .nav-menu a[aria-current=page]::after {
    width: 100%;
  }
  .nav-menu a:hover {
    background: transparent;
  }
}

.btn {
  --bs-btn-focus-box-shadow: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  text-decoration: none;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: #c1121f;
  color: #ffffff;
}
.btn--primary:hover, .btn--primary:focus {
  background: #9d0e19;
  color: #ffffff;
}

.btn--ghost {
  background: transparent;
  color: #14110f;
  border-color: #14110f;
}
.btn--ghost:hover, .btn--ghost:focus {
  background: #14110f;
  color: #f7f5f2;
}

.section--ink .btn--ghost {
  color: #f7f5f2;
  border-color: #f7f5f2;
}
.section--ink .btn--ghost:hover, .section--ink .btn--ghost:focus {
  background: #f7f5f2;
  color: #14110f;
}

.section--ink .btn--primary {
  color: #ffffff;
}
.section--ink .btn--primary:hover, .section--ink .btn--primary:focus {
  color: #ffffff;
}

.hero {
  background: #14110f;
  color: #f7f5f2;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 2rem;
  padding-block: 4rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
    padding-block: 6rem;
  }
}

.hero__title {
  color: #ffffff;
  font-size: 2.5rem;
}
@media (min-width: 768px) {
  .hero__title {
    font-size: 3.75rem;
  }
}
@media (min-width: 992px) {
  .hero__title {
    font-size: 4.25rem;
  }
}

.hero__title em {
  font-style: italic;
  color: #ff6b74;
}

.hero__text {
  color: rgba(247, 245, 242, 0.82);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__portrait {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero__portrait img {
  width: 100%;
  object-fit: cover;
}
.hero__portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 120px 12px rgba(193, 18, 31, 0.28);
  pointer-events: none;
}

.skill-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 576px) {
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .skill-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-card {
  background: #ffffff;
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.skill-card h3 {
  margin-bottom: 0.5rem;
}
.skill-card p {
  margin: 0;
  color: #3a3532;
  font-size: 0.95rem;
}
.skill-card::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  background: #c1121f;
  margin-bottom: 1rem;
}
.skill-card--analyst::before {
  background: #1f3a3d;
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(20, 17, 15, 0.14);
}

.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 576px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(20, 17, 15, 0.14);
}

.project-card__media {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #14110f, #1f3a3d);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}
.project-card__media span {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}
.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 2rem;
  flex: 1;
}

.project-card__body h3 {
  margin: 0;
}

.project-card__body p {
  margin: 0;
  color: #3a3532;
  font-size: 0.95rem;
  flex: 1;
}

.project-card__body .post-card__date {
  flex: 0 0 auto;
}

.project-card__link {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  align-self: flex-start;
}
.project-card__link::after {
  content: " →";
}

.newsletter-box {
  background: #ece8e2;
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-left: 4px solid #1f3a3d;
  border-radius: 10px;
  padding: 2rem;
}
.newsletter-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}

.newsletter-form {
  margin-top: 1rem;
  max-width: 28rem;
}

.newsletter-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.newsletter-modal[hidden] {
  display: none;
}

.newsletter-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 15, 0.55);
}

.newsletter-modal__card {
  position: relative;
  background: #f7f5f2;
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-left: 4px solid #1f3a3d;
  border-radius: 10px;
  padding: 2rem;
  max-width: 26rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 48px rgba(20, 17, 15, 0.14);
}
.newsletter-modal__card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  padding-right: 4rem;
}

.newsletter-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #3a3532;
}
.newsletter-modal__close:hover {
  color: #14110f;
}

.post-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  display: grid;
  gap: 0.5rem;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-radius: 10px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
@media (min-width: 768px) {
  .post-card {
    grid-template-columns: 8rem 1fr;
    gap: 2rem;
  }
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(20, 17, 15, 0.14);
}

.post-card__date {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1f3a3d;
}

.post-card__body h3 {
  margin: 0 0 0.35rem;
}

.post-card__body p {
  margin: 0 0 0.5rem;
  color: #3a3532;
}

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

.post-card__tags {
  margin-bottom: 0.5rem;
}
.post-card__tags li {
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
}

.blog-filter {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #14110f;
  background: #ffffff;
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.blog-filter:hover { border-color: #c1121f; }
.blog-filter.is-active { background: #c1121f; border-color: #c1121f; color: #ffffff; }

.article {
  max-width: 68ch;
  margin-inline: auto;
}

.article__header {
  margin-bottom: 2rem;
}

.article__meta {
  font-size: 0.9rem;
  color: #3a3532;
  font-style: italic;
}

.article__body {
  font-size: 1.08rem;
}
.article__body p {
  margin-bottom: 1rem;
}
.article__body p em {
  color: #3a3532;
}
.article__body blockquote {
  margin: 2rem 0;
  padding-left: 1rem;
  border-left: 3px solid #c1121f;
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-style: italic;
  color: #14110f;
}

.cv-header {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 768px) {
  .cv-header {
    grid-template-columns: 160px 1fr;
  }
}

.cv-header__photo {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(20, 17, 15, 0.12);
  max-width: 160px;
}

.cv-section {
  margin-top: 4rem;
}

.cv-section > h2 {
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #14110f;
  margin-bottom: 2rem;
}

.cv-entry {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(20, 17, 15, 0.12);
}
@media (min-width: 768px) {
  .cv-entry {
    grid-template-columns: 12rem 1fr;
    gap: 1rem;
  }
}
.cv-entry:last-child {
  border-bottom: 0;
}

.cv-entry__period {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1f3a3d;
}

.cv-entry__role {
  margin: 0;
  font-weight: 700;
}

.cv-entry__org {
  margin: 0;
  color: #3a3532;
}

.cv-entry__detail {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #3a3532;
}

.cv-list {
  margin: 0;
  padding-left: 1.1rem;
}
.cv-list li {
  margin-bottom: 0.4rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.tag-row li {
  background: #ece8e2;
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.9rem;
}

.contact-layout {
  display: grid;
  gap: 4rem;
}
@media (min-width: 768px) {
  .contact-layout {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-weight: 700;
  font-size: 0.95rem;
}

.form-field .req {
  color: #c1121f;
}

.form-control {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(20, 17, 15, 0.12);
  border-radius: 4px;
  background: #ffffff;
  color: #14110f;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.form-control:focus {
  outline: none;
  border-color: #1f3a3d;
  box-shadow: 0 0 0 3px rgba(31, 58, 61, 0.15);
}

textarea.form-control {
  min-height: 160px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: #3a3532;
}

.form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  font-size: 0.85rem;
  color: #3a3532;
}
.form-consent label a {
  color: #1f3a3d;
}

.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: #1f3a3d;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.form-status.is-error { color: #9d0e19; }
.form-status.is-success { color: #1f3a3d; }

.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: #14110f;
}
.social-links a:hover {
  color: #c1121f;
  text-decoration: none;
}
.social-links a::before {
  content: "→";
  color: #c1121f;
}

.site-footer {
  background: #14110f;
  color: rgba(247, 245, 242, 0.7);
  padding-block: 4rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(247, 245, 242, 0.9);
}

.site-footer a:hover {
  color: #ffffff;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-brand {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  color: #ffffff;
}
.footer-brand span {
  color: #c1121f;
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.icon-row a {
  display: inline-flex;
}
.icon-row svg {
  display: block;
}

.footer-nav {
  list-style: none;
  padding: 1rem 0 0;
  margin: 2rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.stack-sm > * + * {
  margin-top: 1rem;
}

.stack-md > * + * {
  margin-top: 2rem;
}

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

.mt-lg {
  margin-top: 4rem;
}

.mt-xs {
  margin-top: 0.5rem;
}

.text-center-actions .text-measure {
  margin-inline: auto;
}
.text-center-actions .hero__actions {
  justify-content: center;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
