/* ==========================================================
   Sumer Atheeq & Co. — site styles
   Firm palette: Oxblood, Graphite and Antique Gold on warm neutrals
   ========================================================== */
:root {
  --oxblood: #6B1F2E;         /* primary buttons, active states, labels */
  --oxblood-dark: #561825;
  --gold: #B08D57;            /* thin rules and fine accents */
  --graphite: #2C2C2C;        /* dark surfaces: hero, cards, footer */
  --graphite-deep: #1F1F1F;
  --graphite-ink: #171717;
  --stone: #7D746B;           /* secondary text and borders */
  --stone-soft: #DDD6CC;
  --mist: #ECE7E0;
  --paper: #F7F3EC;
  --white: #FFFFFF;
  --ink: #2A2623;
  --muted: #5F5852;
  --accent: var(--oxblood);
  --accent-dark: var(--oxblood-dark);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(30, 26, 22, .10);
  --shadow-lg: 0 24px 60px rgba(30, 26, 22, .18);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--graphite-deep); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--oxblood); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 500; font-size: .95rem; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--oxblood); color: var(--white); }
.btn--primary:hover { background: var(--oxblood-dark); }
.btn--ghost { border-color: var(--stone-soft); color: var(--graphite); }
.btn--ghost:hover { border-color: var(--graphite); }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,.1); border-color: var(--white); }
.btn--outline { border-color: var(--stone); color: var(--graphite); }
.btn--outline:hover { background: var(--graphite); color: var(--white); border-color: var(--graphite); }
.btn--sm { padding: 8px 16px; font-size: .82rem; }

/* ---------- Disclaimer modal ---------- */
.disclaimer {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(20, 18, 16, .72); backdrop-filter: blur(6px);
}
.disclaimer[hidden] { display: none; }
.disclaimer__box {
  background: var(--white); max-width: 620px; width: 100%;
  border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg);
  border-top: 4px solid var(--oxblood); max-height: 90vh; overflow: auto;
}
.disclaimer__box h2 { font-family: var(--serif); font-size: 2rem; }
.disclaimer__box p, .disclaimer__box li { font-size: .93rem; color: var(--muted); }
.disclaimer__box ul { padding-left: 1.2em; margin: 0 0 1.5em; }
.disclaimer__box li { margin-bottom: .5em; }
.disclaimer__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.is-scrolled { background: rgba(255,255,255,.96); box-shadow: 0 2px 20px rgba(30,26,22,.08); backdrop-filter: blur(10px); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  height: 46px; padding: 5px 7px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--white);
  border: 1px solid var(--mist);
}
.brand__mark img { display: block; height: 36px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; color: var(--white); transition: color .3s; }
.brand__sub { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); transition: color .3s; }
.header.is-scrolled .brand__name { color: var(--graphite-deep); }
.header.is-scrolled .brand__sub { color: var(--stone); }

