:root {
  --navy-900: #0b1d3a;
  --navy-800: #102a4c;
  --navy-700: #173863;
  --navy-50:  #f4f7fb;
  --blue-500: #2f6fed;
  --blue-600: #1f5acc;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 4px 16px rgba(11, 29, 58, 0.08);
  --shadow-lg: 0 10px 32px rgba(11, 29, 58, 0.12);
  --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* Header / Nav */
header.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--slate-100);
  backdrop-filter: saturate(180%) blur(8px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1100px; margin: 0 auto; }
.brand { font-weight: 700; color: var(--navy-900); font-size: 18px; letter-spacing: 0.2px; }
.brand a { color: inherit; text-decoration: none; }
.brand span { color: var(--blue-600); }
nav ul { display: flex; gap: 28px; list-style: none; }
nav a { color: var(--slate-700); font-weight: 500; font-size: 14.5px; padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color 0.15s ease, border-color 0.15s ease; }
nav a:hover { color: var(--blue-600); text-decoration: none; }
nav a.active { color: var(--navy-900); border-bottom-color: var(--blue-500); }

/* Hero (home page) */
.hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(47,111,237,0.25), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(47,111,237,0.18), transparent 45%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}
.hero-photo {
  width: 240px; height: 240px; border-radius: 50%;
  background: linear-gradient(135deg, #1f5acc 0%, #173863 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 88px; font-weight: 700; color: rgba(255,255,255,0.85);
  border: 4px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
  overflow: hidden;
  position: relative;
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 22%;
  display: block; position: absolute; inset: 0;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; justify-items: start; }
  .hero-photo { width: 160px; height: 160px; font-size: 60px; }
}
.eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: #9ec0ff; padding: 6px 12px; border: 1px solid rgba(158,192,255,0.35); border-radius: 999px; margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1; font-weight: 700; color: var(--white);
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.hero h1 em { font-style: normal; color: #9ec0ff; }
.hero p.lead {
  font-size: 18px; max-width: 720px; color: #d6e1f5;
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: var(--radius);
  font-weight: 600; font-size: 15px; transition: all 0.18s ease;
  border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--blue-500); color: var(--white); }
.btn-primary:hover { background: var(--blue-600); text-decoration: none; transform: translateY(-1px); }
.btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.35); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.08); text-decoration: none; }

/* Compact sub-page hero */
.subhero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.subhero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(47,111,237,0.2), transparent 45%);
  pointer-events: none;
}
.subhero .container { position: relative; z-index: 1; }
.subhero .eyebrow { margin-bottom: 16px; }
.subhero h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700; color: var(--white); letter-spacing: -0.3px; margin-bottom: 12px;
}
.subhero p {
  color: #d6e1f5; font-size: 17px; max-width: 720px;
}

/* Section headings */
.section-head { margin-bottom: 44px; }
.section-head .label {
  color: var(--blue-600); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 36px);
  color: var(--navy-900); font-weight: 700; margin-top: 8px; letter-spacing: -0.3px;
}
.section-head p { color: var(--slate-500); margin-top: 10px; max-width: 680px; }

/* Skills grid */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 20px;
}
.skill-card {
  background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.skill-card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--navy-50);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--blue-600);
}
.skill-card h3 { font-size: 17px; color: var(--navy-900); margin-bottom: 12px; font-weight: 700; }
.skill-card ul { list-style: none; }
.skill-card li {
  font-size: 14.5px; color: var(--slate-700); padding: 6px 0;
  border-bottom: 1px dashed var(--slate-100);
}
.skill-card li:last-child { border-bottom: none; }

/* Projects */
.projects-section { background: var(--navy-50); }
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}
.project-card {
  background: var(--white); border-radius: var(--radius); padding: 28px;
  border: 1px solid var(--slate-100); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.project-card .tag {
  display: inline-block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--blue-600); font-weight: 600; margin-bottom: 12px;
}
.project-card h3 { color: var(--navy-900); font-size: 19px; margin-bottom: 12px; font-weight: 700; }
.project-card p { font-size: 14.5px; color: var(--slate-700); margin-bottom: 16px; }
.project-meta {
  margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap;
  padding-top: 16px; border-top: 1px solid var(--slate-100);
}
.chip {
  font-size: 12px; padding: 4px 10px; background: var(--navy-50); color: var(--navy-800);
  border-radius: 999px; font-weight: 500;
}
.outcomes { background: var(--navy-50); padding: 12px 14px; border-radius: 8px; margin-bottom: 14px; }
.outcomes strong { color: var(--navy-900); font-size: 13px; display: block; margin-bottom: 4px; }
.outcomes span { font-size: 13.5px; color: var(--slate-700); }

