/* Santipap portfolio site (responsive, TH/EN) */
:root{
  --bg: #0b0d12;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.10);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.68);
  --muted2: rgba(255,255,255,0.52);
  --border: rgba(255,255,255,0.12);
  --shadow: 0 18px 60px rgba(0,0,0,0.42);

  --r: 18px;
  --r2: 24px;

  --max: 1080px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans Thai", sans-serif;
  background:
    radial-gradient(900px 420px at 10% 10%, rgba(140,98,255,0.22), transparent 60%),
    radial-gradient(900px 420px at 90% 20%, rgba(0,210,255,0.16), transparent 55%),
    radial-gradient(900px 420px at 70% 90%, rgba(0,255,170,0.10), transparent 60%),
    var(--bg);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
.container{
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11,13,18,0.62);
  border-bottom: 1px solid var(--border);
}
.topbar__inner{
  height: 64px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}
.brand__dot{
  width: 12px; height: 12px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(140,98,255,1), rgba(0,210,255,1));
  box-shadow: 0 0 0 6px rgba(140,98,255,0.10);
}
.brand__name{ font-size: 14px; color: var(--text); }

/* Nav */
.nav{ display:flex; align-items:center; gap: 12px; position: relative; }
.nav__toggle{
  display:none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}
.nav__toggle span{
  display:block;
  width: 18px; height: 2px;
  background: rgba(255,255,255,0.8);
  margin: 4px auto;
  border-radius: 99px;
}

.nav__links{
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav__link{
  padding: 10px 12px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
}
.nav__link:hover{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,0.04);
}

/* Language switch */
.lang__btn{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  cursor:pointer;
}
.lang__pill{
  width: 40px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  font-weight: 700;
  font-size: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.10);
}
.lang__hint{
  font-size: 12px;
  color: var(--muted);
}

/* Hero */
.hero{ padding: 26px 0 18px; }
.hero__card{
  animation: glowDrift 6s var(--ease-inout) infinite alternate;

  border: 1px solid var(--border);
  border-radius: var(--r2);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero__badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 12px;
}
.hero__title{
  margin: 14px 0 10px;
  font-size: clamp(22px, 3.3vw, 34px);
  line-height: 1.15;
}
.hero__desc{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 100%;
  /* max-width: 70ch; */
}

.hero__cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 700;
  letter-spacing: .2px;
}
.btn--primary{
  background: linear-gradient(135deg, rgba(140,98,255,0.95), rgba(0,210,255,0.85));
  border-color: rgba(255,255,255,0.18);
}
.btn--ghost{
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.hero__meta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
}
.chip__label{ font-size: 12px; color: var(--muted2); }
.chip__value{ font-size: 13px; color: var(--text); }

/* Sections */
.section{ padding: 22px 0; }
.section__head{ margin-bottom: 14px; }
.section__title{ margin: 0 0 6px; font-size: 20px; }
.section__subtitle{ margin: 0; color: var(--muted); line-height: 1.6; }

/* Layout grids */
.grid{ display:grid; gap: 14px; }
.grid--2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card{
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: rgba(255,255,255,0.05);
  padding: 16px;
}
.card__title{ margin: 0 0 10px; font-size: 16px; }
.card__text{ margin: 0; color: var(--muted); line-height: 1.7; }

