/*
Theme Name: Suite5
Theme URI: https://www.suite5.eu
Author: Suite5
Description: Custom corporate theme for Suite5 Data Intelligence Solutions — Services, Industries, GRIFFO, Research (project CPT) and News.
Version: 0.944
Requires at least: 6.2
Requires PHP: 7.4
License: Proprietary
Text Domain: suite5
*/

/* ============================================================
   Suite5 — Corporate Website
   Palette: brand blue #1769B3 · ink #0A1420 · cloud #F3F6FA · amber #F2A33C
   Type:    Space Grotesk (display) · Inter (body) · IBM Plex Mono (labels)
   ============================================================ */

:root {
  --blue: #1769B3;
  --blue-deep: #0D4B85;
  --blue-soft: #E4EEF7;
  --ink: #0A1420;
  --ink-2: #101E2E;
  --ink-3: #16273B;
  --cloud: #F3F6FA;
  --line: #DCE4EC;
  --line-dark: rgba(255, 255, 255, 0.12);
  --amber: #F2A33C;
  --text: #22303E;
  --muted: #5A6B7C;
  --muted-dark: #9AAABC;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 20, 32, 0.08);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-deep); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* ---------- Eyebrow: node + line (pipeline motif) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 163, 60, 0.22);
  flex: none;
}
.eyebrow::after {
  content: "";
  width: 46px; height: 1px;
  background: linear-gradient(90deg, var(--blue) 0%, transparent 100%);
}
.on-dark .eyebrow,
.section-dark .eyebrow,
.griffo-band .eyebrow,
.hero .eyebrow { color: #7FB4E4; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand img { height: 36px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}
.main-nav .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--blue-deep); color: var(--white); }
.main-nav .nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  border-radius: 10px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.25s, opacity 0.25s;
}
.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;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero .wrap {
  position: relative;
  padding-top: 110px;
  padding-bottom: 110px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 600;
  max-width: 15ch;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero .lede {
  font-size: 19px;
  color: var(--muted-dark);
  max-width: 58ch;
  margin-bottom: 38px;
}
.hero.hero-sub .wrap { padding-top: 84px; padding-bottom: 84px; }
.hero.hero-sub h1 { font-size: clamp(32px, 4.4vw, 50px); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 26px;
  border-radius: 999px;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: #1E7BCB; color: var(--white); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }
.btn-ghost-dark { border: 1px solid var(--blue); color: var(--blue); }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #F7B45C; color: var(--ink); }
.btn .arrow { transition: transform 0.15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
section.tight { padding: 68px 0; }
.section-cloud { background: var(--cloud); }
.section-dark { background: var(--ink); color: var(--muted-dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }

.section-head { max-width: 780px; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-head p { color: var(--muted); font-size: 17.5px; }
.section-dark .section-head p { color: var(--muted-dark); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { display: none; }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(23, 105, 179, 0.35);
}
.card h3 {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p { font-size: 15.5px; color: var(--muted); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 24px; height: 24px; }

.section-dark .card {
  background: var(--ink-2);
  border-color: var(--line-dark);
}
.section-dark .card h3 { color: var(--white); }
.section-dark .card p { color: var(--muted-dark); }
.section-dark .card .icon { background: rgba(23, 105, 179, 0.25); color: #7FB4E4; }

/* pillar cards (expertise) */
.pillar {
  border-top: 3px solid var(--blue);
}
.pillar ul {
  list-style: none;
  margin-top: 14px;
}
.pillar li {
  font-size: 14.5px;
  color: var(--muted);
  padding: 7px 0 7px 20px;
  position: relative;
  border-bottom: 1px dashed var(--line);
}
.pillar li:last-child { border-bottom: 0; }
.pillar li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 2px solid var(--amber);
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stat {
  text-align: left;
  padding: 34px 30px;
  border-radius: var(--radius);
  background: var(--ink-2);
  border: 1px solid var(--line-dark);
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 58px);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}
.stat .num .accent { color: var(--amber); }
.stat .label {
  margin-top: 12px;
  font-size: 15px;
  color: var(--muted-dark);
}
.stats-light .stat { background: var(--white); border-color: var(--line); }
.stats-light .stat .num { color: var(--ink); }
.stats-light .stat .label { color: var(--muted); }

/* ---------- Timeline (Our story) ---------- */
.timeline {
  position: relative;
  margin-top: 20px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 86px;
  top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--amber));
}
.t-item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 46px;
  padding: 22px 0;
}
.t-item::before {
  content: "";
  position: absolute;
  left: 80px;
  top: 34px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 105, 179, 0.15);
}
.t-year {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--blue);
  text-align: right;
  padding-top: 26px;
}
.t-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.t-body h3 { font-size: 17.5px; margin-bottom: 6px; }
.t-body p { font-size: 15px; color: var(--muted); }

/* ---------- GRIFFO band ---------- */
.griffo-band {
  background:
    radial-gradient(900px 420px at 85% 0%, rgba(23, 105, 179, 0.35), transparent 60%),
    radial-gradient(700px 380px at 5% 100%, rgba(242, 163, 60, 0.14), transparent 55%),
    var(--ink);
  color: var(--muted-dark);
}
.griffo-band .griffo-logo { height: 58px; width: auto; margin-bottom: 26px; }
.griffo-band h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; }
.griffo-cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.griffo-metrics { display: grid; gap: 16px; }
.g-metric {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.g-metric .num {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--amber);
  line-height: 1;
}
.g-metric p { font-size: 14.5px; }
.griffo-verticals { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 34px; }
.chip {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-dark);
  color: #CBD8E6;
}
.chip strong { color: var(--amber); font-weight: 600; }

