/* =========================================================================
   Opslife — modern theme overrides
   Layered on top of the Ananke (tachyons) theme.
   ========================================================================= */

:root {
  --brand-ink:      #111827;   /* gray-900   — primary text            */
  --brand-body:     #334155;   /* slate-700  — body copy               */
  --brand-muted:    #64748b;   /* slate-500  — meta / secondary        */
  --brand-accent:   #10b981;   /* emerald-500 — links / buttons        */
  --brand-accent-2: #059669;   /* emerald-600 — hover                  */
  --brand-link:     #047857;   /* emerald-700 — prose links (AA on white) */
  --brand-bg:       #f8fafc;   /* slate-50   — page background         */
  --brand-card:     #ffffff;
  --brand-border:   #e2e8f0;   /* slate-200                            */
  --hero-grad: linear-gradient(135deg, #0b0f14 0%, #111827 45%, #1f2937 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 30px rgba(16, 185, 129, .16);
  --radius: 14px;
}

/* The hidden attribute must win over component display rules (e.g. flex) */
[hidden] { display: none !important; }

/* ---- Typography --------------------------------------------------------- */

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: var(--brand-bg) !important;
  color: var(--brand-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Neutralise tachyons font-family utilities so prose/UI use Inter */
.avenir, .serif, .athelas, .sans-serif, .system-sans-serif,
.georgia, .times, .baskerville, .lucida-grande {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif !important;
  color: var(--brand-ink);
  letter-spacing: -0.01em;
}

/* Cleaner emphasis — Inter 700 reads heavy/patchy in prose, 600 is sleeker */
strong, b { font-weight: 600; }

/* Keep code in a clean monospace */
code, pre, kbd, samp, .code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace !important;
}

/* Code blocks: scrollbars only when needed (theme's overflow:scroll drew
   empty white tracks), rounded to match the cards */
.highlight pre {
  overflow: auto !important;
  border-radius: 10px;
}

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

.site-hero {
  background: var(--hero-grad);
  position: relative;
  overflow: hidden;
}

/* soft glow accent in the corner for a modern feel */
.site-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 50%;
  height: 160%;
  background: radial-gradient(closest-side, rgba(16, 185, 129, .28), rgba(16, 185, 129, 0));
  pointer-events: none;
}

.site-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 60rem;
  margin: 0 auto;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
}

.site-hero__title {
  color: #ffffff !important;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.1;
  margin: 0;
}

.site-hero__subtitle {
  color: rgba(226, 232, 240, .9);
  font-family: 'Inter', sans-serif !important;
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
  max-width: 34rem;
  margin: 1rem auto 0;
}

.site-hero--slim .site-hero__inner { display: none; }
.site-hero--slim { padding-bottom: 0; }


/* ---- Body copy colour — unified across home, sections & posts ---------- */

main article.cf,
main section.cf,
main .nested-copy-line-height {
  color: var(--brand-body);
}

main h1 { font-size: 1.75rem; }

.post-meta { font-size: .9rem; color: var(--brand-muted); margin-bottom: 1.5rem; }

/* ---- Post summary cards ------------------------------------------------- */

.relative.w-100 > article,
article.bb {
  background: var(--brand-card);
  border: 1px solid var(--brand-border) !important;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
}

.relative.w-100 > article:hover,
article.bb:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

article.bb { border-bottom-width: 1px !important; }

.summary-with-image article h1 a,
article.bb h1 a { color: var(--brand-ink); }

/* ---- Links -------------------------------------------------------------- */

/* Prose links only - classed links are components that style themselves */
main a:not([class]) { color: var(--brand-link); }
main a:not([class]):hover { color: var(--brand-accent-2); }

/* ---- Buttons (read more, all posts, contact submit) -------------------- */

a.ba.b--moon-gray,
a.bg-mid-gray,
input[type="submit"] {
  background: var(--brand-accent) !important;
  border: 0 !important;
  color: #ffffff !important;
  border-radius: 9px !important;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background .15s ease, transform .15s ease;
}

a.ba.b--moon-gray:hover,
a.bg-mid-gray:hover,
input[type="submit"]:hover {
  background: var(--brand-accent-2) !important;
  transform: translateY(-1px);
}

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

input.bg-light-gray,
textarea.bg-light-gray {
  background: #ffffff !important;
  border: 1px solid var(--brand-border) !important;
  border-radius: 9px !important;
}

