/* =========================================================
   Nesha Corporation — site styles (pure CSS, no scripts)

   Calm palette
     background  #F8F9FA / #F4F5F7 (off-white)
     text        #1E293B (deep slate)
     brand       #2B4C7E (muted navy: headlines, primary buttons)
     accent      #4A7C7E teal / #6B9080 sage (used sparingly)
   Type: Newsreader (serif) for headlines, Inter for everything else.
   The orange N (#E08A1E) appears only in the logo mark.
   ========================================================= */

:root {
  --bg: #f8f9fa;
  --bg-alt: #f4f5f7;
  --surface: #ffffff;
  --text: #1e293b;
  --text-muted: #526075;
  --navy: #2b4c7e;
  --navy-700: #233f69;
  --navy-900: #1b2b44;
  --navy-950: #142236;
  --navy-50: #edf2f8;
  --teal: #4a7c7e;
  --teal-ink: #3d6b6d;      /* teal darkened for small text (WCAG AA) */
  --teal-50: #ebf3f2;
  --sage: #6b9080;
  --sage-soft: #a9c5b8;     /* accent on dark backgrounds */
  --logo-orange: #e08a1e;
  --line: #e3e7ec;
  --on-dark: #e9eef4;
  --on-dark-muted: rgba(233, 238, 244, .74);

  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(30, 41, 59, .04), 0 4px 16px rgba(30, 41, 59, .04);

  --container: 1160px;
  --header-h: 76px;
  --measure: 62ch;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;      /* 17px */
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1, .h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 500;
}

p { margin: 0; text-wrap: pretty; }
a { color: var(--teal-ink); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 6px;
}
.section-dark :focus-visible,
.site-footer :focus-visible { outline-color: var(--sage-soft); }

::selection { background: var(--teal-50); color: var(--text); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 28px;
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(88px, 11vw, 148px); }
.section-tint { background: var(--bg-alt); }

.h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); line-height: 1.15; }

