/* assets/css/projects.css?v=1.1 — corrected layout, no cut shadows, consistent spacing */
:root{
  --ink: rgba(2, 6, 23, .92);
  --muted: rgba(2, 6, 23, .66);
  --line: rgba(15, 23, 42, .12);
  --bg: #ffffff;

  --a: #2bc4e3;
  --y: #ffd24a;
  --y2:#ffbf1f;

  --r: 18px;
  --r2: 22px;

  --shadow: 0 22px 70px rgba(2, 6, 23, .14);
  --shadow2: 0 16px 52px rgba(2, 6, 23, .10);
  --shadow3: 0 10px 26px rgba(2, 6, 23, .10);

  --ease: cubic-bezier(.2,.9,.2,1);

  --wrap: 1160px;
  --px: clamp(16px, 3vw, 28px);
  --g: clamp(12px, 2vw, 18px);
}

*,
*::before,
*::after{ box-sizing: border-box; }

html, body{ height:100%; }
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}

img, video{ max-width:100%; height:auto; display:block; }
a{ color: inherit; }

:focus-visible{
  outline: 3px solid rgba(43,196,227,.38);
  outline-offset: 3px;
  border-radius: 12px;
}

.container{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--px);
}

.projects-main{ min-height: 70vh; }

/* HERO */
.prj-hero{
  position: relative;
  padding: clamp(28px, 4vw, 44px) 0 clamp(34px, 5.5vw, 72px);
  background:
    radial-gradient(900px 520px at 12% 12%, rgba(43,196,227,.12), transparent 60%),
    radial-gradient(880px 520px at 90% 18%, rgba(255,210,74,.18), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 60%, #ffffff 100%);
}

/* keep decor inside, but never clip button shadows */
.prj-hero::before{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background:
    linear-gradient(90deg, rgba(255,210,74,.14), transparent 42%),
    linear-gradient(180deg, rgba(2,6,23,.05), transparent 32%);
  z-index: 0;
}

.prj-hero__wrap{
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--px);
  display:grid;
  grid-template-columns: 1.25fr .95fr;
  gap: clamp(16px, 2.4vw, 26px);
  align-items: start;
}

.prj-hero__copy{
  min-width: 0;
  padding-bottom: 4px; /* prevents bottom shadow clipping by adjacent sections */
}

.prj-hero__panel{
  min-width: 0;
}

/* kicker/title */
.prj-hero__kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(2,6,23,.70);
  margin: 0 0 12px;
}
.prj-hero__kicker::before{
  content:"";
  width: 26px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--y), var(--a));
  box-shadow: 0 10px 30px rgba(255,210,74,.28);
}

.prj-hero__title{
  font-size: clamp(30px, 3.1vw, 52px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  font-weight: 950;
  text-wrap: balance;
}
.prj-hero__sub{
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 650;
  max-width: 68ch;
  line-height: 1.55;
}

/* actions */
.prj-hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0 0 14px;
}

/* never let shadows get cut by parent widths */
.prj-btn{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.90);
  color: var(--ink);
  text-decoration:none;
  padding: 12px 14px;
  font-weight: 900;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
  box-shadow: 0 14px 40px rgba(2,6,23,.08);
  max-width: 100%;
  min-height: 52px;
}
.prj-btn:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
  border-color: rgba(43,196,227,.28);
}