input.bg-light-gray:focus,
textarea.bg-light-gray:focus {
  outline: none;
  border-color: var(--brand-accent) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}


/* ---- AI news feed ------------------------------------------------------- */

.ai-news { margin-top: 1rem; }

.ai-news__meta {
  color: var(--brand-muted);
  margin-top: -.25rem;
}

.ai-news__status { color: var(--brand-muted); }

.ai-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.ai-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.ai-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.ai-card__title {
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--brand-ink) !important;
  text-decoration: none;
}

.ai-card__title:hover { color: var(--brand-accent-2) !important; }

.ai-card__meta {
  margin: .6rem 0 0;
  font-size: .82rem;
  color: var(--brand-muted);
}

.ai-card__meta a { color: var(--brand-muted); }
.ai-card__meta a:hover { color: var(--brand-accent-2); }

.ai-news__credit {
  font-size: .82rem;
  color: var(--brand-muted);
}

/* ---- AWS announcements feed -------------------------------------------- */

.aws-news { margin-top: 1rem; }

.aws-news__meta {
  color: var(--brand-muted);
  margin-top: -.25rem;
}

.aws-news__status { color: var(--brand-muted); }

.aws-news__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.aws-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}

.aws-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.aws-card__title {
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--brand-ink) !important;
  text-decoration: none;
}

.aws-card__title:hover { color: var(--brand-accent-2) !important; }

.aws-card__excerpt {
  margin: .55rem 0 0;
  font-size: .88rem;
  line-height: 1.5;
  color: var(--brand-muted);
}

.aws-card__meta {
  margin: .6rem 0 0;
  font-size: .82rem;
  color: var(--brand-muted);
}

.aws-news__credit {
  font-size: .82rem;
  color: var(--brand-muted);
}

/* ---- Products / SaaS showcase ------------------------------------------- */

.products { margin-top: 1rem; }

.product-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem;
  overflow: hidden;
  position: relative;
}

@media screen and (min-width: 30em) {
  .product-card { padding: 2.75rem; }
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-2));
}

.product-card__badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-accent-2);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
  padding: .25rem .6rem;
  border-radius: 999px;
}

.product-card__name {
  font-size: 2rem;
  margin: .9rem 0 .35rem;
  line-height: 1.1;
}

.product-card__tagline {
  font-size: 1.15rem;
  color: var(--brand-body);
  margin: 0 0 1.25rem;
}

.product-card__lead {
  color: var(--brand-body);
  line-height: 1.65;
  margin: 0 0 1.5rem;
  max-width: 46rem;
}

.product-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  gap: 1rem;
}

@media screen and (min-width: 40em) {
  .product-card__features {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
  }
}

.product-card__features li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--brand-muted);
  line-height: 1.55;
}

.product-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-accent);
  font-weight: 700;
}

.product-card__features li strong {
  display: block;
  color: var(--brand-ink);
  font-weight: 600;
  margin-bottom: .15rem;
}

.product-card__cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.product-btn {
  display: inline-block;
  background: var(--brand-accent);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  padding: .75rem 1.4rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

.product-btn:hover {
  background: var(--brand-accent-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: #fff !important;
}

.product-link {
  font-weight: 500;
  color: var(--brand-accent) !important;
}

.product-link:hover { color: var(--brand-accent-2) !important; }

/* ---- Products: free audit callout --------------------------------------- */

.product-audit {
  margin-top: 1.75rem;
  padding: 1.5rem;
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  background: var(--brand-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.product-audit__badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand-accent-2);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
  padding: .2rem .55rem;
  border-radius: 999px;
}

.product-audit__title {
  font-size: 1.2rem;
  margin: .55rem 0 .35rem;
  line-height: 1.2;
}

.product-audit__lead {
  margin: 0;
  color: var(--brand-muted);
  line-height: 1.55;
  max-width: 34rem;
}

.product-btn--ghost {
  background: transparent;
  color: var(--brand-accent-2) !important;
  border: 1px solid var(--brand-accent);
  box-shadow: none;
  white-space: nowrap;
}

.product-btn--ghost:hover {
  background: var(--brand-accent);
  color: #fff !important;
}

/* ---- Products: badge row & contact -------------------------------------- */

.product-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .25rem;
}

.product-card__badge--link {
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}

.product-card__badge--link:hover {
  background: rgba(16, 185, 129, .18);
  border-color: var(--brand-accent);
  color: var(--brand-accent-2) !important;
}

.product-card__contact {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brand-border);
  color: var(--brand-muted);
  font-size: .95rem;
}

