@import url('https://fonts.googleapis.com/css2?family=Marko+One&family=Ubuntu:wght@400&display=swap');

@font-face {
  font-family: 'xkcd';
  src: url('../fonts/xkcd-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

.font-xkcd {
  font-family: 'xkcd', sans-serif !important;
  text-transform: uppercase;
}

[x-cloak] {
  display: none !important;
}

:root {
  --font-heading: "Bricolage Grotesque", sans-serif;
  --font-body: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Zen Palette */
  --white: #FFFFFF;
  --zen-cream: #F2F0E3;
  --zen-cream-lighter: #F4F3EB;
  --zen-cream-darker: #E0D5B7;
  --highlight: #f76f53;

  --zen-charcoal: #2E2E2E;
  --zen-charcoal-lighter: #4A4A4A;
  --zen-charcoal-darker: #1A1A1A;

  /* Global variables */
  --bg-color: var(--zen-cream);
  --text-primary: var(--zen-charcoal);
  --text-secondary: var(--zen-charcoal-lighter);

  --accent-color: var(--zen-charcoal);
  --border-color: var(--zen-cream-darker);

  --border-radius: 12px;
  --border-radius-lg: 16px;
  --border-radius-sm: 8px;
}

[data-bs-theme="dark"] {
  --white: #1A1A1A;
  --zen-cream: #2E2E2E;
  --zen-cream-lighter: #1A1A1A;
  --zen-cream-darker: #4A4A4A;

  --zen-charcoal: #F2F0E3;
  --zen-charcoal-lighter: #D6D3B6;
  --zen-charcoal-darker: #F4F3EB;
}

::selection {
  background: var(--zen-charcoal);
  color: var(--zen-cream);
  text-shadow: none;
}

::-moz-selection {
  background: var(--zen-charcoal);
  color: var(--zen-cream);
  text-shadow: none;
}

.card {
  position: relative;
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.card-subtitle {
  color: var(--text-secondary);
  font-size: 0.9em;
}

.pub-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--zen-charcoal-lighter);
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.btn,
nav:not(.item-sidebar__nav) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--zen-charcoal);
  color: var(--zen-cream);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: padding 0.3s ease, background-color 0.2s ease;
}

/* Right arrow (default) */
.btn::after,
nav:not(.item-sidebar__nav) .btn::after {
  content: '\2192';
  display: inline-block;
  max-width: 0;
  opacity: 0;
  margin-left: 0;
  transition: max-width 0.3s ease, opacity 0.3s ease, margin-left 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
}

/* Left arrow */
.btn-arrow-left::before,
nav:not(.item-sidebar__nav) .btn-arrow-left::before {
  content: '\2190';
  display: inline-block;
  max-width: 0;
  opacity: 0;
  margin-right: 0;
  transition: max-width 0.3s ease, opacity 0.3s ease, margin-right 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
}

.btn-arrow-left::after,
nav:not(.item-sidebar__nav) .btn-arrow-left::after {
  content: none;
}

.btn-lg {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  border-radius: var(--border-radius-lg);
}

/* Hover: right arrow (default) */
.btn:hover,
nav:not(.item-sidebar__nav) .btn:hover {
  background-color: var(--zen-charcoal-darker);
  color: var(--zen-cream);
  padding-right: 1.5rem;
}

.btn:hover::after,
nav:not(.item-sidebar__nav) .btn:hover::after {
  max-width: 1.5rem;
  opacity: 1;
  margin-left: 0.5rem;
}

/* Hover: left arrow */
.btn-arrow-left:hover,
nav:not(.item-sidebar__nav) .btn-arrow-left:hover {
  padding-right: 1rem;
  padding-left: 1.5rem;
}

.btn-arrow-left:hover::before,
nav:not(.item-sidebar__nav) .btn-arrow-left:hover::before {
  max-width: 1.5rem;
  opacity: 1;
  margin-right: 0.5rem;
}

.btn-arrow-left:hover::after,
nav:not(.item-sidebar__nav) .btn-arrow-left:hover::after {
  max-width: 0;
  opacity: 0;
  margin-left: 0;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.btn-outline:hover {
  background-color: var(--text-primary);
  color: var(--zen-cream);
}

.badge {
  display: inline-block;
  padding: 0.35em 0.65em;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1;
  color: var(--zen-cream);
  background-color: var(--zen-charcoal);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--border-radius-sm);
}

/* Simple Flex Grid */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

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

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