/* Pill nav (JCSS-style) */
.nav {
  display: flex; align-items: center; gap: 2px;
  padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  transition: background .3s, border-color .3s;
}
.header.is-scrolled .nav { background: var(--paper); border-color: var(--mist); }
.nav__link {
  padding: 8px 14px; border-radius: 999px;
  font-size: .84rem; font-weight: 500; white-space: nowrap;
  color: rgba(255,255,255,.82);
  transition: background .25s, color .25s;
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav__link.is-active { background: var(--oxblood); color: var(--white); }
.header.is-scrolled .nav__link { color: var(--muted); }
.header.is-scrolled .nav__link:hover { color: var(--graphite); background: var(--mist); }
.header.is-scrolled .nav__link.is-active { background: var(--oxblood); color: var(--white); }

.header__actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  background: transparent; border: 1px solid rgba(255,255,255,.35); cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.header.is-scrolled .nav-toggle { border-color: var(--stone-soft); }
.header.is-scrolled .nav-toggle span { background: var(--graphite); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  background:
    radial-gradient(ellipse at 75% 25%, rgba(176,141,87,.10) 0%, rgba(176,141,87,0) 45%),
    radial-gradient(ellipse at 70% 30%, #3A3735 0%, var(--graphite) 55%, #232323 100%);
  color: var(--white); overflow: hidden;
}
/* Faint diagonal hatching for texture */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 14px);
}
/* Fade the bottom of the hero into the white About section */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 200px; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%, rgba(255,255,255,.08) 25%, rgba(255,255,255,.35) 55%,
    rgba(255,255,255,.75) 80%, var(--white) 100%);
}
.hero__content { position: relative; z-index: 2; padding: calc(var(--header-h) + 40px) 0 80px; max-width: 860px; margin-left: max(20px, (100% - 1200px) / 2); }
.hero__title {
  font-family: var(--serif); font-weight: 600; color: var(--white);
  font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.05; margin-bottom: .4em;
}
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.75); max-width: 640px; margin-bottom: 2em; font-weight: 300; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--graphite);
}
.hero__scroll i { width: 1px; height: 44px; background: linear-gradient(to bottom, var(--graphite), transparent); animation: scrollLine 2s infinite; transform-origin: top; }
@keyframes scrollLine { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--oxblood); margin-bottom: 1.2em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section--tint { background: var(--paper); }
.section--dark { background: var(--graphite-deep); color: var(--white); }
.section--dark .section__title { color: var(--white); }
.section__head { max-width: 720px; margin-bottom: 48px; }
.section__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4vw, 3rem); }
.section__lead { color: var(--muted); font-size: 1.05rem; }

/* ---------- About ---------- */
.about { max-width: 860px; }
.about__text p { color: var(--muted); font-size: 1.04rem; }


/* Vision and mission */
.purpose { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin-top: 56px; align-items: stretch; }
.purpose__card { padding: clamp(26px, 3.5vw, 38px); border-radius: var(--radius); background: var(--paper); border: 1px solid var(--mist); }
.purpose__card--vision { background: var(--graphite); border-color: var(--graphite); color: var(--white); display: flex; flex-direction: column; }
.purpose__label { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.purpose__card--vision .purpose__label { color: var(--stone-soft); }
.purpose__vision { font-family: var(--serif); font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.4; color: var(--white); margin: 0; }
.purpose__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.purpose__list li { position: relative; padding-left: 22px; color: var(--muted); }
.purpose__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--stone); }
.purpose__list strong { color: var(--graphite-deep); font-weight: 600; }

/* ---------- Services tabs ---------- */
.services { display: grid; grid-template-columns: 340px 1fr; gap: 30px; align-items: start; }
.services__tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: calc(var(--header-h) + 20px); }
.services__tab {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 15px 18px; border-radius: 12px; cursor: pointer;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  font-weight: 500; font-size: .94rem; transition: all .25s var(--ease);
}
.services__tab span { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; color: var(--stone); min-width: 24px; }
.services__tab:hover { background: var(--white); color: var(--graphite); }
.services__tab.is-active { background: var(--oxblood); color: var(--white); box-shadow: var(--shadow); }
.services__tab.is-active span { color: var(--gold); }

.services__main { min-width: 0; }
.services__panels { display: grid; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(28px, 4vw, 48px); }
.services__panel { grid-area: 1 / 1; visibility: hidden; }
.services__panel.is-active { visibility: visible; animation: fadeUp .45s var(--ease); }
.offerings { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--gold); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; font-size: 15px; color: var(--ink); }
.offerings li { position: relative; padding-left: 18px; line-height: 1.45; }
.offerings li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 1px; background: var(--gold); }
.services__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 600; color: var(--oxblood); border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: gap .25s; }
.services__cta::after { content: "→"; }
.services__cta:hover { gap: 14px; }
.services__panel h3 { font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; }
.services__panel p { color: var(--muted); }
.services__panel h4 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin: 1.8em 0 12px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.chips { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: .84rem; background: var(--mist); color: var(--graphite); }
.chips--sm li { padding: 4px 11px; font-size: .76rem; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--graphite); border-bottom: 1px solid var(--stone-soft); padding-bottom: 3px; transition: gap .25s, border-color .25s; }
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 14px; border-color: var(--graphite); }

