:root {
  /* Portfolio palette; mirrored in the standalone ProdGuard SQL case study. */
  --bg: #07110F;
  --surface: #0B1715;
  --panel: rgba(18, 40, 36, .60);
  --panel-strong: rgba(21, 48, 43, .72);
  --text: #EDF7F4;
  --muted: #A8C4BC;
  /* Lifted from #78968E for small text over layered translucent panels. */
  --muted-2: #8BA99F;
  --border: rgba(148, 210, 195, .16);
  --border-strong: rgba(45, 212, 191, .38);
  --control-border: rgba(148, 210, 195, .58);
  --accent: #2DD4BF;
  --accent-bright: #67E8D5;
  --accent-2: #38BDF8;
  --on-accent: #04110E;
  --good: #4ADE80;
  --warn: #FBBF24;
  --accent-soft: rgba(45, 212, 191, .06);
  --accent-tint: rgba(45, 212, 191, .10);
  --accent-border: rgba(45, 212, 191, .16);
  --glow-teal: rgba(45, 212, 191, .18);
  --glow-aqua: rgba(56, 189, 248, .12);
  --glow-good: rgba(74, 222, 128, .06);
  --header-bg: rgba(7, 17, 15, .90);
  --focus-border: rgba(45, 212, 191, .75);
  --focus-shadow: 0 0 0 4px rgba(45, 212, 191, .12);
  --primary-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
  --primary-hover-gradient: linear-gradient(135deg, var(--accent-bright), var(--accent-2));
  --logo-gradient: linear-gradient(135deg, var(--accent), var(--accent-bright));
  --accent-shadow: 0 8px 22px rgba(45, 212, 191, .12);
  --featured-shadow: 0 24px 64px rgba(0, 0, 0, .42);
  --shadow: 0 18px 50px rgba(0, 0, 0, .36);
  --max: 1120px;
  --radius: 18px;
  --header-height: 70px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 15% 5%, var(--glow-teal), transparent 55%),
    radial-gradient(900px 600px at 90% 15%, var(--glow-aqua), transparent 60%),
    radial-gradient(800px 500px at 50% 95%, var(--glow-good), transparent 60%),
    var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 36px, var(--max));
  margin-inline: auto;
}

.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  left: 18px;
  top: 10px;
  z-index: 9999;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip:focus {
  transform: translateY(0);
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--logo-gradient);
  box-shadow: var(--accent-shadow);
  color: var(--on-accent);
  font-weight: 900;
  letter-spacing: .03em;
}

.brandText {
  min-width: 0;
}

.brandText b,
.brandText small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brandText b {
  font-size: .98rem;
}

.brandText small {
  margin-top: -3px;
  color: var(--muted-2);
  font-size: .77rem;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navlinks a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: .91rem;
  font-weight: 700;
  white-space: nowrap;
}

.navlinks a:hover,
.navlinks a.active {
  border-color: var(--border-strong);
  background: var(--accent-tint);
  color: var(--accent-bright);
}

.headerCta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
  white-space: nowrap;
}

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--control-border);
  border-radius: 13px;
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
  font-size: .94rem;
  font-weight: 850;
  line-height: 1.25;
  transition: background-color .15s ease, border-color .15s ease;
}

.btn:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-bright);
}

.btn.primary {
  border-color: transparent;
  background: var(--primary-gradient);
  box-shadow: var(--accent-shadow);
  color: var(--on-accent);
}

.btn.primary:hover {
  background: var(--primary-hover-gradient);
}

.hamburger {
  width: 44px;
  height: 44px;
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--control-border);
  border-radius: 13px;
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
}

.hamburgerIcon,
.hamburgerIcon::before,
.hamburgerIcon::after {
  width: 19px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: currentColor;
}

.hamburgerIcon {
  position: relative;
}

.hamburgerIcon::before,
.hamburgerIcon::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburgerIcon::before {
  top: -6px;
}

.hamburgerIcon::after {
  top: 6px;
}

.mobilePanel {
  padding: 0 0 14px;
}

.mobilePanel[hidden] {
  display: none;
}

.mobilePanel a {
  min-height: 46px;
  display: flex;
  align-items: center;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 750;
}

.mobilePanel a:hover,
.mobilePanel a.active {
  border-color: var(--border-strong);
  background: var(--accent-tint);
  color: var(--accent-bright);
}

main {
  overflow: clip;
}

section {
  padding: clamp(52px, 7vw, 78px) 0;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.hero {
  padding-top: clamp(54px, 8vw, 92px);
  padding-bottom: clamp(38px, 5vw, 58px);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card:hover,
.card:focus-within {
  border-color: var(--border-strong);
}

.hamburger:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-bright);
}

.heroGrid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(275px, .65fr);
  gap: 18px;
  align-items: stretch;
}

.heroMain {
  position: relative;
  overflow: hidden;
  padding: clamp(25px, 4vw, 42px);
}

.heroMain::after {
  content: "";
  position: absolute;
  top: -95px;
  right: -90px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at 35% 35%, var(--accent-tint), transparent 63%);
  filter: blur(8px);
  pointer-events: none;
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 19ch;
  margin: 0;
  font-size: clamp(2.25rem, 5.2vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 65ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
}

.heroActions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.heroSide {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
}

.heroSide h2 {
  margin: 0 0 2px;
  font-size: 1rem;
  letter-spacing: .01em;
}

.mini {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel-strong);
}

.mini h3 {
  margin: 0 0 4px;
  font-size: .92rem;
}

.mini p {
  margin: 0;
  color: var(--muted);
  font-size: .91rem;
}

