/* Connection between the personal site and Lens By Shadman.
   Loaded last so these rules win on small screens. */

.info a{
  color:inherit;
  text-decoration:none;
  border-bottom:1px solid rgba(95,208,192,.55);
}
.info a:hover{color:var(--cyan,#5fd0c0)}

.lens-art{
  display:block;
  min-height:220px;
  background:#10141a center/cover no-repeat;
}
.lens-art img{
  width:100%;
  height:240px;
  object-fit:cover;
  border-radius:0;
}
.lens-card .body{position:relative}

.lens-jump{
  display:inline-flex;
  align-items:center;
  margin-top:14px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(226,177,90,.45);
  color:#f0d7a4;
  text-decoration:none;
  font-weight:600;
}
.lens-jump:hover{border-color:#e2b15a;color:#fff}

.lens-note{
  margin:28px 0 0;
  color:#a9afb7;
}
.lens-note a{color:#f0d7a4}

/* Phone: keep the cutout portrait fully visible, and stop the header crowding. */
@media (max-width:850px){
  .hero-portrait-wrap{
    overflow:visible!important;
    aspect-ratio:auto!important;
    min-height:0!important;
  }
  .hero-portrait{
    width:min(100%,420px)!important;
    max-width:100%!important;
    height:auto!important;
    max-height:520px!important;
    object-fit:contain!important;
    object-position:center bottom!important;
    margin-inline:auto;
  }
}
@media (max-width:640px){
  .site-header{padding-left:10px;padding-right:10px}
  .site-header__bar{gap:8px;padding:0 8px 0 10px}
  .site-brand{min-width:0;gap:8px}
  .site-brand__name{
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:42vw;
  }
  .site-footer__nav{gap:10px 14px}
  footer.site-footer{padding-bottom:96px}
}
@media (max-width:380px){
  .hero h1{font-size:42px!important}
  .actions{display:grid}
  .actions .btn{width:100%}
}

.lens-entry{
  position:relative;
  z-index:1;
  margin:10px auto 20px;
  padding:28px clamp(18px,4vw,48px) 36px;
  max-width:1500px;
}
.lens-entry__copy{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);
  gap:24px 40px;
  align-items:end;
  margin-bottom:22px;
}
.lens-entry h2{
  margin:0;
  font-family:var(--display,'Space Grotesk',Arial,sans-serif);
  font-weight:600;
  font-size:clamp(40px,5vw,68px);
  line-height:.95;
  letter-spacing:-.04em;
}
.lens-entry h2 span{color:#e3934a}
.lens-entry__copy p{
  margin:0;
  max-width:36rem;
  color:#b7c0c8;
  font-size:1.02rem;
}
.lens-strip{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:14px;
}
.lens-strip a{
  position:relative;
  display:block;
  border-radius:18px;
  overflow:hidden;
  min-height:210px;
  border:1px solid rgba(255,255,255,.08);
}
.lens-strip img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}
.lens-strip a:hover img{transform:scale(1.04)}
.lens-strip span{
  position:absolute;
  left:12px;
  bottom:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(8,10,14,.72);
  color:#fff;
  font-size:.72rem;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.lens-enter{
  display:inline-flex;
  align-items:center;
  margin-top:18px;
  min-height:48px;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.16);
  color:#f3f1ec;
  text-decoration:none;
  font-weight:600;
}
.lens-enter:hover{border-color:#e3934a;color:#e3934a}
@media (max-width:900px){
  .lens-entry__copy{grid-template-columns:1fr}
  .lens-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lens-strip a:last-child{grid-column:1 / -1}
  .lens-strip img{height:200px}
}
@media (max-width:520px){
  .lens-entry h2{font-size:36px}
  .lens-strip{grid-template-columns:1fr 1fr}
  .lens-strip img{height:160px}
}

/* Same frame and circular image on every project card */
.projects{align-items:stretch}
.projects .project{display:flex;flex-direction:column;height:100%}
.projects .art{
  height:220px;
  display:grid;
  place-items:center;
  background:radial-gradient(circle,#20242c,#15171b 68%);
}
.projects .art img{
  width:112px!important;
  height:112px!important;
  max-width:112px;
  object-fit:cover!important;
  border-radius:50%!important;
  border:3px solid rgba(255,255,255,.16);
  box-shadow:0 10px 28px rgba(0,0,0,.4);
  background:#111;
}
.projects .body{display:flex;flex-direction:column;flex:1}
.projects .proj-btn{margin-top:auto}
@media (max-width:900px){
  .projects{grid-template-columns:1fr}
}