/* ---------- Team flip cards ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); gap: 30px; justify-content: center; }
.flip { perspective: 1400px; height: 570px; outline: none; }
.flip__inner { position: relative; width: 100%; height: 100%; transition: transform .8s var(--ease); transform-style: preserve-3d; }
.flip:hover .flip__inner, .flip:focus-within .flip__inner, .flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__front, .flip__back {
  position: absolute; inset: 0; border-radius: var(--radius);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: 36px; display: flex; flex-direction: column;
}
.flip__front { background: var(--white); border: 1px solid var(--mist); box-shadow: var(--shadow); align-items: center; text-align: center; justify-content: center; }
.flip__back { background: var(--graphite); color: rgba(255,255,255,.85); transform: rotateY(180deg); font-size: .9rem; overflow: auto; }
.flip__back h3 { color: var(--white); font-family: var(--serif); font-size: 1.6rem; }
.flip__back p { margin-bottom: .8em; }
.flip__orgs { color: var(--stone-soft); }
.flip__orgs strong { color: var(--white); font-weight: 600; }
.flip__mail { margin-top: auto; color: var(--stone-soft); font-weight: 500; }
.flip__links { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.flip__links .flip__mail { margin-top: 0; }
.flip__mail:hover, .flip__linkedin:hover { color: var(--white); }
.flip__linkedin { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); color: var(--white); font-size: .82rem; font-weight: 500; transition: background .2s, border-color .2s; }
.flip__linkedin:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.avatar {
  width: 120px; height: 120px; border-radius: 50%; margin-bottom: 22px;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--white);
  background: linear-gradient(135deg, var(--oxblood), var(--graphite));
  box-shadow: 0 0 0 6px var(--mist);
}
.flip__front h3 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: .2em; }
.flip__role { color: var(--accent); font-weight: 600; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6em; }
.flip__area { color: var(--muted); font-size: .92rem; margin-bottom: 1.2em; }
.flip__front .chips { justify-content: center; margin-bottom: 18px; }
.flip__hint { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--stone); }

/* ---------- Sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sector { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: 28px 22px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--stone-soft); }
.sector > span { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--accent); display: block; margin-bottom: 12px; }
.nowrap { white-space: nowrap; }
.sector h3 { font-size: 1rem; font-weight: 600; }
.sector p { color: var(--graphite); font-size: .85rem; margin: 0; }

/* ---------- Knowledge Corner ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--stone-soft); background: var(--white); color: var(--muted); cursor: pointer; font-size: .86rem; font-weight: 500; transition: all .25s; }
.filter:hover { border-color: var(--graphite); color: var(--graphite); }
.filter.is-active { background: var(--oxblood); border-color: var(--oxblood); color: var(--white); }
.filter--archive { display: inline-flex; align-items: center; gap: 7px; margin-left: 8px; position: relative; }
.filter--archive::before { content: ""; position: absolute; left: -9px; top: 20%; bottom: 20%; width: 1px; background: var(--stone-soft); }
.alerts__empty { color: var(--muted); padding: 28px 0; margin: 0; }

/* Alert cards (home page and related updates): the whole card is the link */
.alerts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.alerts-grid .alerts__empty { grid-column: 1 / -1; }
.alert-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--mist); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.alert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--stone-soft); }
.alert-card__meta { display: flex; justify-content: space-between; gap: 12px; font-size: .76rem; color: var(--stone); }
.alert-card__cat { font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--oxblood); }
.alert-card__title { font-size: 1.12rem; font-weight: 600; line-height: 1.3; color: var(--graphite); }
.alert-card__summary { font-size: .92rem; color: var(--muted); flex: 1; }
.alert-card__more { font-size: .88rem; font-weight: 600; color: var(--oxblood); }
.alert-card__more::after { content: " →"; }
.kc-all { margin-top: 28px; }