.prj-btn--primary{
  padding: 14px 16px;
  border: 1px solid rgba(2,6,23,.10);
  background:
    radial-gradient(160px 90px at 12% 18%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(135deg, var(--y), var(--y2));
  box-shadow: 0 22px 70px rgba(255,191,31,.26);
  flex: 1 1 min(360px, 100%);
  min-width: min(360px, 100%);
}

.prj-btn--ghost{
  flex: 0 1 auto;
  background: rgba(255,255,255,.86);
}

.prj-btn__top{
  display:block;
  font-size: 12px;
  letter-spacing: .10em;
  text-transform: uppercase;
  color: rgba(2,6,23,.75);
  line-height: 1.1;
}
.prj-btn__main{
  display:block;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.prj-btn__sub{
  display:block;
  font-size: 12px;
  color: rgba(2,6,23,.72);
  font-weight: 800;
  line-height: 1.2;
}

.prj-hero__trust{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.prj-pill{
  display:inline-flex;
  align-items:center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.78);
  color: rgba(2,6,23,.80);
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 10px 26px rgba(2,6,23,.05);
}

/* PANEL */
.prj-panel{
  width: 100%;
  border-radius: var(--r2);
  border: 1px solid rgba(15,23,42,.12);
  background:
    radial-gradient(280px 220px at 90% 15%, rgba(43,196,227,.12), transparent 60%),
    radial-gradient(240px 220px at 20% 10%, rgba(255,210,74,.18), transparent 60%),
    rgba(255,255,255,.86);
  box-shadow: var(--shadow);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.prj-panel__head{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 10px;
  margin-bottom: 10px;
}
.prj-panel__title{ font-weight: 950; letter-spacing: -0.01em; }
.prj-panel__badge{
  font-weight: 950;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(2,6,23,.12);
  background: rgba(255,255,255,.72);
  white-space: nowrap;
}

.prj-stats{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 12px 0 12px;
}
.prj-stat{
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.78);
  padding: 10px 10px 11px;
  min-width: 0;
}
.prj-stat .k{
  font-weight: 900;
  font-size: 11px;
  color: rgba(2,6,23,.70);
  letter-spacing: .10em;
  text-transform: uppercase;
}
.prj-stat .v{
  font-weight: 1000;
  letter-spacing: -0.02em;
  font-size: 16px;
  margin-top: 2px;
}

.prj-panel__list{
  list-style:none;
  padding:0;
  margin: 0 0 12px;
  display:grid;
  gap: 10px;
}
.prj-panel__list li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  color: rgba(2,6,23,.82);
  font-weight: 750;
  line-height: 1.35;
}

.dot{
  width: 9px; height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--y), var(--a));
  box-shadow: 0 10px 26px rgba(255,210,74,.25);
  margin-top: 6px;
  flex: 0 0 auto;
}

.prj-panel__cta{
  display:inline-flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  text-decoration:none;
  font-weight: 1000;
  color: rgba(2,6,23,.92);
  border: 1px solid rgba(2,6,23,.10);
  background:
    radial-gradient(140px 90px at 12% 30%, rgba(255,255,255,.60), transparent 70%),
    linear-gradient(135deg, rgba(255,210,74,.92), rgba(255,191,31,.92));
  box-shadow: 0 20px 55px rgba(255,191,31,.18);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.prj-panel__cta:hover{ transform: translateY(-2px); box-shadow: 0 26px 80px rgba(255,191,31,.20); }

/* LOCAL SEO CARD */
.prj-local{ padding: 26px 0 0; }
.prj-local__card{
  border-radius: var(--r2);
  border: 1px solid rgba(15,23,42,.12);
  background:
    radial-gradient(900px 520px at 10% 10%, rgba(255,210,74,.12), transparent 60%),
    radial-gradient(900px 520px at 85% 30%, rgba(43,196,227,.10), transparent 60%),
    rgba(255,255,255,.88);
  box-shadow: var(--shadow2);
  padding: clamp(16px, 2.6vw, 22px);
}
.prj-local__card h2{
  margin:0 0 10px;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 950;
  letter-spacing:-0.01em;
}
.prj-local__card p{
  margin:0 0 10px;
  color: rgba(2,6,23,.72);
  font-weight: 650;
  line-height: 1.62;
}
.prj-local__chips{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.chip{
  display:inline-flex;
  align-items:center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.82);
  color: rgba(2,6,23,.82);
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 10px 26px rgba(2,6,23,.05);
}

/* FILTERS */
.prj-filters{ padding: 18px 0 8px; }
.filters-bar{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
}

.fbtn{
  appearance:none;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.90);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 950;
  color: rgba(2,6,23,.84);
  cursor:pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease);
  box-shadow: 0 12px 36px rgba(2,6,23,.06);
  line-height: 1;
  min-height: 40px;
}
.fbtn:hover{ transform: translateY(-1px); border-color: rgba(255,191,31,.45); }
.fbtn.is-active{
  border-color: rgba(2,6,23,.12);
  background:
    radial-gradient(160px 90px at 12% 25%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(135deg, rgba(255,210,74,.92), rgba(255,191,31,.92));
  box-shadow: 0 18px 54px rgba(255,191,31,.18);
}

/* GRID SECTION */
.prj-grid-sec{ padding: clamp(40px, 5vw, 74px) 0; }
.sec-head{ max-width: 78ch; margin: 0 0 18px; }
.sec-title{
  margin: 0 0 10px;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.02em;
  font-weight: 950;
  text-wrap: balance;
}
.sec-sub{
  margin: 0;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}

.prj-grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  align-items: stretch;
}

