:root {
  --ink: #0b1220;
  --ink-2: #172033;
  --muted: #536174;
  --soft: #f5f7fb;
  --soft-2: #e9f0f6;
  --line: #d7e0eb;
  --blue: #176d7a;
  --blue-2: #0f4c5c;
  --gold: #c8902f;
  --gold-2: #f1c86a;
  --green: #15803d;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(11, 18, 32, 0.14);
  --shadow-soft: 0 12px 28px rgba(11, 18, 32, 0.08);
  --radius: 10px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--soft);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(23, 109, 122, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

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

.container {
  width: calc(100% - 2rem);
  max-width: var(--max);
  margin: 0 auto;
}

.narrow {
  width: calc(100% - 2rem);
  max-width: 820px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(215, 224, 235, 0.92);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 850;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #123047, var(--blue) 62%, var(--gold));
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.93rem;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  border-radius: var(--radius);
  padding: 0.78rem 1rem;
  font-weight: 850;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button {
  color: var(--white);
  background: linear-gradient(135deg, #123047, var(--blue));
  box-shadow: 0 14px 26px rgba(15, 76, 92, 0.22);
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover {
  transform: translateY(-2px);
}

.button:hover {
  background: linear-gradient(135deg, #0f263a, var(--blue-2));
}

.button-secondary {
  color: var(--ink);
  background: linear-gradient(180deg, var(--white), #f9fbfd);
  border-color: var(--line);
}

.button-ghost {
  color: var(--blue);
  background: transparent;
  border-color: rgba(23, 109, 122, 0.2);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 8vw, 7rem) 0 4rem;
  background:
    linear-gradient(115deg, rgba(23, 109, 122, 0.1), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.98)),
    linear-gradient(180deg, var(--white), var(--soft));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.eyebrow,
.section-label,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(23, 109, 122, 0.2);
  background: rgba(23, 109, 122, 0.08);
  color: var(--blue-2);
  padding: 0.4rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 1.2rem 0 1rem;
  max-width: 900px;
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--blue);
}

.hero-lede,
.page-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.role-fit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.role-fit-card {
  border: 1px solid rgba(215, 224, 235, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  padding: 0.9rem;
  box-shadow: 0 10px 22px rgba(11, 18, 32, 0.06);
}

.role-fit-card strong,
.flow-step strong,
.gate-step strong {
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.role-fit-card span,
.flow-step p,
.gate-step p {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
}

.metric {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.metric strong {
  display: block;
  color: var(--ink);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.portrait-card {
  position: relative;
  max-width: 450px;
  margin-left: auto;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #dce8ef, #f7efe1);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  display: grid;
  align-items: end;
  justify-items: center;
}

.portrait-frame img {
  width: 88%;
  height: auto;
  object-fit: contain;
}

.floating-proof {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(11, 18, 32, 0.94);
  color: var(--white);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.floating-proof strong {
  display: block;
  color: var(--gold-2);
  font-size: 1.4rem;
  line-height: 1;
}

.floating-proof span {
  display: block;
  color: #dce8ef;
  margin-top: 0.4rem;
  font-size: 0.88rem;
}

.profile-flow {
  padding: 1.25rem 0;
  background: var(--ink);
  color: var(--white);
}

.flow-strip {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 1rem;
  align-items: stretch;
}

.flow-copy,
.flow-step {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.flow-copy h2 {
  margin: 0.7rem 0 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.flow-copy p {
  margin: 0;
  color: #cbd5e1;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.flow-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: rgba(241, 200, 106, 0.14);
  color: var(--gold-2);
  font-weight: 900;
  margin-bottom: 0.75rem;
}

.flow-step strong {
  color: var(--white);
}

.flow-step p {
  color: #cbd5e1;
}

.profile-flow .section-label {
  border-color: rgba(241, 200, 106, 0.28);
  background: rgba(241, 200, 106, 0.12);
  color: var(--gold-2);
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-alt {
  background: var(--white);
}

.section-head {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-head p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 1.5rem;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), #fbfdff);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-soft);
}

.panel h3 {
  margin-top: 0;
}

.panel p:last-child {
  margin-bottom: 0;
}

.proof-grid,
.expertise-grid,
.project-grid,
.systems-grid,
.notes-grid,
.contact-grid,
.credential-grid {
  display: grid;
  gap: 1rem;
}

.proof-grid {
  grid-template-columns: repeat(4, 1fr);
}

.expertise-grid {
  grid-template-columns: repeat(3, 1fr);
}

.project-grid {
  grid-template-columns: repeat(3, 1fr);
}

.systems-grid,
.notes-grid,
.contact-grid,
.credential-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.project-card,
.system-card,
.note-card,
.credential-card,
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), #fbfdff);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card:hover,
.project-card:hover,
.system-card:hover,
.note-card:hover,
.credential-card:hover,
.contact-card:hover {
  border-color: rgba(23, 109, 122, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card,
.system-card,
.note-card,
.credential-card,
.contact-card {
  padding: 1.25rem;
}

.card strong,
.credential-card strong {
  display: block;
  color: var(--blue);
  font-size: 1.65rem;
  line-height: 1;
}

.card span,
.credential-card span {
  display: block;
  margin-top: 0.65rem;
  color: var(--muted);
  font-weight: 650;
}

.expertise-card h3,
.system-card h3,
.note-card h3,
.contact-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.expertise-card ul,
.timeline ul,
.case-list {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.expertise-card li,
.timeline li,
.case-list li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--muted);
}

.expertise-card li::before,
.timeline li::before,
.case-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--blue);
}

.project-card {
  overflow: hidden;
}

.project-card a {
  text-decoration: none;
}

.project-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--soft-2);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 200ms ease;
}

.project-card:hover .project-image img {
  transform: scale(1.025);
}

.project-body {
  padding: 1.15rem;
}

.project-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.project-body p,
.system-card p,
.note-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  padding: 0.35rem 0.6rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.outcome-tag {
  color: var(--blue-2);
  border-color: rgba(23, 109, 122, 0.25);
  background: rgba(23, 109, 122, 0.08);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 1.25rem;
  box-shadow: var(--shadow-soft);
}

.timeline-date {
  color: var(--blue);
  font-weight: 900;
}

.timeline h3 {
  margin: 0;
}

.timeline-company {
  color: var(--muted);
  font-weight: 800;
}

.private-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
  background:
    linear-gradient(135deg, rgba(18, 48, 71, 0.98), rgba(11, 18, 32, 0.98)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 72px 72px, auto;
  color: var(--white);
}

.gate-card {
  width: min(1080px, calc(100% - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(11, 18, 32, 0.86);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.gate-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

.gate-badge,
.gate-context,
.trust-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gate-badge {
  border: 1px solid rgba(241, 200, 106, 0.32);
  background: rgba(241, 200, 106, 0.12);
  color: var(--gold-2);
  padding: 0.38rem 0.72rem;
}

.gate-context {
  color: #cbd5e1;
}

.gate-card h1 {
  margin: 1rem 0;
  max-width: 820px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.gate-card p {
  color: #dce8ef;
  max-width: 720px;
  font-size: 1.08rem;
}

.gate-lede {
  margin-bottom: 0;
}

.gate-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.gate-step {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.gate-step span {
  display: block;
  color: var(--gold-2);
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.gate-step strong {
  color: var(--white);
}

.gate-step p {
  color: #cbd5e1;
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.gate-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 1rem;
  margin-top: 2rem;
}

.gate-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.065);
  padding: 1.25rem;
}

.gate-panel h2 {
  margin-top: 0;
}

.gate-panel p,
.gate-panel .case-list li {
  color: #dce8ef;
}

.gate-panel .case-list li::before {
  background: var(--gold-2);
}

.private-gate .button-ghost {
  color: #dce8ef;
  border-color: rgba(220, 232, 239, 0.22);
}

.gate-panel form {
  display: grid;
  gap: 0.8rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  font-weight: 800;
  color: #dce8ef;
  font-size: 0.9rem;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.trust-chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #dce8ef;
  padding: 0.36rem 0.62rem;
}

.case-hero {
  padding: 3.5rem 0 2rem;
  background:
    linear-gradient(115deg, rgba(23, 109, 122, 0.08), transparent 44%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

.case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 1rem;
  align-items: start;
}

.case-layout > article,
.case-layout > aside {
  min-width: 0;
  max-width: 100%;
}

.case-cover {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.case-cover img {
  width: 100%;
  height: auto;
}

.live-snapshot {
  width: 100%;
  max-width: 100%;
  margin: 1rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.live-snapshot img {
  width: 100%;
  height: auto;
  background: #f8fafc;
}

.live-snapshot figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-top: 1px solid var(--line);
}

.live-snapshot strong {
  color: var(--ink);
  font-size: 0.98rem;
}

.live-snapshot span {
  color: var(--muted);
  font-size: 0.95rem;
}

.case-meta {
  display: grid;
  gap: 0.8rem;
}

.case-meta .panel {
  padding: 1rem;
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .case-layout,
  .gate-grid,
  .flow-strip {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    margin: 0 auto;
  }

  .proof-grid,
  .expertise-grid,
  .project-grid,
  .systems-grid,
  .notes-grid,
  .contact-grid,
  .credential-grid,
  .flow-steps {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 760px) {
  .site-header,
  .case-hero,
  .section,
  .footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .container,
  .narrow {
    width: calc(100vw - 2rem);
  }

  .nav {
    min-height: auto;
    flex-wrap: wrap;
    padding: 0.8rem 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links:not([data-nav-links]) {
    position: static;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .nav-links a {
    display: block;
    padding: 0.8rem;
  }

  .nav-links:not([data-nav-links]) a {
    padding: 0.25rem 0;
  }

  .hero-proof,
  .role-fit-grid,
  .proof-grid,
  .expertise-grid,
  .project-grid,
  .systems-grid,
  .notes-grid,
  .contact-grid,
  .credential-grid,
  .flow-steps,
  .gate-steps {
    grid-template-columns: 1fr;
  }

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

  .floating-proof {
    margin-top: 1rem;
  }

  .hero-actions,
  .link-row {
    flex-direction: column;
  }

  .page-title {
    font-size: clamp(2.2rem, 12vw, 3rem);
    line-height: 1.04;
    letter-spacing: 0;
    overflow-wrap: anywhere;
  }

  .page-lede {
    font-size: 1.05rem;
    overflow-wrap: anywhere;
  }

  .case-layout,
  .case-layout article,
  .case-layout aside,
  .case-layout .panel,
  .live-snapshot figcaption {
    min-width: 0;
    max-width: 100%;
  }

  .case-layout p,
  .case-layout li,
  .live-snapshot span {
    overflow-wrap: anywhere;
  }

  .button,
  .button-secondary,
  .button-ghost {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