/* /knowledge/ archive and /knowledge/<slug> detail pages */
.kc-page { padding: calc(var(--header-h) + 36px) 0 clamp(70px, 10vw, 110px); background: var(--paper); min-height: 70vh; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--stone); margin-bottom: 28px; }
.breadcrumb a { color: var(--stone); }
.breadcrumb a:hover { color: var(--oxblood); }
.breadcrumb [aria-current] { color: var(--graphite); }
.kc-updated { font-size: .85rem; color: var(--stone); margin: 0; }
.kc-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-bottom: 28px; }
.kc-filters .filters { margin: 0; }
.kc-selects { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.kc-selects label { display: grid; gap: 4px; font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--stone); }
.kc-selects select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--stone-soft); background: var(--white); color: var(--ink); font-size: .9rem; min-width: 140px; }
.kc-reset { background: none; border: 0; padding: 10px 4px; color: var(--oxblood); font-weight: 600; font-size: .88rem; cursor: pointer; }
.alert-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--gold); }
.alert-row { display: grid; grid-template-columns: 150px 170px 1fr auto; align-items: baseline; gap: 8px 20px; padding: 18px 4px; border-bottom: 1px solid var(--mist); }
.alert-row time { font-size: .88rem; color: var(--stone); }
.alert-row__cat { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--oxblood); }
.alert-row__title { font-weight: 600; color: var(--graphite); }
.alert-row__title:hover { color: var(--oxblood); }
.alert-row__pdf { font-size: .78rem; font-weight: 600; letter-spacing: .08em; color: var(--oxblood); border: 1px solid currentColor; border-radius: 6px; padding: 2px 8px; }
.kc-more { margin-top: 28px; }

.kc-detail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; align-items: start; }
.kc-detail .post { background: var(--white); border: 1px solid var(--mist); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); }
.kc-rail { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 14px; }
.kc-rail__pdf { justify-content: center; }
.kc-rail__copy { background: none; border: 1px solid var(--stone-soft); border-radius: 999px; padding: 10px 16px; font-weight: 500; color: var(--graphite); cursor: pointer; }
.kc-rail__copy:hover { border-color: var(--graphite); }
.kc-related { margin-top: 12px; }
.kc-related__title { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.kc-related__list { display: grid; gap: 14px; }
.kc-related__list .alert-card { padding: 18px; }
.kc-related__list .alert-card__summary { display: none; }

.post__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: var(--stone); margin-bottom: 16px; }
.post__title { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 4.4vw, 2.8rem); line-height: 1.12; }
.post__lead { font-size: 1.1rem; color: var(--muted); padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--gold); }
.post__body { font-size: 1.02rem; color: var(--ink); }
.post__body h2 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; margin: 1.5em 0 .5em; }
.post__body h3 { font-size: 1.1rem; margin: 1.3em 0 .4em; }
.post__body p { margin-bottom: 1.1em; }
.post__body a { color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; }
.post__body ul, .post__body ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.post__body li { margin-bottom: .55em; }
.post__body li::marker { color: var(--gold); }
.post__body strong { color: var(--graphite-deep); font-weight: 600; }
.post__body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .92rem; display: block; overflow-x: auto; }
.post__body th, .post__body td { border: 1px solid var(--mist); padding: 8px 12px; text-align: left; vertical-align: top; }
.post__body th { background: var(--paper); font-weight: 600; }
.post__body blockquote { margin: 0 0 1.2em; padding: 8px 18px; border-left: 3px solid var(--gold); color: var(--muted); }
.post__note { margin-top: 36px; padding: 18px 22px; border-radius: 10px; background: var(--paper); border: 1px solid var(--mist); font-size: .85rem; color: var(--muted); }
.post__note p { margin: 0 0 .4em; }
.post__note p:last-child { margin: 0; }

/* ---------- Careers ---------- */
.careers { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.careers__text p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--mist); color: var(--graphite); display: grid; place-items: center; font-size: .72rem; font-weight: 700; }