.section-head { max-width: 680px; margin-bottom: clamp(44px, 5.5vw, 72px); }
.section-head p {
  max-width: var(--measure);
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Holds the shared illustrations (<symbol>s) without taking up space */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Tinted art panel with soft rings that echo the hero graphic.
   Shared by the "Sound familiar?" cards and the service cards. */
.art-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  height: 164px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 10px;
  background: linear-gradient(140deg, #e3ebf5 0%, #e0eeeb 100%);
}
:nth-child(even) > .art-panel { background: linear-gradient(140deg, #e0eeeb 0%, #e3ebf5 100%); }
.art-panel::before,
.art-panel::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.art-panel::before { width: 126px; height: 126px; background: rgba(255, 255, 255, .78); }
.art-panel::after { width: 204px; height: 204px; border: 1px solid rgba(43, 76, 126, .16); }
.art-panel svg { width: 100px; height: 100px; transition: transform .4s ease; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font: 500 1rem/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-light { background: var(--on-dark); color: var(--navy-900); }
.btn-light:hover { background: #fff; }
.btn-outline-light { border-color: rgba(233, 238, 244, .35); color: var(--on-dark); }
.btn-outline-light:hover { border-color: var(--on-dark); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 249, 250, .92);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

/* Wordmark: the logo's orange N plus the company name, set in the logo typeface (Cambria) */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8em;
  color: var(--navy);
  font-family: Cambria, Caladea, Georgia, serif;
  font-size: 21px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.brand-n { color: var(--logo-orange); font-size: 1.6em; font-weight: 700; }
.brand-word { font-weight: 400; letter-spacing: .05em; }
.brand-word b { margin-right: .25em; font-weight: 700; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  font-size: .96rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.site-nav a:hover { background: var(--navy-50); color: var(--navy); }

/* ---------- Hero ---------- */
.hero { background: var(--bg); }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  min-height: min(760px, calc(100vh - var(--header-h)));
  padding-block: clamp(72px, 9vw, 120px);
}
.hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.hero h1 .accent {
  display: block;
  color: var(--teal-ink);
  font-style: italic;
  font-weight: 400;
}
.hero-lead {
  max-width: 46ch;
  margin: 28px 0 40px;
  color: var(--text-muted);
  font-size: clamp(1.1rem, 1.3vw, 1.22rem);
}

.hero-graphic { margin: 0; }
.hero-graphic svg { width: 100%; max-width: 540px; height: auto; margin-left: auto; }
.hg-label { fill: var(--navy); font: 600 17px var(--font); }
.hg-item { fill: var(--text); font: 500 16px var(--font); }

/* ---------- Why Nesha ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(48px, 7vw, 104px);
  align-items: start;
}
.why-intro .h2 { margin-bottom: 24px; }
.why-intro p { max-width: 48ch; color: var(--text-muted); font-size: 1.125rem; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.diff-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.diff-card h3 { margin-bottom: 8px; color: var(--navy); font-size: 1.1rem; }
.diff-card p { color: var(--text-muted); font-size: .98rem; }

/* ---------- Who we help ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.who-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.who-card:hover {
  transform: translateY(-4px);
  border-color: #d3dce7;
  box-shadow: 0 2px 6px rgba(30, 41, 59, .05), 0 22px 44px -18px rgba(30, 41, 59, .2);
}
.who-card > :not(.art-panel) { margin-inline: 14px; }
.who-card:hover .art-panel svg { transform: translateY(-3px) scale(1.04); }

.who-card h3 { color: var(--navy); font-size: 1.08rem; line-height: 1.35; }
.who-card p { margin-top: 10px; color: var(--text-muted); font-size: .97rem; }
.who-card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--teal-ink);
  font-weight: 500;
  text-decoration: none;
}
/* the whole card is clickable */
.who-card a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.who-card a::after { content: "\2192"; transition: transform .25s ease; }
.who-card:hover a::after { transform: translateX(4px); }
.who-card a:focus-visible { outline: none; }
.who-card:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }

/* ---------- Services ---------- */
/* soft rings in the corner of the section, echoing the hero graphic */
.section-decor { position: relative; isolation: isolate; overflow: hidden; }
.section-decor::before,
.section-decor::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}
.section-decor::before {
  top: -180px;
  right: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(224, 238, 235, .95) 0%, rgba(227, 235, 245, .6) 52%, transparent 70%);
}
.section-decor::after {
  top: -70px;
  right: -50px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(43, 76, 126, .1);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: 12px 12px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  border-color: #d3dce7;
  box-shadow: 0 2px 6px rgba(30, 41, 59, .05), 0 22px 44px -18px rgba(30, 41, 59, .2);
}
.service-card .art-panel { height: 188px; margin-bottom: 30px; }
.service-card:hover .art-panel svg { transform: translateY(-3px) scale(1.04); }

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding-inline: clamp(16px, 2vw, 28px);
}
.service-card h3 { color: var(--navy); font-size: clamp(1.4rem, 2vw, 1.65rem); }
.service-card h3 a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
.service-card h3 a:hover { text-decoration: underline; }
.service-tagline {
  margin-top: 6px;
  color: var(--teal-ink);
  font-family: var(--serif);
  font-size: 1.22rem;
  font-style: italic;
}
.service-desc { max-width: var(--measure); margin-top: 14px; color: var(--text-muted); }

/* teal check marks for what each service covers */
.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.check-list li { position: relative; padding-left: 30px; font-size: .98rem; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(.8em - 9px);
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23ebf3f2'/%3E%3Cpath d='M5.4 9.2l2.4 2.4 4.6-4.8' fill='none' stroke='%233d6b6d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
}

.service-link {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 28px;
  color: var(--navy);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 4px;
}
.service-link::after { content: "\2192"; transition: transform .25s ease; }
.service-link:hover { text-decoration: underline; }
.service-link:hover::after { transform: translateX(4px); }

/* ---------- Dark sections ---------- */
.section-dark {
  background:
    radial-gradient(1000px 520px at 88% -12%, rgba(107, 144, 128, .16), transparent 62%),
    radial-gradient(900px 520px at -12% 112%, rgba(43, 76, 126, .5), transparent 60%),
    var(--navy-900);
  color: var(--on-dark-muted);
}
.section-dark h2,
.section-dark h3 { color: var(--on-dark); }
.section-dark .section-head p { color: var(--on-dark-muted); }

/* ---------- Approach: phases ---------- */
.phases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0 0 clamp(88px, 10vw, 128px);
  padding: 0;
  list-style: none;
}
.phase {
  position: relative;
  padding: clamp(26px, 2.8vw, 34px);
  border: 1px solid rgba(233, 238, 244, .12);
  border-radius: var(--radius);
  background: rgba(233, 238, 244, .04);
}
/* a quiet chevron between phases shows the flow */
.phase:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -19px;
  width: 9px;
  height: 9px;
  border-top: 1.5px solid var(--sage-soft);
  border-right: 1.5px solid var(--sage-soft);
  transform: translateY(-50%) rotate(45deg);
}
.phase-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: rgba(169, 197, 184, .12);
  color: var(--sage-soft);
}
.phase-icon svg { width: 22px; height: 22px; }
.phase h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; }

