:root {
  --bg-0: #faf8f3;
  --bg-1: #eef2f4;
  --panel: rgba(255, 255, 255, 0.82);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --text: #142235;
  --muted: #66788f;
  --line: rgba(20, 34, 53, 0.12);
  --line-strong: rgba(20, 34, 53, 0.22);
  --accent: #cf6b44;
  --accent-soft: #efd7ca;
  --shadow: 0 18px 44px rgba(24, 39, 58, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  position: relative;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 12%, rgba(239, 215, 202, 0.55) 0%, transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(191, 214, 223, 0.42) 0%, transparent 22%),
    linear-gradient(145deg, var(--bg-0) 0%, var(--bg-1) 100%);
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(20, 34, 53, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 34, 53, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 88%);
}

h1,
h2,
h3,
.brand {
  font-family: "Sora", "Manrope", sans-serif;
  color: #101b2c;
  letter-spacing: -0.03em;
}

.shape-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.soft-mask {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(250, 248, 243, 0) 42%, rgba(250, 248, 243, 0.28) 100%);
}

.top-nav,
main,
footer {
  position: relative;
  z-index: 3;
}

.site-wrap {
  max-width: 1120px;
}

.top-nav {
  border-bottom: 1px solid rgba(20, 34, 53, 0.08);
  background: rgba(252, 251, 248, 0.22);
  backdrop-filter: blur(10px);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.top-nav.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 24px rgba(24, 39, 58, 0.07);
  background: rgba(252, 251, 248, 0.34);
}

.brand {
  font-size: clamp(1.04rem, 2vw, 1.22rem);
}

.nav-list {
  gap: 0.28rem;
}

.nav-link {
  color: #52657c;
  font-size: 0.81rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.03em;
  padding-inline: 0.82rem !important;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
  color: #17314c;
  background: rgba(207, 107, 68, 0.1);
}

.nav-link-highlight {
  color: #8d4628;
  background: transparent;
}

.nav-link-highlight:hover,
.nav-link-highlight:focus {
  color: #763b22;
  background: transparent;
}

.hero-minimal {
  padding-top: clamp(1.7rem, 4.4vw, 3.4rem);
}

.nameplate {
  padding-bottom: 1.4rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow {
  margin: 0;
  color: #71849d;
  text-transform: uppercase;
  font-size: 0.67rem;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.name-title {
  font-size: clamp(2.9rem, 8vw, 6rem);
  line-height: 0.95;
}

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

.intro-panel {
  min-height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: linear-gradient(150deg, var(--panel-strong) 0%, var(--panel) 100%);
  box-shadow: var(--shadow);
}

.intro-panel-role {
  display: flex;
  flex-direction: column;
}

.intro-panel-primary {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 240, 236, 0.88) 100%);
}

.intro-panel-primary .muted {
  color: #4d6078;
  font-weight: 500;
}

.panel-label {
  margin: 0 0 0.9rem;
  color: #7a8ba1;
  text-transform: uppercase;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.role-copy {
  color: #1b2f46;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
}

.role-company {
  font-size: 0.88rem;
  margin-top: auto !important;
  white-space: nowrap;
}

.intro-panel-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.intro-panel-stats {
  display: flex;
  flex-direction: column;
}

.intro-links {
  width: 100%;
}

.intro-links .btn {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
}

.mini-stats {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-block: auto;
}

.mini-stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 4.25rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.mini-stats strong {
  display: block;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1.1rem;
  color: #132840;
}

.mini-stats span {
  display: block;
  margin-top: 0.18rem;
  color: #75879d;
  font-size: 0.67rem;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
}

.section {
  padding-top: clamp(2.9rem, 5vw, 4.5rem);
}

.section-head {
  margin-bottom: 1rem;
}

.section-title {
  margin: 0;
  font-size: clamp(1.5rem, 4.4vw, 2.5rem);
}

.experience-columns {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  align-items: stretch;
}

.experience-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(24, 39, 58, 0.05);
}

