:root {
    --text: #111111;
    --bg: #ffffff;
    --muted: #f1f1ed;
    --border: #111111;
    --border-soft: rgba(0, 0, 0, 0.12);
    --container: 1480px;
    --content: 1180px;
  }
  
  * {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    color: var(--text);
    background-color: var(--body-bg, #f6f6f1);
    background-image: var(--bg-image, url("https://stemcognito.org/wp-content/uploads/2026/01/abstract-texture-with-silver-lines-and-light-2025-10-15-01-29-32-utc.jpg"));
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
  }
  
  img,
  iframe {
    display: block;
    max-width: 100%;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  button,
  input,
  textarea {
    font: inherit;
  }
  
  .skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  
  .skip-link:focus {
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    background: #fff;
    color: #000;
    z-index: 1000;
  }
  
  .site-header {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
  }
  
  .site-branding {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 28px 20px 30px;
    text-align: center;
  }
  
  .site-title {
    display: inline-block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 1;
    font-weight: 600;
  }
  
  .primary-nav {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.98);
  }
  
  .primary-nav ul {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 0 20px;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0;
  }
  
  .primary-nav li {
    border-left: 1px solid var(--border);
  }
  
  .primary-nav li:last-child {
    border-right: 1px solid var(--border);
  }
  
  .primary-nav a {
    display: block;
    min-width: 108px;
    padding: 16px 22px;
    text-align: center;
    font-size: 1.05rem;
  }
  
  .primary-nav a.active {
    font-weight: 700;
  }
  
  .site-content {
    padding: 40px 20px 48px;
  }
  
  .content-wrap {
    width: min(100%, var(--content));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
  }
  
  .post-card,
  .sidebar .widget {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
  }
  
  .post-card {
    padding: 24px;
  }

  .article-header {
    margin: 0 0 24px;
  }

  .article-header h1,
  .contact-title {
    margin: 0;
  }

  .article-body > :first-child {
    margin-top: 0;
  }

  .article-body > :last-child {
    margin-bottom: 0;
  }
  
  .post-card h1 {
    margin: 0 0 24px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.6rem, 4vw, 4.4rem);
    line-height: 1.18;
    font-weight: 600;
  }
  
  .post-card h2 {
    margin: 30px 0 14px;
    font-size: clamp(2rem, 2.6vw, 3rem);
    line-height: 1.2;
    font-weight: 400;
  }
  
  .post-card p {
    margin: 0 0 18px;
    font-size: 1.05rem;
    line-height: 1.7;
  }
  
  .post-card strong {
    font-weight: 700;
  }
  
  .featured-image {
    margin: 24px 0 16px;
  }
  
  .featured-image img {
    width: 100%;
    height: auto;
  }

  .article-image,
  .post-image,
  .featured-image {
    margin: 24px 0 16px;
  }

  .article-image img,
  .post-image img,
  .featured-image img {
    width: 100%;
    height: auto;
  }
  
  .sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  
  .sidebar .widget {
    padding: 24px;
  }
  
  .search-form label {
    display: block;
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 700;
  }
  
  .search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  
  .search-row input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 0;
    background: #fff;
  }
  
  .search-row button {
    height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
  }
  
  .meta-widget {
    background: rgba(245, 245, 241, 0.96) !important;
  }
  
  .meta-widget h3 {
    margin: 0 0 14px;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
  }
  
  .meta-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  .meta-widget li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
  }
  
  .meta-widget li:last-child {
    border-bottom: 0;
  }
  
  .meta-widget a {
    font-size: 1rem;
  }
  
  .video-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    background: #ddd;
  }
  
  .video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }
  
  .site-footer {
    background: #000;
    color: #fff;
    border-top: 1px solid #000;
  }
  
  .site-info {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    font-size: 0.95rem;
  }
  
  @media (max-width: 991px) {
    .content-wrap {
      grid-template-columns: 1fr;
    }
  
    .sidebar {
      max-width: 420px;
    }
  }
  
  @media (max-width: 767px) {
    .site-branding {
      padding: 22px 16px 24px;
    }
  
    .primary-nav ul {
      padding: 0 10px;
    }
  
    .primary-nav a {
      min-width: 96px;
      padding: 14px 16px;
    }
  
    .site-content {
      padding: 24px 12px 32px;
    }
  
    .post-card,
    .sidebar .widget {
      padding: 18px;
    }
  
    .search-row {
      grid-template-columns: 1fr;
    }
  
    .search-row button {
      width: 100%;
    }
  
    .sidebar {
      max-width: 100%;
    }
  }
  .contact-card {
    min-height: 640px;
  }
  
  .contact-card h1 {
    margin: 0 0 18px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 4vw, 4.2rem);
    line-height: 1.05;
    font-weight: 600;
  }
  
  .contact-form {
    max-width: 430px;
  }
  
  .contact-form .form-group {
    margin-bottom: 18px;
  }
  
  .contact-form label {
    display: block;
    margin: 0 0 6px;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
  }
  
  .contact-form input,
  .contact-form textarea {
    display: block;
    border: 1px solid var(--border);
    border-radius: 0;
    background: #fff;
    color: var(--text);
    font: inherit;
    box-shadow: none;
    outline: none;
  }
  
  .contact-form input {
    width: 228px;
    height: 40px;
    padding: 8px 10px;
  }
  
  .contact-form textarea {
    width: 278px;
    min-height: 182px;
    padding: 10px;
    resize: vertical;
  }
  
  .contact-form input:focus,
  .contact-form textarea:focus {
    border-color: #555;
  }
  
  .contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
  }
  
  .contact-submit:hover,
  .contact-submit:focus {
    background: #111;
  }
  
  @media (max-width: 991px) {
    .contact-card {
      min-height: 0;
    }
  
    .contact-form {
      max-width: 100%;
    }
  
    .contact-form input,
    .contact-form textarea {
      width: 100%;
    }
  }


