/* =====================================================================
   chrome.css — shared site chrome + notice board
   Used by Hero.html (home) and Artboard.html (full board)
   ===================================================================== */

/* ---------------------------------------------------------------------
   PROJECT SECTION CLOUDS
   --------------------------------------------------------------------- */
.project-clouds {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}
.project-cloud {
  position: absolute;
  display: block;
  width: clamp(220px, 31vw, 560px);
  height: auto;
  opacity: 0.98;
  filter: drop-shadow(0 22px 34px rgba(35,95,150,0.18));
  animation: projectCloudHover 9s ease-in-out infinite alternate;
}
.project-cloud-left {
  left: max(-28vw, -480px);
  top: clamp(80px, 14%, 180px);
}
.project-cloud-right {
  right: max(-30vw, -520px);
  top: clamp(270px, 44%, 560px);
  width: clamp(280px, 35vw, 650px);
  animation-duration: 10.5s;
  animation-delay: -2.2s;
}
.project-cloud-small {
  left: max(-18vw, -300px);
  bottom: clamp(70px, 12%, 180px);
  width: clamp(120px, 13vw, 230px);
  animation-duration: 11.5s;
  animation-delay: -4s;
}

@keyframes projectCloudHover {
  from { transform: translate3d(0, -5px, 0) scale(1); }
  to { transform: translate3d(18px, 7px, 0) scale(1.018); }
}

@media (max-width: 980px) {
  .project-clouds { display: none; }
}

.project-shell,
.board-page,
.sitenav,
.dock,
.footer-line,
.hero,
section {
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------------
   STICKY BLURRED NAV
   --------------------------------------------------------------------- */
.sitenav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(26px, 4.5vw, 60px);
  padding: 0 clamp(18px, 4vw, 44px);
  min-width: 0;
  background: linear-gradient(180deg, rgba(16,28,46,0.46) 0%, rgba(16,28,46,0.18) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.nav-brand {
  flex: 0 0 auto;
  font-family: 'Instrument Serif', serif;
  font-size: 25px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}
.nav-brand span { font-style: italic; opacity: 0.78; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  min-width: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  position: relative;
  padding: 6px 1px;
  transition: color 220ms ease, transform 260ms cubic-bezier(.34,1.56,.64,1), text-shadow 220ms ease;
}
.nav-links a.nav-cta,
.chat-cta {
  isolation: isolate;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: #101820;
  box-shadow: 0 12px 30px -18px rgba(6,22,42,0.75);
  transition: transform 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.nav-links a.nav-cta {
  padding: 10px 16px;
}
.nav-links a.nav-cta:hover,
.chat-cta:hover {
  transform: translateY(-2px);
  background: #0b1116;
  border-color: rgba(255,255,255,0.34);
  box-shadow: 0 18px 36px -22px rgba(6,22,42,0.9);
}
.nav-links a.nav-cta::after,
.nav-links a.nav-cta::before { display: none; }
/* text lift + glow on hover */
.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta):focus-visible { color: #fff; transform: translateY(-2px); text-shadow: 0 6px 18px rgba(10,26,48,0.45); }
.nav-links a[aria-current="page"] { color: #fff; }
/* animated gradient underline that wipes in from the left */
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0.35), #fff 55%, rgba(207,238,255,0.9));
  box-shadow: 0 2px 10px rgba(190,232,255,0.55);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 320ms cubic-bezier(.65,0,.35,1);
}
.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta):focus-visible::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left center; }
/* soft dot that pops above the link on hover */
.nav-links a:not(.nav-cta)::before {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(207,238,255,0.9);
  opacity: 0;
  transform: translateY(4px) scale(0.4);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(.34,1.56,.64,1);
}
.nav-links a:not(.nav-cta):hover::before,
.nav-links a:not(.nav-cta):focus-visible::before { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) {
  .nav-links a { transition: color 160ms ease; }
  .nav-links a:not(.nav-cta):hover,
  .nav-links a:not(.nav-cta):focus-visible { transform: none; text-shadow: none; }
  .nav-links a:not(.nav-cta)::before { display: none; }
  .nav-links a:not(.nav-cta)::after { transition: none; }
}

