/* Browser-mockup project cards (shared by Home and Experiences) */
.project-feature .project-visual {
  min-height: 0;
  aspect-ratio: 900 / 620;
  background: #11131d;
}

.project-feature .project-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.project-browser {
  position: absolute;
  inset: 6% 5% 7%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 18px;
  background: #101117;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .48), 0 0 45px rgba(126, 115, 255, .12);
  transform: perspective(1400px) rotateX(1.5deg) rotateY(-1deg);
  transition: transform .5s ease, box-shadow .5s ease;
}

.project-feature:hover .project-browser {
  transform: perspective(1400px) rotateX(0) rotateY(0) translateY(-3px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .52), 0 0 54px rgba(126, 115, 255, .2);
}

.project-browser-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  color: #b5b7c1;
  background: linear-gradient(180deg, #24252d, #181920);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font: 10px/1 Inter, sans-serif;
  letter-spacing: .02em;
}

.browser-lights { display: flex; gap: 5px; }
.browser-lights i { width: 7px; height: 7px; border-radius: 50%; background: #ff6b72; }
.browser-lights i:nth-child(2) { background: #ffc45d; }
.browser-lights i:nth-child(3) { background: #5bd795; }
.project-address { flex: 1; text-align: center; opacity: .8; }
.browser-open { color: #ececf3; font-size: 13px; }

.project-browser-screen {
  position: relative;
  height: calc(100% - 38px);
  overflow: hidden;
}

.project-feature .project-browser-screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-aquashine .project-browser-screen > img { object-position: center 55%; }
.visual-ethere .project-browser-screen > img { object-position: center 48%; }

.website-preview-copy {
  position: absolute;
  z-index: 2;
  inset: 0 auto 0 0;
  width: 58%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(18px, 4vw, 52px);
  color: #fff;
  background: linear-gradient(90deg, rgba(3, 20, 28, .88), rgba(4, 24, 31, .55) 72%, transparent);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .32);
}

.website-preview-copy small,
.jarvis-interface > span {
  margin-bottom: 13px;
  font-size: 9px;
  letter-spacing: .19em;
  font-weight: 700;
}

.website-preview-copy strong {
  font: 600 clamp(23px, 3.5vw, 50px)/1.04 "Space Grotesk", sans-serif;
  letter-spacing: -.045em;
}

.website-preview-copy > span {
  margin-top: 19px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .1em;
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.ethere-copy {
  color: #fffaf1;
  background: linear-gradient(90deg, rgba(40, 27, 35, .79), rgba(43, 29, 38, .43) 72%, transparent);
}

.ethere-copy strong { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.025em; }

.preview-stamp {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: 9%;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 50%;
  color: white;
  background: rgba(15, 37, 46, .25);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  text-align: center;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: .15em;
  transform: rotate(9deg);
}

.ethere-stamp { color: #fff4e9; border-color: rgba(255, 238, 224, .78); background: rgba(97, 58, 73, .27); }

.jarvis-browser .project-browser-screen > img { object-fit: cover; }

.jarvis-interface {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 230px;
  padding: 13px 22px;
  border: 1px solid rgba(190, 208, 255, .28);
  border-radius: 12px;
  color: #f4f1ff;
  background: rgba(15, 17, 40, .75);
  box-shadow: 0 8px 35px rgba(0, 0, 0, .3), 0 0 28px rgba(130, 112, 255, .15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.jarvis-interface > span { margin: 0 0 5px; color: #bfc4ff; font-size: 8px; }
.jarvis-interface strong { font: 600 17px/1.2 "Space Grotesk", sans-serif; }
.jarvis-interface i { margin-top: 7px; color: #aeb4c8; font-size: 9px; font-style: normal; }

.project-feature .visual-aquashine img {
  filter: saturate(1.35) hue-rotate(11deg) contrast(1.08);
}

.project-feature .visual-ethere img {
  filter: saturate(1.18) hue-rotate(320deg) contrast(1.04);
}

.project-feature .visual-aquashine::after,
.project-feature .visual-ethere::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}

.project-feature .visual-aquashine::after {
  background:
    radial-gradient(ellipse at 77% 18%, rgba(117, 247, 255, .44), transparent 25%),
    linear-gradient(135deg, rgba(17, 231, 255, .16), transparent 48%, rgba(106, 93, 255, .3));
}

.project-feature .visual-ethere::after {
  background:
    radial-gradient(ellipse at 74% 20%, rgba(255, 227, 185, .48), transparent 25%),
    linear-gradient(145deg, rgba(255, 126, 194, .22), transparent 46%, rgba(134, 104, 255, .34));
}

.project-feature:hover .project-visual img {
  transform: scale(1.035);
}


/* Home: the wide first card is shorter; others keep the Experiences ratio */
.projects .project-wide.project-feature .project-visual { aspect-ratio: 16 / 7; }
@media (max-width: 900px) {
  .projects .project-wide.project-feature .project-visual { aspect-ratio: 900 / 620; }
}
@media (max-width: 680px) {
  .project-browser { inset: 5% 4% 6%; border-radius: 14px; }
  .project-browser-bar { height: 32px; }
  .project-browser-screen { height: calc(100% - 32px); }
  .website-preview-copy { width: 70%; padding: 14px; }
  .website-preview-copy strong { font-size: clamp(20px, 6.4vw, 28px); }
  .website-preview-copy small { font-size: 7px; letter-spacing: .12em; margin-bottom: 8px; }
  .website-preview-copy > span { margin-top: 12px; padding: 8px 10px; }
  .preview-stamp { width: 58px; height: 58px; font-size: 7px; }
  .jarvis-interface { min-width: 0; width: 78%; padding: 10px 14px; }
}