/* =========================
   ALT CREATIVE ENHANCEMENT LAYER
   Keeps original structure, adds a different interaction style
   ========================= */

:root {
  --accent: #c5aa70;
  --accent-2: #b7c3db;
  --accent-soft: rgba(197, 170, 112, 0.16);
  --glass: rgba(255, 255, 255, 0.88);
  --shadow-soft: 0 16px 36px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 24px 54px rgba(0, 0, 0, 0.12);
}

body {
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.24), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(197, 170, 112, 0.15), transparent 20%),
    linear-gradient(135deg, rgba(255,255,255,0.05), transparent 40%, rgba(0,0,0,0.02));
  opacity: 0.95;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.02) 0,
    rgba(255, 255, 255, 0.02) 2px,
    transparent 2px,
    transparent 12px
  );
  opacity: 0.35;
}

.site-header {
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-soft);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(17,17,17,0), rgba(17,17,17,0.28), rgba(17,17,17,0));
}

.site-title {
  position: relative;
  transition: transform 0.28s ease, text-shadow 0.28s ease;
}

.site-title:hover {
  transform: translateY(-2px);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.primary-nav {
  position: relative;
  z-index: 4;
}

.primary-nav a {
  position: relative;
  transition: background-color 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.primary-nav a:hover,
.primary-nav a:focus {
  background: rgba(17, 17, 17, 0.045);
  transform: translateY(-1px);
  outline: none;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 42px;
  height: 2px;
  background: linear-gradient(90deg, #111111, var(--accent));
  transform: translateX(-50%) scaleX(0.2);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.primary-nav a:hover::after,
.primary-nav a.active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.fx-ribbon {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(15, 15, 15, 0.96), rgba(30, 30, 30, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  z-index: 3;
}

.fx-ribbon::before,
.fx-ribbon::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 1;
  pointer-events: none;
}

.fx-ribbon::before {
  left: 0;
  background: linear-gradient(90deg, rgba(15,15,15,0.96), rgba(15,15,15,0));
}

.fx-ribbon::after {
  right: 0;
  background: linear-gradient(270deg, rgba(30,30,30,0.96), rgba(30,30,30,0));
}

.fx-ribbon-track {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  min-width: max-content;
  padding: 10px 0;
  animation: fxRibbonSlide 34s linear infinite;
}

.fx-ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.fx-ribbon-item::after {
  content: "•";
  font-size: 0.92rem;
  color: rgba(197, 170, 112, 0.9);
}

@keyframes fxRibbonSlide {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

.content-wrap {
  position: relative;
  z-index: 2;
  padding-bottom: 22px;
}

.post-card,
.sidebar .widget {
  position: relative;
  box-shadow: var(--shadow-soft);
  border-color: rgba(17, 17, 17, 0.14);
  backdrop-filter: blur(2px);
  transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

.post-card:hover,
.sidebar .widget:hover {
  box-shadow: var(--shadow-strong);
  border-color: rgba(17, 17, 17, 0.22);
}

.post-card::before,
.sidebar .widget::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,0.08), transparent 36%, rgba(197, 170, 112, 0.06));
  opacity: 0;
  transition: opacity 0.28s ease;
}

.post-card:hover::before,
.sidebar .widget:hover::before {
  opacity: 1;
}

.post-card h1,
.post-card h2 {
  text-wrap: balance;
}

.post-card h2 {
  position: relative;
  padding-bottom: 8px;
}

.post-card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 2px;
  background: linear-gradient(90deg, rgba(17,17,17,0.95), rgba(197,170,112,0.8), rgba(17,17,17,0));
  transform: scaleX(0.35);
  transform-origin: left center;
  opacity: 0.22;
  transition: transform 0.34s ease, opacity 0.34s ease;
}

.post-card h2.is-live::after {
  transform: scaleX(1);
  opacity: 1;
}

.featured-image {
  overflow: hidden;
}

.featured-image img,
.video-frame {
  transition: transform 0.38s ease, box-shadow 0.38s ease, filter 0.38s ease;
}

.featured-image img:hover,
.video-frame:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
  filter: saturate(1.02) contrast(1.02);
}

.is-lightbox-ready {
  cursor: zoom-in;
}

.fx-dock {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 998;
  display: flex;
  gap: 10px;
}

.fx-dock-btn {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(17,17,17,0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.fx-dock-btn:hover,
.fx-dock-btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  outline: none;
}

.fx-dock-btn.is-active {
  background: linear-gradient(135deg, #111111, #2a2a2a);
  color: #ffffff;
  border-color: #111111;
}

.reader-mode .post-card p {
  font-size: 1.12rem;
  line-height: 1.9;
}

.reader-mode .sidebar {
  opacity: 0.5;
  filter: saturate(0.9);
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.frame-mode .post-card,
.frame-mode .sidebar .widget,
.frame-mode .site-header,
.frame-mode .site-footer {
  box-shadow:
    0 0 0 1px rgba(197, 170, 112, 0.46),
    0 18px 42px rgba(0, 0, 0, 0.12);
}

.motion-mode .fx-ribbon-track {
  animation-duration: 22s;
}

.motion-mode .site-title,
.motion-mode .back-to-top,
.motion-mode .search-row button,
.motion-mode .contact-submit {
  background-image: linear-gradient(120deg, #111111, #373737, #6d5e3e, #111111);
  background-size: 220% 220%;
  animation: fxShift 5s linear infinite;
}

@keyframes fxShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

.section-rail {
  position: absolute;
  top: 120px;
  right: -62px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-rail-dot {
  position: relative;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(17,17,17,0.35);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.section-rail-dot::after {
  content: attr(data-label);
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%) translateX(8px);
  padding: 8px 10px;
  background: rgba(17, 17, 17, 0.92);
  color: #ffffff;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.section-rail-dot:hover,
.section-rail-dot:focus,
.section-rail-dot.is-active {
  transform: scale(1.14);
  background: #111111;
  border-color: #111111;
}

.section-rail-dot:hover::after,
.section-rail-dot:focus::after,
.section-rail-dot.is-active::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.fx-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.18);
  z-index: 10000;
}

.fx-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #111111, var(--accent), var(--accent-2), #ffffff);
  box-shadow: 0 0 12px rgba(197, 170, 112, 0.26);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateX(-20px) translateY(6px) scale(0.985);
  transition: opacity 0.62s ease, transform 0.62s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #111111, #2b2b2b);
  color: #ffffff;
  font-size: 1.18rem;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus {
  transform: translateY(-2px);
  box-shadow: 0 22px 38px rgba(0, 0, 0, 0.24);
  outline: none;
}

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

.toast-stack {
  position: fixed;
  right: 18px;
  top: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  min-width: 220px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid rgba(17,17,17,0.12);
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
  opacity: 0;
  cursor: pointer;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

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

.toast-success { border-color: rgba(64, 92, 24, 0.24); }
.toast-warning { border-color: rgba(135, 91, 16, 0.26); }
.toast-info { border-color: rgba(17, 17, 17, 0.18); }

.search-row input,
.contact-form input,
.contact-form textarea {
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.search-row input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(17,17,17,0.45);
  box-shadow: 0 0 0 4px rgba(197, 170, 112, 0.16);
  outline: none;
}

.search-row button,
.contact-submit {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.search-row button::before,
.contact-submit::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -120%;
  width: 48%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.45s ease;
}

.search-row button:hover::before,
.contact-submit:hover::before {
  left: 120%;
}

.search-row button:hover,
.contact-submit:hover,
.search-row button:focus,
.contact-submit:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
  outline: none;
}

.search-row button.is-busy,
.contact-submit.is-busy {
  opacity: 0.78;
  cursor: progress;
}

.field-error {
  border-color: #7b2828 !important;
  box-shadow: 0 0 0 4px rgba(123, 40, 40, 0.14) !important;
}

.shake {
  animation: inputShake 0.34s ease;
}

@keyframes inputShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

.fx-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 8, 8, 0.82);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.fx-lightbox.is-visible {
  opacity: 1;
}

.fx-lightbox-frame {
  position: relative;
  max-width: min(1000px, 92vw);
  max-height: 90vh;
}

.fx-lightbox-frame img {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.fx-lightbox-caption {
  margin: 12px 0 0;
  color: rgba(255,255,255,0.82);
  text-align: center;
  font-size: 0.98rem;
}

.fx-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
}

.lightbox-open {
  overflow: hidden;
}

.site-footer {
  display: block;
  margin-top: 18px;
  background: linear-gradient(135deg, rgba(8, 8, 8, 0.96), rgba(26, 26, 26, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.16);
  position: relative;
  z-index: 3;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.34), rgba(255,255,255,0));
}

.site-info {
  position: relative;
  z-index: 1;
  padding: 22px 20px 26px;
  letter-spacing: 0.04em;
}

.mobile-nav-toggle {
  display: none;
}

@media (max-width: 1280px) {
  .section-rail {
    display: none;
  }
}

@media (max-width: 767px) {
  .site-branding {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }

  .site-title {
    font-size: clamp(2.2rem, 10vw, 3.4rem);
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(17,17,17,0.18);
    background: rgba(255, 255, 255, 0.96);
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    width: 22px;
    height: 2px;
    background: #111111;
    transition: transform 0.24s ease, opacity 0.24s ease;
  }

  .site-header.nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-nav {
    display: none;
  }

  .site-header.nav-open .primary-nav {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    padding: 0;
  }

  .primary-nav li,
  .primary-nav li:last-child {
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(17,17,17,0.1);
  }

  .primary-nav a {
    width: 100%;
    min-width: 0;
    text-align: left;
    padding: 15px 16px;
  }

  .primary-nav a::after {
    left: 16px;
    transform: scaleX(0.2);
    transform-origin: left center;
    width: 52px;
  }

  .primary-nav a:hover::after,
  .primary-nav a.active::after {
    transform: scaleX(1);
  }

  .fx-ribbon-track {
    gap: 24px;
    padding: 9px 0;
  }

  .fx-ribbon-item {
    gap: 24px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .fx-dock {
    left: 12px;
    bottom: 14px;
    gap: 8px;
  }

  .fx-dock-btn {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .toast-stack {
    left: 12px;
    right: 12px;
    top: 14px;
  }

  .toast {
    max-width: none;
  }

  .back-to-top {
    right: 12px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fx-ribbon-track,
  .motion-mode .site-title,
  .motion-mode .back-to-top,
  .motion-mode .search-row button,
  .motion-mode .contact-submit,
  .reveal-on-scroll,
  .post-card,
  .sidebar .widget,
  .featured-image img,
  .video-frame,
  .fx-dock-btn,
  .back-to-top,
  .toast {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
