/* === Font Faces === */
@font-face {
  font-family: 'Uncut Sans';
  src: url('/fonts/UncutSans-Variable.woff2') format('woff2-variations');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Uncut Plan8';
  src: url('/fonts/UncutPlan8-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* === Custom Properties === */
:root {
  --bg-primary: #0A0E17;
  --bg-surface: #131A2B;
  --bg-deep: #0D1220;
  --border-subtle: #1A2035;

  --gold: #B8944F;
  --gold-highlight: #C9A655;
  --steel-blue: #4A7CC9;
  --text-primary: #E8E4DD;
  --text-secondary: #8A8D93;
  --text-tertiary: #5C6170;
  --critical: #C44B3F;
  --active: #4B9B6E;

  --font-heading: 'Uncut Sans', system-ui, sans-serif;
  --font-body: 'Uncut Sans', system-ui, sans-serif;
  --font-mono: 'Uncut Plan8', 'JetBrains Mono', 'Courier New', monospace;
}

/* === Reset / Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-image: url('/images/bg-scif.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

a {
  color: var(--steel-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-highlight);
}

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

.nowrap { white-space: nowrap; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-primary);
}

h4 {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}


/* === Layout === */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
}

.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.section--bordered {
  border-top: 1px solid var(--border-subtle);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav__logo {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.nav__logo:hover {
  color: var(--gold-highlight);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--text-primary);
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* === Hero === */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(184, 148, 79, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  border: 1px solid rgba(184, 148, 79, 0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.hero__content .hero__eyebrow,
.hero__content .hero__subtitle {
  text-align: left;
}

.hero__content .hero__title {
  text-align: left;
}

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero__title {
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 620px;
}

/* === Buttons === */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.85rem 2rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.05em;
  border-radius: 4px;
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
}

.btn:hover {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn--filled {
  background: var(--gold);
  color: var(--bg-primary);
}

.btn--filled:hover {
  background: var(--gold-highlight);
  color: var(--bg-primary);
}

/* === Service Cards === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

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

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  transition: border-color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: block;
}

.service-card:hover {
  border-color: rgba(184, 148, 79, 0.3);
  transform: translateY(-2px);
}

.service-card__number {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--steel-blue);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.service-card__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-card__link {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  font-weight: 500;
}

.service-card:hover .service-card__link {
  color: var(--gold-highlight);
}

/* === Credentials Strip === */
.credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--border-subtle);
}

.credential__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.credential__label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* === Differentiator === */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.diff-item {
  padding: 1.5rem;
  border-left: 2px solid var(--border-subtle);
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--gold);
}

.diff-item__title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.diff-item__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* === FAQ Section === */
.faq-card {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
}

.faq-card h2 {
  margin-bottom: 2rem;
}

.faq-card h3 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.faq-card h3:first-of-type {
  margin-top: 0;
}

.faq-card p {
  margin-bottom: 0;
}

/* === CTA Section === */
.cta-section {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.cta-content {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 500px;
  margin: 0 auto 2rem;
}

/* === Footer === */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  background: var(--bg-deep);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__left {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__monogram {
  height: 28px;
  max-height: 28px;
  width: auto;
  opacity: 0.6;
  flex-shrink: 0;
}

.footer__right {
  display: flex;
  gap: 1.5rem;
}

.footer__right a {
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.footer__right a:hover {
  color: var(--gold);
}

/* === Services Sub-Navigation === */
.subnav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background: rgba(10, 14, 23, 0.95);
  border-bottom: 1px solid var(--border-subtle);
}

.subnav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  height: 40px;
}

.subnav__link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  transition: color 0.2s ease;
}

.subnav__link:hover,
.subnav__link.active {
  color: var(--text-primary);
}

.subnav__link.active::after {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gold);
}

/* === Service Detail Pages === */
.service-hero {
  padding: calc(104px + clamp(3rem, 6vw, 5rem)) 0 clamp(2rem, 4vw, 3rem);
}

.service-hero__card {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
}

.service-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.service-hero__title {
  margin-bottom: 1.25rem;
}

.service-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.8;
}

