/* --------------------------------------------------
   Ricardo Oriol — Dotted Architectural Canvas
   Crisp monochrome contrast with tactile dotted grid texture
-------------------------------------------------- */

:root {
  /* Dark Mode: Crisp Obsidian & White Dotted Grid */
  --bg: #09090b;
  --dot-color: rgba(255, 255, 255, 0.12);
  --bg-surface: #121316;
  --bg-hover: #1c1d22;
  --text-main: #ffffff;
  --text-muted: #f0f0f2;
  --text-faint: #d4d4d8;
  --link-hover: #ffffff;
  
  --border-hairline: rgba(255, 255, 255, 0.15);
  --border-active: #ffffff;
  --selection: rgba(255, 255, 255, 0.25);

  --accent-dot: #10b981;

  --font-display: 'Space Grotesk', -apple-system, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
  /* Light Mode: Ultra-High Contrast Deep Black Text & Architectural Dot Grid */
  --bg: #ffffff;
  --dot-color: rgba(0, 0, 0, 0.08);
  --bg-surface: #ffffff;
  --bg-hover: #f4f4f5;
  --text-main: #000000;
  --text-muted: #111111;
  --text-faint: #222222;
  --link-hover: #000000;

  --border-hairline: rgba(0, 0, 0, 0.16);
  --border-active: #000000;
  --selection: rgba(0, 0, 0, 0.15);

  --accent-dot: #059669;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--selection);
  color: var(--text-main);
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
  background-image: radial-gradient(circle, var(--dot-color) 1.25px, transparent 1.25px);
  background-size: 22px 22px;
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  background-color: transparent;
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4rem 1.75rem 6rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  touch-action: manipulation;
}

button, a, .article-row, .theme-btn, .social-icon-link, .nav-back-btn {
  touch-action: manipulation;
}

/* --------------------------------------------------
   Snappy Consistent Theme Transitions
   100% reliable across all browsers (Safari, Chrome, Firefox, iOS)
-------------------------------------------------- */
html.theme-transitioning,
html.theme-transitioning *:not(.icon-wrapper):not(.eclipse-icon):not(.eclipse-dark-half):not(.eclipse-light-half):not(.social-icon-link):not(.social-icon):not(.theme-btn):not(.social-icon-link *):not(.theme-btn *),
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 200ms cubic-bezier(0.2, 0, 0, 1),
              color 200ms cubic-bezier(0.2, 0, 0, 1),
              border-color 200ms cubic-bezier(0.2, 0, 0, 1) !important;
}

/* Instantaneous theme color switching for social icons & theme button (zero delay) */
html.theme-transitioning .social-icon-link,
html.theme-transitioning .social-icon,
html.theme-transitioning .social-icon path,
html.theme-transitioning .social-icon-link *,
html.theme-transitioning .theme-btn,
html.theme-transitioning .company-icon,
html.theme-transitioning .company-icon *,
html.theme-transitioning .aws-text {
  transition: none !important;
}

/* View Transitions API: Circular Theme Wipe */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}

/* --------------------------------------------------
   Top Navigation Bar
   - Horizontally aligned: Greeting & Socials on left, Theme Button on right
   - Natural native scrolling (no pinning, no sticky, no animations)
-------------------------------------------------- */
.top-nav {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0 auto 2.25rem;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  z-index: 20;
}

.nav-left {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}

.nav-back-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #09090b;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms ease, background 160ms ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .nav-back-btn {
  background: rgba(9, 9, 11, 0.96);
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav-back-btn.visible {
  display: inline-flex;
}

body.in-article-view #home-greeting {
  display: none !important;
}

body.in-article-view .nav-back-btn {
  display: inline-flex !important;
}

.nav-back-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .nav-back-btn:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.nav-back-btn:active {
  transform: scale(0.96);
}

.nav-back-btn:hover .back-arrow {
  transform: translateX(-3px);
}

.back-arrow {
  transition: transform 150ms ease;
  font-size: 0.9em;
}

.back-label {
  font-size: 0.75rem;
}

/* --------------------------------------------------
   Theme Toggle Slot & Button
   - Exactly matches social buttons in size, padding, border-radius, and hover
   - Optically aligned horizontally with the top greeting line
   - 100% IMMOBILE across Home and Article views (exact same X and Y)
-------------------------------------------------- */
.nav-theme-slot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  margin-right: -4px;
  flex-shrink: 0;
}



.theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  line-height: 1;
}

.theme-btn::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -8px;
  right: -8px;
}

.theme-btn:hover {
  color: var(--text-main);
  background: transparent;
  transform: translateY(-2px);
}