/* ---------- Sector tabs (use cases) ---------- */
.sector-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 44px;
}
.sector-nav button {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}
.sector-nav button:hover { border-color: var(--blue); color: var(--blue); }
.sector-nav button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.sector-panel { display: none; }
.sector-panel.active { display: block; animation: fadeUp 0.35s ease; }
.sector-panel .sector-intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 70ch;
  margin-bottom: 30px;
}

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

/* ---------- Value props / feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.check-list { list-style: none; margin-top: 8px; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--blue-soft);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 5px; top: 19px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}
.section-dark .check-list li,
.griffo-band .check-list li { border-color: var(--line-dark); color: #CBD8E6; }
.section-dark .check-list li::before,
.griffo-band .check-list li::before { background: rgba(23, 105, 179, 0.3); }
.section-dark .check-list li::after,
.griffo-band .check-list li::after { border-color: #7FB4E4; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: var(--white);
  border-radius: 22px;
  padding: 64px 60px;
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.cta-band p { color: #CFE2F3; max-width: 56ch; }

/* ---------- Contact ---------- */
.office-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
}
.office-card .flag {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}
.office-card h3 { font-size: 21px; margin-bottom: 14px; }
.office-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 6px; }
.office-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  padding: 64px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.site-footer img.f-logo { height: 34px; width: auto; margin-bottom: 18px; }
.site-footer h4 {
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; font-size: 14.5px; }
.site-footer a { color: var(--muted-dark); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 26px;
  font-size: 13.5px;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row, .griffo-cols { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 48px 36px; }
}

@media (max-width: 760px) {
  section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 10px 28px 22px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; font-size: 17px; width: 100%; }
  .main-nav .nav-cta { margin-top: 12px; text-align: center; justify-content: center; display: inline-flex; width: auto; }
  .timeline::before { left: 10px; }
  .t-item { grid-template-columns: 1fr; gap: 8px; padding-left: 40px; }
  .t-item::before { left: 4px; top: 8px; }
  .t-year { text-align: left; padding-top: 0; }
  .g-metric { grid-template-columns: 90px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- Research portfolio & news (v2 additions) ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--cloud);
}
.tag-programme { color: var(--blue); border-color: rgba(23, 105, 179, 0.35); background: var(--blue-soft); }
.tag-amber { color: #8A5A14; border-color: rgba(242, 163, 60, 0.45); background: rgba(242, 163, 60, 0.12); }
.card .feeds {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--blue);
}
.proj-card.hidden { display: none; }
.news-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.news-card h3 { margin-bottom: 10px; }