/* ---- Homepage: featured product band ------------------------------------ */

.home-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin: 2.5rem 0 0;
  padding: 1.5rem 1.75rem;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}

.home-product:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-accent);
}

.home-product__main { min-width: 0; }

.home-product__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .5rem;
}

.home-product__badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--brand-accent-2);
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
  padding: .2rem .55rem;
  border-radius: 999px;
}

.home-product__name {
  display: block;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--brand-ink);
  line-height: 1.15;
}

.home-product__pitch {
  display: block;
  margin-top: .2rem;
  color: var(--brand-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.home-product__cta {
  flex: none;
  font-weight: 600;
  color: var(--brand-accent) !important;
  white-space: nowrap;
}

.home-product:hover .home-product__cta { color: var(--brand-accent-2) !important; }

/* =========================================================================
   Site chrome & page components (nav, hero, footer, cards, CTA)
   ========================================================================= */

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

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

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  padding: .8rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--brand-accent);
  color: #fff !important;
}

.btn--primary:hover {
  background: var(--brand-accent-2);
  box-shadow: var(--shadow-lg);
}

.btn--ghost {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .28);
  color: #fff !important;
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, .6);
  background: rgba(255, 255, 255, .08);
}

.btn--sm { font-size: .9rem; padding: .55rem 1rem; }

/* ---- Navigation --------------------------------------------------------- */

.site-nav {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.site-nav__brand img { width: 32px; height: 32px; border-radius: 8px; }

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav__menu ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__menu ul a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
  font-weight: 500;
  font-size: .98rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}

.site-nav__menu ul a:hover { color: #fff; }
.site-nav__menu ul a.is-active { color: #fff; border-bottom-color: var(--brand-accent); }

.site-nav__toggle { display: none; }
.site-nav__burger { display: none; }

@media screen and (max-width: 60em) {
  .site-nav__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    cursor: pointer;
  }

  .site-nav__burger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .site-nav__menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: .5rem 0 1rem;
  }

  .site-nav__menu ul { flex-direction: column; gap: 0; }
  .site-nav__menu ul a {
    display: block;
    padding: .75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }
  .site-nav__menu ul a.is-active { border-bottom-color: rgba(255, 255, 255, .08); color: var(--brand-accent); }
  .site-nav__menu .btn { text-align: center; }

  .site-nav__toggle:checked ~ .site-nav__menu { display: flex; }
  .site-nav__toggle:checked ~ .site-nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-nav__toggle:checked ~ .site-nav__burger span:nth-child(2) { opacity: 0; }
  .site-nav__toggle:checked ~ .site-nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

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

.site-hero__inner { text-align: center; padding-left: 1.25rem; padding-right: 1.25rem; }

.site-hero--home .site-hero__inner {
  max-width: 52rem;
  padding-top: 4.5rem;
  padding-bottom: 5.5rem;
}

.site-hero--home .site-hero__title { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -0.025em; }
.site-hero--home .site-hero__subtitle { max-width: 40rem; }

.site-hero__eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: .3rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(16, 185, 129, .12);
  border: 1px solid rgba(16, 185, 129, .3);
  border-radius: 999px;
}

.site-hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

/* ---- Section headings --------------------------------------------------- */

.home-section { padding-top: 4rem; padding-bottom: 1rem; }

.section-head { margin-bottom: 2rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0; }

.section-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: left;
}

.eyebrow {
  margin: 0 0 .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-accent-2);
}

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  color: var(--brand-link) !important;
}

.link-arrow:hover { color: var(--brand-accent) !important; }

.page-intro {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 1rem;
  font-size: 1.15rem;
  line-height: 1.7;
  text-align: center;
  color: var(--brand-body);
}

/* ---- Service cards (homepage) ------------------------------------------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.25rem;
}

/* Flex (not grid) so a short last row of services sits centred */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.service-grid > * { flex: 1 1 17rem; max-width: calc((100% - 2.5rem) / 3); }

@media screen and (max-width: 60em) {
  .service-grid > * { max-width: calc((100% - 1.25rem) / 2); }
}