.experience-card h3 {
  line-height: 1.2;
  min-height: 2.4em;
}

.experience-date {
  margin: 0 0 0.45rem;
  color: #73859b;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.skills-rack {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.tech-tile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 24px rgba(24, 39, 58, 0.04);
  color: #22384f;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

.tech-tile-feature {
  align-items: center;
  border-color: rgba(207, 107, 68, 0.2);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 240, 236, 0.8) 100%);
}

.tech-tile-feature .panel-label {
  margin-bottom: 0.18rem;
}

.tech-tile-feature h3 {
  color: #17283c;
}

.skill-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.award-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 10px 24px rgba(24, 39, 58, 0.04);
}

.award-card-lead {
  border-color: rgba(207, 107, 68, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 240, 236, 0.82) 100%);
}

.award-tag {
  margin: 0 0 0.7rem;
  color: #7a8ba1;
  text-transform: uppercase;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  font-weight: 700;
}

.award-name {
  margin: 0;
  font-size: 1rem;
}

.award-date {
  margin: auto 0 0;
  padding-top: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.contact-strip {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 239, 236, 0.8) 100%);
  box-shadow: var(--shadow);
}

.contact-title {
  font-size: clamp(1.2rem, 3.2vw, 1.8rem);
}

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

.btn.btn-email {
  text-transform: none;
}

.muted {
  color: var(--muted);
}

