/* ============================================================
   LOGICTRAN — Tech Journal · shared stylesheet
   Palette: deep navy, steel blue, bright cyan accent, cool grays.
   Used by every page (home, articles, about, contact, posts).
   ============================================================ */

:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --steel: #134074;
  --blue: #2a6f97;
  --accent: #1f8fd4;
  --accent-2: #16c0e8;
  --cyan: #19c3e6;

  --bg: #eef2f6;
  --surface: #ffffff;
  --surface-2: #f7f9fb;
  --ink: #142433;
  --muted: #5d6b7a;
  --line: #e2e8ef;

  --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 2px 6px rgba(11, 37, 69, 0.06);
  --shadow-md: 0 6px 18px rgba(11, 37, 69, 0.1), 0 2px 6px rgba(11, 37, 69, 0.06);
  --shadow-lg: 0 18px 50px rgba(11, 37, 69, 0.18);

  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1200px;

  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Sora", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--steel);
}
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--navy);
  margin: 0 0 0.5em;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: #aebfd4;
  font-size: 0.82rem;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 38px;
}
.topbar a {
  color: #cdd9ea;
}
.topbar a:hover {
  color: #fff;
}
.topbar .tb-meta {
  display: flex;
  gap: 18px;
  align-items: center;
}
.topbar .tb-social a {
  margin-left: 14px;
  font-weight: 600;
}
@media (max-width: 680px) {
  .topbar .tb-meta span {
    display: none;
  }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand .mark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, var(--accent), var(--navy-2));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.brand .mark svg {
  width: 24px;
  height: 24px;
}
.brand .name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand .tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-links a:hover,
.nav-links a.active,
.nav-links a[aria-current="page"] {
  background: var(--surface-2);
  color: var(--accent);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
}
.search input {
  border: 0;
  background: transparent;
  outline: 0;
  font: inherit;
  font-size: 0.9rem;
  width: 140px;
  color: var(--ink);
}
.search svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex: 0 0 auto;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  border: 0;
  padding: 11px 20px;
  transition:
    transform 0.12s,
    box-shadow 0.15s,
    background 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--steel));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}