.sectionTitle {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.sectionTitle h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

.sectionTitle p {
  max-width: 59ch;
  margin: 7px 0 0;
  color: var(--muted-2);
  font-weight: 600;
}

.proofSection {
  padding-top: 0;
}

.proofGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.proof {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
}

.proofType {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.proof strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.15;
  letter-spacing: -.02em;
}

.proof h3 {
  margin: 0 0 5px;
  font-size: .92rem;
  line-height: 1.25;
}

.proof p {
  margin: 0;
  color: var(--muted-2);
  font-size: .82rem;
  line-height: 1.45;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 19px;
}

.project.featuredProject {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border-color: var(--border-strong);
  background:
    radial-gradient(700px 260px at 92% 10%, var(--accent-soft), transparent 60%),
    linear-gradient(145deg, var(--panel-strong), var(--panel));
  box-shadow: var(--featured-shadow);
}

.project.featuredProject::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent 85%);
}

.project.featuredProject:hover,
.project.featuredProject:focus-within {
  border-color: var(--focus-border);
}

.featuredProject h3 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
}

.featuredProject .projectSummary,
.featuredProject .projectDetails {
  max-width: 790px;
}

.projectBadge {
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 5px 9px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.project h3 {
  margin: 0;
  font-size: 1.27rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.projectSummary {
  margin: 9px 0 16px;
  color: var(--muted);
  font-size: .95rem;
}

.projectDetails {
  display: grid;
  gap: 6px;
  margin: 0 0 16px;
}

.projectDetails dt {
  margin-top: 6px;
  color: var(--text);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.projectDetails dd {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  margin-bottom: 16px;
}

.chip,
.tech {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.2;
}

.evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
}

.evidence a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid var(--control-border);
  border-radius: 11px;
  background: var(--panel-strong);
  color: var(--accent-bright);
  font-size: .86rem;
  font-weight: 850;
}

.evidence a:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.evidence a.primaryEvidence {
  border-color: var(--focus-border);
  background: var(--accent-tint);
}

.capabilityGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.capability {
  padding: 17px;
}

.capability h3 {
  margin: 0;
  font-size: 1.04rem;
}

.capability p {
  margin: 7px 0 13px;
  color: var(--muted);
  font-size: .91rem;
}

.techList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: principles;
}

.principles li {
  position: relative;
  min-height: 92px;
  padding: 16px 16px 16px 52px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
}

.principles li::before {
  counter-increment: principles;
  content: "0" counter(principles);
  position: absolute;
  top: 15px;
  left: 15px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.role {
  padding: 19px;
}

.roleTop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.role h3 {
  margin: 0;
  font-size: 1.07rem;
}

.roleSubtitle,
.rolePeriod {
  color: var(--muted-2);
  font-size: .83rem;
  font-weight: 750;
}

.rolePeriod {
  flex: 0 0 auto;
}

.role ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.role li {
  margin: 7px 0;
}

.contactGrid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: stretch;
}

.contactCard,
.formCard {
  padding: 20px;
}

.contactCard h3 {
  margin: 0;
  font-size: 1.22rem;
}

.contactCard p {
  margin: 8px 0 0;
  color: var(--muted);
}

.contactActions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.field {
  margin-bottom: 13px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .89rem;
  font-weight: 850;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--control-border);
  border-radius: 13px;
  outline: none;
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
}

input:focus,
textarea:focus {
  border-color: var(--focus-border);
  box-shadow: var(--focus-shadow);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
  opacity: 1;
}

textarea {
  min-height: 134px;
  resize: vertical;
}

.formCard .btn {
  width: 100%;
}

.formNote {
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: .86rem;
  font-weight: 650;
}

footer {
  padding: 27px 0 36px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
}

.foot a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.foot a:hover {
  color: var(--accent-bright);
}

@media (max-width: 980px) {
  .proofGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .projects,
  .capabilityGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .heroGrid {
    grid-template-columns: 1fr;
  }

  .heroSide {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .heroSide h2 {
    grid-column: 1 / -1;
  }
}

@media (max-width: 880px) {
  .navlinks {
    display: none;
  }

  .headerCta .pill {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (min-width: 881px) {
  .mobilePanel {
    display: none !important;
  }
}

@media (max-width: 700px) {
  .headerContact {
    display: none;
  }

  .proofGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .projects,
  .capabilityGrid,
  .principles,
  .contactGrid {
    grid-template-columns: 1fr;
  }

  .heroSide {
    grid-template-columns: 1fr;
  }

  .sectionTitle {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  :root {
    --header-height: 64px;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .nav {
    min-height: var(--header-height);
    gap: 10px;
  }

  .headerCta .pill,
  .headerContact {
    display: none;
  }

  .brandText small {
    display: none;
  }

  .heroActions .btn {
    width: 100%;
  }

  .proofGrid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.18rem, 11vw, 3.15rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


[hidden] { display: none !important; }
.contactAddress, .formStatus, .fieldError, .preparedDraft { overflow-wrap: anywhere; }
.contactAddress a { text-decoration: underline; text-underline-offset: .2em; }
.fieldHint { margin: 5px 0 0; color: var(--muted); font-size: .85rem; }
.fieldError { margin: 5px 0 0; color: #FCA5A5; font-weight: 650; font-size: .9rem; }
.fieldError:empty, .formStatus:empty { display: none; }
[aria-invalid="true"] { border-color: #FCA5A5; }
.formStatus { color: var(--accent-bright); margin: 16px 0 0; }
.preparedDraft { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 18px; }
.preparedDraft .contactActions { margin-bottom: 18px; }
.preparedDraft textarea { min-height: 200px; }
.formCard form > .formNote { margin-bottom: 18px; }
.btn:disabled { cursor: wait; opacity: .75; }
.foot a { min-height: 44px; }
@media (max-width: 880px) {
  .mobilePanel { max-height: calc(100dvh - 100px); overflow-y: auto; }
}