.btn {
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.68rem 1.08rem;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn-dark {
  background: linear-gradient(135deg, #cf6b44 0%, #dd8a61 100%);
  border-color: #cf6b44;
}

.btn-dark:hover,
.btn-dark:focus {
  background: linear-gradient(135deg, #bf5f3a 0%, #d27b4f 100%);
  border-color: #bf5f3a;
  box-shadow: 0 10px 22px rgba(207, 107, 68, 0.18);
  transform: translateY(-1px);
}

.btn-outline-dark {
  color: #22384f;
  border-color: rgba(20, 34, 53, 0.18);
  background: rgba(255, 255, 255, 0.58);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: rgba(207, 107, 68, 0.08);
  border-color: rgba(207, 107, 68, 0.28);
  color: #1a2d43;
  transform: translateY(-1px);
}

.page-shell {
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding-block: clamp(2rem, 5vw, 3.8rem);
}

.page-stage {
  padding: clamp(1rem, 3vw, 1.45rem);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: linear-gradient(150deg, var(--panel-strong) 0%, var(--panel) 100%);
  box-shadow: var(--shadow);
}

.page-points {
  display: grid;
  gap: 0.72rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.point-item {
  padding: 0.9rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.68);
}

.point-item h2 {
  margin-bottom: 0.32rem;
  font-size: 1rem;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.blog-shell {
  min-height: 100dvh;
  padding-block: clamp(2.2rem, 5vw, 4.8rem);
}

.blog-masthead {
  display: grid;
  gap: 1.25rem;
  padding-bottom: clamp(1.4rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--line);
}

.blog-masthead-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.blog-stamp {
  color: #7c8da3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.blog-masthead-grid {
  display: grid;
  gap: 1.2rem;
}

.blog-kicker {
  margin: 0;
  max-width: 28rem;
  color: #51657c;
  font-size: 1rem;
  line-height: 1.6;
}

.blog-title {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 6.1rem);
  line-height: 0.9;
}

.blog-intro-card {
  max-width: 30rem;
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(20, 34, 53, 0.1);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 10px 30px rgba(24, 39, 58, 0.04);
}

.blog-intro {
  color: #4d6178;
  font-size: 1rem;
  line-height: 1.8;
}

.blog-intro-signoff {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(20, 34, 53, 0.1);
}

.blog-intro-signoff span {
  display: block;
  color: #8595a8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.blog-intro-signoff strong {
  display: block;
  margin-top: 0.38rem;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.55;
  color: #1a2d43;
}

.blog-section {
  padding-top: clamp(2.4rem, 5vw, 4rem);
}

.blog-section-top {
  max-width: 40rem;
  margin-bottom: 1rem;
}

.journal-feature {
  display: grid;
  gap: 1.25rem;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(20, 34, 53, 0.12);
  border-bottom: 1px solid rgba(20, 34, 53, 0.12);
}

.journal-feature-copy {
  max-width: 42rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: #72849a;
  text-transform: uppercase;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.feature-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.journal-feature-copy p {
  color: #4a5e75;
  line-height: 1.74;
}

.feature-quote {
  max-width: 34rem;
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(207, 107, 68, 0.45);
  color: #17314b;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.journal-feature-note {
  align-self: end;
  max-width: 18rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(20, 34, 53, 0.12);
}

.journal-feature-note p {
  color: #5a6c82;
  line-height: 1.7;
}

.journal-list {
  border-top: 1px solid rgba(20, 34, 53, 0.12);
}

.journal-entry {
  display: grid;
  gap: 0.85rem;
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(20, 34, 53, 0.12);
}

.journal-entry-date,
.journal-entry-time,
.journal-entry-tag {
  margin: 0;
  color: #7a8aa0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.journal-entry-copy {
  max-width: 40rem;
}

.journal-entry h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.16rem, 2vw, 1.42rem);
  line-height: 1.28;
}

.journal-entry-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.journal-entry-time {
  color: #98a5b5;
}

.blog-postscript {
  max-width: 40rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(20, 34, 53, 0.12);
}

.blog-postscript p:last-child {
  color: #4e6178;
  line-height: 1.8;
}

.memory-lane-grid {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.memory-card {
  padding: 1rem 1.05rem;
  border: 1px solid rgba(20, 34, 53, 0.1);
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.56);
}

.memory-label {
  margin: 0 0 0.55rem;
  color: #8191a5;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.memory-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

.memory-card p:last-child {
  color: #556981;
  line-height: 1.7;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

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

.footer-text {
  color: #73859a;
  margin-top: 0.2rem;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .btn,
  .top-nav,
  .experience-card {
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.7rem;
    border-top: 1px solid rgba(20, 34, 53, 0.08);
    background: rgba(252, 251, 248, 0.14);
    backdrop-filter: blur(8px);
    padding-top: 0.55rem;
  }
}

@media (max-width: 575.98px) {
  .intro-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 768px) {
  .intro-grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .experience-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .experience-card .muted {
    margin-top: auto !important;
  }

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

  .contact-strip {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .contact-actions {
    justify-self: end;
    align-self: center;
  }

  .page-points {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-masthead-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: end;
  }

  .journal-feature {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    align-items: start;
  }

  .journal-entry {
    grid-template-columns: 110px minmax(0, 1fr) 90px;
    align-items: start;
  }

  .journal-entry-time {
    text-align: right;
    padding-top: 0.1rem;
  }

  .memory-lane-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .hero-minimal {
    padding-top: clamp(2.2rem, 4.6vw, 4rem);
  }

  .nameplate {
    margin-bottom: 1.5rem;
  }

  .intro-grid {
    grid-template-columns: 1.7fr 0.72fr 0.93fr 0.8fr;
  }

  .skills-rack {
    grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr));
    align-items: stretch;
  }

  .tech-tile {
    min-height: 100%;
  }

  .tech-tile-feature {
    padding-right: 0.9rem;
  }

  .award-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-shell {
  min-height: 100dvh;
  padding-block: clamp(2.2rem, 5vw, 4.8rem);
}

.blog-card-hero,
.feature-card-grid,
.memory-lane-grid {
  display: grid;
  gap: 0.95rem;
}

.post-card-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% - 0.25rem);
  gap: 0.95rem;
  background: transparent;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.post-card-grid::-webkit-scrollbar {
  display: none;
}

.memory-lane-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(100% - 0.25rem);
  grid-template-columns: none;
  gap: 0.95rem;
  background: transparent;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.memory-lane-track::-webkit-scrollbar {
  display: none;
}

.stories-rail {
  position: relative;
  background: transparent;
  overflow: visible;
  padding-inline: 0.6rem;
}

.stories-edge-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid rgba(20, 34, 53, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #4f6480;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  opacity: 0.74;
  box-shadow: 0 8px 18px rgba(24, 39, 58, 0.05);
  transition: opacity 160ms ease, transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.stories-edge-btn-left {
  left: -0.18rem;
}

.stories-edge-btn-right {
  right: -0.18rem;
}

.stories-rail:hover .stories-edge-btn,
.stories-edge-btn:hover,
.stories-edge-btn:focus-visible {
  opacity: 0.95;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(207, 107, 68, 0.24);
  color: #22384f;
}

.stories-edge-btn-left:hover,
.stories-edge-btn-left:focus-visible {
  transform: translateY(-50%) translateX(0.08rem);
}

.stories-edge-btn-right:hover,
.stories-edge-btn-right:focus-visible {
  transform: translateY(-50%) translateX(-0.08rem);
}

.blog-card {
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(20, 34, 53, 0.1);
  border-radius: 1.35rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 244, 239, 0.74) 100%);
  box-shadow: 0 14px 34px rgba(24, 39, 58, 0.05);
}

.blog-card-hero-main {
  display: grid;
  gap: 0.85rem;
  padding: clamp(0.95rem, 2.6vw, 1.35rem);
  width: 100%;
  max-width: none;
}

.blog-card-hero-side {
  align-self: stretch;
}

.blog-title {
  max-width: none;
  font-size: clamp(2.25rem, 5.4vw, 4.2rem);
  line-height: 1.05;
  text-wrap: balance;
}

.blog-intro {
  color: #4d6178;
  max-width: none;
  font-size: 1.04rem;
  line-height: 1.85;
}

.blog-section {
  padding-top: clamp(2.4rem, 5vw, 4rem);
}

.blog-section-top {
  max-width: none;
  margin-bottom: 1rem;
}

.featured-section-title {
  font-size: calc(clamp(1.5rem, 4.4vw, 2.5rem) - 7px);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  color: #72849a;
  text-transform: uppercase;
  font-size: 0.67rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.feature-title {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3.6vw, 2.5rem);
}

.feature-story-card p,
.whole-story-card p,
.post-card p,
.memory-card p:last-child {
  color: #4a5e75;
  line-height: 1.74;
}

.feature-story-side {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9) 0%, rgba(238, 228, 221, 0.76) 100%);
}

