/* ============================================================
   OZI Technology — Projects / case-study detail page
   ============================================================ */

html { background: #04111B; scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, color-mix(in srgb, var(--svc-accent, #4FE0FF) 14%, transparent), transparent 60%),
    #04111B;
  color: #E8EEF3;
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }

.pwrap { max-width: 1060px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }

/* ---- Top bar ---- */
.pnav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(4, 17, 27, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.pnav__inner {
  max-width: 1060px; margin: 0 auto;
  padding: 16px clamp(20px, 5vw, 48px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pnav__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: -0.01em; font-size: 18px; }
.pnav__logo svg { width: 26px; height: 26px; color: var(--svc-accent, #4FE0FF); }
.pnav__logo img { width: 30px; height: 30px; object-fit: contain; }
.pnav__logo small { font-weight: 400; color: #9CB0BC; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.pback {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  color: #C9D6DE; font-size: 13.5px; font-weight: 500;
  transition: border-color .2s, color .2s, background .2s;
}
.pback:hover { color: #fff; border-color: var(--svc-accent, #4FE0FF); background: color-mix(in srgb, var(--svc-accent, #4FE0FF) 12%, transparent); }
.pback svg { width: 16px; height: 16px; }

/* ---- Hero ---- */
.phero { padding: clamp(56px, 9vw, 104px) 0 clamp(28px, 4vw, 48px); }
.phero__icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 26px;
  color: var(--svc-accent);
  background: color-mix(in srgb, var(--svc-accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-accent) 38%, transparent);
}
.phero__icon svg { width: 32px; height: 32px; }
.peyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--svc-accent); margin-bottom: 18px;
}
.peyebrow::before { content: ''; width: 22px; height: 1px; background: var(--svc-accent); display: inline-block; }
.phero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 18px; color: #fff; max-width: 16ch;
}
.phero p { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.65; color: #A9BAC5; max-width: 62ch; margin: 0; }
.phero__count {
  margin-top: 26px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12.5px; color: #8EA3AF;
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.1);
}
.phero__count b { color: var(--svc-accent); font-weight: 500; }

/* ---- Project list ---- */
.plist { display: flex; flex-direction: column; gap: 28px; padding-bottom: clamp(64px, 10vw, 120px); }

.proj {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  padding: clamp(28px, 4vw, 44px);
  overflow: hidden;
}
.proj::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--svc-accent), color-mix(in srgb, var(--svc-accent) 10%, transparent));
}
.proj__head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.proj__num {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 16px; font-weight: 500;
  color: var(--svc-accent);
  background: color-mix(in srgb, var(--svc-accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-accent) 34%, transparent);
}
.proj__titles { flex: 1; min-width: 0; }
.proj__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem); line-height: 1.2; letter-spacing: -0.01em;
  color: #fff; margin: 2px 0 0;
}
.proj__loc {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: #95A8B3; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
}
.proj__loc svg { width: 13px; height: 13px; opacity: 0.8; }

.proj__intro { font-size: 16px; line-height: 1.7; color: #B7C6CF; margin: 0 0 24px; max-width: 74ch; }

.proj__meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; overflow: hidden;
  margin: 0 0 26px;
}
.proj__meta div { background: #0A1A26; padding: 14px 18px; }
.proj__meta dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--svc-accent); margin: 0 0 5px; }
.proj__meta dd { margin: 0; font-size: 14px; line-height: 1.5; color: #C9D6DE; }

.proj__sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 36px; }
.psec h3 {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  letter-spacing: 0.02em; color: #fff; margin: 0 0 14px;
  display: flex; align-items: center; gap: 9px;
}
.psec h3::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--svc-accent); flex: none; }
.psec ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.psec li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.55; color: #AEBFC9; }
.psec li::before {
  content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; border: 1.5px solid var(--svc-accent); opacity: 0.85;
}

.proj__outcome {
  margin-top: 26px; padding: 18px 20px; border-radius: 14px;
  display: flex; gap: 14px; align-items: flex-start;
  background: color-mix(in srgb, var(--svc-accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--svc-accent) 24%, transparent);
}
.proj__outcome svg { flex: none; width: 20px; height: 20px; color: var(--svc-accent); margin-top: 2px; }
.proj__outcome p { margin: 0; font-size: 14.5px; line-height: 1.6; color: #D4E0E7; }
.proj__outcome b { color: var(--svc-accent); font-weight: 600; }

/* ---- Footer CTA ---- */
.pfoot { border-top: 1px solid rgba(255,255,255,0.07); }
.pfoot__inner {
  max-width: 1060px; margin: 0 auto; padding: 40px clamp(20px, 5vw, 48px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.pfoot p { margin: 0; color: #93A6B1; font-size: 14.5px; }
.pfoot a.cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 14.5px;
  color: #04111B; background: var(--svc-accent, #4FE0FF);
  transition: transform .2s, box-shadow .2s;
}
.pfoot a.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px var(--svc-accent, #4FE0FF); }
.pfoot a.cta svg { width: 16px; height: 16px; }

/* ---- Not found ---- */
.pnotfound { padding: 120px 0; text-align: center; }
.pnotfound h1 { font-family: var(--font-display); color: #fff; font-size: 28px; margin: 0 0 12px; }
.pnotfound p { color: #9CB0BC; margin: 0 0 24px; }

@media (max-width: 560px) {
  .proj__head { gap: 12px; }
  .proj__num { width: 38px; height: 38px; font-size: 14px; }
}
