.page-hero {
  padding-top: 110px;
  padding-bottom: 36px;
}

.page-hero .wrap {
  max-width: 900px;
}

.page-hero p.lead {
  max-width: 720px;
}

.page-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.section-stack {
  display: grid;
  gap: 20px;
}

.detail-grid,
.contact-grid,
.helper-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.stat-grid,
.project-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

.bullet-list,
.link-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
}

.bullet-list li,
.link-list li {
  margin-bottom: 10px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--text);
}

.metric-card {
  background: linear-gradient(180deg, rgba(61, 107, 255, 0.28), rgba(255, 255, 255, 0.08));
}

.metric-card p,
.metric-card li {
  color: var(--text);
}

.metric-value {
  display: block;
  font-size: 32px;
  line-height: 1;
  color: var(--cyan);
  margin-bottom: 10px;
  font-weight: 700;
}

.contact-list,
.policy-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li,
.policy-section ul li {
  margin-bottom: 12px;
  color: var(--text-dim);
}

.contact-label {
  display: block;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 4px;
}

.policy-wrap {
  display: grid;
  gap: 20px;
}

.policy-section {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 28px 24px;
}

.policy-section h2,
.policy-section h3 {
  margin-top: 0;
}

.policy-section h3 {
  color: var(--cyan);
  font-size: 20px;
  margin-bottom: 12px;
}

.policy-section p {
  color: var(--text-dim);
  margin: 0 0 16px;
}

.not-found-card {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.not-found-card p.lead {
  margin-left: auto;
  margin-right: auto;
}

.helper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.helper-links a {
  text-decoration: none;
}

@media (min-width: 768px) {
  .detail-grid,
  .contact-grid,
  .helper-grid,
  .stat-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

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

/* ── Project Status Badges ────────────────────────────────── */
.project-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 12px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.status-active {
  background: rgba(111, 227, 255, 0.12);
  color: var(--cyan);
  border-color: rgba(111, 227, 255, 0.3);
}

.status-internal {
  background: rgba(61, 107, 255, 0.15);
  color: #8fa8ff;
  border-color: rgba(61, 107, 255, 0.35);
}

.status-research {
  background: rgba(255, 200, 80, 0.1);
  color: #f0c060;
  border-color: rgba(255, 200, 80, 0.25);
}

.status-prototype {
  background: rgba(150, 150, 150, 0.1);
  color: #aaa;
  border-color: rgba(150, 150, 150, 0.25);
}

/* ── Project Cards ────────────────────────────────────────── */
.project-card {
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 22px;
  color: var(--heading-color);
  margin: 0 0 12px;
  font-weight: 700;
}

.project-focus {
  margin-top: 20px;
}

.project-focus h3 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
  font-weight: 600;
}

.project-tech-list {
  margin-top: 20px;
}

/* ── Service Detail Sections ──────────────────────────────── */
.service-detail {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

.service-overview {
  display: grid;
  gap: 24px;
}

.service-block h3 {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 8px;
  font-weight: 600;
}

.service-block p {
  font-size: 15px;
  color: var(--text-dim);
  margin: 0;
  line-height: 1.7;
}

.service-meta {
  margin-top: 0;
}

@media (min-width: 768px) {
  .service-overview {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Contact Form ─────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

.form-required {
  color: #f07070;
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(111, 227, 255, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(111, 227, 255, 0.06);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #f07070;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2393aebd' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: #0d1b26;
  color: var(--text);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  display: none;
  font-size: 12px;
  color: #f07070;
  margin-top: 5px;
}

.form-submit-area {
  margin-top: 28px;
}

.form-fallback {
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

.form-fallback a {
  color: var(--cyan-dim);
}

.form-notice {
  display: none;
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
}

.form-notice--success {
  background: rgba(111, 227, 255, 0.1);
  border: 1px solid rgba(111, 227, 255, 0.3);
  color: var(--cyan);
}

.form-notice--error {
  background: rgba(240, 112, 112, 0.1);
  border: 1px solid rgba(240, 112, 112, 0.3);
  color: #f07070;
}

/* ── Honeypot ─────────────────────────────────────────────── */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── CTA Card (centered card section) ────────────────────── */
.cta-card {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 44px 40px;
}

.cta-card p.lead {
  margin-left: auto;
  margin-right: auto;
}

/* ── Form Description ─────────────────────────────────────── */
.form-description {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 24px;
}