.feature-story-card {
  width: 100%;
  max-width: none;
}

.feature-story-media-btn {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.feature-story-media {
  margin: 0 0 0.9rem;
  border: 1px solid rgba(20, 34, 53, 0.1);
  border-radius: 1.05rem;
  overflow: hidden;
}

.feature-story-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.whole-story-card {
  width: 100%;
  max-width: none;
  padding: clamp(1.15rem, 3vw, 1.5rem);
}

.feature-quote {
  max-width: 34rem;
  margin-top: 1rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(207, 107, 68, 0.45);
  color: #17314b;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  scroll-snap-align: start;
  padding: 0.76rem 0.9rem;
}

.post-card h3,
.memory-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  line-height: 1.32;
}

.memory-lane-track .memory-card {
  scroll-snap-align: start;
}

.post-card,
.memory-card {
  box-shadow: none;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-top: auto;
  padding-top: 1rem;
}

.post-card > p {
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.post-card-placeholder {
  justify-content: center;
}

.post-card-placeholder h3 {
  margin-top: 0.1rem;
}

.story-read-time {
  color: #7a8aa0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.post-read-more {
  border-color: rgba(207, 107, 68, 0.24);
  background: rgba(207, 107, 68, 0.06);
  color: #a25536;
}

.post-read-more:hover,
.post-read-more:focus {
  background: rgba(207, 107, 68, 0.12);
  border-color: rgba(207, 107, 68, 0.34);
  color: #8f472b;
}

.memory-label {
  margin: 0 0 0.55rem;
  color: #7a8aa0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .post-card-grid {
    grid-auto-columns: calc((100% - 0.95rem) / 2);
  }

  .memory-lane-track {
    grid-auto-columns: calc((100% - 0.95rem) / 2);
  }

  .memory-lane-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .memory-lane-grid.memory-lane-track {
    grid-template-columns: none;
  }
}