.prj-card{
  grid-column: span 4;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.90);
  box-shadow: 0 16px 52px rgba(2,6,23,.08);
  overflow:hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  min-width: 0;
}
.prj-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow2); }

.prj-card__media{
  position: relative;
  display:block;
  aspect-ratio: 4 / 3;
  background: #eee;
  text-decoration:none;
  color: inherit;
  overflow: hidden;
}
.prj-card__media .ph{
  position:absolute; inset:0;
  background:
    radial-gradient(300px 200px at 20% 20%, rgba(255,210,74,.22), transparent 60%),
    radial-gradient(280px 220px at 80% 10%, rgba(43,196,227,.14), transparent 60%),
    linear-gradient(180deg, rgba(2,6,23,.06), rgba(2,6,23,.02));
}
.prj-card__media img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
  transform: scale(1.001);
}

.prj-card__body{ padding: 14px; }
.prj-card__body h3{
  margin:0 0 8px;
  font-weight: 950;
  letter-spacing:-0.01em;
  line-height: 1.15;
}
.prj-card__body p{
  margin:0 0 12px;
  color: rgba(2,6,23,.70);
  font-weight: 650;
  line-height: 1.5;
}

.meta{ display:flex; gap: 8px; flex-wrap: wrap; }
.m{
  font-size: 12px;
  font-weight: 900;
  color: rgba(2,6,23,.74);
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.80);
  padding: 7px 9px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(2,6,23,.04);
}

.prj-card[hidden]{ display:none !important; }

/* bottom action */
.prj-actions{ margin-top: 18px; }
.prj-call{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  text-decoration:none;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.12);
  background:
    radial-gradient(160px 90px at 12% 25%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(135deg, rgba(255,210,74,.92), rgba(255,191,31,.92));
  padding: 14px 16px;
  box-shadow: 0 22px 70px rgba(255,191,31,.18);
  color: rgba(2,6,23,.92);
  font-weight: 950;
  transition: transform .22s var(--ease);
}
.prj-call:hover{ transform: translateY(-2px); }