.nav-toggle svg {
  width: 26px;
  height: 26px;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #eaf2fb;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(25, 195, 230, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(31, 143, 212, 0.2), transparent 55%),
    linear-gradient(135deg, #08203c 0%, #0b2545 45%, #13315c 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent 80%);
}
.hero .wrap {
  position: relative;
  z-index: 2;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
  padding: 74px 0 84px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4em;
}
.hero h1 .hl {
  background: linear-gradient(120deg, var(--accent-2), #6fd2ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 1.15rem;
  color: #c4d4e8;
  max-width: 38ch;
  margin: 0 0 28px;
}
.hero .eyebrow {
  color: var(--accent-2);
  margin-bottom: 14px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero-stats .stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: #fff;
}
.hero-stats .stat span {
  font-size: 0.82rem;
  color: #9fb3cd;
  letter-spacing: 0.04em;
}
.feature-card {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.feature-card .thumb {
  position: relative;
  aspect-ratio: 16/9;
  display: block;
}
.feature-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-card .badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(11, 37, 69, 0.86);
  color: #fff;
  backdrop-filter: blur(4px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.feature-card .fc-body {
  padding: 22px 24px 26px;
}
.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.35em;
}
.feature-card h3 a {
  color: var(--navy);
}
.feature-card h3 a:hover {
  color: var(--accent);
}
.feature-card p {
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 0.97rem;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.post-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c2ccd6;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--navy-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex: 0 0 auto;
}

/* ---------- Generic page hero (articles/about/contact + article index) ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  color: #eaf2fb;
  padding: 54px 0 50px;
  background:
    radial-gradient(800px 400px at 90% -20%, rgba(25, 195, 230, 0.2), transparent 60%),
    linear-gradient(135deg, #08203c 0%, #0b2545 50%, #13315c 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 85%);
  mask-image: radial-gradient(80% 70% at 50% 30%, #000, transparent 85%);
}
.page-hero .wrap {
  position: relative;
  z-index: 2;
}
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  margin: 0.2em 0 0.3em;
  max-width: 20ch;
}
.page-hero p.lead {
  color: #c4d4e8;
  font-size: 1.12rem;
  max-width: 62ch;
  margin: 0;
}
.page-hero .eyebrow {
  color: var(--accent-2);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li::after {
  content: "›";
  color: #aebccb;
}
.breadcrumb li:last-child::after {
  content: "";
}
.breadcrumb a {
  color: #cdd9ea;
}
.page-hero .breadcrumb a {
  color: #9fb8d6;
}
.page-hero .breadcrumb {
  color: #8aa3c4;
  margin-bottom: 18px;
}
.breadcrumb [aria-current="page"] {
  color: #eaf2fb;
}

/* ---------- Section headers ---------- */
.section {
  padding: 68px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 34px;
}
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
}
.section-head p {
  color: var(--muted);
  margin: 0.4em 0 0;
  max-width: 60ch;
}
.section-head .link-more {
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Content + sidebar layout ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 42px;
  align-items: start;
}

/* ---------- Article cards grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.card-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d3deea;
}
.card .thumb {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--surface-2);
  display: block;
}
.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .thumb img {
  transform: scale(1.05);
}
.card .tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.94);
  color: var(--steel);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.card .body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card h3 {
  font-size: 1.16rem;
  line-height: 1.3;
  margin-bottom: 0.45em;
}
.card h3 a {
  color: var(--navy);
}
.card h3 a:hover {
  color: var(--accent);
}
.card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 16px;
  flex: 1;
}
.card .post-meta {
  margin-top: auto;
}

/* ---------- Sidebar ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 96px;
}
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.widget .w-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
}
.widget .w-head h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--navy);
}
.widget .w-head .bar {
  width: 4px;
  height: 18px;
  border-radius: 3px;
  background: linear-gradient(var(--accent), var(--cyan));
}
.widget .w-body {
  padding: 18px 20px 20px;
}
.about-widget img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}
.about-widget .w-body {
  text-align: center;
}
.about-widget p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 14px;
}
.mini {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.mini:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.mini:first-child {
  padding-top: 0;
}
.mini img {
  width: 66px;
  height: 56px;
  border-radius: 9px;
  object-fit: cover;
  flex: 0 0 auto;
}
.mini .mini-t {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  display: block;
}
.mini a:hover .mini-t {
  color: var(--accent);
}
.mini .mini-d {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 3px;
  display: block;
}
.cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
}
.cat-list li:last-child a {
  border-bottom: 0;
}
.cat-list li a:hover {
  color: var(--accent);
}
.cat-list .count {
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.tags a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.info-widget .w-body {
  padding: 0;
}
.info-widget img {
  width: 100%;
}
.info-widget .cap {
  padding: 14px 20px;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.news-widget {
  background: linear-gradient(150deg, var(--navy) 0%, var(--steel) 100%);
  border: 0;
  color: #dce7f3;
}
.news-widget .w-body {
  padding: 24px 22px 26px;
}
.news-widget h4 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}
.news-widget p {
  font-size: 0.88rem;
  color: #b9cae0;
  margin: 0 0 16px;
}
.news-widget form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.news-widget input {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  outline: 0;
}
.news-widget .btn {
  justify-content: center;
  width: 100%;
  background: var(--accent-2);
  color: #06243b;
}
.news-widget .btn:hover {
  background: #fff;
  color: var(--navy);
}
.news-widget .fine {
  font-size: 0.72rem;
  color: #90a6c2;
  margin: 12px 0 0;
}

/* ---------- About section / page ---------- */
.about {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.about-media {
  position: relative;
}
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
}
.about-media .pill {
  position: absolute;
  bottom: -18px;
  right: -10px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-head);
}
.about-media .pill strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}
.about-media .pill span {
  font-size: 0.74rem;
  color: #a9bcd6;
  letter-spacing: 0.05em;
}
.about-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.about-copy p {
  color: var(--muted);
  margin: 0 0 16px;
}
.about-feats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 22px;
  margin: 22px 0 26px;
}
.about-feats .f {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.about-feats .f .ic {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.about-feats .f .ic svg {
  width: 20px;
  height: 20px;
}
.about-feats .f h4 {
  font-size: 0.98rem;
  margin: 0.1em 0 0.15em;
}
.about-feats .f p {
  font-size: 0.85rem;
  margin: 0;
}

/* ---------- Team grid (about page) ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px;
  text-align: center;
}
.team-card .ava {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--accent), var(--navy-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
}
.team-card h3 {
  font-size: 1.1rem;
  margin: 0 0 2px;
}
.team-card .role {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.team-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- Value / stat strips ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.value .ic {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 14px;
}
.value .ic svg {
  width: 24px;
  height: 24px;
}
.value h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4em;
}
.value p {
  color: var(--muted);
  margin: 0;
  font-size: 0.94rem;
}
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-strip .s strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.1rem;
  color: var(--navy);
  line-height: 1;
}
.stat-strip .s span {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: start;
}
.contact-info .ci {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info .ci:last-child {
  border-bottom: 0;
}
.contact-info .ci .ic {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
}
.contact-info .ci .ic svg {
  width: 22px;
  height: 22px;
}
.contact-info .ci h4 {
  margin: 0 0 2px;
  font-size: 1rem;
}
.contact-info .ci p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.contact-info .ci a {
  font-weight: 600;
}
.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}
.field input,
.field textarea,
.field select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.92rem;
  background: var(--surface-2);
  color: var(--ink);
  outline: 0;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 143, 212, 0.14);
  background: #fff;
}
.field textarea {
  resize: vertical;
  min-height: 130px;
}
.contact-form .btn {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   ARTICLE / BLOG-POST PAGE
   ============================================================ */
.article-head {
  position: relative;
  overflow: hidden;
  color: #eaf2fb;
  padding: 46px 0 40px;
  background:
    radial-gradient(700px 360px at 88% -20%, rgba(25, 195, 230, 0.18), transparent 60%),
    linear-gradient(135deg, #08203c 0%, #0b2545 55%, #13315c 100%);
}
.article-head::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(80% 80% at 60% 20%, #000, transparent 85%);
  mask-image: radial-gradient(80% 80% at 60% 20%, #000, transparent 85%);
}
.article-head .wrap {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.article-head .kicker {
  display: inline-block;
  background: rgba(25, 195, 230, 0.16);
  color: #9fe8fb;
  border: 1px solid rgba(25, 195, 230, 0.3);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.article-head h1 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 16px 0 14px;
}
.article-head .standfirst {
  font-size: 1.16rem;
  color: #c8d8ec;
  margin: 0 0 22px;
  max-width: 64ch;
}
.byline {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: #aebfd4;
  font-size: 0.9rem;
}
.byline .avatar {
  width: 42px;
  height: 42px;
  font-size: 0.9rem;
}
.byline .who {
  color: #fff;
  font-weight: 700;
}
.byline a {
  color: #9fb8d6;
}
.byline .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #5e74a0;
}
.byline .verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #7fe0a6;
  font-weight: 600;
}
.byline .verified svg {
  width: 15px;
  height: 15px;
}

.article-wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 22px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.article-figure {
  margin: -34px 0 28px;
  position: relative;
  z-index: 5;
}
.article-figure img {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16/9;
  object-fit: cover;
}
.article-figure figcaption {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

/* Key takeaways */
.takeaways {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  margin: 6px 0 30px;
}
.takeaways h2 {
  font-size: 1.05rem;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.takeaways h2 svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.takeaways ul {
  margin: 0;
  padding-left: 20px;
}
.takeaways li {
  margin: 0.4em 0;
  color: var(--ink);
  font-size: 0.96rem;
}

/* Table of contents */
.toc {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 0 0 30px;
}
.toc h2 {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 10px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 30px;
}
.toc li {
  margin: 0.32em 0;
  font-size: 0.92rem;
}
.toc a {
  color: var(--steel);
}
.toc a:hover {
  color: var(--accent);
}
@media (max-width: 620px) {
  .toc ol {
    columns: 1;
  }
}

/* Prose typography */
.prose {
  font-size: 1.06rem;
  color: #27353f;
}
.prose > p {
  margin: 0 0 1.25em;
}
.prose h2 {
  font-size: 1.62rem;
  margin: 1.9em 0 0.55em;
  scroll-margin-top: 90px;
}
.prose h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  margin-bottom: 0.5em;
}
.prose h3 {
  font-size: 1.26rem;
  margin: 1.6em 0 0.5em;
  scroll-margin-top: 90px;
}
.prose h4 {
  font-size: 1.06rem;
  margin: 1.4em 0 0.4em;
}
.prose ul,
.prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.35em;
}
.prose li {
  margin: 0.42em 0;
}
.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.prose a:hover {
  color: var(--steel);
}
.prose strong {
  color: var(--navy);
  font-weight: 700;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 8px 24px;
  border-left: 4px solid var(--accent);
  background: var(--surface-2);
  color: var(--navy);
  font-style: italic;
  border-radius: 0 10px 10px 0;
}
.prose blockquote p {
  margin: 0.4em 0;
}
.prose figure {
  margin: 1.7em 0;
}
.prose figure img {
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  width: 100%;
}
.prose figcaption {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 9px;
  text-align: center;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 0.93rem;
  box-shadow: var(--shadow-sm);
  border-radius: 10px;
  overflow: hidden;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}
.prose thead th {
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}
.prose tbody tr:nth-child(even) {
  background: var(--surface-2);
}
.prose code {
  background: #0b2545;
  color: #cfe7ff;
  padding: 0.13em 0.42em;
  border-radius: 5px;
  font-size: 0.86em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.prose pre {
  background: #0b1f37;
  color: #dbe9fb;
  padding: 16px 18px;
  border-radius: 12px;
  overflow: auto;
  margin: 1.6em 0;
  font-size: 0.9rem;
  line-height: 1.6;
}
.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2.2em 0;
}

/* Callout / note boxes */
.callout {
  display: flex;
  gap: 14px;
  background: linear-gradient(150deg, #f0f8fd, #eaf3fb);
  border: 1px solid #d6e7f4;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 1.7em 0;
}
.callout .ic {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
}
.callout .ic svg {
  width: 19px;
  height: 19px;
}
.callout h4 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.callout p {
  margin: 0;
  font-size: 0.95rem;
  color: #3a4a59;
}
.callout.tip {
  background: linear-gradient(150deg, #eefaf2, #e7f6ee);
  border-color: #cfead9;
}
.callout.tip .ic {
  background: #23a866;
}
.callout.warn {
  background: linear-gradient(150deg, #fff6ec, #fdf0e2);
  border-color: #f3ddc2;
}
.callout.warn .ic {
  background: #e08a2b;
}

/* FAQ */
.faq {
  margin: 8px 0;
}
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 20px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  flex: 0 0 auto;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details[open] summary {
  border-bottom: 1px solid var(--line);
}
.faq .faq-a {
  padding: 14px 20px 18px;
  color: #3a4a59;
  font-size: 0.97rem;
}
.faq .faq-a p {
  margin: 0 0 0.8em;
}
.faq .faq-a p:last-child {
  margin: 0;
}

/* Author bio (E-E-A-T) */
.author-box {
  display: flex;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  margin: 36px 0 8px;
}
.author-box .ava {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--navy-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
}
.author-box .a-meta .role {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.author-box h3 {
  margin: 0.15em 0 0.3em;
  font-size: 1.2rem;
}
.author-box p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.93rem;
}
.author-box .creds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.author-box .creds span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--steel);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Review / trust line */
.trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 0 0 26px;
}
.trustline .it {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trustline .it svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: 0 0 auto;
}

/* References */
.references {
  margin: 30px 0 8px;
}
.references h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5em;
}
.references ol {
  margin: 0;
  padding-left: 20px;
}
.references li {
  margin: 0.5em 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.references a {
  color: var(--accent);
}

/* Share row */
.share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.share span {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy);
}
.share a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--steel);
}
.share a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.share svg {
  width: 17px;
  height: 17px;
}

/* Tag row */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.tag-row a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--steel);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
}
.tag-row a:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Inline newsletter band */
.cta-band {
  background: linear-gradient(150deg, var(--navy) 0%, var(--steel) 100%);
  color: #dce7f3;
  border-radius: 16px;
  padding: 34px 32px;
  margin: 34px 0;
  text-align: center;
}
.cta-band h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 0.4em;
}
.cta-band p {
  color: #b9cae0;
  max-width: 54ch;
  margin: 0 auto 18px;
}
.cta-band form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.cta-band input {
  flex: 1;
  min-width: 200px;
  border: 0;
  border-radius: 9px;
  padding: 13px 15px;
  font: inherit;
}
.cta-band .btn {
  background: var(--accent-2);
  color: #06243b;
}
.cta-band .btn:hover {
  background: #fff;
}

