/*
 * Zendo Apps Inc. — Portfolio Site Styles
 */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  --color-bg: #ffffff;
  --color-bg-muted: #f8fafc;
  --color-bg-subtle: #eef2f6;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-accent: #708ba3;
  --color-accent-dark: #5a7389;
  --color-green: #a4c639;
  --color-green-dark: #8aaf2e;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-width: 1120px;
  --container-narrow: 720px;
  --header-height: 72px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-green-dark);
}

.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;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

.container--narrow {
  max-width: var(--container-narrow);
}

.site-main {
  min-height: calc(100vh - var(--header-height) - 220px);
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-light);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo:hover {
  opacity: 0.92;
}

.site-logo__image {
  display: block;
  height: 52px;
  width: auto;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav-toggle-label:hover {
  background: var(--color-bg-muted);
}

.nav-toggle-label__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.875rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: var(--color-text);
  background: var(--color-bg-muted);
}

.nav-link--active {
  color: var(--color-accent);
  background: var(--color-bg-subtle);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  margin-top: auto;
  padding: 3rem 0;
  background: var(--color-bg-muted);
  border-top: 1px solid var(--color-border-light);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__copyright {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.site-footer__links a {
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.site-footer__links a:hover {
  color: var(--color-accent);
}

.site-footer__divider {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.site-footer__address {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
}

.site-footer__address p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.375rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
  color: #ffffff;
  background: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  color: #ffffff;
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  color: var(--color-accent);
  background: var(--color-bg);
  border-color: var(--color-border);
}

.btn--secondary:hover {
  color: var(--color-accent-dark);
  background: var(--color-bg-muted);
  border-color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding: 5rem 0 4.5rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-muted) 100%);
}

.hero__inner {
  max-width: 760px;
}

.hero__eyebrow {
  margin: 0 0 1rem;
  color: var(--color-green-dark);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__headline {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

.hero__subheadline {
  margin: 0 0 2rem;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--color-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero__actions--center {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 4.5rem 0;
}

.section--muted {
  background: var(--color-bg-muted);
}

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

.section__lead {
  margin: 0 0 2rem;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Feature grid (home)
   -------------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
}

.feature-card__title::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--color-green);
  border-radius: 2px;
}

.feature-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.feature-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card__list {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
}

.feature-card__list li + li {
  margin-top: 0.35rem;
}

.feature-card__link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Services grid
   -------------------------------------------------------------------------- */

.services-intro {
  max-width: var(--container-narrow);
}

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

.service-item {
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.service-item__title {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--color-text);
}

.service-item__title::before {
  content: "";
  display: block;
  width: 2rem;
  height: 3px;
  margin-bottom: 1rem;
  background: var(--color-green);
  border-radius: 2px;
}

.service-item__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Page header
   -------------------------------------------------------------------------- */

.page-header {
  padding: 3.5rem 0 2rem;
  background: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border-light);
}

.page-header__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-header__lead {
  margin: 0.75rem 0 0;
  max-width: 640px;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

.portfolio-card {
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.portfolio-card:hover {
  border-color: var(--color-border);
  box-shadow: var(--shadow-md);
}

.portfolio-card__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.portfolio-card__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.portfolio-card__badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-green-dark);
  background: rgba(164, 198, 57, 0.16);
  border-radius: 999px;
}

.portfolio-card__badge--muted {
  color: var(--color-text-muted);
  background: var(--color-bg-subtle);
}

.portfolio-card__description {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.portfolio-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.portfolio-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.portfolio-card__link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.portfolio-card__link:hover::after {
  transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   Prose (about, legal)
   -------------------------------------------------------------------------- */

.prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose__greeting {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.about-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.credentials-callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
}

.credentials-callout__text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.credentials-callout__link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}

.credentials-callout__link:hover {
  color: var(--color-green-dark);
}

/* --------------------------------------------------------------------------
   Eyebrow
   -------------------------------------------------------------------------- */

.eyebrow {
  margin: 0 0 0.875rem;
  color: var(--color-green-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Case study
   -------------------------------------------------------------------------- */

.case-study {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.case-study h1 {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--color-text);
}

.case-study h2 {
  margin: 2.25rem 0 0.625rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.case-study p {
  margin: 0 0 1.25rem;
}

.case-study ul {
  margin: 0 0 1.25rem;
  padding-left: 1.375rem;
}

.case-study li {
  margin-bottom: 0.375rem;
}

.case-study__technologies {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.case-study__title {
  margin: 0 0 2rem;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--color-text);
}

.case-study__cta {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.case-study__cta p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.case-study__reference {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.5rem;
}

.case-study__reference p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.case-study__reference-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-card {
  padding: 2.5rem;
  text-align: center;
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
}

.contact-card__lead {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.contact-card__email {
  margin: 0 0 1rem;
}

.contact-card__link {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--color-accent);
  word-break: break-all;
}

.contact-card__link:hover {
  color: var(--color-green-dark);
}

.contact-card__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.contact-address {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}

.contact-address__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-address__text {
  margin: 0;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Contact email
   -------------------------------------------------------------------------- */

.contact-email {
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 0;
}

.contact-email__title {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

.contact-email__lead {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

.contact-email__address {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.contact-form {
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(112, 139, 163, 0.15);
}

.form-input::placeholder {
  color: var(--color-text-light);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.6;
}

.contact-form .btn {
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Flash messages
   -------------------------------------------------------------------------- */

.flash {
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
}

.flash--notice {
  background: #ecfdf5;
  color: #166534;
  border-bottom: 1px solid #bbf7d0;
}

.flash--alert {
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials {
  padding: 4.5rem 0;
  background: var(--color-bg-muted);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.testimonials__header {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.testimonials__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.testimonials__lead {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.testimonials__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.stat {
  padding: 1.25rem 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat__value {
  display: block;
  margin-bottom: 0.25rem;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-accent);
}

.stat__value .stars {
  margin-bottom: 0;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  letter-spacing: 0.06em;
}

.stat__label {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stars {
  display: inline-block;
  margin-bottom: 0.875rem;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  color: var(--color-green);
}

.testimonial-card__quote {
  flex: 1;
  margin: 0 0 1rem;
}

.testimonial-card__quote p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.testimonial-card__author {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
}

.testimonials__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 2rem 0 0;
}

.testimonials__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.testimonials__link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.testimonials__link:hover::after {
  transform: translateX(3px);
}

/* Compact variant (portfolio card) */

.testimonials--compact {
  padding: 0;
  margin-top: 2rem;
  background: transparent;
  border: 0;
}

.testimonials--compact .testimonials__header {
  margin-bottom: 1.25rem;
}

.testimonials--compact .testimonials__title {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.testimonials--compact .testimonials__stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.testimonials--compact .stat {
  padding: 0.875rem 1rem;
}

.testimonials--compact .stat__value {
  font-size: 1.125rem;
}

.testimonials--compact .stat__label {
  font-size: 0.6875rem;
}

.testimonials--compact .testimonials__grid {
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.testimonials--compact .testimonial-card {
  padding: 1.125rem 1.25rem;
  border-radius: var(--radius-md);
}

.testimonials--compact .testimonials__footer {
  justify-content: flex-start;
  margin-top: 1.25rem;
}

.portfolio-card__testimonials {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-light);
}

/* --------------------------------------------------------------------------
   Credentials
   -------------------------------------------------------------------------- */

.credentials__title {
  margin: 0 0 2rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.credential-card {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.credential-card__name {
  margin: 0 0 0.375rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.credential-card__issuer {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.credential-card__meta {
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.credential-card__meta p {
  margin: 0 0 0.5rem;
}

.credential-card__meta strong {
  color: var(--color-text);
}

.credential-card__prose {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.credential-card__prose p {
  margin: 0 0 1.25rem;
}

.credential-card__skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1rem;
  margin: 0 0 1.25rem;
  padding-left: 1.375rem;
}

.credential-card__skills li {
  margin-bottom: 0;
}

.credential-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.credential-card__link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.credential-card__link:hover::after {
  transform: translateX(3px);
}

.credential-card__badge-wrap {
  display: flex;
  justify-content: center;
  padding-top: 0.25rem;
}

.credential-card__badge-image {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.credential-partner {
  padding: 2rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.credential-partner__title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.credential-partner__text {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.credential-partner__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.5rem;
  margin: 0 0 1.25rem;
  padding-left: 1.375rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--color-text-muted);
}

.credential-partner__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-accent);
}

.credential-partner__link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.credential-partner__link:hover::after {
  transform: translateX(3px);
}

.credentials-cta {
  margin-top: 2.5rem;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
}

.credentials-cta__heading {
  margin: 0 0 1.25rem;
  font-size: clamp(1.25rem, 3vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .testimonials--compact .testimonials__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .credential-card {
    grid-template-columns: 1fr;
  }

  .credential-card__badge-wrap {
    order: -1;
    justify-content: flex-start;
  }

  .credential-card__skills {
    grid-template-columns: 1fr;
  }

  .credentials-cta {
    padding: 2rem 1.25rem;
  }

  .nav-toggle-label {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.5rem 1.25rem;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
  }

  .site-header__inner {
    position: relative;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 0.75rem 0.875rem;
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }

  .nav-toggle:checked + .nav-toggle-label .nav-toggle-label__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle:checked + .nav-toggle-label .nav-toggle-label__bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .nav-toggle-label .nav-toggle-label__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 2.5rem 0 1.5rem;
  }

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

  .portfolio-card,
  .contact-card {
    padding: 1.5rem;
  }

  .testimonials {
    padding: 3rem 0;
  }

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

  .site-logo__image {
    height: 44px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}

/* The one doorway out of the dry engineering site. */
.nav-link--aquatic {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  color: #04323a;
  background: linear-gradient(110deg, #b8f3e6, #5fd3c6 30%, #9be7a8 55%, #6cc6e8 80%, #b8f3e6);
  background-size: 250% 100%;
  animation: nav-aquatic-shimmer 6s ease-in-out infinite;
  box-shadow: 0 0 18px rgba(72, 201, 195, 0.35);
}

/* Hover keeps the water: brighter, quicker shimmer, a lift and a glow.
   The background is restated so the generic .nav-link:hover can't darken it. */
.nav-link.nav-link--aquatic:hover,
.nav-link.nav-link--aquatic:focus-visible {
  color: #021a20;
  background: linear-gradient(110deg, #d9fbf4, #7fe3d6 30%, #b8f3c4 55%, #8fd8f2 80%, #d9fbf4);
  background-size: 250% 100%;
  animation-duration: 2s;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 0 0 1px rgba(217, 251, 244, 0.6), 0 6px 30px rgba(72, 201, 195, 0.7);
}

.nav-link--aquatic {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@keyframes nav-aquatic-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-link--aquatic { animation: none; }
}
/*
 * Terminal Zen: dark, calm, precise. Loads after site.css (require_tree is
 * alphabetical) and re-themes the engineering site through its tokens, plus
 * the homepage's interactive terminal. Brand lime comes from the Zendo logo.
 */

:root {
  --color-bg: #0c100f;
  --color-bg-muted: #101513;
  --color-bg-subtle: #172019;
  --color-surface: #121816;
  --color-text: #dde6e0;
  --color-text-muted: #95a39b;
  --color-text-light: #64736b;
  --color-accent: #b5d84a;
  --color-accent-dark: #d0ec6f;
  --color-green: #a4c639;
  --color-green-dark: #c3e05a;
  --color-steel: #8fb0c9;
  --color-amber: #e8c27c;
  --color-border: #26302b;
  --color-border-light: #1b2420;
  --shadow-sm: 0 1px 0 rgba(255, 255, 255, 0.02);
  --shadow-md: 0 18px 40px -20px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, 0.85);
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

body {
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(164, 198, 57, 0.09), transparent 70%),
    radial-gradient(900px 600px at -10% 30%, rgba(143, 176, 201, 0.06), transparent 70%),
    var(--color-bg);
  background-attachment: fixed;
}

/* A faint dot grid, like graph paper under the work. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(221, 230, 224, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}

[hidden] { display: none !important; }

::selection { background: rgba(164, 198, 57, 0.35); color: #fff; }

h1, h2, h3,
.hero__headline, .section__title, .page-header__title, .testimonials__title, .portfolio-card__title {
  color: var(--color-text);
}

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

/* ── header ──────────────────────────────────────────────────────────── */

.site-header {
  background: rgba(12, 16, 15, 0.78);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--color-border-light);
}

.site-logo--term {
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.site-logo--term:hover { color: var(--color-text); opacity: 1; }

.site-logo__gate { display: block; width: 22px; height: 22px; color: var(--color-green); }

.site-logo__path { color: var(--color-text-light); }

.site-logo__cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -0.15em;
  background: var(--color-green);
  animation: term-blink 1.1s steps(1) infinite;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav-link:not(.nav-link--aquatic):hover { background: var(--color-bg-subtle); }

.nav-link--active:not(.nav-link--aquatic) { color: var(--color-accent); background: transparent; }
.nav-link--active:not(.nav-link--aquatic)::before { content: "> "; color: var(--color-green); }

.nav-toggle-label:hover { background: var(--color-bg-subtle); }

@media (max-width: 768px) {
  .site-nav { background: var(--color-bg-muted) !important; border-color: var(--color-border) !important; }
}

/* ── type ────────────────────────────────────────────────────────────── */

.eyebrow, .hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--color-green);
}

.eyebrow::before, .hero__eyebrow::before { content: "// "; color: var(--color-text-light); }

.section__title, .page-header__title, .testimonials__title {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.page-header__title::before {
  content: "~/";
  margin-right: 0.15em;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--color-text-light);
}

.prose, .section__lead, .page-header__lead { color: var(--color-text-muted); }
.prose strong, .page-header__lead strong { color: var(--color-text); }

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.1em 0.4em;
  border-radius: 4px;
  background: var(--color-bg-subtle);
  color: var(--color-amber);
}

/* ── surfaces ────────────────────────────────────────────────────────── */

.hero { background: transparent; }
.section--muted, .page-header, .testimonials, .site-footer { background: rgba(16, 21, 19, 0.6); }

.feature-card, .service-item, .portfolio-card, .testimonial-card, .stat,
.contact-card, .credential-card, .case-study__cta, .case-study__reference, .credentials-callout {
  background: linear-gradient(180deg, rgba(23, 32, 25, 0.75), rgba(18, 24, 22, 0.75)) !important;
  border: 1px solid var(--color-border) !important;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover, .service-item:hover, .portfolio-card:hover, .testimonial-card:hover {
  border-color: rgba(164, 198, 57, 0.4) !important;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(164, 198, 57, 0.08), 0 0 40px -10px rgba(164, 198, 57, 0.18);
  transform: translateY(-2px);
}

/* Card titles get a prompt instead of a bar. */
.feature-card__title::before, .service-item__title::before {
  content: "$";
  display: inline;
  width: auto;
  height: auto;
  margin: 0 0.5rem 0 0;
  background: none;
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--color-green);
}

.feature-card__list { color: var(--color-text); }
.feature-card__list li::marker { content: "→  "; color: var(--color-green); font-family: var(--font-mono); }

.feature-card__link, .portfolio-card__link, .testimonials__link, .credentials-callout__link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
}

.stat__value { font-family: var(--font-mono); font-weight: 500; color: var(--color-green); }
.stars { color: var(--color-amber); }
.portfolio-card__badge { background: rgba(164, 198, 57, 0.12); color: var(--color-green); font-family: var(--font-mono); }

/* ── buttons ─────────────────────────────────────────────────────────── */

.btn {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 8px;
}

.btn--primary {
  color: #0c100f;
  background: var(--color-green);
  box-shadow: 0 0 0 1px rgba(164, 198, 57, 0.5), 0 10px 30px -12px rgba(164, 198, 57, 0.6);
}

.btn--primary:hover {
  color: #0c100f;
  background: var(--color-accent-dark);
  box-shadow: 0 0 0 1px rgba(208, 236, 111, 0.7), 0 14px 40px -12px rgba(164, 198, 57, 0.8);
}

.btn--primary::before { content: "▸ "; white-space: pre; }

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

.btn--secondary:hover {
  color: var(--color-accent);
  background: var(--color-bg-subtle);
  border-color: var(--color-text-light);
}

/* ── forms + flash ───────────────────────────────────────────────────── */

.form-label { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-text-muted); }

.form-input {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg) !important;
  border: 1px solid var(--color-border) !important;
}

.form-input:focus {
  border-color: var(--color-green) !important;
  box-shadow: 0 0 0 3px rgba(164, 198, 57, 0.15) !important;
}

.form-input::placeholder { color: var(--color-text-light); }

.flash { font-family: var(--font-mono); font-size: 0.875rem; }
.flash--notice { background: rgba(164, 198, 57, 0.12); color: var(--color-accent-dark); border-bottom-color: rgba(164, 198, 57, 0.3); }
.flash--alert { background: rgba(232, 110, 90, 0.12); color: #f2a493; border-bottom-color: rgba(232, 110, 90, 0.3); }

.site-footer { border-top: 1px solid var(--color-border-light); }
.site-footer__copyright, .site-footer__links a { font-family: var(--font-mono); font-size: 0.8rem; }

/* ══ Homepage hero with live terminal ═════════════════════════════════ */

.hero--term { padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem); }

.hero--term .hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--container-width);
}

.hero--term .hero__headline {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero__headline-accent {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.86em;
  letter-spacing: -0.04em;
  color: var(--color-green);
}

.term {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: rgba(8, 11, 10, 0.88);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 90px -30px rgba(164, 198, 57, 0.35);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.65;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--color-border-light);
  background: rgba(23, 32, 25, 0.6);
}

.term__dot { width: 10px; height: 10px; border-radius: 50%; background: #2b3530; }
.term__dot:nth-child(1) { background: #3b4a42; }

.term__title {
  flex: 1;
  margin-right: 2.4rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.term__body {
  height: clamp(300px, 42vh, 380px);
  padding: 1rem 1.1rem 1.1rem;
  overflow-y: auto;
  cursor: text;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.term__line { margin: 0; white-space: pre-wrap; word-break: break-word; color: var(--color-text); }
.term__line--muted { color: var(--color-text-muted); }
.term__line--ok { color: var(--color-green); }
.term__line--steel { color: var(--color-steel); }
.term__line--amber { color: var(--color-amber); }
.term__line--err { color: #f2a493; }
.term__line a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }

.term__prompt { color: var(--color-green); }
.term__path { color: var(--color-steel); }

.term__input-row { display: flex; align-items: baseline; gap: 0; }

.term__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: none;
  font: inherit;
  color: var(--color-text);
  background: transparent;
  caret-color: var(--color-green);
}

.term__input:focus-visible { outline: none; }

.term__caret {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--color-green);
  animation: term-blink 1.1s steps(1) infinite;
}

.term__hint {
  margin: 0.6rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-light);
  text-align: right;
}

.term__hint kbd { color: var(--color-green); }

@keyframes term-blink { 50% { opacity: 0; } }

@media (max-width: 900px) {
  .hero--term .hero__inner { grid-template-columns: 1fr; }
  .term__body { height: 300px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-logo__cursor, .term__caret { animation: none; }
  .feature-card, .service-item, .portfolio-card, .testimonial-card { transition: none; }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *



 */