@media (max-width: 700px) {
  .sitenav { justify-content: space-between; gap: 10px; }
}

@media (max-width: 560px) {
  .sitenav { height: 54px; }
  .nav-brand { font-size: 20px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 10px; letter-spacing: 0.12em; }
  .nav-links a.nav-cta { padding: 8px 10px; }
}

/* ---------------------------------------------------------------------
   STICKY CONTACT DOCK  (two variants via body[data-dock])
   --------------------------------------------------------------------- */
.dock {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.dock-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  position: relative;
}
.dock-ic { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dock-ic svg { width: 19px; height: 19px; display: block; fill: currentColor; }
.dock-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* per-channel hover colors (shared by both variants) */
.dock-item[data-c="email"]:hover { background: rgba(63,138,214,0.95); border-color: transparent; }
.dock-item[data-c="wa"]:hover    { background: rgba(37,211,102,0.95); border-color: transparent; }
.dock-item[data-c="ig"]:hover    { background: linear-gradient(135deg,#f09433 0%,#dc2743 48%,#bc1888 100%); border-color: transparent; }

/* --- Variant A: round icon chips + slide-out tooltip --- */
body[data-dock="a"] .dock-item {
  width: 46px; height: 46px;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16,28,46,0.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.55);
  transition: transform 180ms ease, background 200ms ease, border-color 200ms ease;
}
body[data-dock="a"] .dock-item:hover { transform: translateX(-3px) scale(1.06); }
body[data-dock="a"] .dock-label {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(16,28,46,0.88);
  padding: 6px 11px;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.6);
  transition: opacity 180ms ease, transform 180ms ease;
}
body[data-dock="a"] .dock-item:hover .dock-label { opacity: 1; transform: translateY(-50%) translateX(0); }

/* --- Variant B: expanding pill rail --- */
body[data-dock="b"] .dock { gap: 10px; }
body[data-dock="b"] .dock-item {
  height: 44px;
  max-width: 44px;
  padding: 0 12px;
  gap: 11px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(16,28,46,0.50);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.55);
  transition: max-width 300ms cubic-bezier(.2,.7,.2,1), background 200ms ease, border-color 200ms ease;
}
body[data-dock="b"] .dock-item:hover { max-width: 240px; }
body[data-dock="b"] .dock-label { opacity: 0; transition: opacity 200ms ease 40ms; }
body[data-dock="b"] .dock-item:hover .dock-label { opacity: 1; }

@media (max-width: 560px) {
  .dock {
    right: 50%; top: auto; bottom: 14px;
    transform: translateX(50%);
    flex-direction: row;
    align-items: center;
  }
  body[data-dock="b"] .dock-item:hover { max-width: 210px; }
}

/* ---------------------------------------------------------------------
   NOTICE BOARD  (dark pinboard)
   --------------------------------------------------------------------- */
.board {
  position: relative;
  overflow: hidden;
  background-color: #2b2f36;
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(255,255,255,0.06), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.013) 0 2px, transparent 2px 5px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,0.18) 0 2px, transparent 2px 5px);
  border: 10px solid #14171d;
  border-radius: 5px;
  box-shadow: inset 0 0 140px rgba(0,0,0,0.6);
}
.board::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 170px rgba(0,0,0,0.62);
}

/* a pinned item */
.bx {
  position: absolute;
  left: 0; top: 0;
  width: var(--w, 150px);
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 1;
  filter: drop-shadow(0 11px 18px rgba(0,0,0,0.42));
  opacity: 1;
  transform: rotate(var(--rot, 0deg));
}
.bx--enter {
  animation: bxIn 720ms cubic-bezier(.2,.8,.25,1) both;
  animation-delay: var(--d, 0ms);
}
@keyframes bxIn {
  from { opacity: 0; transform: translate(var(--fx,0px), var(--fy,0px)) rotate(var(--rot,0deg)) scale(0.5); }
  to   { opacity: 1; transform: translate(0,0) rotate(var(--rot,0deg)) scale(1); }
}
.bx.dragging { animation: none; cursor: grabbing; filter: drop-shadow(0 22px 30px rgba(0,0,0,0.55)); }