/* LIGHTBOX */
.lb[hidden]{ display:none !important; }
.lb{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display:grid;
  place-items: center;
  padding: 12px;
}
.lb__backdrop{
  position:absolute; inset:0;
  background: rgba(2,6,23,.62);
  backdrop-filter: blur(6px);
}
.lb__panel{
  position: relative;
  width: min(980px, calc(100vw - 24px));
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.92);
  box-shadow: 0 30px 120px rgba(0,0,0,.35);
  overflow:hidden;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  max-height: min(86vh, 860px);
}
.lb__close{
  position:absolute;
  right: 10px;
  top: 10px;
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.92);
  cursor:pointer;
  font-size: 22px;
  font-weight: 900;
  box-shadow: var(--shadow3);
}
.lb__media{
  position: relative;
  background: #eee;
  min-height: 320px;
}
.lb__media img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit: cover;
}
.lb__ph{
  position:absolute; inset:0;
  background:
    radial-gradient(420px 280px at 20% 20%, rgba(255,210,74,.22), transparent 60%),
    radial-gradient(420px 280px at 85% 18%, rgba(43,196,227,.14), transparent 60%),
    linear-gradient(180deg, rgba(2,6,23,.06), rgba(2,6,23,.02));
}
.lb__body{
  padding: 16px;
  display:grid;
  align-content: start;
  gap: 10px;
  border-left: 1px solid rgba(15,23,42,.10);
  overflow: auto;
}
.lb__title{ font-weight: 1000; font-size: 18px; letter-spacing: -0.01em; }
.lb__desc{ color: rgba(2,6,23,.70); font-weight: 650; line-height: 1.55; }
.lb__cta{
  margin-top: 6px;
  text-decoration:none;
  border-radius: 16px;
  border: 1px solid rgba(2,6,23,.10);
  background:
    radial-gradient(160px 90px at 12% 18%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(135deg, rgba(255,210,74,.92), rgba(255,191,31,.92));
  padding: 12px 14px;
  font-weight: 1000;
  color: rgba(2,6,23,.92);
  width: fit-content;
  box-shadow: 0 18px 54px rgba(255,191,31,.16);
}

/* CTA */
.section.cta-call{ padding: clamp(52px, 6vw, 88px) 0; }
.cta-shell{
  border-radius: 22px;
  border: 1px solid rgba(15,23,42,.12);
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(255,210,74,.18), transparent 60%),
    radial-gradient(900px 520px at 85% 20%, rgba(43,196,227,.12), transparent 60%),
    rgba(255,255,255,.88);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.6vw, 24px);
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
  align-items: center;
}
.cta-title{
  margin:0 0 10px;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 1000;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cta-sub{
  margin:0 0 12px;
  color: var(--muted);
  font-weight: 650;
  line-height: 1.55;
}
.cta-points{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
}
.cta-points li{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  font-weight: 800;
  color: rgba(2,6,23,.80);
  line-height: 1.35;
}
.cta-actions{ display:grid; gap: 12px; justify-items: start; }
.cta-btn{
  width: min(360px, 100%);
  text-decoration:none;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(2,6,23,.10);
  background:
    radial-gradient(160px 90px at 12% 18%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(135deg, var(--y), var(--y2));
  box-shadow: 0 22px 70px rgba(255,191,31,.28);
  color: rgba(2,6,23,.92);
  font-weight: 1000;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.cta-btn:hover{ transform: translateY(-2px); box-shadow: 0 28px 90px rgba(255,191,31,.26); }

.cta-btn-top{ display:block; font-size: 12px; letter-spacing: .10em; text-transform: uppercase; color: rgba(2,6,23,.75); }
.cta-btn-main{ display:block; font-size: 20px; line-height: 1.15; }
.cta-btn-sub{ display:block; font-size: 12px; color: rgba(2,6,23,.72); font-weight: 850; }

.cta-trust{ display:flex; flex-wrap: wrap; gap: 10px; }
.pill{
  display:inline-flex;
  align-items:center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.82);
  color: rgba(2,6,23,.80);
  font-weight: 900;
  font-size: 12px;
  box-shadow: 0 10px 26px rgba(2,6,23,.05);
}

/* Responsive */
@media (max-width: 980px){
  .prj-hero__wrap{ grid-template-columns: 1fr; }
  .prj-hero__actions{ gap: 10px; }
  .prj-btn--primary{ min-width: 100%; }
  .prj-card{ grid-column: span 6; }
  .lb__panel{ grid-template-columns: 1fr; max-height: 90vh; }
  .lb__body{ border-left: 0; border-top: 1px solid rgba(15,23,42,.10); }
  .cta-shell{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .prj-card{ grid-column: span 12; }
  .prj-stats{ grid-template-columns: 1fr; }
  .prj-panel{ padding: 14px; }
  .prj-call{ flex-direction: column; align-items: flex-start; }
}