@media (min-width: 992px) {
  .post-card-grid {
    grid-auto-columns: calc((100% - 1.9rem) / 3);
  }

  .memory-lane-track {
    grid-auto-columns: calc((100% - 1.9rem) / 3);
  }
}

.blog-top-nav {
  border-bottom: 1px solid rgba(20, 34, 53, 0.08);
}

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

.blog-top-actions .btn {
  padding: 0.34rem 0.68rem;
  font-size: 0.74rem;
}

.story-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 1.25rem 1rem;
}

.story-modal.open {
  display: block;
}

.story-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 36, 0.54);
  backdrop-filter: blur(6px);
}

.story-modal-dialog {
  position: relative;
  width: min(82vw, 1120px);
  margin: min(4vh, 2rem) auto;
  padding: 1.25rem;
  border: 1px solid rgba(20, 34, 53, 0.12);
  border-radius: 1.5rem;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 241, 236, 0.94) 100%);
  box-shadow: 0 30px 80px rgba(15, 24, 36, 0.22);
}

.story-modal-content {
  padding-right: 0;
}

.story-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.95rem;
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 34, 53, 0.08);
  color: #1a2d43;
  font-size: 1.35rem;
  line-height: 1;
}

.story-modal-article {
  width: 100%;
  max-width: none;
  padding: 0.45rem 1rem 0.35rem;
}

.story-modal-article h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.story-modal-article p {
  color: #4a5e75;
  line-height: 1.8;
}

.story-modal-article .feature-quote {
  max-width: none;
  margin-top: 0.7rem;
  margin-bottom: 1.25rem;
}

.story-bridge-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: #a25536;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.story-bridge-link:hover,
.story-bridge-link:focus-visible {
  color: #8a4529;
}

.story-bridge-link-inline {
  vertical-align: baseline;
}

.story-modal-gallery {
  margin-top: 1.4rem;
}

.story-modal-gallery-title {
  margin: 0 0 0.9rem;
  color: #7a8aa0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-modal-strip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 53.95rem);
  margin-inline: auto;
  margin-top: 0;
  overflow-x: auto;
  box-sizing: border-box;
  padding-bottom: 0.22rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.story-modal-strip-rail {
  width: min(100%, 1060px);
  margin-top: 0.1rem;
  margin-inline: auto;
}

.story-modal-strip-rail .stories-edge-btn-left {
  left: -0.08rem;
}

.story-modal-strip-rail .stories-edge-btn-right {
  right: -0.08rem;
}

.story-modal-strip-centered {
  justify-content: center;
  width: 100%;
  overflow-x: visible;
}

.story-modal-strip-centered .story-modal-strip-card {
  width: min(13rem, 100%);
}

.story-modal-strip::-webkit-scrollbar {
  display: none;
}

.story-modal-strip-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(20, 34, 53, 0.12);
  border-radius: 0.85rem;
  background: rgba(248, 250, 252, 0.96);
  overflow: hidden;
  cursor: zoom-in;
  scroll-snap-align: start;
  transition: transform 140ms ease, box-shadow 140ms ease;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 13rem;
  aspect-ratio: 1 / 1;
}

.story-modal-strip-card:hover,
.story-modal-strip-card:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(24, 39, 58, 0.1);
}