/* Related posts */
.related {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding-top: 34px;
}
.related h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: #a9bcd6;
  padding: 58px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
}
.site-footer h5 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 1rem;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.site-footer a {
  color: #a9bcd6;
}
.site-footer a:hover {
  color: #fff;
}
.footer-brand .brand .name {
  color: #fff;
}
.footer-brand .brand .tag {
  color: #7e93b3;
}
.footer-brand p {
  font-size: 0.9rem;
  color: #90a6c2;
  margin: 16px 0 18px;
  max-width: 34ch;
}
.f-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.f-links li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.f-social {
  display: flex;
  gap: 10px;
}
.f-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: #cdd9ea;
  transition: background 0.15s;
}
.f-social a:hover {
  background: var(--accent);
  color: #fff;
}
.f-social svg {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: #8298b6;
}
.footer-bottom a {
  color: #9fb3cd;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0 70px;
  }
  .hero p.lead {
    max-width: none;
  }
  .feature-card {
    max-width: 560px;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .nav-links,
  .nav-right .search,
  .nav-right .btn {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 12px 22px 18px;
  }
  .site-header.open .nav-links a {
    padding: 13px 12px;
    border-radius: 8px;
  }
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .about-media .pill {
    right: 14px;
  }
  .value-grid {
    grid-template-columns: 1fr;
  }
  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }
}
@media (max-width: 620px) {
  .section {
    padding: 50px 0;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-feats,
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 22px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .author-box {
    flex-direction: column;
  }
  .article-figure {
    margin-top: -18px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Author photos */
img.avatar,
img.ava {
  object-fit: cover;
  display: block;
  background: none;
}
.author-box img.ava,
.team-card img.ava {
  display: block;
}
