:root {
  --bg: #0c0e12;
  --bg-elevated: #13161d;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8eaef;
  --muted: #9aa3b2;
  --accent: #7ce7c6;
  --accent-dim: rgba(124, 231, 198, 0.15);
  --accent-strong: #4ad4ac;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(124, 231, 198, 0.12), transparent),
    linear-gradient(180deg, #0f1218 0%, var(--bg) 35%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #06261c;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 14, 18, 0.75);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  color: inherit;
  text-decoration: none;
}

.wordmark:hover {
  color: var(--text);
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

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

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}

.hero-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elevated);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
}

.hero-copy {
  min-width: 0;
}

.hero-glow {
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  top: -80px;
  background: radial-gradient(circle, var(--accent-dim), transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.hero-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lede {
  margin: 0 0 2rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #06261c;
}

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

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.section {
  padding: 3rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-sub code {
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.chip:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.chip.is-active {
  color: #06261c;
  background: var(--accent);
  border-color: var(--accent);
}

.tool-grid-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.tool-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

/* Four tool cards on one row (horizontal scroll on narrow viewports) */
.tool-grid.tool-grid-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-width: 1080px;
  width: 100%;
}

.tool-grid.tool-grid-row .tool-card {
  padding: 1.1rem;
}

.tool-grid.tool-grid-row .tool-video {
  max-height: 180px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease;
}

.tool-card:hover {
  border-color: rgba(124, 231, 198, 0.25);
}

.tool-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tool-summary {
  margin: 0 0 1rem;
  flex: 1;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.tool-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.tool-link:hover {
  text-decoration: underline;
}

.tool-link-muted {
  color: var(--muted);
  font-weight: 500;
  cursor: default;
}

.about-card {
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(124, 231, 198, 0.06), transparent 40%);
}

.about-card h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.about-card h2.about-subhead {
  font-size: 1rem;
  margin: 1.75rem 0 0.65rem;
}

.about-lead {
  margin: 0 0 1.5rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 52rem;
}

.about-subhead {
  margin: 1.75rem 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.about-subhead:first-of-type {
  margin-top: 0.25rem;
}

.about-list {
  margin: 0 0 0.25rem;
  padding: 0 0 0 1.2rem;
  color: var(--muted);
  max-width: 52rem;
}

.about-list li {
  margin-bottom: 0.65rem;
  padding-left: 0.25rem;
}

.about-list li strong {
  color: var(--text);
  font-weight: 600;
}

.about-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 52rem;
  line-height: 1.65;
}

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

.contact h2 {
  margin: 0 0 0.5rem;
}

.contact-lede {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36rem;
}

.contact-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-item {
  margin: 0;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.contact-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(124, 231, 198, 0.08);
}

.contact-icon {
  display: flex;
  flex-shrink: 0;
  line-height: 0;
}

.contact-label {
  line-height: 1.2;
}

@media (max-width: 480px) {
  .contact-links {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-btn {
    justify-content: flex-start;
  }
}

.reports-teaser {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.reports-teaser-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.reports-teaser-inner h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.reports-teaser-text {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
  font-size: 0.95rem;
}

.reports-teaser-text strong {
  color: var(--text);
  font-weight: 600;
}

.reports-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.reports-main-wide {
  max-width: min(1420px, 100%);
}

.reports-hero {
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
}

.reports-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.reports-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.reports-lede {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.reports-grid-wrap {
  padding-top: 1rem;
}

.reports-grid-wrap-three {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin-left: -0.25rem;
  margin-right: -0.25rem;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.reports-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Three quarters on one row; horizontal scroll when viewport is narrow */
.reports-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  width: 100%;
  min-width: 780px;
}

.reports-grid-three .report-card-desc {
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.reports-grid-three .report-actions {
  flex-direction: column;
}

.reports-grid-three .report-actions .btn {
  width: 100%;
  min-width: 0;
}

.reports-grid-three .report-pdf-embed {
  height: min(48vh, 420px);
  min-height: 200px;
  max-height: 440px;
}

.reports-grid-three .report-card {
  padding: 1rem;
}

.reports-grid-three .report-card-title {
  font-size: 1rem;
}

.report-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.report-card-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.report-card-desc {
  margin: 0 0 1.25rem;
  flex: 1;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}


.about-page-main {
  padding-top: 0.5rem;
}

.about-page .about-page-title {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.resume-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.resume-hero {
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
}

.resume-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.resume-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.resume-lede {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.resume-embed-section {
  padding-top: 0.5rem;
}

.resume-embed-note {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 40rem;
}

.resume-embed-note code {
  font-size: 0.85em;
}

.resume-status {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.resume-error {
  color: #f0b4b4;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(240, 180, 180, 0.35);
  background: rgba(240, 100, 100, 0.08);
}

.resume-doc-html {
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
  color: var(--text);
  max-height: min(85vh, 920px);
  overflow: auto;
  line-height: 1.55;
  font-size: 0.95rem;
}

.resume-doc-html p {
  margin: 0 0 0.65rem;
}

.resume-doc-html ul,
.resume-doc-html ol {
  margin: 0 0 0.65rem;
  padding-left: 1.35rem;
}

.resume-doc-html table {
  border-collapse: collapse;
  width: 100%;
  margin: 0 0 1rem;
  font-size: 0.88rem;
}

.resume-doc-html td,
.resume-doc-html th {
  border: 1px solid var(--border);
  padding: 0.35rem 0.5rem;
  vertical-align: top;
}

.resume-doc-html h1,
.resume-doc-html h2,
.resume-doc-html h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.resume-doc-html h1:first-child,
.resume-doc-html h2:first-child,
.resume-doc-html h3:first-child {
  margin-top: 0;
}

.tool-video-wrap {
  margin: 0 0 1rem;
}

.tool-video-label {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.tool-video {
  width: 100%;
  max-height: 220px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #000;
  vertical-align: middle;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-home {
  margin-bottom: 0.5rem !important;
}

.footer-home a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
}

.footer-home a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.report-actions .btn {
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
  justify-content: center;
}

.report-pdf-wrap {
  margin-top: 1.25rem;
  width: 100%;
}

.report-pdf-label {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.report-pdf-embed {
  display: block;
  width: 100%;
  min-height: min(75vh, 880px);
  height: 75vh;
  max-height: 920px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #0a0c10;
}

.report-pdf-fallback {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.report-pdf-fallback a {
  font-weight: 600;
}

@media (max-width: 640px) {
  .report-pdf-embed {
    height: 65vh;
    min-height: 360px;
  }
}

@media (max-width: 720px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-photo {
    max-width: 220px;
    margin: 0 auto;
  }

  .hero-copy .hero-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 3rem;
  }
}