/* ---------- Approach: framework wheel ---------- */
.framework-head {
  margin-bottom: 44px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 500;
}
.framework {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.wheel { width: 100%; max-width: 440px; height: auto; margin-inline: auto; }
.wheel path { fill: rgba(233, 238, 244, .07); stroke: rgba(169, 197, 184, .28); stroke-width: 1; }
.wheel text {
  fill: var(--on-dark);
  font: 600 12.5px var(--font);
  letter-spacing: .14em;
  text-anchor: middle;
  dominant-baseline: central;
}
.wheel .wheel-core { fill: rgba(233, 238, 244, .03); stroke: rgba(233, 238, 244, .1); }
.wheel .core-name {
  fill: var(--on-dark);
  font: 500 28px var(--serif);
  letter-spacing: 0;
}

.disciplines { display: grid; gap: 22px; margin: 0; }
.disciplines div { padding-left: 18px; border-left: 2px solid rgba(169, 197, 184, .35); }
.disciplines dt { color: var(--on-dark); font-weight: 600; }
.disciplines dd { max-width: 48ch; margin: 4px 0 0; }

/* ---------- Certifications ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cert-group {
  padding: clamp(24px, 2.6vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.cert-group--wide { grid-column: span 2; }
.cert-group h3 { margin-bottom: 20px; font-size: 1.1rem; }

.cert-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.cert-list li { display: flex; align-items: baseline; gap: 14px; }
.cert-code { flex: none; min-width: 78px; color: var(--navy); font-size: .92rem; font-weight: 600; }
.cert-name { font-size: .96rem; line-height: 1.45; }

.cert-list--plain { column-gap: 32px; }
.cert-group--wide .cert-list--plain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cert-list--plain li {
  display: block;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: .96rem;
}

/* ---------- Contact ---------- */
.contact-copy { max-width: 680px; }
.contact-copy p { max-width: var(--measure); margin-top: 20px; font-size: 1.125rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 60px 34px;
  background: var(--navy-950);
  color: rgba(233, 238, 244, .64);
  font-size: .95rem;
}
.site-footer .brand { color: var(--on-dark); font-size: 22px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(233, 238, 244, .1);
}
.footer-brand p { margin-top: 16px; }
.footer-contact { line-height: 1.75; }
.footer-contact a { color: rgba(233, 238, 244, .84); text-decoration: none; }
.footer-contact a:hover { color: var(--sage-soft); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 32px 72px; }
.footer-col h2 {
  margin-bottom: 14px;
  color: var(--on-dark);
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 0;
}
.footer-col ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-nav a { color: rgba(233, 238, 244, .84); text-decoration: none; }
.footer-nav a:hover { color: var(--sage-soft); }
.footer-bottom { padding-top: 24px; font-size: .875rem; }

/* ---------- Service pages ---------- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  font-size: .9rem;
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: #a3adbb; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(64px, 8vw, 112px);
}
.page-hero h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.1; letter-spacing: -0.015em; }
.page-hero h1 .accent { display: block; color: var(--teal-ink); font-style: italic; font-weight: 400; }
.page-hero .hero-lead { max-width: 56ch; }
.art-panel.page-art { height: clamp(240px, 26vw, 320px); margin: 0; border-radius: var(--radius); }
.page-art svg { width: 150px; height: 150px; }
.page-art::before { width: 192px; height: 192px; }
.page-art::after { width: 304px; height: 304px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.split-copy > p { max-width: var(--measure); margin-top: 18px; color: var(--text-muted); font-size: 1.1rem; }
.split-copy h3 { margin-top: 40px; color: var(--navy); font-size: 1.1rem; }
.fit-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.fit-list li { position: relative; padding-left: 22px; }
.fit-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(.8em - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
}
.included-card {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.included-card h3 { color: var(--navy); font-size: 1.2rem; }
.included-card .check-list { margin-top: 18px; }
.check-list a { color: var(--navy); text-underline-offset: 3px; }
.check-list a:hover { color: var(--navy-700); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  padding: clamp(26px, 2.8vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.step-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal);
}
.step-icon svg { width: 22px; height: 22px; }
.step h3 { margin-bottom: 8px; color: var(--navy); font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.step p { color: var(--text-muted); }

/* FAQ: native <details>, no script */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M13 8v10M8 13h10' stroke='%233d6b6d' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--navy); }
.faq details p { max-width: var(--measure); padding-bottom: 24px; color: var(--text-muted); }

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

/* ---------- Navigation: Resources menu (opens on hover or keyboard focus, no script) ---------- */
.site-nav a[aria-current="page"] { background: var(--navy-50); color: var(--navy); }
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a { display: flex; align-items: center; gap: 8px; }
.site-nav .has-sub > a::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: .55;
  transform: rotate(45deg);
}
.site-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  display: block;
  min-width: 190px;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(30, 41, 59, .05), 0 18px 40px -16px rgba(30, 41, 59, .22);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.site-nav .has-sub:hover .sub-menu,
