/* NEFOS B2B Living Architecture - Stylesheet */
:root {
  --bg-primary: #0b1120;
  --bg-secondary: #111827;
  --bg-card: #1e293b;
  --bg-input: #0f172a;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #0ea5e9;
  --accent-hover: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.14);
  /* Ink for small text sitting on --accent-soft. --accent itself measures only
     4.25:1 on the composited chip background (#1c3a53) — under the 4.5:1 AA
     floor for text below 18.66px bold. #38bdf8 measures 5.51:1. */
  --accent-soft-ink: #38bdf8;
  /* Text placed ON the accent fill. White on #0ea5e9 measures 2.77:1 and fails
     WCAG 2.2 AA (4.5:1); this ink measures 6.80:1 on --accent and 4.60:1 on
     --accent-hover, so the same token stays compliant in both states. */
  --on-accent: #06121f;
  --border: #334155;
  /* Form-control boundaries must reach 3:1 against the surrounding surface
     (WCAG 2.2 1.4.11). --border is a decorative hairline at 1.82:1; this token
     measures 3.96:1 on --bg-primary and 3.75:1 on --bg-input. */
  --border-strong: #64748b;
  --success: #10b981;
  --danger: #f43f5e;
  --radius: 10px;
  --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.45);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.brand span {
  color: var(--accent);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-menu a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.93rem;
  transition: color var(--transition);
}

.nav-menu a:hover {
  color: var(--accent);
}

.nav-menu .nav-cta {
  background: var(--accent);
  color: var(--on-accent);
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
}

.nav-menu .nav-cta:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* WCAG 2.2 target size: the visible icon is 32px square, the hit area 44px. */
  min-width: 44px;
  min-height: 44px;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Hero Section */
.hero {
  padding: 5.25rem 0 4.25rem;
  background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 55%);
  border-bottom: 1px solid var(--border);
}

.hero-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-soft-ink);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  max-width: 840px;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 740px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Sections */
.section {
  padding: 4.25rem 0;
}

.section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 740px;
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.02rem;
}

/* Cards & Grids */
.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card,
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: border-color var(--transition), transform var(--transition);
}

.service-card:hover,
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.service-card h3,
.project-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: var(--text-primary);
}

.service-card p,
.project-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-soft-ink);
  background: var(--accent-soft);
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-list li {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding-left: 1.25rem;
  position: relative;
}

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

/* Credentials & Tech Stack */
.credentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.cred-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}

.cred-issuer {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  display: block;
}

.cred-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.35rem;
}

.cred-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.75rem;
}

.stack-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
}

/* Methodology Grid */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.method-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.method-step {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.method-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.55rem;
}

.method-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 860px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
}

.faq-item summary {
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  color: var(--text-primary);
}

.faq-item p {
  margin-top: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 820px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.15rem;
}

.form-group label {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

/* Keyboard users get the same 2px ring as every other control; the previous
   rule set outline:none, leaving focus signalled only by a 1px border shift. */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.error-msg {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1.15rem;
  margin-top: 0.25rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.status-ok {
  color: var(--success);
}

.form-status.status-err {
  color: var(--danger);
}

/* Footer */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap; /* was a nowrap row: at 390px it measured 666px wide and forced 296px of horizontal scroll */
  gap: 0.75rem 1.35rem;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Social links: icon + visible text label. Never icon-only — an icon-only link
   has no accessible name and shows up as an "empty link" to screen readers
   (WCAG 2.4.4 / 4.1.2). The SVG is decorative, the text is the name. */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin: 0.35rem 0 0;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 32px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--accent);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
}

@media (max-width: 992px) {
  .methodology-grid,
  .credentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* The desktop nav needs ~945px; it used to stay expanded down to 768px, which
   pushed 73px of horizontal scroll onto tablets/small laptops (measured at 780px).
   Collapse it at 992px, before it can overflow. */
@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    gap: 1rem;
  }

  .nav-menu.active {
    display: flex;
  }

  .services-grid,
  .projects-grid,
  .credentials-grid,
  .methodology-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.75rem 0 3.25rem;
  }

  .contact-form {
    padding: 1.35rem;
  }
}

/* --- v3b: navbar σε 8 στοιχεία / ελληνικές ετικέτες --- */
.navbar{gap:1rem}
.brand{white-space:nowrap;margin-right:.5rem}
.nav-menu{gap:.15rem}
.nav-menu a{white-space:nowrap;padding:.4rem .55rem}
@media (min-width:901px) and (max-width:1180px){.nav-menu a{font-size:.82rem;padding:.35rem .45rem}}