@media screen and (max-width: 38em) {
  .service-grid > * { max-width: 100%; }
}

.service-card,
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--brand-body) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.service-card:hover,
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, .45);
}

.service-card { padding: 1.75rem; }

.service-card__icon,
.service-detail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: var(--brand-accent-2);
  background: rgba(16, 185, 129, .1);
}

.service-card h3 { font-size: 1.25rem; margin: 1.1rem 0 .5rem; }
.service-card p { margin: 0 0 1.25rem; line-height: 1.6; color: var(--brand-muted); flex: 1; }

.service-card__more,
.post-card__more {
  font-weight: 600;
  font-size: .92rem;
  color: var(--brand-link);
}

/* ---- Post cards --------------------------------------------------------- */

.post-card { padding: 1.4rem 1.5rem; }

.post-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem .75rem;
  font-size: .8rem;
  color: var(--brand-muted);
}

.post-card__cat {
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--brand-accent-2);
}

.post-card__title {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: .7rem 0 .5rem;
}

.post-card__excerpt {
  margin: 0 0 1.1rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--brand-muted);
  flex: 1;
}

/* ---- Insights category chips ------------------------------------------- */

.chip-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 1.75rem;
}

.chip-nav a {
  padding: .4rem .95rem;
  border-radius: 999px;
  border: 1px solid var(--brand-border);
  background: var(--brand-card);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--brand-body) !important;
  transition: border-color .15s ease, background .15s ease;
}

.chip-nav a:hover { border-color: var(--brand-accent); }

.chip-nav a.is-active {
  background: var(--brand-ink);
  border-color: var(--brand-ink);
  color: #fff !important;
}

/* ---- Services page ----------------------------------------------------- */

.services-detail {
  max-width: 52rem;
  padding-top: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

.service-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  padding: 2rem;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 1.5rem;
}

.service-detail h2 { font-size: 1.5rem; margin: .4rem 0 .6rem; }
.service-detail p { margin: 0 0 1rem; line-height: 1.65; }
.service-detail__article { display: inline-block; margin-top: 1.1rem; }

@media screen and (max-width: 30em) {
  .service-detail { grid-template-columns: 1fr; padding: 1.5rem; }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--brand-body);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: 700;
}

/* ---- Call-to-action band ----------------------------------------------- */

.cta-band { padding: 4rem 1.25rem 1rem; }

.cta-band__inner {
  max-width: calc(72rem - 2.5rem);
  margin: 0 auto;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--hero-grad);
  position: relative;
  overflow: hidden;
}

.cta-band__inner::after {
  content: "";
  position: absolute;
  inset: -60% -10% auto auto;
  width: 45%;
  height: 220%;
  background: radial-gradient(closest-side, rgba(16, 185, 129, .3), rgba(16, 185, 129, 0));
  pointer-events: none;
}

.cta-band__inner > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff !important; font-size: 1.6rem; margin: 0 0 .4rem; }
.cta-band p { margin: 0; color: rgba(226, 232, 240, .85); }

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

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 3rem;
  max-width: 60rem;
}

@media screen and (min-width: 48em) {
  .contact { grid-template-columns: 1fr 1.3fr; gap: 3rem; }
}

.contact__aside h2 { font-size: 1.8rem; margin: 0 0 .75rem; }
.contact__aside p { line-height: 1.7; }
.contact__email { color: var(--brand-muted); }

.contact__form {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact__form label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand-ink);
  margin: 0 0 .4rem;
}

.contact__form label span { font-weight: 400; color: var(--brand-muted); }

.contact__form input,
.contact__form textarea {
  font: inherit;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1.1rem;
  padding: .75rem .9rem;
  border: 1px solid var(--brand-border);
  border-radius: 9px;
  background: #fff;
  color: var(--brand-ink);
}

.contact__form input:focus,
.contact__form textarea:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .18);
}

.contact__form .btn { align-self: flex-start; margin-top: .25rem; }
.contact__form .btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* Honeypot field - visually removed, still in the DOM for bots */
.contact__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.contact__status {
  margin: 1rem 0 0;
  padding: .75rem .9rem;
  border-radius: 9px;
  font-size: .92rem;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.contact__success {
  align-self: start;
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand-accent);
}