.list{
  list-style:none;
  padding:0;
  margin: 0;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.list__item{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  border-radius: 14px;
  padding: 10px 12px;
}
.list__key{ color: var(--muted2); font-size: 12px; }
.list__value{
  color: var(--text);
  font-weight: 700;
  font-size: 13px;
  text-align: right;
  overflow-wrap: anywhere;
}
.note{ margin-top: 12px; font-size: 12px; color: var(--muted2); }

.mini{
  margin-top: 12px;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.mini__row{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
}
.mini__label{
  display:block;
  font-size: 12px;
  color: var(--muted2);
  margin-bottom: 4px;
}
.mini__value{
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* Portfolio */
.filters{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 14px;
}
.pill{
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  cursor:pointer;
}
.pill.is-active{
  color: var(--text);
  background: rgba(255,255,255,0.10);
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.work{ position: relative; overflow:hidden; }
.work__top{
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.work__title{ margin:0; font-size: 14px; }
.work__tag{
  font-size: 11px;
  color: rgba(255,255,255,0.78);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.work__desc{
  margin:0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
}
.work__meta{
  margin-top: 12px;
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* clickable title & description */
.work__title,
.work__desc {
  cursor: pointer;
}
.work__title:hover {
  text-decoration: underline;
}
.work__desc:hover {
  opacity: 0.85;
}

/* จำกัด 3 บรรทัด */
.line-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* ตอนขยาย */
.work-desc.expanded {
  -webkit-line-clamp: unset;
  max-height: none;
}
.read-more {
  margin-top: 6px;
  background: none;
  border: none;
  color: #7aa2ff;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
}
.read-more:hover {
  text-decoration: underline;
}
.kv{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.12);
  color: var(--muted2);
  font-size: 12px;
}
.kv b{ color: var(--text); font-weight: 800; }

/* Footer */
.footer{ padding: 22px 0 28px; color: var(--muted2); }
.footer__inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.footer__top{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

/* Responsive */
@media (max-width: 920px){
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .nav__toggle{ display:inline-block; }
  .nav__links{
    position: absolute;
    right: 16px;
    top: 70px;
    width: min(320px, calc(100vw - 32px));
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(11,13,18,0.86);
    backdrop-filter: blur(14px);
    display:none;
    box-shadow: var(--shadow);
  }
  .nav__links.is-open{ display:flex; }
  .nav__link{ text-align:center; }
  .lang__btn{ justify-content: center; }
  .cards{ grid-template-columns: 1fr; }
}

/* === Motion & micro-interactions === */
:root{
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-inout: cubic-bezier(.83, 0, .17, 1);
  --dur-fast: 140ms;
  --dur: 260ms;
  --dur-slow: 520ms;
  --lift: translateY(-6px);
}

/* Smooth focus for accessibility */
:focus-visible{
  outline: 2px solid rgba(0,210,255,0.65);
  outline-offset: 3px;
  border-radius: 10px;
}

/* Subtle animated gradient drift (very light) */
@keyframes glowDrift{
  0%{ filter: hue-rotate(0deg); }
  100%{ filter: hue-rotate(12deg); }
}

/* Hover / press interactions */
.btn, .pill, .nav__link, .lang__btn, .card, .chip, .footer__top{
  transition:
    transform var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
  will-change: transform;
}

.btn:hover{ transform: translateY(-2px); }
.btn:active{ transform: translateY(0px) scale(0.98); }

.pill:hover{ transform: translateY(-2px); }
.pill:active{ transform: translateY(0px) scale(0.98); }

.nav__link:hover{ transform: translateY(-1px); }
.lang__btn:hover{ transform: translateY(-1px); }
.lang__btn:active{ transform: translateY(0px) scale(0.98); }

.card:hover{
  transform: var(--lift);
  box-shadow: 0 18px 60px rgba(0,0,0,0.50);
  border-color: rgba(255,255,255,0.20);
}

.chip:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,0.20); }
.footer__top:hover{ transform: translateY(-2px); }

/* Reveal on scroll */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

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

/* Stagger helper */
.reveal[data-delay]{
  transition-delay: var(--delay, 0ms);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* Tap feedback (brief) */
.is-tapped{
  transform: translateY(0) scale(0.985) !important;
}

/* === Enhanced UX: underline + parallax + page transition === */

/* Animated underline for nav links */
.nav__link{
  position: relative;
}
.nav__link::after{
  content:"";
  position:absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(140,98,255,0.0), rgba(0,210,255,0.85), rgba(0,255,170,0.0));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur) var(--ease-out);
  opacity: 0.9;
}
.nav__link:hover::after,
.nav__link.is-active::after{
  transform: scaleX(1);
}

/* Animated underline for primary buttons */
.btn{
  position: relative;
  overflow: hidden;
}
.btn::after{
  content:"";
  position:absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
  opacity: 0;
}
.btn:hover::after{
  transform: scaleX(1);
  opacity: 0.45;
}

/* Page transition overlay */
.page-transition{
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  background:
    radial-gradient(900px 420px at 20% 20%, rgba(140,98,255,0.18), transparent 60%),
    radial-gradient(900px 420px at 80% 30%, rgba(0,210,255,0.14), transparent 55%),
    rgba(11,13,18,0.55);
  backdrop-filter: blur(10px);
  z-index: 999;
}
.page-transition.is-on{
  opacity: 1;
  transform: translateY(0);
}

/* Parallax helpers */
.parallax-tilt{
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 120ms var(--ease-out);
}

/* slightly stronger glow when interacting */
.hero__card:hover{
  border-color: rgba(255,255,255,0.24);
}

/* Reduce motion: disable overlay transition and parallax */
@media (prefers-reduced-motion: reduce){
  .page-transition{ display:none; }
  .parallax-tilt{ transition: none; }
  .nav__link::after, .btn::after{ transition:none; }
}

/* Portfolio thumbnail */
.work__thumb{
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.03);
  margin-bottom: 12px;
}
.work__thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur-slow) var(--ease-out);
  filter: saturate(1.05) contrast(1.02);
}
.work:hover .work__thumb img{
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.06);
}

/* === Lightbox (image preview) === */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.lightbox.is-open{ display: block; }

.lightbox__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
}
.lightbox.is-open .lightbox__backdrop{ opacity: 1; }