/* --- v3: team & partners --- */
.people-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1.75rem;margin-top:2rem}
.nav-toggle{display:none}
@media (max-width:900px){
  .nav-toggle{display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;background:transparent;border:1px solid var(--border);border-radius:10px;cursor:pointer;padding:0}
  .nav-toggle span{display:block;width:20px;height:2px;background:var(--text-primary);border-radius:2px;transition:transform .2s,opacity .2s}
  .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)}
  .nav-menu.active{display:flex;flex-direction:column;position:absolute;top:100%;left:0;right:0;background:var(--bg-primary,#0b1120);border-bottom:1px solid var(--border,#24303f);padding:1rem 1.25rem 1.35rem;gap:.4rem;z-index:70;box-shadow:0 18px 40px rgba(0,0,0,.5)}
  .nav-menu.active a{font-size:1rem;padding:.45rem 0}
  .navbar{position:relative}
}
.people-grid.single{grid-template-columns:1fr}
.people-grid.single .person-card{max-width:none}
.people-grid.single .person-avatar{width:120px;height:120px}
.person-card{background:var(--bg-primary);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;display:flex;flex-direction:column;gap:.5rem}
.person-avatar{width:96px;height:96px;border-radius:50%;object-fit:cover;border:1px solid var(--border)}
.person-initials{display:flex;align-items:center;justify-content:center;background:var(--accent-soft);color:var(--accent);font-weight:700;font-size:1.5rem;letter-spacing:.02em}
.person-card h3{margin:.5rem 0 0;font-size:1.05rem}
.person-role{margin:0;font-size:.85rem;color:var(--accent);font-weight:600}
.person-bio{margin:.25rem 0 0;font-size:.92rem;color:var(--text-muted);line-height:1.6}
.person-social{display:flex;gap:1rem;margin:.6rem 0 .2rem;padding-top:.15rem;font-size:.85rem;flex-wrap:wrap}
.person-social a{display:inline-flex;align-items:center;gap:.4rem;color:var(--text-secondary);text-decoration:none;border-bottom:1px solid transparent;padding:.15rem 0}
.person-social .si{width:15px;height:15px;fill:currentColor;flex:0 0 auto;opacity:.9}
.person-social a:hover .si{opacity:1}
.person-social a:hover{color:var(--accent);border-color:var(--accent)}
.partners-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.25rem;margin-top:2rem}
.partner-card{background:var(--bg-primary);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;display:flex;flex-direction:column;gap:.5rem;align-items:flex-start}
.partner-logo{max-height:48px;width:auto;object-fit:contain}
.partner-initials{display:flex;align-items:center;justify-content:center;width:56px;height:56px;border-radius:var(--radius);background:var(--bg-secondary);color:var(--text-muted);font-weight:700}
.partner-card h3{margin:0;font-size:1rem}
.partner-card h3 a{color:inherit;text-decoration:none}
.partner-card p{margin:0;font-size:.85rem;color:var(--text-muted)}
.partners-note{margin-top:1.5rem;font-size:.8rem;color:var(--text-muted);opacity:.8}