.theme-btn:focus {
  outline: none;
}

.theme-btn:focus-visible {
  outline: 1px solid var(--border-active);
  outline-offset: 2px;
}

.theme-btn:active {
  transform: translateY(-1px);
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1) !important;
  transform-origin: center center;
  will-change: transform;
}

[data-theme="dark"] .icon-wrapper {
  transform: rotate(180deg);
}

.eclipse-icon {
  width: 28px;
  height: 28px;
  display: block;
}

/* --------------------------------------------------
   Canvas Container & Views
-------------------------------------------------- */
.canvas-wrapper {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

/* Zero-Latency View Engine */
.view {
  display: none;
}

.view.active {
  display: block;
  animation: viewFadeIn 120ms ease-out forwards;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --------------------------------------------------
   Home View Components (Laid-Back, Professional, No Caps)
-------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-dot);
  box-shadow: 0 0 8px var(--accent-dot);
}

/* --------------------------------------------------
   Greeting & Social Logos (Stacked Architecture)
-------------------------------------------------- */
.greeting-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0;
}

.greeting {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0;
  cursor: pointer;
  user-select: none;
  background-size: 260% 100%;
  transition: color 250ms ease, font-size 260ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  height: 54px;
  white-space: nowrap;
}

.greeting:active {
  transform: scale(0.98);
}

.greeting.is-email {
  font-size: 2.05rem;
  letter-spacing: -0.035em;
}