.lightbox__panel{
  position: relative;
  width: min(980px, calc(100vw - 28px));
  margin: 64px auto;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(11,13,18,0.78);
  box-shadow: 0 30px 120px rgba(0,0,0,0.65);
  overflow: hidden;

  transform: translateY(10px) scale(0.985);
  opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.lightbox.is-open .lightbox__panel{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.lightbox__figure{
  margin: 0;
  background: rgba(255,255,255,0.04);
}
.lightbox__img{
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: contain;
}

.lightbox__caption{
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: grid;
  gap: 4px;
}
.lightbox__title{
  font-weight: 900;
  letter-spacing: .2px;
}
.lightbox__sub{
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* close button */
.lightbox__close{
  position: absolute;
  right: 12px;
  top: 12px;
  width: 44px;
  height: 44px;
  border-radius: 16px; /* match next/prev */
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  z-index: 5;
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.lightbox__close:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.10); }
.lightbox__close:active{ transform: scale(0.98); }

/* nav arrows */
.lightbox__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.lightbox__nav:hover{ transform: translateY(-50%) translateY(-2px); background: rgba(255,255,255,0.10); }
.lightbox__nav:active{ transform: translateY(-50%) scale(0.98); }

.lightbox__nav--prev{ left: 12px; }
.lightbox__nav--next{ right: 12px; }

/* On mobile: keep margin smaller */
@media (max-width: 640px){
  .lightbox__panel{ margin: 18px auto; }
  .lightbox__nav{ display:none; }
}

/* === Lightbox zoom/pan === */
.lightbox__figure{
  position: relative;
}
.lightbox__viewport{
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  touch-action: none; /* allow pinch/drag */
  display: grid;
  place-items: center;
}
.lightbox__img{
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  cursor: grab;
}
.lightbox__img.is-grabbing{ cursor: grabbing; }

.lightbox__toolbar{
  position: absolute;
  left: 12px;
  top: 12px;
  display:flex;
  gap: 8px;
  z-index: 2;
}
.lbbtn{
  height: 38px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.90);
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.lbbtn:hover{ transform: translateY(-2px); background: rgba(255,255,255,0.10); }
.lbbtn:active{ transform: translateY(0) scale(0.98); }

.lightbox__counter{
  position: absolute;
  right: 64px; /* left of close */
  top: 12px;
  z-index: 3;
  padding: 9px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  font-weight: 800;
}

.lightbox__dots{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
}
.lightbox__dot{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.10);
  cursor: pointer;
}
.lightbox__dot.is-active{
  background: rgba(255,255,255,0.70);
  border-color: rgba(255,255,255,0.38);
}

/* Project name under preview */
.lightbox__project{
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* Thumbnail hover affordance (clickable) */
.work__thumb{
  position: relative;
  cursor: zoom-in;
}

.work__thumbOverlay{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(500px 260px at 50% 60%, rgba(0,210,255,0.18), rgba(0,0,0,0.0) 60%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}

.work__thumbIcon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(11,13,18,0.55);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  box-shadow: 0 18px 60px rgba(0,0,0,0.45);
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}

.work__thumbIcon svg{
  width: 22px;
  height: 22px;
  fill: rgba(255,255,255,0.90);
}

.work__thumbBadge{
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(11,13,18,0.55);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.86);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.work__thumbBadge small{
  font-size: 11px;
  font-weight: 800;
  color: rgba(255,255,255,0.62);
}

.work:hover .work__thumbOverlay{
  opacity: 1;
}
.work:hover .work__thumbIcon{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Only show overlay icon on hover-capable devices */
@media (hover: none){
  .work__thumb{ cursor: pointer; }
  .work__thumbOverlay{ opacity: 0 !important; }
  .work__thumbIcon{ display: none; }
}


/* Click hint (corner) */
.work__thumb{ position: relative; cursor: pointer; }
.work__cornerHint{
  position:absolute;
  right:12px;
  bottom:12px;
  width:36px;
  height:36px;
  border-radius:50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.65;
  transform: translateY(4px);
  backdrop-filter: blur(6px);
  transition: all .25s ease;
  pointer-events:none; /* hint only */
}
.work__cornerHint svg{
  width:18px;
  height:18px;
  stroke:#fff;
  stroke-width:2;
  fill:none;
  opacity:.95;
}
.work__thumb:hover .work__cornerHint{
  opacity:1;
  transform: translateY(0) scale(1.05);
  background: rgba(255,255,255,.14);
}


/* Preview close button */
.previewClose {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: all .2s ease;
}
.previewClose:hover {
  background: rgba(255,255,255,.15);
  transform: scale(1.05);
}
.previewClose:active {
  transform: scale(.95);
}


/* ===== Profile Image (Hero) ===== */

.profileImage{
  width: 84px;
  height: 84px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
  position: relative;
}

.profileImage::before{
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120px 120px at 25% 20%, rgba(255,255,255,0.18), transparent 60%);
  pointer-events: none;
}

.profileImage img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: contrast(1.02) saturate(1.03);
}

@media (max-width: 768px){
  .hero__grid{
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .hero__profile{
    order: -1;
    justify-self: start;
  }
  .profileImage{
    width: 96px;
    height: 96px;
    border-radius: 20px;
  }
}


/* ===== Profile layout: image beside title, desc uses full width ===== */
.hero__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hero__headText{
  flex: 1 1 auto;
  min-width: 0;
}

/* keep existing .profileImage styles; adjust wrapper */
.hero__profile{
  flex: 0 0 auto;
  align-self: flex-start;
}

@media (max-width: 768px){
  .hero__head{
    flex-direction: column;
    gap: 12px;
  }
  .hero__profile{
    order: -1; /* show image on top */
    align-self: flex-start;
  }
}

.footnote{
  margin-top: 30px;
}