.service-content h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 1rem;
  margin-top: 0;
}

.service-content h3 {
  margin-bottom: 1rem;
  margin-top: 0;
}

.service-content ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.service-content li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border-subtle);
}

.service-content li:last-child {
  border-bottom: none;
}

.service-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.service-content p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.service-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

.service-two-col > .service-content {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border-subtle);
}

.service-sidebar {
  background: rgba(10, 14, 23, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.service-sidebar h4 {
  margin-bottom: 1.25rem;
}

.service-sidebar ul {
  list-style: none;
  padding: 0;
}

.service-sidebar li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.service-sidebar li:last-child {
  border-bottom: none;
}

/* === About / Resume Page === */
.about-header {
  padding: calc(64px + clamp(3rem, 6vw, 5rem)) 0 clamp(2rem, 4vw, 3rem);
}

.about-header > .container {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
}

.about-header__name {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.about-header__contact {
  font-size: 0.9rem;
  color: var(--text-tertiary);
  margin-bottom: 0;
}

.about-header__contact a {
  color: var(--text-tertiary);
}

.about-header__contact a:hover {
  color: var(--gold);
}

.about-section {
  padding: 2rem 0;
  border-top: none;
}

.about-section > .container {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border-subtle);
}

.about-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184, 148, 79, 0.2);
}

.about-company {
  margin-bottom: 2.5rem;
}

.about-company h3 {
  font-size: 1.25rem;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.about-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.about-date {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
}

.about-section ul {
  list-style: none;
  padding: 0;
}

.about-section li {
  padding: 0.5rem 0 0.5rem 1.25rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

.about-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 5px;
  height: 5px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.about-sub-head {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
  margin: 1.25rem 0 0.5rem;
}

.about-accolades {
  font-style: italic;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.about-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0;
}

.competency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
}

.competency-col {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--border-subtle);
}

.competency-col:last-child {
  border-right: none;
}