/* --- v2: language switch, about, smb, skip link --- */
.skip-link{position:absolute;left:-9999px;top:0;z-index:999;background:var(--accent);color:#06121f;padding:.6rem 1rem;border-radius:0 0 var(--radius) 0;font-weight:600}
.skip-link:focus,.skip-link:focus-visible{left:0}
.lang-switch{display:flex;align-items:center;gap:.25rem;margin-left:.5rem;padding-left:.75rem;border-left:1px solid var(--border)}
.lang-switch a,.lang-switch span{font-size:.8rem;font-weight:600;letter-spacing:.04em;padding:.25rem .45rem;border-radius:var(--radius);color:var(--text-muted);text-decoration:none}
.lang-switch a:hover{color:var(--text-primary);background:var(--bg-secondary)}
.lang-switch .lang-current{color:var(--accent);background:var(--accent-soft)}
.about-inner{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:2.5rem;align-items:start}
.about-body p{color:var(--text-secondary);line-height:1.75;margin:0 0 1rem}
.about-lead{font-size:1.08rem;color:var(--text-primary);line-height:1.7;margin:0 0 1.25rem}
.about-facts{list-style:none;margin:0 0 1.5rem;padding:1.25rem 1.35rem;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius)}
.about-facts li{display:flex;flex-direction:column;gap:.15rem;padding:.55rem 0;border-bottom:1px solid var(--border)}
.about-facts li:last-child{border-bottom:0}
.about-facts .fact-label{font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:var(--text-muted)}
.about-facts .fact-value{color:var(--text-primary);font-weight:600;font-size:.94rem;line-height:1.5}
.about-cta{display:inline-flex;align-items:center;gap:.4rem}
.page-header{padding:5.5rem 0 2.5rem;border-bottom:1px solid var(--border);background:var(--bg-secondary)}
.page-header .hero-badge{margin-bottom:1rem}
.page-header h1{margin:0 0 1rem;font-size:clamp(1.7rem,4vw,2.6rem);line-height:1.25}
.page-header p{margin:0;max-width:62ch;color:var(--text-secondary);line-height:1.7}
.check-list{list-style:none;margin:1.5rem 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:.75rem}
.check-list li{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:.85rem 1rem;color:var(--text-secondary);line-height:1.6;font-size:.94rem}
.check-list li::before{content:"—";color:var(--accent);margin-right:.5rem;font-weight:700}
.back-link{display:inline-block;margin-bottom:1.25rem;font-size:.85rem;color:var(--text-muted);text-decoration:none}
.back-link:hover{color:var(--accent)}
.cta-panel{background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);padding:2rem;margin-top:2.5rem}
.cta-panel h2{margin:0 0 .75rem;font-size:1.35rem}
.cta-panel p{margin:0 0 1.25rem;color:var(--text-secondary);line-height:1.7}
.hp-field{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.aside-note{font-size:.85rem;color:var(--text-muted);line-height:1.6;margin:0 0 1rem}
.footer-brand{margin:0 0 .75rem;color:var(--text-primary);font-weight:600}
.footer-legal{margin:1rem 0 0;font-size:.8rem;color:var(--text-muted)}
.footer-acronym{margin:.5rem 0 0;font-size:.78rem;color:var(--text-muted);letter-spacing:.01em}
/* --- hero background (DigiWest profile imagery) --- */
.hero{position:relative;isolation:isolate;background-image:linear-gradient(180deg,rgba(11,17,32,.90) 0%,rgba(11,17,32,.82) 45%,rgba(11,17,32,.94) 100%),url("/assets/img/hero-dc.webp");background-size:cover;background-position:center 35%;background-repeat:no-repeat}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(60% 60% at 15% 20%,rgba(34,211,238,.10),transparent 70%)}
.hero-badge,.hero h1,.hero-lead,.hero-actions{position:relative}
.post-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem}
.post-card{padding:1.35rem;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column;gap:.5rem}
.post-title{margin:0;font-size:1.1rem;line-height:1.35;color:var(--text-primary)}
.post-link{text-decoration:none}
.post-meta{margin:0;font-size:.78rem;color:var(--text-muted)}
.post-excerpt{margin:0;font-size:.9rem;color:var(--text-secondary);line-height:1.6}
.post-more{font-size:.85rem;color:var(--accent);text-decoration:none;margin-top:auto}
.article-doc{max-width:760px}.article-title{margin:.25rem 0 1.25rem;font-size:1.9rem;line-height:1.25}
.article-meta{color:var(--text-muted);font-size:.82rem;margin:0}
.article-doc p{line-height:1.75;color:var(--text-secondary);margin:0 0 1rem}
.article-tags{display:flex;gap:.4rem;flex-wrap:wrap;margin-top:1.25rem}
.tag{font-size:.72rem;padding:.2rem .55rem;border:1px solid var(--border);border-radius:999px;color:var(--text-muted)}
.article-back{margin-top:2rem}
.expertise-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.9rem;margin-top:.25rem}
.expertise-card{padding:.9rem 1rem;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius)}
.expertise-card h5{margin:0 0 .35rem;font-size:.9rem;color:var(--text-primary)}
.expertise-card p{margin:0;font-size:.82rem;line-height:1.55;color:var(--text-secondary)}
.person-sub{margin:1.4rem 0 .6rem;font-size:.95rem;letter-spacing:.04em;text-transform:uppercase;color:var(--text-muted)}
.person-location{margin:.5rem 0 0;font-size:.9rem;color:var(--text-secondary)}
.person-card .timeline li{font-size:.86rem;padding:.55rem 0;align-items:center;gap:.8rem;justify-content:flex-start}
.tl-logo{height:22px;width:auto;max-width:118px;object-fit:contain;flex:0 0 auto;opacity:.95}
.tl-logo-none{width:0}
.tl-body{display:flex;flex-direction:column;gap:.1rem;flex:1 1 auto;min-width:0}
.tl-company{font-size:.8rem;color:var(--text-muted)}
.tl-place{display:block;font-size:.72rem;color:var(--text-muted);margin-top:.15rem}
.person-card .cred-grid{grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
.person-card .cred-name{font-size:.84rem}
.about-sub{margin:1.75rem 0 .75rem;font-size:1.05rem;color:var(--text-primary)}
.about-location{margin:0 0 .5rem;color:var(--text-secondary)}
.timeline{list-style:none;margin:0 0 1rem;padding:0}
.timeline li{display:flex;justify-content:space-between;gap:1rem;padding:.5rem 0;border-bottom:1px solid var(--border);font-size:.92rem}
.timeline li:last-child{border-bottom:0}
.tl-role{color:var(--text-primary);font-weight:600}
.tl-period{color:var(--text-muted);white-space:nowrap}
.cred-grid{list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.75rem;margin:0;padding:0}
.cred-grid li{padding:.85rem 1rem;background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius);display:flex;flex-direction:column;gap:.2rem}
.cred-name{color:var(--text-primary);font-weight:600;font-size:.9rem;line-height:1.35}
.cred-meta{color:var(--text-muted);font-size:.78rem}
.about-acronym{margin:.75rem 0 0;font-size:.9rem;font-weight:600;letter-spacing:.02em;color:var(--accent)}
.about-side img{width:100%;height:auto;display:block;border-radius:calc(var(--radius) + 4px);border:1px solid var(--border)}
@media (max-width:820px){.hero{background-image:linear-gradient(180deg,rgba(11,17,32,.92),rgba(11,17,32,.90)),url("/assets/img/hero-dc-sm.webp");background-position:center 25%}}
.p404 h1{margin:0 0 1rem}
.p404 .p404-block{border-top:1px solid var(--border);padding-top:1.5rem;margin-top:2rem}
.p404 .p404-block p{color:var(--text-secondary);line-height:1.7}
@media (max-width:820px){
  .about-inner{grid-template-columns:1fr}
  .lang-switch{margin-left:0;padding-left:0;border-left:0;border-top:1px solid var(--border);padding-top:.5rem}
}