.site-nav .has-sub:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.site-nav .sub-menu a { padding: 10px 12px; }

/* ---------- Resources: guide downloads ---------- */
.guide-meta { margin-top: 14px; color: var(--text-muted); font-size: .9rem; }
.who-card a.dl-link::after { content: "\2193"; }
.who-card:hover a.dl-link::after { transform: translateY(3px); }
.section-foot { margin-top: 44px; }

/* ---------- Blog: feed and post cards ---------- */
.page-hero-inner--solo { grid-template-columns: minmax(0, 1fr); padding-block: clamp(56px, 7vw, 96px) clamp(40px, 5vw, 64px); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 500 .92rem/1 var(--font);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { border-color: #c9d3df; color: var(--navy); }
.chip[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: #fff; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: #d3dce7;
  box-shadow: 0 2px 6px rgba(30, 41, 59, .05), 0 22px 44px -18px rgba(30, 41, 59, .2);
}
.post-cover { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(140deg, #e3ebf5 0%, #e0eeeb 100%); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-cover img { transform: scale(1.03); }
.post-cover .art-panel { height: 100%; margin: 0; border-radius: 0; }
.post-body { display: flex; flex: 1; flex-direction: column; padding: 22px 24px 26px; }
.post-meta { color: var(--text-muted); font-size: .88rem; }
.post-card h2,
.post-card h3 { margin-top: 8px; color: var(--navy); font-size: 1.15rem; line-height: 1.35; }
.post-card h2 a,
.post-card h3 a { color: inherit; text-decoration: none; }
/* the whole card is clickable */
.post-card h2 a::before,
.post-card h3 a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card a:focus-visible { outline: none; }
.post-card:has(a:focus-visible) { outline: 3px solid var(--navy); outline-offset: 3px; }
.post-excerpt {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: .97rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* placeholders while posts load */
.post-card--loading { pointer-events: none; }
.post-card--loading .post-cover,
.skeleton-line { animation: pulse 1.6s ease-in-out infinite; }
.skeleton-line { height: 14px; margin-top: 12px; border-radius: 6px; background: var(--bg-alt); }
.skeleton-line--short { width: 40%; margin-top: 0; }
.skeleton-line--title { height: 20px; }
@keyframes pulse { 50% { opacity: .55; } }

.feed-status { max-width: var(--measure); margin-top: 8px; color: var(--text-muted); }
.feed-status:empty { display: none; }
.feed-more { margin-top: 48px; }
.btn-quiet { border-color: var(--line); background: var(--surface); color: var(--navy); }
.btn-quiet:hover { border-color: var(--navy); }
.btn-quiet:disabled { cursor: default; opacity: .6; }

/* ---------- Blog: single post ---------- */
.article { padding-block: clamp(48px, 7vw, 96px) clamp(72px, 9vw, 120px); }
.article-inner { max-width: 760px; }
.article h1 { font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1.12; letter-spacing: -0.015em; }
.article-meta { margin-top: 18px; color: var(--text-muted); font-size: .95rem; }
.article-cover { margin: 36px 0 0; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.article-cover img { width: 100%; height: auto; }
.article-status { max-width: var(--measure); margin-top: 20px; color: var(--text-muted); font-size: 1.1rem; }
.article-status a { font-weight: 500; }

.prose { margin-top: 44px; font-size: 1.1rem; line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h1,
.prose h2 { margin-top: 1.8em; color: var(--navy); font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1.2; }
.prose h3 { margin-top: 1.6em; color: var(--navy); font-size: 1.25rem; }
.prose h4,
.prose h5,
.prose h6 { margin-top: 1.4em; font-size: 1.08rem; }
.prose ul,
.prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li > p { margin: 0; }
.prose a { color: var(--teal-ink); text-underline-offset: 3px; }
.prose blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--sage);
  color: var(--text-muted);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}
.prose figure { margin-inline: 0; }
.prose img { height: auto; border-radius: 12px; }
.prose pre { overflow: auto; padding: 16px 18px; border-radius: 10px; background: var(--bg-alt); font-size: .92rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose hr { margin-block: 2.2em; border: 0; border-top: 1px solid var(--line); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* header: logo and button on the first row, links on a second row; no script needed */
  .site-header { position: static; }
  .header-inner { flex-wrap: wrap; gap: 0 16px; padding-block: 14px 6px; }
  .header-cta { margin-left: auto; }
  .site-nav { order: 3; width: calc(100% + 16px); margin: 8px -8px 0; }
  .site-nav ul { flex-wrap: wrap; gap: 0 8px; }
  .site-nav a { padding: 8px; font-size: .92rem; }
  html { scroll-padding-top: 8px; }
  /* tablets and phones can't hover: the Resources menu flattens into the row, with Blog as its own link */
  .site-nav .has-sub,
  .site-nav .sub-menu { display: contents; visibility: visible; }
  .site-nav .has-sub > a::after,
  .site-nav .sub-guides { display: none; }
  .site-nav .sub-menu a { padding: 8px; }
}

@media (max-width: 1080px) {
  .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .who-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .framework { grid-template-columns: 1fr; }
  .disciplines { max-width: 640px; }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-group--wide { order: 1; } /* full-width Azure card last, so AWS fills the gap beside Offensive security */
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 56px 24px; }
  .hero-graphic svg { max-width: 460px; margin: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .page-hero-inner { grid-template-columns: 1fr; padding-block: 48px 64px; }
  .art-panel.page-art { height: 220px; max-width: 560px; }
  .split { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 640px; }
  .who-grid--3 { grid-template-columns: 1fr; max-width: 560px; }
  .phases { grid-template-columns: 1fr; max-width: 640px; gap: 32px; }
  .phase:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -21px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }
}

@media (max-width: 720px) {
  .brand { font-size: 17px; }
  .services-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .cert-group--wide { grid-column: auto; }
  .cert-group--wide .cert-list--plain { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .diff-grid,
  .who-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; max-width: 480px; }
  /* six links: two even rows of three */
  .site-nav ul { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; }
}

@media (max-width: 480px) {
  .container { padding-inline: 20px; }
  .header-cta { display: none; } /* the hero button is right below on small screens */
  .site-nav ul { gap: 0; justify-content: space-between; }
  .site-nav a,
  .site-nav .sub-menu a { padding: 8px 6px; font-size: .9rem; }
  .hero .btn,
  .contact-actions .btn { width: 100%; }
  .cert-code { min-width: 68px; }
  .site-footer .brand { font-size: 17px; } /* keeps the footer wordmark inside the narrowest phone screens */
}

@media (max-width: 300px) {
  .site-nav ul { grid-template-columns: repeat(2, auto); } /* the very narrowest phones: three rows of two */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .who-card:hover, .service-card:hover, .post-card:hover, .art-panel svg, .post-cover img { transform: none !important; }
  .post-card--loading .post-cover, .skeleton-line { animation: none; }
}