:root {
  --bg: #05295d;
  --bg-dark: #031a3e;
  --panel: rgba(6, 28, 62, .96);
  --ink: #f6f4ef;
  --muted: #c9d3e5;
  --line: rgba(255,255,255,.13);
  --accent: #1686ff;
  --accent-2: #55b7ff;
  --card-radius: 28px;
  --shadow: 0 24px 65px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(27,132,255,.18), transparent 28%),
    radial-gradient(circle at 88% 32%, rgba(65,170,255,.10), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #06346f 50%, var(--bg-dark) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body::before {
  content:"";
  position: fixed; inset: 0; pointer-events: none; opacity: .32;
  background-image:
    repeating-radial-gradient(circle at 0 8%, transparent 0 42px, rgba(127,186,255,.24) 43px 44px, transparent 45px 84px),
    repeating-radial-gradient(circle at 100% 88%, transparent 0 44px, rgba(127,186,255,.2) 45px 46px, transparent 47px 88px);
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.page-shell { position: relative; z-index: 1; }
.site-header {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  padding: 0 4.6vw;
  background: rgba(1,16,38,.62);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky; top: 0; z-index: 20;
}
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 850; letter-spacing: .04em; }
.brand-mark { width: 42px; height: 42px; border: 2px solid rgba(255,255,255,.82); border-radius: 50%; display: grid; place-items: center; font-size: 10px; line-height: .82; text-align:center; }
.brand-name { font-size: 14px; }
.site-nav { display:flex; justify-content:center; gap: 34px; }
.site-nav a { position:relative; text-decoration:none; font-size: 13px; font-weight: 760; color:#dce6f6; }
.site-nav a::after { content:""; position:absolute; height:2px; left:0; right:100%; bottom:-14px; background:var(--accent); transition:.2s ease; }
.site-nav a:hover::after, .site-nav a.active::after { right:0; }

.btn { border: 0; border-radius: 10px; padding: 11px 15px; font-weight: 780; color: white; display:inline-flex; gap:9px; align-items:center; justify-content:center; }
.btn-primary { background: linear-gradient(135deg, #0f66ce, #178dfd); box-shadow: 0 10px 28px rgba(16,124,243,.28); }
.btn-secondary { background: #0c3f7d; border:1px solid rgba(255,255,255,.12); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-danger { background: #702b3a; border:1px solid rgba(255,255,255,.11); }
.btn.full { width:100%; }

.content { width: min(1280px, 92vw); margin: 0 auto; padding: 70px 0 90px; }
.hero { text-align:center; margin-bottom: 42px; }
.eyebrow, .editor-kicker { color: var(--accent-2); font-size: 11px; font-weight: 900; letter-spacing: .18em; }
.hero h1 { font-size: clamp(40px, 6vw, 82px); line-height: .98; letter-spacing: -.045em; margin: 9px auto 13px; max-width: 1080px; }
.hero p { margin:0; color:#d9e3f3; font-size: clamp(17px,2vw,25px); font-weight: 430; }

.project-grid {
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items:stretch;
}
.project-card {
  grid-column: span 2;
  min-height: 440px;
  border-radius: var(--card-radius);
  overflow:hidden;
  position:relative;
  background:#08101c;
  border:1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  isolation:isolate;
  transition: transform .24s ease, border-color .24s ease;
}
.project-card:nth-child(n+4) { grid-column: span 3; }
.project-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.32); }
.card-media { position:absolute; inset:0; z-index:-2; overflow:hidden; background:#050a12; }
.card-media img { width:100%; height:100%; object-position:center; display:block; transition: transform .35s ease; }
.project-card:hover .card-media img { transform:scale(1.018); }
.card-shade { position:absolute; inset:0; z-index:-1; background: linear-gradient(to bottom, rgba(0,0,0,.02) 5%, rgba(0,0,0,.09) 45%, rgba(0,0,0,.88) 74%, #05080d 100%); }
.card-content { min-height:100%; padding: 18px 22px 19px; display:flex; flex-direction:column; justify-content:flex-end; text-align:center; }
.card-category { align-self:flex-start; position:absolute; top:14px; left:15px; border:1px solid rgba(255,255,255,.42); background: rgba(10,13,20,.70); backdrop-filter: blur(12px); padding:6px 10px; border-radius:999px; font-size:11px; font-weight:850; letter-spacing:.03em; }
.card-title { margin:0 0 6px; font-size: clamp(21px,2.2vw,31px); letter-spacing:.015em; text-transform:uppercase; line-height:1.03; }
.card-description { margin:0 auto 14px; max-width: 92%; color:#f4f4f4; font-size:14px; line-height:1.45; text-transform:uppercase; letter-spacing:.06em; }
.card-links { display:flex; justify-content:center; flex-wrap:wrap; gap:9px; min-height:40px; }
.social-link { width:38px; height:38px; border-radius:10px; display:grid; place-items:center; text-decoration:none; background:rgba(3,7,14,.80); border:1px solid rgba(255,255,255,.25); color:#fff; font-size:18px; transition:.2s ease; }
.social-link:hover { transform:translateY(-2px); background:#0f65c9; border-color:#5db3ff; }
.card-main-link { position:absolute; inset:0; z-index:0; border-radius:inherit; }
.card-content > * { position:relative; z-index:2; }
.card-links { position:relative; z-index:4; }

.impact-strip { margin: 48px 0 0; display:grid; grid-template-columns: repeat(4,1fr); border:1px solid var(--line); background:rgba(2,16,39,.42); backdrop-filter: blur(10px); border-radius:18px; overflow:hidden; }
.impact-strip > div { padding:23px 18px; text-align:center; border-right:1px solid var(--line); }
.impact-strip > div:last-child { border-right:0; }
.impact-strip strong { display:block; font-size:26px; }
.impact-strip span { display:block; color:#bfcce1; margin-top:4px; font-size:12px; text-transform:uppercase; letter-spacing:.09em; }
.cta { margin: 84px auto 0; max-width:800px; text-align:center; }
.cta h2 { font-size: clamp(32px,4vw,52px); margin:8px 0; letter-spacing:-.03em; }
.cta p:last-child { color:var(--muted); font-size:17px; }

.editor {
  position: fixed; top:0; right:0; bottom:0; width:min(430px, 92vw); z-index:50;
  transform: translateX(105%); transition: transform .25s ease;
  background: var(--panel); border-left:1px solid rgba(255,255,255,.15); box-shadow:-25px 0 60px rgba(0,0,0,.35); backdrop-filter: blur(20px);
}
.editor.open { transform:translateX(0); }
.editor-header { height:84px; padding: 18px 20px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); }
.editor-header h2 { margin:3px 0 0; font-size:21px; }
.icon-btn { border:1px solid var(--line); width:38px; height:38px; border-radius:10px; color:#fff; background:transparent; font-size:18px; }
.editor-scroll { height:calc(100% - 84px); overflow:auto; padding: 0 18px 30px; }
.editor-section { padding: 20px 0; border-bottom:1px solid var(--line); }
.editor-section h3 { margin:0 0 14px; font-size:15px; }
.editor label { display:grid; gap:6px; margin:0 0 12px; color:#d6e0f0; font-size:12px; font-weight:690; }
.editor input, .editor textarea, .editor select { width:100%; color:white; background:#061a37; border:1px solid rgba(255,255,255,.18); border-radius:9px; outline:none; padding:10px 11px; }
.editor textarea { resize:vertical; }
.editor input:focus, .editor textarea:focus, .editor select:focus { border-color:#3d9dff; box-shadow:0 0 0 3px rgba(61,157,255,.12); }
.section-row { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.microcopy, .hint { color:#8fa5c4; font-size:11px; }
.image-actions, .two-col { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.upload-btn { cursor:pointer; }
.button-stack { display:grid; gap:8px; }
.platform-editor { display:grid; gap:8px; }
.platform-row { display:grid; grid-template-columns: 36px 26px 1fr; gap:8px; align-items:center; }
.platform-icon { width:36px; height:36px; border-radius:9px; display:grid; place-items:center; background:#0a2f60; font-size:17px; }
.platform-row input[type=checkbox] { appearance:none; width:23px; height:23px; padding:0; margin:0; border-radius:7px; position:relative; cursor:pointer; }
.platform-row input[type=checkbox]:checked { background:#147dea; border-color:#55b2ff; }
.platform-row input[type=checkbox]:checked::after { content:"✓"; position:absolute; inset:0; display:grid; place-items:center; font-size:12px; font-weight:900; }
.platform-row .platform-url { margin:0; }
.remove-custom { border:0; color:#ffb3bd; background:transparent; font-size:12px; padding:0; }
.scrim { position:fixed; inset:0; z-index:40; background:rgba(0,0,0,.44); backdrop-filter:blur(2px); }

@media (max-width: 980px) {
  .site-nav { display:none; }
  .site-header { grid-template-columns:1fr auto; }
  .project-card, .project-card:nth-child(n+4) { grid-column: span 3; }
  .impact-strip { grid-template-columns:1fr 1fr; }
  .impact-strip > div:nth-child(2) { border-right:0; }
  .impact-strip > div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
}
@media (max-width: 680px) {
  .content { width:min(94vw, 560px); padding-top:44px; }
  .site-header { padding:0 4vw; gap:10px; }
  .brand-name { display:none; }
  .btn-primary span { display:none; }
  .project-grid { display:block; }
  .project-card, .project-card:nth-child(n+4) { min-height: 430px; margin-bottom:18px; }
  .impact-strip { grid-template-columns:1fr; }
  .impact-strip > div { border-right:0; border-bottom:1px solid var(--line); }
  .impact-strip > div:last-child { border-bottom:0; }
}


/* Final production refinements */
.edit-toggle-hidden { display: none !important; }
.site-legal {
  margin: 28px 0 0 !important;
  color: rgba(201, 211, 229, .64) !important;
  font-size: 11px !important;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (min-width: 981px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero .eyebrow { margin-bottom: 5px; }
  .hero h1 { margin-top: 7px; margin-bottom: 15px; }
  .hero p { max-width: 760px; }
}