.story-modal-strip-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-modal-strip-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  margin-top: 0.62rem;
}

.story-modal-strip-dot {
  width: 0.44rem;
  height: 0.44rem;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(79, 100, 128, 0.26);
  transition: transform 140ms ease, background-color 140ms ease, opacity 140ms ease;
}

.story-modal-strip-dot:hover,
.story-modal-strip-dot:focus-visible {
  background: rgba(79, 100, 128, 0.44);
}

.story-modal-strip-dot.is-active {
  transform: scale(1.2);
  background: rgba(207, 107, 68, 0.95);
}

body.modal-open {
  overflow: hidden;
}

.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 48;
  display: none;
}

.image-lightbox.open {
  display: grid;
  place-items: center;
}

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 24, 0.72);
  backdrop-filter: blur(4px);
}

.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(94vw, 1400px);
  max-height: 92vh;
  padding: 1.1rem 1.1rem 0.6rem;
}

.image-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 1.7rem);
  margin: 0 auto;
  border: 6px solid #fff;
  border-radius: 0.9rem;
  object-fit: contain;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.image-lightbox-place {
  margin: 0.55rem auto 0.1rem;
  color: rgba(242, 246, 252, 0.94);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.image-lightbox-close {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #18273b;
  font-size: 1.35rem;
  line-height: 1;
}

.image-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(20, 34, 53, 0.54);
  color: #f5f8fd;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 140ms ease, border-color 140ms ease;
}

.image-lightbox-nav:hover,
.image-lightbox-nav:focus-visible {
  background: rgba(20, 34, 53, 0.72);
  border-color: rgba(255, 255, 255, 0.55);
}

.image-lightbox-nav-prev {
  left: 0.25rem;
}

.image-lightbox-nav-next {
  right: 0.25rem;
}

@media (max-width: 767.98px) {
  .story-modal-article {
    padding: 0.45rem 0.6rem 0.35rem;
  }

  .story-modal-strip-rail .stories-edge-btn {
    display: none;
  }

  .stories-edge-btn {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.9rem;
  }

  .stories-rail {
    padding-inline: 0.35rem;
  }

  .stories-edge-btn-left {
    left: -0.12rem;
  }

  .stories-edge-btn-right {
    right: -0.12rem;
  }

  .image-lightbox-dialog {
    width: calc(100vw - 0.75rem);
    padding: 0.85rem 0.85rem 0.45rem;
  }

  .image-lightbox-img {
    border-width: 4px;
    border-radius: 0.65rem;
  }

  .image-lightbox-place {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .image-lightbox-nav {
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
  }

  .story-modal-strip {
    gap: 0.55rem;
    width: 100%;
  }

  .story-modal-strip-card {
    width: calc((100% - 0.55rem) / 2);
    max-width: none;
  }

  .story-modal-strip-centered .story-modal-strip-card {
    width: calc((100% - 0.55rem) / 2);
  }

  .story-modal-strip-image {
    width: 100%;
  }

  .story-modal-dialog {
    width: 100%;
    max-width: 42rem;
    margin: 0.625rem auto;
    padding: 1rem;
  }

  .post-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (min-width: 768px) and (max-width: 1366px) {
  .story-modal-strip-rail .stories-edge-btn {
    display: none;
  }

  .story-modal-strip {
    gap: 0.65rem;
    width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024.98px) {
  .story-modal-strip-card {
    width: calc((100% - 1.3rem) / 3);
  }

  .story-modal-strip-centered .story-modal-strip-card {
    width: calc((100% - 1.3rem) / 3);
  }
}

@media (min-width: 1025px) and (max-width: 1366px) {
  .story-modal-strip-card {
    width: calc((100% - 1.95rem) / 4);
  }

  .story-modal-strip-centered .story-modal-strip-card {
    width: calc((100% - 1.95rem) / 4);
  }
}