/* ---------- v4: clickable tiles, logos, detail pages, footer offices ---------- */
a.card { display: block; color: inherit; }
a.card:hover h3 { color: var(--blue); }

.proj-logo {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
  color: var(--blue-deep);
  margin-bottom: 16px;
}
.proj-card { display: flex; flex-direction: column; }
.proj-card .feeds { margin-top: auto; padding-top: 12px; }

.news-thumb {
  margin: -28px -28px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
a.card:hover .news-thumb img { transform: scale(1.03); }

/* Detail pages (project & news singles) */
.detail-hero { background: var(--ink); padding: 64px 0 48px; }
.detail-hero .eyebrow { color: #7FB4E4; }
.detail-hero h1 {
  color: var(--white);
  font-size: clamp(30px, 3.8vw, 44px);
  max-width: 20ch;
  margin-bottom: 18px;
}
.detail-hero .lede { color: var(--muted-dark); font-size: 18px; max-width: 62ch; }
.detail-hero .proj-logo { width: 64px; height: 64px; font-size: 18px; margin-bottom: 22px; background: rgba(255,255,255,0.08); border-color: var(--line-dark); color: #CBD8E6; }
.back-link {
  font-family: var(--font-mono); font-size: 13px;
  display: inline-block; margin-bottom: 26px; color: #7FB4E4;
}
.detail-photo { border-radius: var(--radius); overflow: hidden; margin: -40px 0 40px; box-shadow: var(--shadow); }
.detail-photo img { width: 100%; display: block; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.detail-body h2 { font-size: 24px; margin: 34px 0 14px; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 16px; color: var(--text); }
.facts {
  background: var(--cloud); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  position: sticky; top: 100px;
}
.facts h3 { font-size: 16px; margin-bottom: 14px; }
.facts dl { display: grid; grid-template-columns: 1fr; gap: 12px; }
.facts dt { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 14.5px; color: var(--ink); margin: 2px 0 0; }
.placeholder-note {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 8px; padding: 10px 14px; margin-top: 26px;
}

/* Footer offices */
.office { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-bottom: 16px; align-items: start; }
.office .flag { width: 26px; height: 18px; border-radius: 3px; overflow: hidden; margin-top: 3px; opacity: 0.9; }
.office .flag svg { display: block; width: 100%; height: 100%; }
.office p { margin: 0; font-size: 14px; }
.office .tel { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 14px; }
.office .tel svg { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .facts { position: static; }
}


/* ---------- v5: batch changes ---------- */
.stat .num.accent { color: var(--amber); }
.stat .num.accent .accent { color: inherit; }
.tag-ongoing { color: #0F6E56; border-color: rgba(29, 158, 117, 0.45); background: rgba(29, 158, 117, 0.10); }
.tag-finished { color: var(--muted); border-color: var(--line); background: transparent; }
.site-footer .linkedin { display: inline-flex; width: 30px; height: 30px; margin-top: 14px; color: var(--muted-dark); border: 1px solid var(--line-dark); border-radius: 6px; align-items: center; justify-content: center; }
.site-footer .linkedin:hover { color: #fff; border-color: #fff; }
.site-footer .linkedin svg { width: 15px; height: 15px; }
.career-meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }


/* ---------- v8: footer socials, favicon-era polish ---------- */
.site-footer .socials { display: flex; gap: 8px; margin-top: 16px; }
.site-footer .socials a {
  display: inline-flex; width: 26px; height: 26px;
  align-items: center; justify-content: center;
  color: var(--muted-dark);
  border: 1px solid var(--line-dark);
  border-radius: 6px;
}
.site-footer .socials a:hover { color: #fff; border-color: #fff; }
.site-footer .socials svg { width: 13px; height: 13px; }
.career-banner { border-radius: var(--radius); overflow: hidden; margin: -40px 0 40px; box-shadow: var(--shadow); }
.career-banner img { width: 100%; display: block; }


/* ---------- v8.8: project two-box layout ---------- */
.project-duo {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 48px;
}
.project-duo.single { grid-template-columns: minmax(0, 560px); }
.project-duo .facts { position: static; }
.role-box {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 30px;
  color: var(--muted-dark);
}
.role-box h3 { color: var(--white); font-size: 19px; text-align: center; margin-bottom: 8px; }
.role-box .rule { width: 56px; height: 2px; background: var(--amber); margin: 0 auto 20px; }
.role-box p { font-size: 15px; line-height: 1.75; margin-bottom: 12px; }
.role-box p:last-child { margin-bottom: 0; }
.project-about h2 { font-size: 24px; margin-bottom: 14px; }
.project-about p { color: var(--text); line-height: 1.8; margin-bottom: 16px; }
@media (max-width: 900px) {
  .project-duo, .project-duo.single { grid-template-columns: 1fr; }
}

/* ---------- v8.8: news article + carousel ---------- */
.article-body { max-width: 860px; }
.article-body p { color: var(--text); line-height: 1.85; margin-bottom: 18px; font-size: 16.5px; }
.tag-link { text-decoration: none; }
.tag-link:hover { border-color: var(--amber); color: var(--amber); }
.carousel { position: relative; margin: -40px 0 44px; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 12px; border-radius: var(--radius); scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.carousel-slide img { width: 100%; display: block; aspect-ratio: 16 / 7; object-fit: cover; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(10, 20, 32, 0.65); color: #fff; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.carousel-btn:hover { background: var(--blue); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.carousel-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; cursor: pointer; background: var(--line); padding: 0; transition: all 0.2s; }
.carousel-dots button.active { background: var(--amber); width: 22px; border-radius: 4px; }
@media (max-width: 700px) {
  .carousel-slide img { aspect-ratio: 16 / 10; }
  .carousel-btn { width: 34px; height: 34px; }
}


/* ---------- v8.89: logo scaling + one-line facts ---------- */
.proj-logo { overflow: hidden; flex: 0 0 auto; }
.proj-logo img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.detail-hero .proj-logo {
  width: 128px;
  height: 128px;
  font-size: 30px;
  border-radius: 16px;
}
.facts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 12px;
  align-items: baseline;
}
.facts dt { text-transform: none; letter-spacing: 0.02em; font-size: 12.5px; }
.facts dt::after { content: ":"; }
.facts dd { margin: 0; }

/* ---------- v8.90/8.92: dark logo surfaces (white/light logos on light pages) ---------- */
.proj-logo {
  background: #2F4258; /* slate — light-page logo surface */
  border-color: rgba(255, 255, 255, 0.14);
  color: #D6E1EC;
}
.proj-logo.has-img { padding: 8px; }
.proj-logo.has-img img { border-radius: 6px; }
.detail-hero .proj-logo {
  background: var(--ink-3);
  border-color: rgba(255, 255, 255, 0.18);
}
.detail-hero .proj-logo.has-img { padding: 12px; }

/* ---------- v8.94: generic page prose ---------- */
.page-prose { max-width: 780px; }
.page-prose h2 { font-size: 22px; }
.page-prose a { color: var(--blue); text-decoration: underline; }

/* ---------- v8.97: contact form section ---------- */
.contact-form { max-width: 680px; }
.contact-form .form-pending { color: var(--muted); font-style: italic; }
.form-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.form-note a { color: var(--blue); text-decoration: underline; }
.contact-alt { margin-top: 34px; font-size: 15.5px; color: var(--muted); }
.contact-alt a { color: var(--blue); text-decoration: underline; }

/* ---------- v0.941: hash-link scroll offset for the research filter ---------- */
#proj-filter { scroll-margin-top: 96px; }