.align-items-start {
  align-items: flex-start;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

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

.mt-3 {
  margin-top: 1rem;
}

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

.mt-5 {
  margin-top: 3rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-3 {
  padding-top: 1rem;
}

.pt-4 {
  padding-top: 1.5rem;
}

.pt-5 {
  padding-top: 3rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-5 {
  padding-bottom: 3rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.p-3 {
  padding: 1rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 3rem;
}

@media (min-width: 768px) {
  .p-md-4 {
    padding: 1.5rem;
  }

  .p-md-5 {
    padding: 3rem;
  }
}

@media (min-width: 992px) {
  .p-lg-4 {
    padding: 1.5rem;
  }

  .p-lg-5 {
    padding: 3rem;
  }
}

.shadow-sm {
  box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
}

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

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

.text-uppercase {
  text-transform: uppercase !important;
}

.opacity-50 {
  opacity: 0.5;
}

.border-0 {
  border: none;
}

.rounded,
.rounded-3 {
  border-radius: var(--border-radius);
}

.rounded-4,
.rounded-5 {
  border-radius: var(--border-radius-lg);
}

.text-decoration-none {
  text-decoration: none;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.row>* {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.row.g-1 {
  margin-top: -0.25rem;
}

.row.g-1>* {
  margin-top: 0.25rem;
}

.row.g-2 {
  margin-top: -0.5rem;
}

.row.g-2>* {
  margin-top: 0.5rem;
}

.row.g-3 {
  margin-top: -1rem;
}

.row.g-3>* {
  margin-top: 1rem;
}

.row.g-4 {
  margin-top: -1.5rem;
}

.row.g-4>* {
  margin-top: 1.5rem;
}

.row.g-5 {
  margin-top: -3rem;
}

.row.g-5>* {
  margin-top: 3rem;
}

.col-12 {
  width: 100%;
  flex: 0 0 100%;
}

.col-md-4 {
  width: 33.333333%;
  flex: 0 0 33.333333%;
}

.col-md-6 {
  width: 50%;
  flex: 0 0 50%;
}

.col-md-8 {
  width: 66.666667%;
  flex: 0 0 66.666667%;
}

.col-lg-4 {
  width: 33.333333%;
  flex: 0 0 33.333333%;
}

.col-lg-3 {
  width: 25%;
  flex: 0 0 25%;
}

@media (max-width: 768px) {

  .col-md-4,
  .col-md-6,
  .col-md-8,
  .col-lg-4,
  .col-lg-3 {
    width: 100%;
    flex: 0 0 100%;
  }

  .d-none.d-lg-flex {
    display: none !important;
  }
}

.fs-1 {
  font-size: 2.5rem;
}

.fs-2 {
  font-size: 2rem;
}

.fs-3 {
  font-size: 1.75rem;
}

.fs-4 {
  font-size: 1.5rem;
}

.fs-5 {
  font-size: 1.25rem;
}

.fs-6 {
  font-size: 1rem;
}

.fw-lighter {
  font-weight: lighter;
}

.fw-light {
  font-weight: 300;
}

.fw-normal {
  font-weight: normal;
}

.fw-medium {
  font-weight: 500;
}

.fw-semibold {
  font-weight: 600;
}

.fw-bold {
  font-weight: bold;
}

.fw-bolder {
  font-weight: bolder;
}

.text-muted,
.text-body-secondary {
  color: var(--text-secondary) !important;
}

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


@font-face {
  font-family: 'Gallante';
  src: url('../fonts/Gallante-AR1ap.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
}

.font-heading {
  font-family: var(--font-heading) !important;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Layout */
.site-header {
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-container {
  display: flex;
  gap: 0.75rem;
  pointer-events: auto;
  align-items: center;
  max-width: calc(100vw - 3rem);
  min-width: 0;
}

nav:not(.item-sidebar__nav) {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-primary);
}

nav:not(.item-sidebar__nav) ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav:not(.item-sidebar__nav) a {
  font-weight: 500;
  color: var(--text-secondary);
}

nav:not(.item-sidebar__nav) a:hover,
nav:not(.item-sidebar__nav) a.active {
  color: var(--text-primary);
}

.timeline-logo {
  width: 48px;
  height: 48px;
  min-width: 48px;
  object-fit: contain;
  background-color: #fff;
  border-radius: 50%;
  padding: 4px;
  border: 0px;
  display: block;
}

.fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--accent-color);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
}

.fab.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

a {
  color: var(--highlight);
}

.mobile-topnav {
  background: var(--zen-cream-darker);
  border-radius: var(--border-radius-lg);
  padding: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  overflow: hidden;
  min-width: 0;
}

.theme-toggle-pill {
  background: var(--zen-cream-darker);
  border-radius: var(--border-radius-lg);
  width: 58px;
  min-width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  color: var(--zen-charcoal);
  transition: background 0.2s ease;
}

.theme-toggle-pill:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-topnav .nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.mobile-topnav .nav-link {
  color: var(--zen-charcoal);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--border-radius-sm);
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.mobile-topnav .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mobile-topnav .nav-link.active {
  background-color: var(--zen-charcoal);
  color: var(--zen-cream);
  font-weight: 600;
}

#mobileScrollNav {
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#mobileScrollNav::-webkit-scrollbar {
  display: none;
}

/* Page wrapper — centres everything on very wide screens */
.spa-wrapper {
  display: flex;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* Sidebar scrollspy nav (large screens) */
.sidebar-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 160px;
  min-width: 160px;
  padding: 2rem 1rem;
  border-right: 1px solid var(--border-color);
  background: var(--bg-color);
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-brand {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  text-decoration: none;
  line-height: 1.3;
}

.sidebar-nav .nav-link {
  color: var(--text-secondary);
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-nav .nav-link:hover {
  color: var(--text-primary);
}

/* Single-page main content */
.spa-main {
  flex: 1;
  min-width: 0;
  padding: 3rem 2.5rem;
  overflow-x: hidden;
}

.spa-section {
  min-height: 50vh;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
  scroll-margin-top: 1rem;
}

@media (max-width: 991.98px) {
  .spa-wrapper {
    display: block;
  }

  .spa-section {
    scroll-margin-top: 60px;
  }

  .spa-main {
    padding: 1.5rem 1rem;
  }
}

.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--zen-charcoal);
  color: var(--zen-cream);
  margin-top: auto;
  padding: 3rem 3rem 3.5rem;
  width: 100%;
}

.site-footer lead {
  display: block;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--zen-cream);
  margin-bottom: 1.75rem;
  line-height: 1.1;
}

.footer-img {
  position: absolute;
  bottom: 0;
  right: 0;
  max-width: 300px;
  /* adjust size as needed */
  height: auto;
  z-index: 0;
  pointer-events: none;
}

.site-footer .footer-links {
  display: flex;
  gap: 4rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.site-footer li,
.site-footer a {
  color: var(--zen-cream);
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-footer a:hover {
  opacity: 0.7;
}

.portfolio-item {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item.hidden {
  display: none;
}

/* Timeline */
.timeline {
  position: relative;
  border-left: 2px solid var(--border-color);
  margin-left: 1rem;
  padding-left: 2rem;
  margin-top: 2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  margin-left: 50px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-2rem - 9px);
  top: 1.5rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
  z-index: 1;
}

.timeline-item.has-logo::before {
  display: none;
}

.timeline-item .timeline-logo.timeline-logo-absolute {
  position: absolute;
  left: calc(-2rem - 25px);
  top: 1rem;
  z-index: 2;
  border: 1px;
  border-color: var(--accent-color);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

/* Gallery */
.gallery-marquee-container {
  /* Provide Splide overflow mask to mimic the fade effect */
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-transform: translateZ(0);
  transform: translateZ(0) !important;
}

.gallery-link {
  border-radius: 2rem;
  /* rounded-5 */
  overflow: hidden;
  position: relative;
  display: block;
}

.gallery-img {
  height: 300px;
  width: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  border-radius: 2rem;
  /* Matches Bootstrap rounded-5 */
  background-color: rgba(33, 37, 41, 0.5);
  /* Matches bg-dark bg-opacity-50 */
  color: #fff;
  /* Matches text-white */
  opacity: 0;
  transition: opacity 0.25s ease;
}

@media (hover: hover) {
  .gallery-link:hover .gallery-overlay {
    opacity: 1;
  }
}

.gallery-overlay--active {
  opacity: 1 !important;
}

@media (max-width: 768px) {
  .gallery-img {
    height: 400px;
  }

  .gallery-marquee-container {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  }
}


/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

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

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.25s;
}

.delay-3 {
  animation-delay: 0.4s;
}

.delay-4 {
  animation-delay: 0.55s;
}

.delay-5 {
  animation-delay: 0.7s;
}

/* Shared icon/utility classes */
.icon-arrow-circle,
.project-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #212529;
  /* bg-dark */
  color: #fff;
  /* text-white */
  border-radius: 50%;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  /* shadow-sm */
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.icon-arrow-rotated {
  transform: rotate(-45deg);
}

.letter-spacing-wide {
  letter-spacing: 0.1em;
}

.text-xs {
  font-size: 0.75rem;
}

.text-separator {
  opacity: 0.4;
  font-size: 1.2rem;
  line-height: 1;
}

/* Article image clamping */
.card-text img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 2rem auto;
}

/* Bento Grid Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(180px, 24vh);
  gap: 1.25rem;
  width: 100%;
}

.bento-item {
  position: relative;
  background-color: transparent;
  overflow: visible;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bento-item:not(.bento-center) {
  cursor: pointer;
}

.bento-img-wrapper {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.bento-img-wrapper .bento-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.bento-item:not(.bento-center):hover {
  z-index: 2;
}

.bento-img {
  transition: transform 0.3s ease;
}

.bento-item:not(.bento-center):hover .bento-img {
  transform: scale(1.05);
}

.bento-item:hover .gallery-overlay {
  opacity: 1;
}

.bento-item:hover .gallery-title {
  transform: translateY(0);
}

.bento-item:hover .project-link-btn {
  transform: translate(6px, -6px);
  background-color: var(--accent-color) !important;
}

/* Grid column/row placements */
.bento-omed {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-macha {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-metabase {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-center {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-sphere {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-atlas {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-voc {
  grid-column: span 2;
  grid-row: span 1;
}

/* Bento stagger animation */
.animate-bento {
  opacity: 0;
  animation: fadeScale 0.7s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fadeScale {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 991px) {
  .bento-item:not(.bento-center) {
    display: none !important;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .bento-center {
    grid-column: span 1;
    min-height: 250px;
  }
}

@media (max-width: 767px) {
  .bento-center {
    min-height: auto;
    padding: 1.5rem 0 0.5rem 0;
  }
}

/* Hero title fluid sizing */
.hero-title-fluid {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
}

/* Text roller / word flipper */
.font-ubuntu {
  font-family: 'Ubuntu', sans-serif;
}

.font-marko {
  font-family: 'Marko One', serif;
  color: #FF8D28;
}

.bento-img-wrapper--darken {
  mix-blend-mode: darken;
}

.text-roller {
  display: inline-flex;
  height: 1.1em;
  overflow: hidden;
  vertical-align: top;
}

.roll-wrapper {
  display: flex;
  flex-direction: column;
  animation: rollWords 10s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

.roll-text {
  height: 1.1em;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes rollWords {

  0%,
  15% {
    transform: translateY(0);
  }

  20%,
  35% {
    transform: translateY(-1.1em);
  }

  40%,
  55% {
    transform: translateY(-2.2em);
  }

  60%,
  75% {
    transform: translateY(-3.3em);
  }

  80%,
  95% {
    transform: translateY(-4.4em);
  }

  100% {
    transform: translateY(-5.5em);
  }
}

.cv-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cv-col {
  display: flex;
  flex-direction: column;
}

.project-content {
  display: flex;
  flex-direction: column;
}

/* Cert chip text sizes */
.cert-chip-title {
  font-size: 0.9rem;
  line-height: 1.2;
}

.cert-chip-meta {
  font-size: 0.75rem;
}

.footer-about-link {
  font-size: 0.95rem;
  opacity: 0.7;
}

/* ── Article (item) page layout ─────────────────────────────────────────── */

.item-layout {
  display: flex;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left sidebar — visible only on lg+ (toggled via d-none d-lg-flex in markup) */
.item-sidebar {
  width: 240px;
  min-width: 240px;
  position: sticky;
  top: 56px;
  /* clears the sticky topnav */
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 3rem 1.5rem 3rem 2rem;
  border-right: 1px solid var(--border-color);
  scrollbar-width: none;
}

.item-sidebar::-webkit-scrollbar {
  display: none;
}

.list-unstyled {
  padding-left: 0;
  list-style: none;
}

.item-sidebar__heading {
  letter-spacing: 0.08em;
  font-size: 0.7rem;
}

.item-sidebar__nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  /* slight gap for pills */
}

.item-sidebar__link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: var(--border-radius-lg);
  display: block;
  transition: all 0.2s ease;
  line-height: 1.35;
}

.item-sidebar__link:hover {
  color: var(--text-primary);
  background: var(--zen-cream-darker);
}

.item-sidebar__link.active {
  color: var(--zen-cream);
  background: var(--zen-charcoal);
  font-weight: 600;
}

/* Main content column */
.item-main {
  flex: 1;
  min-width: 0;
  padding: 3rem 3rem 4rem 4rem;
}

.d-none {
  display: none;
}

@media (min-width: 992px) {
  .d-lg-flex {
    display: flex !important;
  }
}