.contact__success h3 { font-size: 1.35rem; margin: 1rem 0 .5rem; }
.contact__success p { margin: 0; color: var(--brand-muted); line-height: 1.6; }

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

.site-footer {
  background: #0b0f14;
  color: rgba(226, 232, 240, .7);
  font-size: .93rem;
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.5rem;
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 1fr 1fr;
}

.site-footer__brand { grid-column: 1 / -1; }

@media screen and (min-width: 40em) {
  .site-footer__inner { grid-template-columns: 1fr 1fr 1fr; }
}

@media screen and (min-width: 60em) {
  .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
}

.site-footer__brand p { max-width: 22rem; line-height: 1.6; margin: 1rem 0 1.25rem; }

.site-footer h4 {
  color: #fff !important;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: .35rem 0 1rem;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }

.site-footer a { color: rgba(226, 232, 240, .7); text-decoration: none; transition: color .15s ease; }
.site-footer a:hover { color: #fff; }

.site-footer__social { display: flex; gap: .9rem; }
.site-footer__social svg { fill: currentColor; }

.site-footer__legal {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.25rem 1.75rem;
  font-size: .8rem;
  color: rgba(226, 232, 240, .5);
}

.site-footer__legal p {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, .08);
  line-height: 1.6;
}

/* ---- Post footer: share & tags ----------------------------------------- */

.post-share {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 2.5rem 0 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brand-border);
  font-size: .9rem;
  color: var(--brand-muted);
}

.post-share span { margin-right: .35rem; }

.post-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--brand-border);
  background: var(--brand-card);
  color: var(--brand-muted) !important;
  transition: color .15s ease, border-color .15s ease;
}

.post-share a:hover { color: var(--brand-accent-2) !important; border-color: var(--brand-accent); }
.post-share svg { width: 15px; height: 15px; fill: currentColor; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-tags a {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--brand-accent-2) !important;
  background: rgba(16, 185, 129, .1);
  border: 1px solid rgba(16, 185, 129, .25);
}

.post-tags a:hover { background: rgba(16, 185, 129, .18); }

/* ---- About: founder's message ----------------------------------------- */

.founder { max-width: 44rem; padding-top: 2rem; }
.founder .eyebrow { text-align: center; }

.founder__card {
  padding: 2.25rem;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-left: 4px solid var(--brand-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

@media screen and (max-width: 30em) {
  .founder__card { padding: 1.5rem; }
}

.founder__message p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--brand-body);
}

.founder__sign {
  display: flex;
  flex-direction: column;
  margin: 1.5rem 0;
}

.founder__sign strong {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.15rem;
  color: var(--brand-ink);
}

.founder__sign span { font-size: .9rem; color: var(--brand-muted); }

/* ---- Homepage: hero credentials & selected experience ------------------ */

.site-hero__creds {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
}

.site-hero__creds li {
  padding: .3rem .75rem;
  font-size: .8rem;
  font-weight: 500;
  color: rgba(226, 232, 240, .85);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  cursor: default;
}

.section-head__lead {
  max-width: 36rem;
  margin: .75rem auto 0;
  color: var(--brand-muted);
  line-height: 1.6;
}

/* Same centred-last-row layout as .service-grid */
.exp-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.exp-grid > * { flex: 1 1 17rem; max-width: calc((100% - 2.5rem) / 3); }

@media screen and (max-width: 60em) {
  .exp-grid > * { max-width: calc((100% - 1.25rem) / 2); }
}

@media screen and (max-width: 38em) {
  .exp-grid > * { max-width: 100%; }
}

.exp-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.75rem;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.exp-card__sector {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-accent-2);
}

.exp-card h3 { font-size: 1.2rem; margin: .5rem 0 .6rem; }
.exp-card p { margin: 0 0 1.1rem; font-size: .95rem; line-height: 1.6; color: var(--brand-muted); flex: 1; }

.exp-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.exp-card__tags li {
  padding: .15rem .55rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--brand-body);
  background: var(--brand-bg);
  border: 1px solid var(--brand-border);
  border-radius: 6px;
}

/* ---- About: founder certifications ------------------------------------- */

.founder__creds {
  margin: 0 0 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brand-border);
}

.founder__creds p {
  margin: 0 0 .6rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-muted);
}

.founder__creds ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
.founder__creds li { font-size: .92rem; color: var(--brand-body); }