.bx-card {
  position: relative;
  background: #fbf7ee;
  padding: 7px 7px 4px;
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}
.bx-img {
  position: relative;
  aspect-ratio: var(--ratio, 4 / 5);
  background-color: #111820;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08) inset;
}
.bx-img::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 32% 26%, rgba(255,255,255,0.24), transparent 55%);
}
.bx-img::after {
  display: none;
}
.bx-code {
  position: absolute;
  right: 6px; top: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.92);
  background: rgba(0,0,0,0.30);
  padding: 2px 5px;
  border-radius: 2px;
  backdrop-filter: blur(3px);
}
.bx-tag {
  position: absolute;
  left: 6px; bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(224,87,62,0.92);
  padding: 2px 5px;
  border-radius: 2px;
}
.bx-cap {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 13px;
  line-height: 1.12;
  color: #2a2620;
  text-align: center;
  padding: 5px 4px 2px;
}
.bx-zoom {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 4;
  width: 27px; height: 27px;
  border: none;
  border-radius: 50%;
  background: rgba(16,28,46,0.62);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  backdrop-filter: blur(4px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}
.bx-zoom:hover { background: rgba(16,28,46,0.92); }
.bx:hover .bx-zoom { opacity: 1; transform: scale(1); }
.bx-zoom svg { width: 13px; height: 13px; fill: #fff; }

@media (prefers-reduced-motion: reduce) {
  .bx--enter { animation: none; }
}

/* ---------------------------------------------------------------------
   ENLARGE LIGHTBOX
   --------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
}
.lightbox.open { display: flex; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,16,26,0.42);
  backdrop-filter: blur(15px) saturate(120%);
  -webkit-backdrop-filter: blur(15px) saturate(120%);
}
.lb-stage {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 44px;
  max-width: 1080px;
  width: 100%;
  animation: lbpop 360ms cubic-bezier(.2,.8,.25,1);
}
@keyframes lbpop {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.lb-media {
  position: relative;
  flex: 0 0 auto;
  width: auto;
  max-width: min(62vw, 860px);
  max-height: 82vh;
  aspect-ratio: var(--ratio, 1);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: 0 36px 90px -34px rgba(0,0,0,0.8);
}
.lb-img {
  display: block;
  max-width: min(62vw, 860px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}
.lb-media .lb-tag {
  position: absolute;
  left: 12px; bottom: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(224,87,62,0.92);
  padding: 4px 8px;
  border-radius: 2px;
}
.lb-info { flex: 1; color: #fff; max-width: 430px; }
.lb-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin-bottom: 16px;
}
.lb-title {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
  margin: 0 0 18px;
  text-shadow: 0 3px 24px rgba(0,0,0,0.3);
}
.lb-desc {
  font-family: 'Inter', sans-serif;
  font-size: 15.5px;
  line-height: 1.66;
  color: rgba(255,255,255,0.9);
  margin: 0 0 26px;
  text-wrap: pretty;
}
.lb-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  transition: background 200ms ease, gap 200ms ease;
}
.lb-link:hover { background: rgba(255,255,255,0.14); gap: 14px; }
.lb-close {
  position: fixed;
  top: 18px; right: 18px;
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(16,28,46,0.5);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 180ms ease, transform 180ms ease;
}
.lb-close:hover { background: rgba(16,28,46,0.8); transform: rotate(90deg); }

@media (max-width: 760px) {
  .lb-stage { flex-direction: column; gap: 22px; }
  .lb-media,
  .lb-img { max-width: 88vw; max-height: 62vh; }
  .lb-info { max-width: none; text-align: center; }
  .lb-kicker { letter-spacing: 0.2em; }
}

/* ---------------------------------------------------------------------
   HOME BOTTOM DRAWER  (board peeks from below; click to expand)
   --------------------------------------------------------------------- */
.deck-backdrop {
  position: fixed;
  inset: 0;
  z-index: 114;
  background: rgba(8,16,28,0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 400ms ease, visibility 0s linear 400ms;
}
.deck-backdrop.show { opacity: 1; visibility: visible; transition: opacity 400ms ease; }

.deck-drawer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 100vh;
  z-index: 115;
  display: flex;
  flex-direction: column;
  transform: translateY(calc(100% - var(--peek, 138px)));
  transition: transform 560ms cubic-bezier(.2,.8,.2,1), padding-top 560ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}
.deck-drawer.peek-hidden { transform: translateY(100%); }
.deck-drawer.open { transform: translateY(0); padding-top: 60px; }

.deck-grip {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  height: 48px;
  width: 100%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, #1b1f26 0%, #14171d 100%);
  border-top: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 -22px 46px -20px rgba(8,24,52,0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.deck-grip .grip-bar {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.32);
}
.deck-grip .grip-label { opacity: 0.92; padding-top: 6px; }
.deck-grip .grip-chevron { padding-top: 6px; font-size: 9px; transition: transform 400ms ease; }
.deck-drawer.open .grip-chevron { transform: rotate(180deg); }

.deck-body {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  padding: 14px;
}
.board--drawer { width: 100%; height: 100%; }

.deck-fullpage, .deck-close {
  position: absolute;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease 120ms;
}
.deck-drawer.open .deck-fullpage, .deck-drawer.open .deck-close { opacity: 1; pointer-events: auto; }
.deck-fullpage {
  top: 22px; left: 26px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: #101820;
  box-shadow: 0 14px 32px -22px rgba(6,22,42,0.92);
  padding: 11px 16px;
}
.deck-fullpage:hover {
  color: #fff;
  background: #0b1116;
}
.deck-close {
  top: 14px; right: 18px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.26);
  background: rgba(16,28,46,0.5);
  color: #fff;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: opacity 300ms ease 120ms, background 180ms ease, transform 180ms ease;
}
.deck-close:hover { background: rgba(16,28,46,0.8); transform: rotate(90deg); }

@media (max-width: 560px) {
  .deck-fullpage { left: 16px; }
}

/* ---------------------------------------------------------------------
   SHARED SITE FOOTER  (socials + resume + availability)
   --------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 20;
  margin-top: clamp(60px, 8vw, 110px);
  padding: 42px clamp(18px, 4vw, 44px) 34px;
  background: linear-gradient(180deg, rgba(13,24,40,0.6) 0%, rgba(9,17,28,0.86) 100%);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid rgba(255,255,255,0.14);
  color: #fff;
}
.site-footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 30px 44px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.footer-brand {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.footer-brand span { font-style: italic; opacity: 0.72; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px 12px; }
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.9);
  font: 500 12px/1 'Inter', sans-serif;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 260ms cubic-bezier(.34,1.56,.64,1), background 220ms ease, border-color 220ms ease, color 220ms ease;
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.footer-social:hover,
.footer-social:focus-visible { transform: translateY(-3px); background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.42); color: #fff; }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; }
.footer-avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 17px;
  border-radius: 999px;
  border: 1px solid rgba(74,222,128,0.42);
  background: rgba(34,197,94,0.12);
  font: 500 12px/1 'Inter', sans-serif;
  letter-spacing: 0.06em;
  color: #d8ffe6;
}
.footer-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #35d76b;
  box-shadow: 0 0 0 0 rgba(53,215,107,0.7);
  animation: footerPulse 2.4s infinite;
}
@keyframes footerPulse {
  0% { box-shadow: 0 0 0 0 rgba(53,215,107,0.6); }
  70% { box-shadow: 0 0 0 10px rgba(53,215,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(53,215,107,0); }
}
.footer-copyright { font: 400 12px/1.5 'Inter', sans-serif; color: rgba(255,255,255,0.55); letter-spacing: 0.03em; }
.footer-nav-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-nav-links a { color: rgba(255,255,255,0.68); text-decoration: none; font: 400 12px/1 'Inter', sans-serif; letter-spacing: 0.04em; }
.footer-nav-links a:hover { color: #fff; }
@media (max-width: 640px) {
  .site-footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; text-align: left; }
}
/* Homepage footer follows the full-height contact scene, so no top gap. */
.site-footer.site-footer-dark { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .footer-dot { animation: none; } .footer-social:hover { transform: none; } }

/* ---- Resume preview modal ---- */
.resume-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(6,16,30,0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.resume-modal.open { display: flex; }
.resume-modal-card { position: relative; max-width: 780px; width: 100%; display: flex; flex-direction: column; gap: 18px; }
.resume-modal-img { max-height: 74vh; width: auto; max-width: 100%; margin: 0 auto; display: block; border-radius: 8px; background: #fff; box-shadow: 0 40px 110px -40px rgba(0,0,0,0.85); }
.resume-modal-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.resume-modal-close {
  position: absolute;
  top: -16px; right: -6px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(16,28,46,0.7);
  color: #fff;
  font-size: 22px; line-height: 1;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}
.resume-modal-close:hover { background: rgba(16,28,46,0.95); transform: rotate(90deg); }

/* ---------------------------------------------------------------------
   END-OF-PAGE CALL TO ACTION  (project + blog)
   --------------------------------------------------------------------- */
.work-cta {
  position: relative;
  margin-top: clamp(38px, 5vw, 64px);
  padding: clamp(42px, 6vw, 76px) clamp(28px, 5vw, 64px);
  border-radius: 30px;
  text-align: center;
  color: #fff;
  background: linear-gradient(152deg, rgba(20,42,74,0.92) 0%, rgba(41,77,114,0.82) 100%);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 44px 96px -46px rgba(6,22,42,0.92), inset 0 1px 0 rgba(255,255,255,0.14);
  overflow: hidden;
}
.work-cta::before {
  content: "";
  position: absolute;
  top: -50%; left: 20%; right: 20%;
  height: 280px;
  background: radial-gradient(closest-side, rgba(127,184,236,0.42), transparent 72%);
  pointer-events: none;
}
.work-cta-eyebrow {
  position: relative;
  margin: 0 0 14px;
  font: 500 12px/1 'JetBrains Mono', monospace;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
}
.work-cta-title {
  position: relative;
  margin: 0 0 28px;
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 6vw, 66px);
  line-height: 1.02;
}
.work-cta .chat-cta { position: relative; font-size: 14px; padding: 15px 28px; }
.work-cta-media {
  position: relative;
  margin: 0 auto 30px;
  max-width: 620px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.7);
}
.work-cta-media img {
  display: block;
  width: 100%;
  height: auto;        /* keeps the image's own aspect ratio */
  object-fit: contain;
}

/* Project card badges removed site-wide (tag chip + P/0X counter) */
.work-tag,
.work-code { display: none !important; }


/* ---- Static pixel clouds flanking the call to action ---- */
.work-cta-clouds {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(96px, 20%, 240px);
  pointer-events: none;
  z-index: 0;
}
.work-cta-clouds.left { left: 0; }
.work-cta-clouds.right { right: 0; }
@media (max-width: 720px) {
  .work-cta-clouds { width: clamp(64px, 26%, 110px); opacity: 0.75; }
}

/* ---- Resume PDF preview ---- */
.resume-modal-frame {
  position: relative;
  width: 100%;
  height: 74vh;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 40px 110px -40px rgba(0,0,0,0.85);
}
.resume-modal-frame iframe {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}
.resume-modal-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px;
  text-align: center;
  color: #1c2a3a;
}
.resume-modal-fallback p { margin: 0; font-size: 14px; }