/* ---------- Forms ---------- */
.form { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.section--tint .form { border: 1px solid var(--mist); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--graphite); letter-spacing: .02em; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--stone-soft); background: var(--paper); color: var(--ink);
  font-weight: 400; font-size: .95rem; transition: border-color .2s, background .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--stone); background: var(--white); box-shadow: 0 0 0 3px rgba(107,31,46,.15); }
.form .is-invalid { border-color: #C0563F; }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; }
.form__status { margin: 0; font-size: .88rem; color: var(--graphite); min-height: 1.2em; }
.form__status.is-error { color: #C0563F; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact__info { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--mist); display: flex; flex-direction: column; gap: 4px; }
.contact__card--wide { grid-column: 1 / -1; }
.contact__card h3 { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.contact__card p { color: var(--muted); font-size: .93rem; margin: 0; }
.contact__card a { font-size: .92rem; color: var(--graphite); word-break: break-word; }
.contact__card a:hover { color: var(--accent-dark); }
.contact__role { color: var(--accent) !important; font-size: .74rem !important; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px !important; }
.contact__map { grid-column: 1 / -1; width: 100%; height: 260px; border: 0; border-radius: var(--radius); filter: grayscale(.4); }

/* ---------- Footer ---------- */
.footer { background: var(--graphite-ink); color: var(--stone-soft); padding: 70px 0 30px; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: var(--white); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 16px; }
.footer__grid > div > a:not(.brand) { display: block; margin-bottom: 8px; color: var(--stone-soft); transition: color .2s; word-break: break-word; }
.footer__grid > div > a:not(.brand):hover { color: var(--white); }
.footer__addr { margin-top: 18px; max-width: 320px; color: var(--stone); }
.brand--light .brand__name { color: var(--white); }
.brand--light .brand__sub { color: var(--stone); }
.footer__legal { padding-top: 26px; font-size: .78rem; color: var(--stone); }
.footer__legal p:last-child { margin: 0; }
.footer__meta { color: var(--stone-soft); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--graphite); color: var(--white); box-shadow: var(--shadow);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s var(--ease);
}
.to-top svg { width: 20px; height: 20px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--stone); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px 20px 24px; border-radius: 0; border: 0;
    background: var(--white) !important; box-shadow: 0 20px 40px rgba(30,26,22,.15);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: all .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { color: var(--ink) !important; padding: 12px 16px; font-size: .95rem; }
  .nav__link.is-active { background: var(--graphite) !important; color: var(--white) !important; }
  .header.menu-open { background: var(--white); }
  .header.menu-open .brand__name { color: var(--graphite-deep); }
  .header.menu-open .brand__sub { color: var(--stone); }
  .header.menu-open .nav-toggle span { background: var(--graphite); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .careers, .contact { grid-template-columns: 1fr; gap: 40px; }
  .purpose { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .services__tabs { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .services__tab { flex: 0 0 auto; white-space: nowrap; background: var(--white); }
  .alerts-grid { grid-template-columns: repeat(2, 1fr); }
  .kc-detail { grid-template-columns: 1fr; }
  .kc-rail { position: static; }
  .alert-row { grid-template-columns: 130px 1fr auto; }
  .alert-row__cat { grid-column: 2; grid-row: 1; }
  .alert-row__title { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .container { width: calc(100% - 32px); }
  .brand__mark { height: 40px; padding: 4px 6px; }
  .brand__mark img { height: 32px; }
  .brand__name { font-size: 1.05rem; }
  .brand__sub { font-size: .6rem; }
  .team { grid-template-columns: 1fr; }
  .flip { height: 720px; }
  .sectors { grid-template-columns: 1fr 1fr; }
  .alerts-grid { grid-template-columns: 1fr; }
  .alert-row { grid-template-columns: 1fr auto; }
  .alert-row__cat { grid-column: 1; grid-row: auto; }
  .form__row, .contact__info { grid-template-columns: 1fr; }
  .offerings { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .disclaimer__box { padding: 26px; }
}

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