/* --- mobile refinements: tap targets, type scale, iOS input zoom --- */
@media (max-width:820px){
  h1,.hero h1{font-size:1.75rem;line-height:1.26}
  .hero{padding:3.25rem 0 3rem}
  .hero-lead{font-size:1rem;line-height:1.65}
  .section-title{font-size:1.45rem}
  .footer-links a,.footer-legal a{display:inline-block;padding:.45rem 0}
  .cookie-note a{display:inline-block;padding:.35rem 0}
  .cookie-inner{padding:.9rem 0}
  .btn{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  .post-more,.article-back a,.back-link{display:inline-block;padding:.5rem 0}
  .person-social a{padding:.45rem 0}
  input,textarea,select{font-size:16px}
  input,textarea{min-height:44px}
}
/* --- cookie notice + legal documents (external so CSP needs no unsafe-inline) --- */
body.has-cookie-note{padding-bottom:84px}
.cookie-note{position:fixed;left:0;right:0;bottom:0;background:#10161f;color:#e8eef7;border-top:1px solid #24303f;z-index:60}
.cookie-inner{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:12px 0;flex-wrap:wrap}
.cookie-note p{margin:0;font-size:14px}
.cookie-note a{color:#8fc6ff;text-decoration:underline}
.cookie-btn{background:#2f6fed;color:#fff;border:0;border-radius:8px;padding:8px 16px;font-size:14px;cursor:pointer}
.legal-doc{max-width:820px}
.legal-doc ul{list-style:disc;padding-left:1.3rem;margin:0 0 1.1rem;color:var(--text-secondary);line-height:1.7}
.legal-h2{margin-top:28px;font-size:20px}
.legal-doc p,.legal-doc li{line-height:1.65}
/* --- motion preference: honour the OS setting instead of animating anyway --- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
  .btn-primary:hover,.btn-secondary:hover{transform:none}
}