@media (hover: hover) and (pointer: fine) {
  .greeting:hover {
    background-image: linear-gradient(
      115deg,
      var(--text-main) 0%,
      var(--text-main) 35%,
      #94a3b8 40%,
      #ffffff 50%,
      #cbd5e1 54%,
      #475569 64%,
      var(--text-main) 76%,
      var(--text-main) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: prismaticSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  [data-theme="light"] .greeting:hover {
    background-image: linear-gradient(
      115deg,
      var(--text-main) 0%,
      var(--text-main) 35%,
      #64748b 40%,
      #000000 50%,
      #334155 54%,
      #94a3b8 64%,
      var(--text-main) 76%,
      var(--text-main) 100%
    );
  }
}

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

.greeting-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px;
  border-radius: 6px;
  position: relative;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* 44px tap zone for touch accessibility */
.social-icon-link::before {
  content: '';
  position: absolute;
  top: -8px;
  bottom: -8px;
  left: -8px;
  right: -8px;
}

.social-icon-link:hover {
  color: var(--text-main);
  background: transparent;
  transform: translateY(-2px);
}

.social-icon-link:focus {
  outline: none;
}

.social-icon-link:focus-visible {
  outline: 1px solid var(--border-active);
  outline-offset: 2px;
}

.social-icon-link:active {
  transform: scale(0.95);
}

.social-icon-link .social-icon {
  width: 28px;
  height: 28px;
  display: block;
  fill: currentColor;
  transition: none !important;
}

.social-icon-link path {
  transition: none !important;
}

.focus-statement {
  font-size: 1.15rem;
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

/* --------------------------------------------------
   Vertical Career Chronology
   - Bolder, legible dates with high contrast
-------------------------------------------------- */
.chronology {
  display: flex;
  flex-direction: column;
  gap: 1.85rem;
  position: relative;
  margin-bottom: 3.25rem;
}

/* 
 * Tactile & Living Chronology Interaction
 * 120fps GPU compositor accelerated (transform + opacity only)
 */
@keyframes chronoAura {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.88;
  }
  50% {
    transform: translate3d(8px, -2px, 0) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate3d(-4px, 2px, 0) scale(0.97);
    opacity: 0.92;
  }
}

.chrono-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  padding: 0.75rem 1rem;
  margin: -0.75rem -1rem;
  border-radius: 10px;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.chrono-item:hover {
  transform: translateX(4px);
}

.chrono-item::before {
  content: '';
  position: absolute;
  inset: -2px -4px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  will-change: opacity, transform;
  /* Organic light dissipation on unhover: natural exponential decay */
  transition: opacity 500ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 500ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.chrono-item:hover::before {
  opacity: 1;
  /* Responsive bloom entrance on hover with living aurora drift */
  transition: opacity 200ms cubic-bezier(0.16, 1, 0.3, 1);
  animation: chronoAura 5s ease-in-out infinite alternate;
}

.chrono-item > * {
  position: relative;
  z-index: 1;
}

/* 
 * Persistent background gradients with multi-stop Gaussian falloff
 * Preserved continuously so opacity transitions dissolve naturally without cutoff
 */
.chrono-stripe::before {
  background: radial-gradient(
    ellipse 85% 120% at 14% 35%,
    rgba(99, 91, 255, 0.16) 0%,
    rgba(99, 91, 255, 0.09) 30%,
    rgba(99, 91, 255, 0.03) 60%,
    rgba(99, 91, 255, 0) 100%
  );
}

.chrono-aws::before {
  background: radial-gradient(
    ellipse 85% 120% at 14% 35%,
    rgba(255, 153, 0, 0.15) 0%,
    rgba(255, 153, 0, 0.08) 30%,
    rgba(255, 153, 0, 0.025) 60%,
    rgba(255, 153, 0, 0) 100%
  );
}

.chrono-kyndryl::before {
  background: radial-gradient(
    ellipse 85% 120% at 14% 35%,
    rgba(255, 70, 45, 0.15) 0%,
    rgba(255, 70, 45, 0.08) 30%,
    rgba(255, 70, 45, 0.025) 60%,
    rgba(255, 70, 45, 0) 100%
  );
}

.chrono-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.chrono-title-group {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.chrono-company-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  padding: 2px 4px;
  margin: -2px -4px;
  border-radius: 6px;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chrono-company-wrapper:active {
  transform: scale(0.96);
}

.company-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 300ms ease;
  will-change: transform, filter;
}

.company-icon svg {
  display: block;
}

.company-icon-stripe {
  transform: translateY(-0.5px);
}

.chrono-item:hover .company-icon-stripe {
  transform: translateY(-0.5px) scale(1.15) rotate(-2deg);
  filter: drop-shadow(0 2px 8px rgba(99, 91, 255, 0.45));
}

.company-icon-aws {
  transform: translateY(-0.5px);
}

.chrono-item:hover .company-icon-aws {
  transform: translateY(-0.5px) scale(1.1) rotate(1deg);
  filter: drop-shadow(0 2px 8px rgba(255, 153, 0, 0.4));
}

.company-icon-kyndryl {
  transform: translateY(-0.5px);
}

.chrono-item:hover .company-icon-kyndryl {
  transform: translateY(-0.5px) scale(1.14);
  filter: drop-shadow(0 2px 8px rgba(255, 70, 45, 0.4));
}

/* AWS text adapts to theme with crisp high contrast */
.aws-text {
  fill: var(--text-main);
  transition: none !important;
}

.chrono-company {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.chrono-role {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-main);
  font-weight: 500;
  opacity: 0.9;
}

/* Bold, high-contrast readable dates with subtle kinetic feedback */
.chrono-year {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
  opacity: 0.75;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: opacity 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.chrono-item:hover .chrono-year {
  opacity: 1;
  transform: translateX(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .chrono-item,
  .chrono-item::before,
  .company-icon,
  .chrono-year {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

.chrono-desc {
  font-size: 0.925rem;
  color: var(--text-main);
  font-weight: 400;
  opacity: 0.92;
  line-height: 1.6;
}

/* --------------------------------------------------
   Writing Section (Seamlessly on Home Canvas)
-------------------------------------------------- */
.writing-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-divider {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 0.85rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
  display: inline-block;
  cursor: pointer;
  user-select: none;
  margin: 0;
  line-height: 1.2;
  background-size: 260% 100%;
  transition: color 250ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .section-title:hover {
    background-image: linear-gradient(
      115deg,
      var(--text-main) 0%,
      var(--text-main) 35%,
      #94a3b8 40%,
      #ffffff 50%,
      #cbd5e1 54%,
      #475569 64%,
      var(--text-main) 76%,
      var(--text-main) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: prismaticSweep 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  [data-theme="light"] .section-title:hover {
    background-image: linear-gradient(
      115deg,
      var(--text-main) 0%,
      var(--text-main) 35%,
      #64748b 40%,
      #000000 50%,
      #334155 54%,
      #94a3b8 64%,
      var(--text-main) 76%,
      var(--text-main) 100%
    );
  }
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
  opacity: 1;
  letter-spacing: 0.02em;
}

.articles-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  cursor: pointer;
  text-decoration: none;
  padding: 1.35rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  position: relative;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.article-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--border-active);
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
  opacity: 0;
  transition: opacity 180ms ease;
}

.article-row:hover {
  border-color: var(--border-active);
  background: var(--bg-hover);
  transform: translateX(4px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

.article-row:hover::before {
  opacity: 1;
}

.article-row-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.article-row-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-main);
  transition: color 150ms ease;
  line-height: 1.4;
}

.article-row:hover .article-row-title {
  color: var(--link-hover);
}

.article-row-year {
  font-family: var(--font-mono);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-main);
  opacity: 1;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.article-row-desc {
  font-size: 0.925rem;
  color: var(--text-main);
  font-weight: 400;
  opacity: 0.92;
  line-height: 1.65;
}

/* --------------------------------------------------
   Article Detail View
-------------------------------------------------- */
.article-full-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
  opacity: 0.85;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.article-full-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.035em;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
}

.article-content {
  font-size: 1.125rem;
  line-height: 1.9;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.65rem;
  font-weight: 400;
  color: var(--text-main);
}

.article-content h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 0.85rem;
  color: var(--text-main);
}

.article-content blockquote {
  border-left: 2px solid var(--border-active);
  background: var(--bg-surface);
  padding: 1.35rem 1.65rem;
  margin: 2.25rem 0;
  border-radius: 0 4px 4px 0;
  font-style: italic;
  font-weight: 500;
  color: var(--text-main);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}


/* Mobile Responsiveness */
@media (max-width: 600px) {
  body {
    padding: 2.25rem 1.15rem 4rem;
  }
  .top-nav {
    margin-bottom: 1.75rem;
    padding: 0;
    gap: 0.5rem;
  }
  .greeting-row {
    gap: 0.35rem;
    margin-bottom: 0;
  }
  .greeting {
    font-size: 1.85rem;
    height: 36px;
    line-height: 1;
  }
  .greeting.is-email {
    font-size: 1.15rem;
    letter-spacing: -0.025em;
  }
  .nav-theme-slot {
    margin-top: 4px;
    margin-right: -3px;
    transform: none;
  }
  .nav-back-btn {
    margin-top: 4px;
  }
  .greeting-socials {
    gap: 0.45rem;
    transform: none;
  }
  .social-icon-link,
  .theme-btn {
    padding: 3px;
  }
  .social-icon-link .social-icon,
  .theme-btn .icon-wrapper,
  .theme-btn .eclipse-icon {
    width: 20px;
    height: 20px;
  }
  .nav-theme-slot {
    margin-right: -3px;
  }
  .focus-statement {
    font-size: 1.05rem;
    line-height: 1.7;
  }
  .chrono-header {
    flex-direction: column;
    gap: 0.1rem;
  }
  .chrono-title-group {
    flex-wrap: wrap;
  }
  .article-full-title {
    font-size: 2rem;
  }
}

/* --------------------------------------------------
   Feature 10: Data Pulse Line across Navigation
-------------------------------------------------- */
.data-pulse-line {
  position: relative;
  width: 100%;
  max-width: 580px;
  height: 1.5px;
  margin: -1.25rem auto 1.25rem;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.data-pulse-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #635bff, #00d2ff, transparent);
  transform: translateX(-100%);
}

.data-pulse-line.pulsing {
  opacity: 1;
}

.data-pulse-line.pulsing::after {
  animation: dataPulse 380ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes dataPulse {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(250%);
  }
}

/* --------------------------------------------------
   Feature 7: Minimalist Precision Cursor Reticle
-------------------------------------------------- */
.cursor-dot,
.cursor-ring {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-dot {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 5px;
    height: 5px;
    background: var(--text-main);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 180ms ease;
  }

  .cursor-ring {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border: 1.25px solid var(--text-main);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 220ms ease, width 220ms cubic-bezier(0.16, 1, 0.3, 1), height 220ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, background-color 200ms ease;
  }

  .cursor-ring.hovering {
    width: 36px;
    height: 36px;
    border-color: var(--text-main);
    background-color: rgba(128, 128, 128, 0.08);
  }

  .cursor-active {
    opacity: 1 !important;
  }
}

/* --------------------------------------------------
   Architectural Toast HUD
   Zero layout reflow, floating pill with backdrop blur
-------------------------------------------------- */
.canvas-toast {
  position: fixed;
  bottom: 2rem;
  top: auto;
  left: 50%;
  transform: translate3d(-50%, 20px, 0);
  padding: 0.45rem 1.05rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.98);
  color: #09090b;
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  z-index: 100000;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.15);
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms ease;
  white-space: nowrap;
  max-width: calc(100vw - 2rem);
  text-overflow: ellipsis;
  overflow: hidden;
}

[data-theme="light"] .canvas-toast {
  background: rgba(9, 9, 11, 0.96);
  color: #f4f4f5;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.canvas-toast.visible {
  transform: translate3d(-50%, 0, 0);
  opacity: 1;
}

@media (max-width: 600px) {
  .canvas-toast {
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    top: auto;
    font-size: 0.72rem;
    padding: 0.38rem 0.85rem;
    max-width: calc(100vw - 1.5rem);
  }
}