.competency-col h4 {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.competency-col li {
  font-size: 0.85rem;
  padding: 0.3rem 0 0.3rem 1rem;
  border-bottom: none;
}

.competency-col li::before {
  top: 0.65rem;
  width: 4px;
  height: 4px;
}

/* === Contact Page === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
}

.contact-method {
  margin-bottom: 2rem;
}

.contact-method h4 {
  margin-bottom: 0.5rem;
}

.contact-method a,
.contact-method p {
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-method a:hover {
  color: var(--gold);
}

/* === Patents === */
.patent-list {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
}

.patent {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.patent:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.patent h3 {
  margin-bottom: 0.75rem;
}

.patent__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.patent__inventors,
.patent__assignee {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.patent__abstract {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.patent__link a {
  font-size: 0.9rem;
  color: var(--gold);
}

.patent__link a:hover {
  color: var(--gold-highlight);
}

.patent__citations {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.patent__citations p {
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.patent__citations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.patent__citations li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.3rem 0;
}

.patent__citations li a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
}

.patent__citations li a:hover {
  color: var(--gold-highlight);
}

/* === Testimonials === */
.testimonial {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
  margin: 0 0 2rem 0;
}

.testimonial:last-of-type {
  margin-bottom: 0;
}

.testimonial__text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
}

.testimonial__footer {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.testimonial__name {
  font-style: normal;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.testimonial__title {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.testimonial__context {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.testimonial__source {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

.testimonial__source a {
  color: var(--gold);
}

.testimonial__source a:hover {
  color: var(--gold-highlight);
}

/* === Blog === */
.blog-hero {
  padding: calc(104px + clamp(3rem, 6vw, 5rem)) 0 clamp(2rem, 4vw, 3rem);
}

.blog-hero__card {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
}

.blog-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.blog-hero__title {
  margin-bottom: 1.25rem;
}

.blog-hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 650px;
  line-height: 1.8;
}

.blog-filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.blog-filters__link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-filters__link:hover,
.blog-filters__link.active {
  color: var(--gold);
}

.blog-filters__link.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-empty {
  color: var(--text-tertiary);
  font-style: italic;
}

.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-card {
  display: block;
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  text-decoration: none;
  transition: border-color 0.3s ease;
}

.blog-card:hover {
  border-color: rgba(184, 148, 79, 0.3);
}

.blog-card__category {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.blog-card__title {
  display: block;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.blog-card__desc {
  display: block;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-tertiary);
  flex-wrap: wrap;
}

.blog-card__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--border-subtle);
}

/* Blog Post */
.blog-post-header {
  padding: calc(104px + clamp(3rem, 6vw, 5rem)) 0 clamp(2rem, 4vw, 3rem);
}

.blog-post-header__card {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
  max-width: 680px;
  margin: 0 auto;
}

.blog-post-header__title {
  margin-bottom: 1rem;
}

.blog-post__category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  text-decoration: none;
}

.blog-post__category:hover {
  color: var(--gold-highlight);
}

.blog-post__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.blog-post__date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.blog-post__updated {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.blog-post__reading-time {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.blog-post__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-post {
  max-width: 680px;
  margin: 0 auto;
}

.blog-post__body {
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
}

.blog-post__body p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.blog-post__body h2 {
  font-size: 1.4rem;
  margin: 3rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(184, 148, 79, 0.2);
}

.blog-post__body h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 2.5rem 0 0.75rem;
}

.blog-post__body ul,
.blog-post__body ol {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.blog-post__body li {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  border-bottom: 1px solid var(--border-subtle);
}

.blog-post__body li:last-child {
  border-bottom: none;
}

.blog-post__body li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 6px;
  height: 6px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.blog-post__body code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-deep);
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border-subtle);
}

.blog-post__heading {
  position: relative;
}

.blog-post__anchor {
  position: absolute;
  left: -1.5rem;
  color: var(--text-tertiary);
  opacity: 0;
  transition: opacity 0.2s;
  text-decoration: none;
}

.blog-post__heading:hover .blog-post__anchor {
  opacity: 1;
}

.blog-blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(19, 26, 43, 0.5);
  font-style: italic;
  color: var(--text-secondary);
}

.blog-blockquote p {
  margin-bottom: 0;
}

.blog-post__endnote {
  margin-top: clamp(3rem, 8vw, 6rem);
  background: rgba(10, 14, 23, 0.85);
  padding: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.blog-pullquote {
  border-left: none;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 2.5rem auto;
  max-width: 85%;
  text-align: center;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-primary);
}

.blog-pullquote p {
  margin-bottom: 0;
}

.blog-callout {
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--steel-blue);
}

.blog-callout p {
  font-style: normal;
  margin-bottom: 0;
}

.blog-callout--note {
  border-left-color: var(--steel-blue);
}

.blog-callout--warning {
  border-left-color: var(--critical);
}

.blog-callout--important {
  border-left-color: var(--gold);
}

.blog-code {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  position: relative;
}

.blog-code pre {
  margin: 0;
  padding: 0;
}

.blog-code code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: none;
  padding: 0;
  border: none;
}

.blog-code__lang {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.blog-post__figure {
  margin: 2rem 0;
  text-align: center;
}

.blog-post__img {
  max-width: 100%;
  border: 1px solid var(--border-subtle);
}

.blog-post__caption {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.5rem;
  font-style: italic;
}

.blog-post__nav {
  max-width: 680px;
  margin: 2rem auto 0;
}

.blog-post__nav a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

.blog-post__nav a:hover {
  color: var(--gold);
}

/* === 404 Page === */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.error-page p {
  margin-bottom: 2rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .subnav__inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 1.5rem;
  }

  .subnav__link {
    white-space: nowrap;
    font-size: 0.75rem;
  }

  .nav__toggle {
    display: block;
  }

  .nav__links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 23, 0.97);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .nav__links.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: calc(64px + 3rem);
    padding-bottom: 3rem;
  }

  .hero__title .nowrap {
    white-space: normal;
  }

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

  .credentials {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

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

  .service-two-col {
    grid-template-columns: 1fr;
  }

  .service-sidebar {
    position: static;
  }

  .footer__inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

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

  .competency-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }

  .competency-col:last-child {
    border-bottom: none;
  }

  .blog-post__anchor {
    display: none;
  }
}