/* Scripts / Downloads */
.scripts-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}
.script-card {
  background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.script-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.script-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.script-head .ic {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, #012456 0%, #1f5acc 100%);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-weight: 700; font-size: 15px;
}
.script-head h3 { color: var(--navy-900); font-size: 18px; font-weight: 700; margin: 0; }
.script-head .lang { color: var(--slate-500); font-size: 12px; margin-top: 2px; }
.script-card p { font-size: 14.5px; color: var(--slate-700); margin-bottom: 14px; }
.script-checks { background: var(--navy-50); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; }
.script-checks strong { display: block; color: var(--navy-900); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.script-checks ul { list-style: none; columns: 2; column-gap: 24px; }
.script-checks li { font-size: 13px; color: var(--slate-700); padding: 3px 0; break-inside: avoid; }
.script-checks li::before { content: "›"; color: var(--blue-600); margin-right: 8px; font-weight: 700; }
.script-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.script-actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.btn-download { background: var(--navy-900); color: #fff; padding: 11px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.btn-download:hover { background: var(--navy-800); text-decoration: none; }
.btn-secondary { background: transparent; color: var(--navy-900); border: 1px solid var(--slate-300); padding: 11px 18px; border-radius: var(--radius); font-weight: 600; font-size: 14px; }
.btn-secondary:hover { background: var(--navy-50); text-decoration: none; }
.scripts-note {
  margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--blue-500);
  background: var(--navy-50); border-radius: 6px; font-size: 13.5px; color: var(--slate-700);
}
@media (max-width: 540px) {
  .script-checks ul { columns: 1; }
}

/* Brief listing of scripts (scripts.html landing page) */
.script-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.script-list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 22px 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-left-color 0.15s ease;
}
.script-list-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-left-color: var(--navy-900);
  text-decoration: none;
}
.script-list-item h3 {
  color: var(--navy-900);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.1px;
}
.script-list-item p {
  color: var(--slate-700);
  font-size: 14.5px;
  margin: 0;
}
.script-list-item .lang {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--slate-500);
}
.script-list-item .chevron {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--navy-50);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.script-list-item:hover .chevron {
  background: var(--navy-900);
  color: var(--white);
  transform: translateX(3px);
}
@media (max-width: 540px) {
  .script-list-item { padding: 18px 20px; }
  .script-list-item h3 { font-size: 17px; }
}

/* Detail page breadcrumb (script-detail pages) */
.subhero .breadcrumb {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  color: #9ec0ff;
  text-decoration: none;
  letter-spacing: 0.4px;
}
.subhero .breadcrumb:hover {
  color: var(--white);
  text-decoration: none;
}

/* Detail-page Get Script button — bigger version */
.btn-get-script {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy-900); color: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700; font-size: 15px;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-get-script:hover {
  background: var(--blue-600);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Legal / disclaimer block at the bottom of the Scripts section */
.legal-notice {
  margin-top: 48px;
  padding: 26px 28px;
  background: var(--navy-50);
  border: 1px solid var(--slate-100);
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--slate-700);
}
.legal-notice h4 {
  color: var(--navy-900);
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: 0.2px;
}
.legal-notice p {
  margin: 0 0 10px;
}
.legal-notice .legal-callout {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-left: 3px solid #d97706; /* warning amber */
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}
.legal-notice .legal-copy {
  color: var(--navy-900);
  font-size: 13px;
}
.legal-notice .legal-asis {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--slate-500);
  text-transform: none;
  letter-spacing: 0.1px;
  background: var(--white);
  border: 1px solid var(--slate-100);
  padding: 12px 14px;
  border-radius: 6px;
  margin-top: 6px;
}

/* Home overview cards (link out to subpages) */
.overview-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.overview-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--white); border: 1px solid var(--slate-100); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.overview-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.overview-card .ic {
  width: 44px; height: 44px; border-radius: 10px; background: var(--navy-50);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--blue-600);
}
.overview-card h3 { color: var(--navy-900); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.overview-card p { color: var(--slate-700); font-size: 14.5px; margin-bottom: 14px; }
.overview-card .more { color: var(--blue-600); font-weight: 600; font-size: 14px; }
.overview-card .more::after { content: " →"; }

/* Contact */
.contact-section { background: var(--navy-900); color: var(--white); text-align: center; }
.contact-section h2 { color: var(--white); }
.contact-section .label { color: #9ec0ff; }
.contact-section p.lead { color: #d6e1f5; max-width: 600px; margin: 16px auto 32px; }
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px; max-width: 760px; margin: 0 auto;
}
.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 22px; border-radius: var(--radius);
  transition: background 0.18s ease;
}
.contact-card:hover { background: rgba(255,255,255,0.09); }
.contact-card .ic { color: #9ec0ff; margin-bottom: 10px; }
.contact-card .l { font-size: 12px; color: #9ec0ff; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }
.contact-card .v { color: var(--white); font-size: 15px; word-break: break-all; }
.contact-card a { color: var(--white); }

/* Footer */
footer.site-foot {
  background: var(--navy-900); color: #9ec0ff; text-align: center;
  padding: 26px 24px; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.08);
}

/* Responsive */
@media (max-width: 720px) {
  nav ul { gap: 16px; }
  nav a { font-size: 13.5px; }
  section { padding: 64px 0; }
  .hero { padding: 80px 0 70px; }
  .subhero { padding: 56px 0 48px; }
}
