/* ============================================================
   IMECA3D — Shared Stylesheet
   ============================================================ */

/* ---------- Fonts (self-hosted in /fonts — faster, and no visitor data sent to Google) ---------- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/inter-latin-300-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/space-grotesk-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/space-grotesk-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/space-grotesk-latin-700-normal.woff2') format('woff2'); }

/* ---------- Design tokens ---------- */
:root {
  --dark:         #0C0C0F;
  --dark-2:       #141418;
  --dark-3:       #1E1E24;
  --accent:       #E85A1A;
  --accent-h:     #C84810;
  --white:        #FFFFFF;
  --light:        #F6F6F8;
  --light-2:      #EDEDF2;
  --text:         #1A1A2A;
  --text-2:       #4A4A5A;
  --text-3:       #8A8A9A;
  --border:       #E0E0EA;
  --border-dark:  #2A2A34;

  --font-head:  'Space Grotesk', sans-serif;
  --font-body:  'Inter', sans-serif;

  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,0.12);

  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--text-2); }

/* ---------- Layout helpers ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 80px 0; }
.section--dark { background: var(--dark); }
.section--light { background: var(--light); }

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  margin-bottom: 16px;
}
.section-intro {
  max-width: 560px;
  margin-bottom: 48px;
  font-size: 1.05rem;
  color: var(--text-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-h); border-color: var(--accent-h); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--outline-dark {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--outline-dark:hover { border-color: var(--text); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-dark);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all 0.15s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__cta { margin-left: 16px; padding: 10px 22px; font-size: 0.88rem; }

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 1000px) {   /* menu switches to the ☰ button below 1000 px */
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--dark);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border-dark);
    gap: 2px;
  }
  .nav__links.open { display: flex; }
  .nav__links a { width: 100%; padding: 10px 12px; }
  .nav__cta { width: 100%; margin-left: 0; margin-top: 8px; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--dark);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(232,90,26,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: rgba(255,255,255,0.65); font-size: 1.1rem; margin-bottom: 36px; max-width: 480px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual {
  background: var(--dark-3);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__placeholder {
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
  padding: 24px;
}
.hero__placeholder .icon { font-size: 2rem; margin-bottom: 8px; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { display: none; }
}

/* ---------- Stats strip ---------- */
.stats {
  background: var(--dark-2);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 32px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats__item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}
.stats__item span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
  display: block;
}
@media (max-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2,1fr); }
}

/* ---------- Services ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.2s ease;
}
.service-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(232,90,26,0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.9rem; line-height: 1.65; }

@media (max-width: 900px) { .services__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

/* ---------- Benefits ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.benefit {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.benefit__num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(232,90,26,0.15);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
}
.benefit h4 { margin-bottom: 6px; color: var(--white); }
.benefit p { font-size: 0.88rem; color: rgba(255,255,255,0.55); }

@media (max-width: 900px) { .benefits__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .benefits__grid { grid-template-columns: 1fr; } }

/* ---------- Materials strip ---------- */
.materials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.material-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: all 0.15s;
}
.material-card:hover { border-color: var(--accent); }
.material-card__name {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.material-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }

@media (max-width: 900px) { .materials__grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 560px) { .materials__grid { grid-template-columns: repeat(2,1fr); } }

/* ---------- Portfolio grid ---------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.portfolio-item:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.portfolio-item__img {
  background: var(--light-2);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.portfolio-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.portfolio-item:hover .portfolio-item__img img { transform: scale(1.04); }
.portfolio-item__info { padding: 18px 20px; }
.portfolio-item__info h4 { margin-bottom: 6px; font-size: 1rem; }
.portfolio-item__info p { font-size: 0.83rem; }

@media (max-width: 900px) { .portfolio__grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .portfolio__grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-bottom: 28px; font-size: 1.05rem; }
.btn--white {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}
.btn--white:hover { background: var(--light); }

/* ---------- Footer ---------- */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--border-dark);
  padding: 56px 0 32px;
  color: rgba(255,255,255,0.55);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer__brand .logo { font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--white); }
.footer__brand .logo span { color: var(--accent); }
.footer__brand p { margin-top: 12px; font-size: 0.88rem; line-height: 1.65; max-width: 260px; }
.footer__col h5 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { font-size: 0.88rem; transition: color 0.15s; }
.footer__col ul a:hover { color: var(--white); }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  width: 36px; height: 36px;
  background: var(--border-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.footer__social a:hover { background: var(--accent); color: var(--white); }
.footer__bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero {
  background: var(--dark);
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border-dark);
}
.page-hero__label { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem,4vw,3rem); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.65); max-width: 560px; font-size: 1.05rem; }

/* ---------- Contact form ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form .form-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--light); border: 1px solid var(--border); border-radius: 8px; }
.contact-form .form-check input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.contact-form .form-check label { margin: 0; font-weight: 400; cursor: pointer; line-height: 1.45; }
.contact-form .form-check label strong { display: block; color: var(--text); font-weight: 600; }
.contact-form .form-check label span { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--text-3); }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-form label .req { color: var(--accent); }
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { min-height: 130px; resize: vertical; }
.form-file {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}
.form-file:hover { border-color: var(--accent); }
.form-file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; z-index: 1; }   /* the real file button covers the box: reliable on phones and tablets */
.form-file:has(input:focus-visible) { border-color: var(--accent); outline: 3px solid var(--accent); outline-offset: 2px; }   /* keyboard users only, not after a tap */
.form-file p { font-size: 0.85rem; color: var(--text-2); margin-top: 6px; }
.contact-info__item { display: flex; gap: 14px; margin-bottom: 24px; align-items: flex-start; }
.contact-info__icon {
  width: 40px; height: 40px;
  background: rgba(232,90,26,0.1);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info__item h4 { margin-bottom: 4px; font-size: 0.95rem; }
.contact-info__item p { font-size: 0.88rem; }
.form-success {
  display: none;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #166534;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

@media (max-width: 800px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
}

/* ---------- About page ---------- */
.about-values__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.value-card {
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.value-card__icon { font-size: 1.8rem; margin-bottom: 14px; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { font-size: 0.9rem; }

@media (max-width: 600px) { .about-values__grid { grid-template-columns: 1fr; } }

/* ---------- Materials page ---------- */
.material-detail {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 32px;
  align-items: start;
}
.material-detail__badge {
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text);
}
.material-detail h3 { margin-bottom: 8px; }
.material-detail p { margin-bottom: 14px; font-size: 0.92rem; }
.material-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.material-tag {
  background: rgba(232,90,26,0.1);
  color: var(--accent);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}
@media (max-width: 640px) {
  .material-detail { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-0 { margin-bottom: 0 !important; }
.full-width { width: 100%; justify-content: center; }


/* ============================================================
   ADDED 16 Oct 2026 — shared components for the new page system
   ============================================================ */

/* ---------- Accessibility: "skip to content" link (visible on keyboard focus only) ---------- */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--accent); color: var(--white); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header: let the container use the full width (logo left, menu button right) ---------- */
.nav > .container { width: 100%; }

/* ---------- Navigation dropdowns ---------- */
.nav__item { position: relative; }
.nav__item--has-children > a::after { content: '▾'; font-size: 0.7em; margin-left: 6px; opacity: 0.7; }
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: var(--dark-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 8px;
  box-shadow: var(--shadow-md);
  flex-direction: column;
  gap: 2px;
}
.nav__dropdown a { display: block; white-space: nowrap; }
@media (min-width: 1001px) {
  .nav__item--has-children:hover > .nav__dropdown,
  .nav__item--has-children:focus-within > .nav__dropdown { display: flex; }
}
@media (max-width: 1000px) {   /* menu switches to the ☰ button below 1000 px */
  .nav__links { max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .nav__item { width: 100%; }
  .nav__dropdown { display: flex; position: static; background: none; border: none; box-shadow: none; padding: 0 0 4px 16px; min-width: 0; }
  .nav__dropdown a { font-size: 0.85rem; white-space: normal; }
}

/* ---------- Two-column layout that stacks on phones ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--cards { gap: 32px; max-width: 900px; margin: 0 auto; align-items: stretch; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.media-frame { background: var(--light); border-radius: var(--radius-lg); aspect-ratio: 4/3; overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.info-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--border); }
.info-card__icon { font-size: 2rem; margin-bottom: 16px; }
.info-card h3 { margin-bottom: 12px; }

/* ---------- Hero image ---------- */
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Services overview (moved from services page) ---------- */
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--border); }
.service-detail:first-child { padding-top: 0; }
.service-detail:last-child { border-bottom: none; padding-bottom: 0; }
.service-detail.reverse > :first-child { order: 2; }
.service-detail__num { font-family: var(--font-head); font-size: 5rem; font-weight: 700; color: var(--light-2); line-height: 1; margin-bottom: 12px; }
.service-detail__title { font-size: 1.9rem; margin-bottom: 12px; }
.service-detail__img { background: var(--light); border-radius: var(--radius-lg); aspect-ratio: 4/3; overflow: hidden; }
.service-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.service-detail ul { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.service-detail ul li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); }
.service-detail ul li::before { content: '→'; color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.service-detail__actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .service-detail { grid-template-columns: 1fr; gap: 28px; }
  .service-detail.reverse > :first-child { order: 0; }
}
a.service-card { display: block; color: inherit; }
.service-card__more { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ---------- Projects grid (moved from projects page) ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; transition: all 0.2s; background: var(--white); }
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.project-card__img { aspect-ratio: 4/3; background: var(--light); overflow: hidden; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.project-card:hover .project-card__img img { transform: scale(1.05); }
.project-card__body { padding: 20px 22px 24px; }
.project-card__tag { display: inline-block; background: rgba(232,90,26,0.1); color: var(--accent); border-radius: 100px; padding: 3px 10px; font-size: 0.75rem; font-weight: 600; margin-bottom: 10px; }
.project-card__body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.project-card__body p { font-size: 0.87rem; line-height: 1.6; }
@media (max-width: 900px) { .projects-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .projects-grid { grid-template-columns: 1fr; } }

/* ---------- Materials comparison table (was inline styles) ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; background: var(--white); }
.data-table th { padding: 14px 20px; background: var(--dark); color: var(--white); font-family: var(--font-head); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }
.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); text-align: center; color: var(--accent); }
.data-table tbody tr:nth-child(even) { background: var(--light); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table th:first-child, .data-table td:first-child,
.data-table th:last-child, .data-table td:last-child { text-align: left; }
.data-table td:first-child { font-weight: 700; font-family: var(--font-head); color: var(--text); }
.data-table td:last-child { color: var(--text-2); }
.data-table td.rating--ease { color: #16a34a; }
.material-detail__note { margin-top: 14px; font-size: 0.85rem; color: var(--text-3); }
.material-detail__more { font-weight: 600; color: var(--accent); font-size: 0.9rem; }

/* ---------- Text link inside dark hero ---------- */
.link-accent { color: var(--accent); text-decoration: underline; }

/* ---------- Ghost button (on dark backgrounds) ---------- */
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.25); }
.btn--ghost:hover { border-color: var(--white); }

/* ---------- Simple text page (thank-you, 404, legal) ---------- */
.text-page { max-width: 680px; }
.text-page h2 { margin: 32px 0 12px; font-size: 1.4rem; }
.text-page p { margin-bottom: 14px; }

/* ---------- Legal pages (privacy, cookies, terms, legal notice) — made by legal/make_pages.py ---------- */
.legal { max-width: 760px; color: var(--text-2); line-height: 1.7; }
.legal h2 { color: var(--text); }
.legal h3 { margin: 28px 0 10px; font-size: 1.12rem; color: var(--text); }
.legal h2.legal__part { margin-top: 56px; padding-top: 22px; border-top: 2px solid var(--border);
  font-size: 0.9rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.legal ul, .legal ol { margin: 0 0 16px 22px; padding: 0; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text); }
.legal code { font-family: ui-monospace, Consolas, monospace; font-size: 0.86em; background: var(--light); padding: 1px 5px; border-radius: 4px; color: var(--text); white-space: nowrap; }
.legal a { color: var(--accent); text-decoration: underline; overflow-wrap: anywhere; }
.legal blockquote { margin: 0 0 20px; padding: 12px 16px; background: var(--light); border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0; font-size: 0.92rem; }
.legal blockquote p:last-child { margin-bottom: 0; }
.legal__table { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--border); border-radius: 8px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
.legal__table th { text-align: left; background: var(--light); color: var(--text); font-weight: 600; padding: 10px 12px; }
.legal__table td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: top; }

/* ---------- Missing-image placeholder (only shown while a photo is missing) ---------- */
img.img-missing { background: var(--light-2); object-fit: contain !important; }

/* ============================================================
   SERVICE PAGES, MATERIAL HUB, RESOURCES (added 16 Oct 2026)
   ============================================================ */

/* ---------- Page hero extras ---------- */
.page-hero__lead { font-size: 1.2rem !important; color: var(--white) !important; font-weight: 500; margin-bottom: 12px; max-width: 640px !important; }
.page-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.breadcrumb-trail { font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-bottom: 18px; }
.breadcrumb-trail a { color: rgba(255,255,255,0.6); }
.breadcrumb-trail a:hover { color: var(--white); }

/* ---------- Long-form text ---------- */
.prose { max-width: 720px; }
.prose p { margin-bottom: 16px; font-size: 1rem; line-height: 1.75; }
.prose h2 { margin: 40px 0 14px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.prose h3 { margin: 28px 0 10px; font-size: 1.2rem; }
.prose ul, .prose ol { margin: 0 0 18px 1.2em; color: var(--text-2); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 6px; line-height: 1.65; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose strong { color: var(--text); }
.prose figure { margin: 28px 0; }
.prose figcaption { font-size: 0.85rem; color: var(--text-3); margin-top: 8px; }

/* ---------- Service page: intro with side panel ---------- */
.svc-intro { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.svc-panel { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; position: sticky; top: calc(var(--nav-h) + 24px); }
.svc-panel h2 { font-size: 1.05rem; margin-bottom: 14px; }
.svc-panel .btn { width: 100%; justify-content: center; margin-top: 20px; }
.svc-panel__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--light-2); margin-bottom: 20px; }
.svc-panel__img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .svc-intro { grid-template-columns: 1fr; gap: 32px; } .svc-panel { position: static; } }

.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.92rem; color: var(--text-2); line-height: 1.55; }
.check-list li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

.two-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two-lists > div { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.two-lists h3 { font-size: 1.1rem; margin-bottom: 16px; }
@media (max-width: 720px) { .two-lists { grid-template-columns: 1fr; } }

/* ---------- Process steps (a real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 24px 22px; border: 1px solid var(--border-dark); border-radius: var(--radius-lg); background: var(--dark-2); }
.step::before { counter-increment: step; content: counter(step); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--white); font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.step h3 { color: var(--white); font-size: 1rem; margin-bottom: 6px; }
.step p { color: rgba(255,255,255,0.6); font-size: 0.87rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Price table ---------- */
.price-table td:nth-child(2) { font-family: var(--font-head); font-weight: 700; color: var(--accent); white-space: nowrap; }
.price-note { font-size: 0.85rem; color: var(--text-3); margin-top: 12px; }
.data-table.text-left th, .data-table.text-left td { text-align: left; }
.data-table.text-left td { color: var(--text-2); }
.data-table.text-left td:first-child { color: var(--text); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 18px; font-size: 0.92rem; }
.faq a { color: var(--accent); text-decoration: underline; }

/* ---------- Related links ---------- */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related a { display: block; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; transition: border-color 0.15s, transform 0.15s; background: var(--white); }
.related a:hover { border-color: var(--accent); transform: translateY(-2px); }
.related strong { display: block; font-family: var(--font-head); color: var(--text); margin-bottom: 4px; }
.related span { font-size: 0.85rem; color: var(--text-2); }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } }

/* ---------- Materials hub ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; max-width: 620px; }
.stat-row div { border-left: 2px solid var(--accent); padding-left: 14px; }
.stat-row strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--white); }
.stat-row span { font-size: 0.8rem; color: rgba(255,255,255,0.55); }
.choose-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.choose-grid > div { border-top: 2px solid var(--accent); padding-top: 18px; }
.choose-grid h3 { font-size: 1.05rem; margin-bottom: 8px; }
.choose-grid p { font-size: 0.9rem; }
@media (max-width: 800px) { .choose-grid { grid-template-columns: 1fr; } .stat-row { grid-template-columns: 1fr 1fr; } }
.mat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mat-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; background: var(--white); display: flex; flex-direction: column; }
.mat-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.mat-card__name { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--text); }
.mat-card__badge { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); background: rgba(232,90,26,0.1); padding: 4px 10px; border-radius: 100px; }
.mat-card__full { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.mat-card p { font-size: 0.92rem; margin-bottom: 16px; }
.mat-card .material-tags { margin-bottom: 20px; }
.mat-card__link { margin-top: auto; font-weight: 600; color: var(--accent); font-size: 0.92rem; }
@media (max-width: 760px) { .mat-cards { grid-template-columns: 1fr; } }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot--good { background: #16a34a; } .dot--mid { background: #f59e0b; } .dot--low { background: #ef4444; }

/* ---------- Impact chart ---------- */
.bar-chart { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 120px; gap: 14px; align-items: center; }
.bar-row__label { font-family: var(--font-head); font-weight: 700; color: var(--text); }
.bar-row__track { position: relative; height: 26px; background: var(--light-2); border-radius: 4px; }
.bar-row__fill { position: absolute; top: 0; bottom: 0; background: rgba(232,90,26,0.35); border-radius: 4px; }
.bar-row__fill::after { content: ''; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: var(--accent); border-radius: 0 4px 4px 0; }
.bar-row__value { font-size: 0.88rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bar-axis { display: grid; grid-template-columns: 110px 1fr 120px; gap: 14px; font-size: 0.75rem; color: var(--text-3); }
.bar-axis__ticks { display: flex; justify-content: space-between; }
@media (max-width: 560px) { .bar-row, .bar-axis { grid-template-columns: 70px 1fr; } .bar-row__value { grid-column: 2; margin-top: -8px; } .bar-axis > span:last-child { display: none; } }
.callout { background: var(--light); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; max-width: 760px; }
.callout h3 { font-size: 1rem; margin-bottom: 8px; }
.callout p, .callout li { font-size: 0.9rem; }
.callout ul { list-style: disc; margin-left: 1.2em; color: var(--text-2); }

/* ---------- Blog list ---------- */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--white); transition: box-shadow 0.2s, transform 0.2s; }
.post-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-card__img { aspect-ratio: 16/9; background: var(--light-2); overflow: hidden; }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.post-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.post-card p { font-size: 0.88rem; margin-bottom: 14px; }
.post-card__meta { margin-top: auto; font-size: 0.8rem; color: var(--text-3); }
.post-list__empty { color: var(--text-2); }
@media (max-width: 900px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .post-list { grid-template-columns: 1fr; } }
.resource-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 700px) { .resource-links { grid-template-columns: 1fr; } }
ol.steps { list-style: none; padding: 0; margin: 0; }
.data-table td a { color: var(--accent); text-decoration: underline; }
.compare-table { min-width: 720px; }
.compare-table tbody th[scope="row"] { text-align: left; font-family: var(--font-body); font-weight: 600; color: var(--text); background: var(--white); text-transform: none; letter-spacing: 0; font-size: 0.88rem; position: sticky; left: 0; }
.compare-table tbody tr:nth-child(even) th[scope="row"] { background: var(--light); }
.compare-table .group-row th { background: var(--light-2); color: var(--text); text-align: left; font-size: 0.75rem; }
.compare-table thead a { color: var(--white); text-decoration: none; }
.choose-grid:has(> div:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .choose-grid:has(> div:nth-child(4)) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .choose-grid:has(> div:nth-child(4)) { grid-template-columns: 1fr; } }
a.material-card { display: block; color: inherit; }

/* ---------- WhatsApp chat button (every page) ---------- */
.wa-btn {
  position: fixed; z-index: 150;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: #fff;
  padding: 12px 20px 12px 14px; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.35);
  font-weight: 600; font-size: 0.92rem;
  transition: transform 0.2s, background 0.2s;
}
.wa-btn:hover { background: #1ebe5b; transform: translateY(-2px); }
.wa-btn svg { flex-shrink: 0; }
@media (max-width: 600px) {
  .wa-btn { right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 13px; border-radius: 50%; }
  .wa-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .wa-btn { display: none; } }
.contact-wa { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; padding: 10px 18px 10px 12px; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; margin-top: 8px; }
.contact-wa:hover { background: #1ebe5b; }
.contact-wa svg { width: 22px; height: 22px; }

/* ---------- Language selector ---------- */
.nav__lang > a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; letter-spacing: 0.04em; }
.nav__globe { font-size: 0.95em; filter: grayscale(1) brightness(1.6); }
.nav__dropdown--right { left: auto; right: 0; min-width: 170px; }
@media (max-width: 1000px) {   /* menu switches to the ☰ button below 1000 px */
  .nav__lang { border-top: 1px solid var(--border-dark); margin-top: 6px; padding-top: 6px; }
  .nav__lang .nav__dropdown { flex-direction: row; flex-wrap: wrap; gap: 4px; padding-left: 8px; }
  .nav__lang .nav__dropdown a { width: auto; }
}
.footer__langs { display: flex; gap: 6px; flex-wrap: wrap; }
.footer__langs a:hover, .footer__langs a[aria-current] { color: var(--white); }
body.menu-open .wa-btn { display: none; }

/* ---------- Team cards (Who We Are) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.team-card { position: relative; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px 28px; text-align: center; display: flex; flex-direction: column; }
.team-card__badge { position: absolute; top: -13px; right: 28px; background: var(--dark); color: var(--white); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 14px; border-radius: 4px; }
.team-card__photo { width: 180px; height: 180px; margin: 0 auto 20px; border-radius: var(--radius-lg); overflow: hidden; background: var(--light-2); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--dark-3); color: var(--white); font-family: var(--font-head); font-size: 3rem; font-weight: 700; letter-spacing: 0.02em; }
.team-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.team-card__role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.team-card__bio { text-align: left; font-size: 0.93rem; line-height: 1.7; margin-bottom: 20px; }
.team-card dl { text-align: left; margin-top: auto; border-top: 1px solid var(--border); }
.team-card dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.team-card dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.team-card dt { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); padding-top: 2px; }
.team-card dd { font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.team-card dd span { display: block; color: var(--text-2); }
@media (max-width: 820px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .team-card { padding: 36px 20px 24px; } .team-card dl > div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Case study page ---------- */
.cs-meta { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border-dark); }
.cs-meta dt { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.cs-meta dd { color: var(--white); font-size: 0.95rem; }
.cs-meta a { color: var(--white); text-decoration: underline; text-decoration-color: var(--accent); }
.cs-figure-band { padding: 48px 0 0; }
.cs-section { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
.cs-section__head { display: flex; flex-direction: column; gap: 6px; }
.cs-num { font-family: var(--font-head); font-size: 3.2rem; font-weight: 700; line-height: 1; color: var(--light-2); }
.cs-num--light { color: rgba(255,255,255,0.12); }
.section--light .cs-num { color: var(--border); }
@media (max-width: 860px) { .cs-section { grid-template-columns: 1fr; gap: 12px; } .cs-section__head { flex-direction: row; align-items: baseline; gap: 14px; } .cs-num { font-size: 2.2rem; } }
.cs-section .prose h2:first-child { margin-top: 0; }
.cs-quote { border-left: 3px solid var(--accent); padding: 6px 0 6px 20px; margin: 28px 0; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.5; color: var(--text); }
.cs-subhead { font-size: 1rem; margin: 32px 0 14px; }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.spec-grid > div { background: var(--white); padding: 18px 20px; }
.spec-grid span { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.spec-grid strong { display: block; font-family: var(--font-head); font-size: 1.02rem; color: var(--text); }
.spec-grid em { display: block; font-style: normal; font-size: 0.82rem; color: var(--text-3); margin-top: 2px; }
@media (max-width: 760px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .spec-grid { grid-template-columns: 1fr; } }
.cs-figure { margin: 28px 0 0; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.cs-figure img { width: 100%; height: auto; display: block; }
.cs-figure figcaption { font-size: 0.82rem; color: var(--text-3); padding: 10px 16px; border-top: 1px solid var(--border); background: var(--white); }
.cs-figure--wide { margin-top: 32px; }
.cs-figure--dark { border-color: var(--border-dark); }
.cs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cs-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.cs-split .cs-figure { margin-top: 0; }
@media (max-width: 760px) { .cs-pair, .cs-split { grid-template-columns: 1fr; } }
.tradeoffs { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.tradeoff { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; background: var(--white); }
.tradeoff h3 { font-size: 1rem; margin-bottom: 14px; }
.tradeoff p { font-size: 0.88rem; line-height: 1.6; display: grid; grid-template-columns: 46px 1fr; gap: 10px; margin-top: 10px; }
.tradeoff p span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 4px; text-align: center; padding: 3px 0; height: fit-content; }
.tradeoff__pro span { background: #dcfce7; color: #166534; }
.tradeoff__con span { background: #fee2e2; color: #991b1b; }
@media (max-width: 760px) { .tradeoffs { grid-template-columns: 1fr; } }
.prose--dark p { color: rgba(255,255,255,0.7); }
.prose--dark h2 { color: var(--white); }
.section--dark .section-label { color: var(--accent); }

/* ---------- Blog post ---------- */
.post-container { max-width: 820px; }
.post-header { background: var(--dark); padding: 64px 0 120px; }
.post-header__cat { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.post-header h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 16px; text-wrap: balance; }
.post-header__meta { color: rgba(255,255,255,0.55); font-size: 0.9rem; }
.post-cover { margin: -84px 0 40px; border-radius: var(--radius-lg); overflow: hidden; background: var(--light-2); box-shadow: var(--shadow-md); aspect-ratio: 16/9; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-body { max-width: none; }
.post-body .post-lead { font-size: 1.15rem; color: var(--text); line-height: 1.7; }
.post-body h2 { margin-top: 44px; }
.post-body h3 { margin-top: 30px; }
.post-body h4 { font-size: 1rem; margin: 0 0 10px; }
.post-formula { font-family: var(--font-head); font-size: 1.5rem !important; text-align: center; background: var(--light); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; color: var(--text) !important; }
.post-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0 24px; }
.post-compare > div { background: var(--light); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; min-width: 0; }
.post-compare ul { margin-bottom: 0; }
.post-compare p { font-size: 0.88rem; margin: 12px 0 0; }
.post-compare .table-wrap { background: var(--white); }
@media (max-width: 640px) { .post-compare { grid-template-columns: 1fr; } }
.post-body .table-wrap { margin: 16px 0 24px; }
.post-body .data-table td a, .post-body a { color: var(--accent); }
.post-service { margin: 48px 0 0; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; }
.post-service a { display: block; }
.post-service strong { display: block; font-family: var(--font-head); color: var(--text); font-size: 1.05rem; }
.post-service span:not(.section-label) { font-size: 0.9rem; color: var(--text-2); }
.post-back { margin: 28px 0 72px; }
.post-back a { color: var(--accent); font-weight: 600; }

/* ---------- Icons (Lucide, inlined by the builder) ---------- */
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; vertical-align: middle; }

/* ---------- Mega-menu panels (desktop) ---------- */
.nav > .container { position: relative; }
.nav__item--has-children > a::after { display: inline-block; transition: transform 0.2s; }
@media (min-width: 1001px) {
  .nav__item--panel { position: static; }
  .nav__panel {
    position: absolute; left: 24px; right: 24px; top: calc(100% - 6px);
    min-width: 0; padding: 26px 28px 22px;
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(12,12,15,0.18);
    flex-direction: column; gap: 14px;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
    display: flex !important;
  }
  .nav__item--panel:hover > .nav__panel,
  .nav__item--panel:focus-within > .nav__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__item--has-children:hover > a::after,
  .nav__item--has-children:focus-within > a::after { transform: rotate(180deg); }
  .nav__item--panel::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
  .nav__panel-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
  .nav__panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 18px; }
  .nav__links .nav__panel-item { display: flex; align-items: flex-start; gap: 14px; padding: 12px; border-radius: var(--radius); color: var(--text); background: none; white-space: normal; }
  .nav__links .nav__panel-item:hover, .nav__links .nav__panel-item[aria-current] { background: var(--light); color: var(--text); }
  .nav__panel-icon { width: 42px; height: 42px; border-radius: var(--radius); background: var(--light-2); color: var(--text); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.15s, color 0.15s; }
  .nav__panel-item:hover .nav__panel-icon { background: var(--accent); color: var(--white); }
  .nav__panel-icon--badge { font-family: var(--font-head); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.02em; }
  .nav__panel-text strong { display: block; font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
  .nav__panel-text small { display: block; font-size: 0.8rem; color: var(--text-3); line-height: 1.4; }
}
/* ---------- Mega-menu panels inside the phone menu ---------- */
@media (max-width: 1000px) {
  .nav__panel-title { display: none; }
  .nav__panel-grid { display: flex; flex-direction: column; gap: 2px; width: 100%; }
  .nav__links .nav__panel-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; }
  .nav__panel-icon { width: 30px; height: 30px; border-radius: 6px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--white); }
  .nav__panel-icon .icon { width: 16px; height: 16px; }
  .nav__panel-icon--badge { font-size: 0.6rem; font-weight: 700; }
  .nav__panel-text strong { font-weight: 500; font-size: 0.88rem; color: rgba(255,255,255,0.85); }
  .nav__panel-text small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav__panel { transition: none !important; } }

/* ---------- Help Center ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.help-search { position: relative; max-width: 620px; margin-top: 28px; }
.help-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.help-search input { width: 100%; padding: 16px 18px 16px 48px; border-radius: var(--radius); border: 1px solid var(--border-dark); background: var(--white); font: inherit; font-size: 1rem; color: var(--text); }
.help-search input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.help-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.help-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border-dark); border-radius: 100px; color: rgba(255,255,255,0.8); font-size: 0.85rem; font-weight: 500; }
.help-cats a:hover { border-color: var(--accent); color: var(--white); }
.help-cats .icon { width: 16px; height: 16px; color: var(--accent); }
.help-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.help-group { margin-bottom: 44px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.help-group h2 { display: flex; align-items: center; gap: 12px; font-size: 1.4rem; margin-bottom: 16px; }
.help-group h2 .icon { width: 38px; height: 38px; padding: 9px; border-radius: var(--radius); background: rgba(232,90,26,0.1); color: var(--accent); }
.help-group .faq { max-width: none; }
.help-empty { padding: 20px; background: var(--light); border-radius: var(--radius); margin-bottom: 24px; }
.help-aside { position: sticky; top: calc(var(--nav-h) + 24px); }
.help-contact { background: var(--dark); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.help-contact h2 { color: var(--white); font-size: 1.2rem; }
.help-contact p { color: rgba(255,255,255,0.65); font-size: 0.9rem; }
.help-contact .btn, .help-contact .contact-wa { justify-content: center; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } .help-aside { position: static; } }
.article-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-groups > div { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.article-groups h3 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin-bottom: 14px; }
.article-groups h3 .icon { color: var(--accent); }
.article-list { display: flex; flex-direction: column; }
.article-list a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--text); }
.article-list li:last-child a { border-bottom: none; }
.article-list a:hover { color: var(--accent); }
.article-list a::after { content: ' →'; color: var(--accent); }
@media (max-width: 860px) { .article-groups { grid-template-columns: 1fr; } }

/* ---------- Homepage hero: annotated mechanical part ---------- */
.hero__visual--part { background: none; border: none; aspect-ratio: auto; display: block; position: relative; overflow: visible; }
.part-svg { width: 100%; height: auto; display: block; }
.part-svg .f-top { fill: #ECEDF2; stroke: #1A1A24; stroke-width: 1.1; stroke-linejoin: round; }
.part-svg .f-top-dark { fill: #D5D6DD; stroke: #1A1A24; stroke-width: 0.9; }
.part-svg .f-left { fill: #B9BAC4; stroke: #1A1A24; stroke-width: 1.1; stroke-linejoin: round; }
.part-svg .f-right { fill: #D2D3DA; stroke: #1A1A24; stroke-width: 1.1; stroke-linejoin: round; }
.part-svg .f-cyl { fill: url(#cylGrad); stroke: #1A1A24; stroke-width: 1.1; }
.part-svg .hole { fill: #2A2A34; stroke: #1A1A24; stroke-width: 1; }
.part-svg .bore-wall { fill: #4A4A56; }
.part-svg .bore-edge { fill: none; stroke: #1A1A24; stroke-width: 1; }
.part-svg .edge-soft { fill: none; stroke: rgba(26,26,36,0.25); stroke-width: 0.8; }
.part-svg .dim-ext { stroke: rgba(255,255,255,0.3); stroke-width: 0.8; fill: none; }
.part-svg .dim-line { stroke: var(--accent); stroke-width: 1.3; fill: none; }
.part-svg .dim-arrow, .part-svg .dim-dot { fill: var(--accent); }
.part-svg .dim-text { fill: var(--white); font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.part-svg .draw { stroke-dasharray: 700; stroke-dashoffset: 0; animation: dim-draw 1.6s ease-out both; }
.part-svg .dim:nth-child(2) .draw { animation-delay: 0.15s; } .part-svg .dim:nth-child(3) .draw { animation-delay: 0.3s; }
.part-svg .dim:nth-child(4) .draw { animation-delay: 0.45s; } .part-svg .dim:nth-child(5) .draw { animation-delay: 0.6s; } .part-svg .dim:nth-child(6) .draw { animation-delay: 0.75s; }
.part-svg .dim-text { animation: fade-in 0.6s ease-out 0.9s both; }
@keyframes dim-draw { from { stroke-dashoffset: 700; } to { stroke-dashoffset: 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero-card { position: absolute; display: flex; align-items: center; gap: 12px; background: var(--white); color: var(--text); border-radius: 14px; padding: 12px 16px; box-shadow: 0 16px 40px rgba(0,0,0,0.35); font-size: 0.85rem; animation: card-float 6s ease-in-out infinite; }
.hero-card .icon { color: var(--accent); width: 22px; height: 22px; }
.hero-card strong { display: block; font-size: 0.9rem; }
.hero-card small { display: block; color: var(--text-3); font-size: 0.75rem; margin-top: 2px; }
.hero-card__bar { display: block; width: 110px; height: 6px; border-radius: 3px; background: var(--light-2); margin-top: 6px; overflow: hidden; }
.hero-card__bar span { display: block; height: 100%; width: 100%; background: var(--accent); border-radius: 3px; animation: bar-fill 1.8s ease-out 0.6s both; }
@keyframes bar-fill { from { width: 0; } to { width: 100%; } }
@keyframes card-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.hero-card--a { top: -9%; left: -2%; }
.hero-card--b { top: 13%; right: -4%; animation-delay: -2s; }
.hero-card--c { bottom: 8%; left: 4%; animation-delay: -4s; }
.hero-badge { position: absolute; bottom: 6%; right: 6%; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(232,90,26,0.45); }
.hero-badge .icon { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .hero__visual--part { display: block; margin: 0 -8px; }
  .hero-card { padding: 8px 12px; font-size: 0.75rem; }
  .hero-card strong { font-size: 0.78rem; }
  .hero-card small, .hero-card__bar { display: none; }
  .hero-card--b { right: 0; } .hero-card--a { left: 0; }
  .hero-badge { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { .part-svg .draw, .part-svg .dim-text, .hero-card, .hero-card__bar span { animation: none !important; } }

/* ===== Customer globe (homepage) — see src/js/globe.js and src/static/data/customers.json ===== */
.globe-section { overflow: hidden; }
.globe-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.globe-copy .section-intro { color: rgba(255,255,255,0.62); }
.globe-legend { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.globe-legend li { display: flex; align-items: center; gap: 12px; }
.globe-legend li[hidden] { display: none; }
.globe-legend strong { color: var(--white); font-family: var(--font-head); font-size: 1.1rem; }
.globe-key { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.globe-key--hq { background: var(--accent); box-shadow: 0 0 0 4px rgba(232,90,26,0.25); }
.globe-key--region { background: rgba(232,90,26,0.55); border-radius: 3px; width: 12px; height: 12px; }
.globe-key--cust { background: var(--white); border: 2px solid var(--accent); }
.globe-list { margin-top: 20px; color: rgba(255,255,255,0.55); font-size: 0.85rem; }
.globe-list ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.globe-list li { padding: 4px 10px; border: 1px solid var(--border-dark); border-radius: 999px; color: rgba(255,255,255,0.8); }
.globe-hint { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: rgba(255,255,255,0.4); font-size: 0.8rem; }
.globe-hint .icon { width: 16px; height: 16px; }
.globe { --globe-ocean: #101A26; --globe-land: #26303C; --globe-land-hover: #35424F; --globe-border: rgba(255,255,255,0.32); --globe-coast: rgba(255,255,255,0.5);
  --globe-state: rgba(255,255,255,0.22); --globe-region: rgba(232,90,26,0.5); --globe-region-hover: rgba(232,90,26,0.75); --globe-accent: #E85A1A;
  position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; aspect-ratio: 1 / 1; max-width: 600px; width: 100%; margin: 0 auto; }
.globe::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, rgba(232,90,26,0.18), transparent 65%); filter: blur(30px); pointer-events: none; }
.globe canvas { position: relative; cursor: grab; touch-action: pan-y; opacity: 0; transition: opacity 0.8s ease; }
.globe.is-dragging canvas { cursor: grabbing; }
.globe.is-zoomed canvas { touch-action: none; }
.globe--ready canvas { opacity: 1; }
.globe--failed::after { content: "🌍"; font-size: 6rem; }
.globe__tip { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--white); color: var(--text); font-size: 0.78rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,0.35); }
@media (max-width: 900px) {
  .globe-layout { grid-template-columns: 1fr; gap: 24px; }
  .globe { max-width: 420px; }
}

/* ===== Service workflow network — see src/js/flow.js ===== */
.flow-hint { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,0.45); font-size: 0.85rem; margin: -12px 0 28px; }
.flow-hint .icon { width: 16px; height: 16px; color: var(--accent); }
html:not(.js) .flow-hint { display: none; }
.flow--ready > ol.steps { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.flow { position: relative; }
.flow__stage { position: relative; width: 100%; }
.flow__wires { position: absolute; inset: 0; overflow: visible; pointer-events: none; color: rgba(255,255,255,0.4); }
.flow__wire { fill: none; stroke: rgba(255,255,255,0.16); stroke-width: 1.5; transition: stroke 0.25s, opacity 0.25s; }
.flow__wire--loop { stroke-dasharray: 5 5; stroke: rgba(255,255,255,0.35); }
.flow__loop-label { fill: rgba(255,255,255,0.55); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.flow__pulse { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 7 93; stroke-dashoffset: 100; opacity: 0; }
.flow__stage.is-visible .flow__pulse { opacity: 0.9; animation: flow-run 2.8s linear infinite; }
@keyframes flow-run { to { stroke-dashoffset: 0; } }
.flow__stage.is-focus .flow__wire { opacity: 0.35; }
.flow__stage.is-focus .flow__wire.is-on { opacity: 1; stroke: var(--accent); }
.flow__stage.is-focus .flow__pulse { opacity: 0; }
.flow__stage.is-focus .flow__pulse.is-on { opacity: 1; stroke: #fff; }

.flow__col { position: absolute; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.38); white-space: nowrap; }
.flow__col[data-anchor="center"] { transform: translateX(-50%); }
.flow__col[data-anchor="right"] { transform: translateX(-100%); }

.flow-node { position: absolute; display: flex; align-items: center; gap: 10px; font: inherit; color: var(--white); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; transition: opacity 0.25s; -webkit-tap-highlight-color: transparent; }
.flow-node .icon { width: 20px; height: 20px; }
.flow-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 12px; }
.flow__stage.is-focus .flow-node:not(.is-on) { opacity: 0.35; }

/* inputs and outputs: small cards */
.flow-node--input, .flow-node--output { width: max-content; max-width: 200px; padding: 10px 14px 10px 10px; background: var(--dark-2); border: 1px solid var(--border-dark); border-radius: 12px; font-size: 0.84rem; font-weight: 600; line-height: 1.3; transition: border-color 0.25s, background 0.25s, opacity 0.25s; }
.flow-node__ic { flex: none; display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(232,90,26,0.12); color: var(--accent); }
.flow-node--output { background: var(--white); color: var(--text); border-color: transparent; }
.flow-node--output .flow-node__ic { background: rgba(232,90,26,0.1); }
.flow-node--input.is-current, .flow-node--input:hover { border-color: var(--accent); }
.flow-node--output.is-current { box-shadow: 0 0 0 2px var(--accent); }
.flow-node[data-anchor="left"] { transform: translate(0, -50%); }
.flow-node[data-anchor="right"] { transform: translate(-100%, -50%); }
.flow-node--input[data-anchor="center"], .flow-node--output[data-anchor="center"] { transform: translate(-50%, -50%); }

/* steps and the final product: round nodes with the label underneath */
.flow-node--step, .flow-node--hub { flex-direction: column; gap: 10px; text-align: center; width: 150px; }
.flow-node--step { transform: translate(-50%, -28px); }
.flow-node--hub { transform: translate(-50%, -44px); width: 170px; }
.flow-node__dot { position: relative; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--dark-3); border: 1px solid rgba(255,255,255,0.18); color: var(--white); transition: background 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.flow-node__dot b { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--accent); color: var(--white); font-size: 0.72rem; line-height: 22px; font-family: var(--font-head); }
.flow-node--step:hover .flow-node__dot, .flow-node--step.is-current .flow-node__dot { background: var(--accent); border-color: var(--accent); transform: scale(1.08); box-shadow: 0 0 0 8px rgba(232,90,26,0.15); }
.flow-node__label { font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.flow-node--hub .flow-node__dot { width: 88px; height: 88px; background: var(--accent); border: 0; box-shadow: 0 0 0 10px rgba(232,90,26,0.14), 0 0 0 22px rgba(232,90,26,0.06), 0 12px 40px rgba(232,90,26,0.45); }
.flow-node--hub .flow-node__dot .icon { width: 34px; height: 34px; }
.flow-node--hub .flow-node__label { font-family: var(--font-head); font-size: 1rem; }
.flow__stage.is-visible .flow-node--hub .flow-node__dot { animation: hub-glow 3s ease-in-out infinite; }
@keyframes hub-glow { 50% { box-shadow: 0 0 0 14px rgba(232,90,26,0.18), 0 0 0 30px rgba(232,90,26,0.05), 0 12px 40px rgba(232,90,26,0.5); } }

.flow__card { position: absolute; z-index: 5; background: var(--white); color: var(--text); border-radius: 14px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.45); pointer-events: none; animation: card-in 0.18s ease-out; }
.flow__card strong { display: block; font-family: var(--font-head); font-size: 1rem; margin: 2px 0 4px; }
.flow__card p { margin: 0; color: var(--text-2, #555); font-size: 0.85rem; line-height: 1.5; }
.flow__card-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
@keyframes card-in { from { opacity: 0; transform: translateY(4px); } }

.flow__stage--narrow .flow-node--input, .flow__stage--narrow .flow-node--output { flex-direction: column; text-align: center; gap: 6px; width: 31%; max-width: 160px; padding: 10px 6px; font-size: 0.74rem; }
.flow__stage--narrow .flow-node__ic { width: 30px; height: 30px; }
.flow__stage--narrow .flow-node--step { width: 46%; }
.flow__stage--narrow .flow__col { display: none; }
@media (prefers-reduced-motion: reduce) { .flow__pulse, .flow-node--hub .flow-node__dot { animation: none !important; } .flow__pulse { display: none; } }

/* ===== Services hub (Services overview) — see src/js/hub.js ===== */
.hub-intro { color: rgba(255,255,255,0.62); }
.hub { position: relative; margin-top: 24px; }
.hub-fallback { list-style: none; padding: 0; display: grid; gap: 10px; color: rgba(255,255,255,0.7); }
.hub-fallback a { color: var(--white); font-weight: 600; }
.hub--ready .hub-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hub__stage { position: relative; width: 100%; }
.hub__orbit { fill: none; stroke: rgba(255,255,255,0.07); stroke-dasharray: 2 6; }
.hub__link { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 1.2; transition: stroke 0.25s; }
.hub__link.is-on { stroke: rgba(232,90,26,0.75); stroke-dasharray: 5 5; }
.hub__stage.is-focus .flow__wire.is-on { opacity: 1; stroke: var(--accent); }
.hub__center { position: absolute; transform: translate(-50%, -50%); width: 240px; padding: 20px 10px; border-radius: 50%; background: radial-gradient(closest-side, var(--dark) 70%, rgba(12,12,15,0)); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; pointer-events: none; }
.hub__center .flow-node__dot { width: 96px; height: 96px; background: var(--accent); border: 0; box-shadow: 0 0 0 12px rgba(232,90,26,0.14), 0 0 0 26px rgba(232,90,26,0.06), 0 12px 40px rgba(232,90,26,0.45); margin-bottom: 6px; }
.hub__stage.is-visible .hub__center .flow-node__dot { animation: hub-glow 3s ease-in-out infinite; }
.hub__center .flow-node__dot .icon { width: 38px; height: 38px; }
.hub__center strong { color: var(--white); font-family: var(--font-head); font-size: 1.05rem; }
.hub__center small { color: rgba(255,255,255,0.5); font-size: 0.8rem; line-height: 1.45; }
.hub-node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; width: max-content; max-width: 220px; padding: 10px 16px 10px 10px; background: var(--dark-2); border: 1px solid var(--border-dark); border-radius: 14px; color: var(--white); font-size: 0.9rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: border-color 0.25s, background 0.25s, opacity 0.25s, transform 0.25s; }
.hub-node .icon { width: 20px; height: 20px; }
.hub-node:hover, .hub-node.is-current { border-color: var(--accent); background: var(--dark-3); transform: translate(-50%, -50%) scale(1.04); }
.hub-node.is-on:not(.is-current) { border-color: rgba(232,90,26,0.5); }
.hub-node:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.hub__stage.is-focus .hub-node:not(.is-on) { opacity: 0.35; }
.hub__card { pointer-events: auto; }
.hub__card .hub__combo { margin-top: 8px; font-size: 0.8rem; }
.hub__card .hub__combo span { font-weight: 700; color: var(--text); }
.hub__card a { display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 600; }
.hub__stage--narrow .hub-node { flex-direction: column; text-align: center; gap: 6px; max-width: 104px; padding: 10px 8px; font-size: 0.75rem; }
.hub__stage--narrow .hub__center { width: 112px; padding: 10px 4px; }
.hub__stage--narrow .hub__center strong { font-size: 0.85rem; }
.hub__stage--narrow .hub__center .flow-node__dot { width: 70px; height: 70px; }
.hub__stage--narrow .hub__center small { display: none; }
@media (prefers-reduced-motion: reduce) { .hub__center .flow-node__dot { animation: none !important; } }

/* ===== Material grades, family pages and compatibility table — data in src/data/materials.json ===== */
.grade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.grade-card { display: flex; flex-direction: column; gap: 10px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.grade-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); border-color: rgba(232,90,26,0.4); }
.grade-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.grade-card h3 { font-size: 1.08rem; margin: 0; }
.grade-card p { font-size: 0.88rem; color: var(--text-2); line-height: 1.55; margin: 0; }
.grade-card__best strong { display: block; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.grade-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.grade-tag { flex: none; display: inline-block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: rgba(232,90,26,0.1); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.grade-chip { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--light-2, #eee); color: var(--text-2); white-space: nowrap; }
.grade-chip--hard { background: var(--dark); color: var(--white); }
.grades--dark .section-intro { color: rgba(255,255,255,0.6); }
.grades--dark .section-title { color: var(--white); }
.grades--dark .grade-card { background: var(--dark-2); border-color: var(--border-dark); }
.grades--dark .grade-card h3 { color: var(--white); }
.grades--dark .grade-card p { color: rgba(255,255,255,0.62); }
.grades--dark .grade-card__best strong { color: rgba(255,255,255,0.4); }
.grades--dark .grade-chip { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.75); }
.grades--dark .grade-chip--hard { background: var(--accent); color: var(--white); }
.grades--dark .mrate-list span { color: rgba(255,255,255,0.6); }

.mrate { display: inline-flex; gap: 3px; vertical-align: middle; }
.mrate i { display: block; width: 14px; height: 6px; border-radius: 2px; background: rgba(128,128,128,0.25); }
.mrate i.on { background: var(--accent); }
.mrate-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 6px; }
.mrate-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.8rem; color: var(--text-2); }
.glance-card .mrate-list { margin: 6px 0 14px; gap: 10px; }
.glance-card .mrate-list li { font-size: 0.88rem; }
.glance-card .mrate i { width: 20px; height: 8px; }

.choose-grid .choose-box { padding: 20px 22px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.page-guide .choose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.choose-box h3 { font-size: 0.95rem; margin-bottom: 10px; }
.choose-box ul { margin: 0; padding-left: 18px; font-size: 0.88rem; color: var(--text-2); display: grid; gap: 6px; }
.choose-box--yes { background: rgba(34,160,90,0.06); border-color: rgba(34,160,90,0.25); }
.choose-box--no { background: rgba(232,90,26,0.05); border-color: rgba(232,90,26,0.22); }
@media (max-width: 700px) { .page-guide .choose-grid { grid-template-columns: 1fr; } }
.page-guide .alt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 24px; }

.matrix-wrap { margin-top: 28px; }
.matrix-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px; }
.matrix-table thead th { background: var(--dark); color: var(--white); text-align: left; padding: 12px 14px; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; }
.matrix-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.matrix-table td:nth-child(2), .matrix-table td:nth-child(3), .matrix-table thead th:nth-child(2), .matrix-table thead th:nth-child(3) { text-align: center; width: 64px; }
.matrix-table td .grade-tag { margin-left: 6px; }
.matrix-table .tick { color: #1f9d55; font-weight: 700; }
.matrix-fam th { text-align: left; background: var(--light); padding: 14px; border-top: 2px solid var(--dark); border-bottom: 1px solid var(--border); font-weight: 400; }
.matrix-fam__name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin-right: 10px; color: var(--text); }
.matrix-fam small { color: var(--text-3); font-size: 0.82rem; }
.matrix-rates { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 0.74rem; color: var(--text-3); }
.matrix-rates > span { display: inline-flex; align-items: center; gap: 6px; }
.matrix-link { float: right; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
@media (max-width: 700px) { .matrix-link { float: none; display: block; margin-top: 6px; } }
@media (max-width: 700px) {
  .matrix-table { min-width: 0; font-size: 0.8rem; }
  .matrix-table td, .matrix-table thead th { padding: 9px 8px; }
  .matrix-table td:nth-child(5), .matrix-table thead th:nth-child(5), .matrix-fam small, .matrix-rates { display: none; }
  .matrix-table td:nth-child(2), .matrix-table td:nth-child(3), .matrix-table thead th:nth-child(2), .matrix-table thead th:nth-child(3) { width: 40px; }
  .matrix-table td .grade-tag { display: none; }
  .matrix-table .grade-chip { white-space: normal; font-size: 0.66rem; }
}

/* Globe controls and hint — frosted glass */
.globe__controls { position: absolute; right: 4%; bottom: 6%; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.globe__controls button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background 0.2s, border-color 0.2s; }
.globe__controls button:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.35); }
.globe__controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.globe__hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 16px; border-radius: 10px; background: rgba(11,27,46,0.72); color: #fff; font-size: 0.85rem; font-weight: 500; pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); }
.globe__tip { background: rgba(255,255,255,0.88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.globe canvas.globe__overlay { position: absolute; pointer-events: none; z-index: 1; }

/* ===== WhatsApp button: compact while scrolling, never hides the end of the page ===== */
.wa-btn { transition: transform 0.25s, background 0.2s, padding 0.25s, opacity 0.25s, border-radius 0.25s; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.wa-btn__label { max-width: 200px; overflow: hidden; white-space: nowrap; transition: max-width 0.25s, opacity 0.2s; }
body.wa-compact .wa-btn { padding: 13px; gap: 0; border-radius: 50%; }
body.wa-compact .wa-btn .wa-btn__label { max-width: 0; opacity: 0; }
@media (hover: hover) {
  body.wa-compact .wa-btn:hover, body.wa-compact .wa-btn:focus-visible { padding: 12px 20px 12px 14px; gap: 10px; border-radius: 50px; }
  body.wa-compact .wa-btn:hover .wa-btn__label, body.wa-compact .wa-btn:focus-visible .wa-btn__label { max-width: 200px; opacity: 1; }
}
body.wa-away .wa-btn { transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none; }
.footer { padding-bottom: 96px; }   /* room for the round button at the very end of the page */
@media (max-width: 600px) { .footer { padding-bottom: 88px; } }

/* ===== Detail panel for the workflow and services diagrams (never covers the diagram) ===== */
.flow__panel { display: flex; align-items: flex-start; gap: 16px; margin-top: 20px; min-height: 96px; padding: 18px 22px; border-radius: 16px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: var(--white);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color 0.25s, background 0.25s; }
.flow__panel.is-active { border-color: rgba(232,90,26,0.6); background: rgba(255,255,255,0.09); }
.flow__panel strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--white); margin: 2px 0 4px; }
.flow__panel p { margin: 0; color: rgba(255,255,255,0.78); font-size: 0.9rem; line-height: 1.55; max-width: 760px; }
.flow__panel .flow__card-tag { color: var(--accent); }
.flow__panel-icon { flex: none; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(232,90,26,0.16); color: var(--accent); }
.flow__panel-icon .icon { width: 22px; height: 22px; }
.flow__panel .hub__combo { margin-top: 8px; font-size: 0.82rem; }
.flow__panel .hub__combo span { font-weight: 600; color: var(--white); }
.flow__panel a { display: inline-block; margin-top: 8px; font-size: 0.85rem; font-weight: 600; }
.flow--narrow .flow__panel { position: absolute; left: 0; right: 0; margin: 0; z-index: 6; background: var(--glass-dark); animation: card-in 0.2s ease-out; }
.flow--narrow .flow__panel:not(.is-active) { display: none; }
.hub--narrow .flow__panel { margin-top: 12px; }
.hub:not(.hub--narrow) .hub__panel { display: none; }
.hub__center.is-detail { width: 310px; padding: 22px 20px; pointer-events: auto; border-radius: 20px; background: var(--glass-dark); border: 1px solid rgba(255,255,255,0.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hub__center.is-detail .hub__detail { text-align: center; }
.hub__detail strong { display: block; font-family: var(--font-head); font-size: 1.1rem; color: var(--white); margin: 4px 0 6px; }
.hub__detail p { margin: 0; color: rgba(255,255,255,0.78); font-size: 0.84rem; line-height: 1.5; }
.hub__detail .hub__combo { margin-top: 8px; font-size: 0.78rem; }
.hub__detail .hub__combo span { font-weight: 600; color: var(--white); }
.hub__detail a { display: inline-block; margin-top: 10px; font-size: 0.84rem; font-weight: 600; }

/* ===== Glass (frosted, semi-transparent) surfaces =====
   Colours come from two variables so each palette can tune them.
   Browsers without backdrop-filter simply show the semi-transparent colour.
   Menus inside the header stay solid: a blur inside a blurred header doesn't render reliably. */
:root { --glass-dark: rgba(12,12,15,0.84); --glass-dark-strong: rgba(12,12,15,0.94); --glass-light: rgba(255,255,255,0.86); --glass-menu: rgba(255,255,255,0.97); }
.nav { background: var(--glass-dark); -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); border-bottom-color: rgba(255,255,255,0.08); }
.hero-card { background: var(--glass-light); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.6); }
.flow-node--input, .hub-node { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hub-node:hover, .hub-node.is-current { background: rgba(255,255,255,0.1); }
.flow-node--output { background: rgba(255,255,255,0.92); }
.grades--dark .grade-card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.globe-list li { background: rgba(255,255,255,0.05); }
.toc-bar { background: rgba(237,237,242,0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* ===== Homepage hero wireframe — see src/js/hero-wire.js ===== */
.wire { position: relative; width: 100%; aspect-ratio: 640 / 560; }
.wire__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wire-fallback { display: block; width: 100%; height: 100%; transition: opacity 0.4s; }
.wire--live .wire-fallback { opacity: 0; }
.wire-fallback path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wf-edge { stroke: rgba(222,233,246,0.85); stroke-width: 1.1; }
.wf-wall { stroke: rgba(150,185,220,0.5); stroke-width: 0.7; }
.wf-accent { stroke: #F07A2E; stroke-width: 1.6; }
.hero__visual--part .wire::before { content: ""; position: absolute; inset: 6% 4%; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent); pointer-events: none; }
body:not(.scrolled) .nav { background: var(--dark); }

/* Logo mark next to the IMECA3D wordmark */
.nav__logo, .footer__brand .logo { display: inline-flex; align-items: center; gap: 0; }
.nav__logo-mark, .logo-mark { width: 26px; height: 32px; display: block; margin-right: 10px; }
.footer__vat { opacity: 0.75; margin-left: 10px; font-size: 0.78rem; white-space: nowrap; }
.footer__grid:has(> :nth-child(5)) { grid-template-columns: 1.6fr repeat(4, 1fr); }
@media (max-width: 900px) { .footer__grid:has(> :nth-child(5)) { grid-template-columns: 1fr 1fr; } }
.footer__grid:not(:has(> :nth-child(4))) { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 900px) { .footer__grid:not(:has(> :nth-child(4))) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid:not(:has(> :nth-child(4))) { grid-template-columns: 1fr; } }

/* Travelling dots along the highlighted path (workflow + services diagrams) */
.flow__stage.is-focus .flow__pulse.is-on, .hub__stage.is-focus .flow__pulse.is-on { opacity: 0; }

/* Workflow diagram: fixed-width boxes in the wide layout so the wire lanes stay clear */
.flow__stage--wide .flow-node--input, .flow__stage--wide .flow-node--output { width: 176px; max-width: 176px; }
.flow__stage--wide .flow-node--step { width: 128px; }
.flow__stage--wide .flow-node--step .flow-node__label { font-size: 0.82rem; }
.flow__stage.is-focus .flow__wire.is-on { stroke-width: 2.4; }

/* Wide workflow: upper-row steps carry their name above the circle (set by flow.js) */
.flow__stage--wide .flow-node--step.flow-node--up { flex-direction: column-reverse; gap: 14px; transform: translate(-50%, calc(-100% + 28px)); }

/* Menu panels stay open while the mouse travels to them (class set by main.js after a short delay),
   and an invisible strip above each panel bridges the gap under the menu bar */
@media (min-width: 1001px) {
  .nav__item--panel.is-open > .nav__panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__item--has-children.is-open > .nav__dropdown { display: flex; }
  .nav__item--has-children.is-open > a::after { transform: rotate(180deg); }
  .nav__panel::before, .nav__lang .nav__dropdown::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 32px; }
}

/* ===== Google reviews (built from src/data/reviews.json) ===== */
.reviews-band:empty { display: none; }
.reviews-band { padding-top: 8px; padding-bottom: 72px; }
.reviews { background: var(--glow-light, none), var(--light); }
.reviews__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: 32px; }
.reviews__head .section-title { margin-bottom: 0; }
.reviews__summary { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--text-2); font-size: 0.95rem; }
.reviews__summary strong { font-family: var(--font-head); font-size: 2rem; line-height: 1; color: var(--text); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.reviews__grid--1 { grid-template-columns: minmax(0, 720px); }
.reviews__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review { position: relative; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 26px 26px 22px; border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,0.92), rgba(255,255,255,0.7)); border: 1px solid #fff;
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px rgba(20,36,58,0.08); }
.review::before { content: "\201C"; position: absolute; top: 6px; right: 20px; font-family: Georgia, serif; font-size: 4.5rem; line-height: 1; color: rgba(194,65,12,0.14); }
.review__stars { display: inline-flex; gap: 2px; }
.review__stars i { display: inline-flex; width: 18px; height: 18px; color: #D9DEE5; }
.review__stars i.on { color: #C2410C; }
.review__stars svg { width: 100%; height: 100%; fill: currentColor; }
.review__text { margin: 0; flex: 1; color: var(--text); font-size: 0.98rem; line-height: 1.6; }
.review__text p { margin: 0 0 10px; }
.review__text p:last-child { margin-bottom: 0; }
.review__by { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--border); }
.review__by > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review__by strong { color: var(--text); font-size: 0.95rem; }
.review__by small { color: var(--text-3); font-size: 0.82rem; }
.review__by small a { color: var(--text-3); text-decoration: underline; text-underline-offset: 2px; }
.review__by small a:hover { color: var(--accent); }
.review__avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--dark); color: #fff; font-family: var(--font-head); font-weight: 600; }
.review__orig { color: var(--text-3); font-size: 0.78rem; font-style: italic; }
.reviews__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.reviews__note { flex-basis: 100%; margin: 0; color: var(--text-3); font-size: 0.84rem; }
/* compact block: quote-page sidebar and service pages */
.reviews--compact { background: none; margin: 28px 0; }
.reviews--compact .reviews__compact-title { margin-bottom: 14px; font-size: 1.05rem; }
.reviews--compact .reviews__summary { margin-bottom: 14px; }
.reviews--compact .reviews__summary strong { font-size: 1.4rem; }
.contact__grid .reviews--compact .reviews__grid { grid-template-columns: 1fr; gap: 14px; }
.contact__grid .reviews--compact .review { padding: 20px; }
.contact__grid .reviews--compact .review::before { font-size: 3.5rem; }
.reviews-band .reviews--compact .reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reviews-band .reviews--compact .reviews__grid:has(> .review:only-child) { grid-template-columns: minmax(0, 720px); }
@media (max-width: 900px) {
  .reviews__grid, .reviews__grid--2, .reviews-band .reviews--compact .reviews__grid { grid-template-columns: 1fr; }
}

/* ===== Quote form: attachment list + preview window (quote-files.js) ===== */
.form-file.is-over { border-color: var(--accent); background: rgba(194,65,12,0.04); }
.qf-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.qf-list[hidden], .qf-total[hidden] { display: none; }
.qf-item { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.qf-ext { flex: none; min-width: 42px; padding: 4px 6px; border-radius: 6px; background: var(--dark); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-align: center; }
.qf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; font-weight: 600; color: var(--text); }
.qf-size { flex: none; font-size: 0.8rem; color: var(--text-3); }
.qf-preview { flex: none; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.qf-preview:hover, .qf-preview:focus-visible { border-color: var(--accent); color: var(--accent); }
.qf-remove { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font-size: 1.35rem; line-height: 1; cursor: pointer; }
.qf-remove:hover, .qf-remove:focus-visible { background: var(--light); color: #B91C1C; }
.qf-warn { color: #9A3412; font-weight: 500; }
.form-privacy { margin-top: 12px; font-size: 0.8rem; line-height: 1.5; color: var(--text-3); text-align: center; }
.form-privacy a { color: inherit; text-decoration: underline; }
.qf-total { display: flex; flex-direction: column; gap: 4px; margin: 8px 2px 0; font-size: 0.82rem; color: var(--text-3); }
@media (max-width: 480px) {
  .qf-item { flex-wrap: wrap; }
  .qf-item .qf-name { flex-basis: calc(100% - 100px); }
  .qf-item .qf-size { order: 3; margin-left: 52px; }
  .qf-item .qf-preview { order: 4; margin-left: auto; }
  .qf-item .qf-remove { order: 2; }
}
/* preview window */
html.qf-lock { overflow: hidden; }
.qf-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.qf-modal[hidden] { display: none; }
.qf-modal__backdrop { position: absolute; inset: 0; background: rgba(6,14,26,0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.qf-modal__box { position: relative; display: flex; flex-direction: column; width: min(860px, 100%); max-height: calc(100vh - 48px); border-radius: 16px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,0.4); overflow: hidden; outline: none; }
.qf-modal__head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-bottom: 1px solid var(--border); background: var(--light); }
.qf-modal__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 0.95rem; }
.qf-modal__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.qf-modal__close:hover, .qf-modal__close:focus-visible { background: #fff; color: var(--accent); }
.qf-modal__body { position: relative; flex: 1 1 auto; min-height: 0; background: linear-gradient(180deg, #F7F9FB, #EAEFF5); overflow: auto; }
.qf-stage { width: 100%; height: min(56vh, 480px); touch-action: none; cursor: grab; }
.qf-stage:active { cursor: grabbing; }
.qf-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.qf-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--border); background: #fff; font-size: 0.8rem; color: var(--text-3); }
.qf-reset { border: 1px solid var(--border); border-radius: 8px; background: #fff; padding: 5px 10px; font-size: 0.8rem; font-weight: 600; color: var(--text-2); cursor: pointer; }
.qf-reset:hover { border-color: var(--accent); color: var(--accent); }
.qf-img { display: block; max-width: 100%; max-height: 62vh; margin: 0 auto; object-fit: contain; }
.qf-pdf { display: block; width: 100%; height: 62vh; border: 0; background: #fff; }
.qf-center { display: flex; justify-content: center; padding: 40px 16px; }
.qf-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 240px; padding: 24px; color: var(--text-2); font-size: 0.92rem; text-align: center; }
.qf-spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--light-2); border-top-color: var(--accent); animation: qf-spin 0.8s linear infinite; }
@keyframes qf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .qf-spin { animation-duration: 2.4s; } }
.qf-modal__info { padding: 0 16px; }
.qf-modal__info:empty { display: none; }
.qf-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 12px 0 8px; }
.qf-facts dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.qf-facts dd { margin: 2px 0 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.qf-fit { position: relative; margin: 0 0 8px; padding: 8px 10px 8px 32px; border-radius: 8px; font-size: 0.86rem; }
.qf-fit::before { position: absolute; left: 11px; top: 8px; font-weight: 700; }
.qf-fit--ok { background: #ECFDF3; color: #14532D; }
.qf-fit--ok::before { content: "✓"; color: #15803D; }
.qf-fit--warn { background: #FFF7ED; color: #7C2D12; }
.qf-fit--warn::before { content: "!"; color: #C2410C; }
.qf-note { margin: 10px 0; font-size: 0.84rem; color: var(--text-3); }
.qf-modal__body > .qf-note { margin: 0; padding: 36px 20px; text-align: center; color: var(--text-2); }
.qf-note--warn { color: #7C2D12 !important; }
.qf-note a { color: var(--accent); }
.qf-modal__privacy { margin: 0; padding: 8px 16px 14px; font-size: 0.78rem; color: var(--text-3); }
@media (max-width: 640px) {   /* phones: the window slides up from the bottom as a sheet */
  .qf-modal { padding: 0; align-items: flex-end; }
  .qf-modal__box { width: 100%; max-height: 94vh; border-radius: 16px 16px 0 0; }
  .qf-modal__body { flex: 0 1 auto; }
  .qf-stage { height: 50vh; }
}

/* ===== Cookie consent banner (consent.js) ===== */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; display: flex; justify-content: center; pointer-events: none; }
.consent[hidden] { display: none; }
.consent__box { position: relative; pointer-events: auto; width: min(760px, 100%); padding: 20px 22px 18px; border-radius: 16px;
  background: rgba(11,27,46,0.96); color: #DCE3EB; border: 1px solid rgba(255,255,255,0.14); box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.consent__title { display: block; margin: 0 32px 6px 0; color: #fff; font-family: var(--font-head); font-size: 1.05rem; }
.consent__text { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.55; color: #C5D0DC; }
.consent__text a { color: #F7A06B; text-decoration: underline; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent__btn { flex: 1 1 180px; padding: 11px 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.4); background: #fff; color: #0B1B2E;
  font-weight: 600; font-size: 0.95rem; cursor: pointer; }   /* both buttons look the same: no nudging towards Accept */
.consent__btn:hover, .consent__btn:focus-visible { background: #F3F6F9; outline: 2px solid #F07A2E; outline-offset: 2px; }
.consent__close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #C5D0DC; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.consent__close:hover, .consent__close:focus-visible { background: rgba(255,255,255,0.1); color: #fff; }
body.consent-open .wa-btn { opacity: 0; pointer-events: none; }   /* WhatsApp button steps aside while the banner is open */
.footer__cookies { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer__cookies:hover { color: #fff; }

/* ===== Header cart icon (shop) — markup from build.py cart_link(), count from main.js =====
   On shop pages it is always shown; on other pages only once the cart has items. */
.nav__cart { position: relative; order: 3; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: 10px; border-radius: var(--radius); color: rgba(255,255,255,0.8); transition: background 0.15s, color 0.15s; }
.nav__cart:hover, .nav__cart:focus-visible { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__cart .icon { width: 21px; height: 21px; }
.nav__cart--auto { display: none; }
.nav__cart--auto.is-visible { display: inline-flex; }
.nav__cart-count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #C2410C; color: #FFFFFF; font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center; }
.nav__cart-count[hidden] { display: none; }
@media (max-width: 1000px) {
  .nav__cart { order: 1; margin-left: auto; margin-right: 10px; }
  .nav__toggle { order: 2; }
}
/* Narrow desktops (1001–1200 px): slightly tighter menu so all links, the language selector,
   "Get a Quote" and the cart icon stay on one line */
@media (min-width: 1001px) and (max-width: 1200px) {
  .nav__links { gap: 0; }
  .nav__links a { padding: 8px 9px; font-size: 0.86rem; }
  .nav__cta { margin-left: 6px; padding: 10px 14px; }
  .nav__cart { margin-left: 4px; }
}

/* ===== Quote form: phone number with country code (phone-country.js) ===== */
.phone-field { display: flex; gap: 8px; }
.phone-field input { flex: 1 1 auto; min-width: 0; }
.phone-code { position: relative; flex: 0 0 auto; }
.phone-code__native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }   /* real form field, hidden behind the picker */
.phone-code__btn { position: relative; height: 100%; min-height: 46px; min-width: 96px; padding: 0 32px 0 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; color: var(--text); font: inherit; font-size: 0.95rem; font-weight: 600; white-space: nowrap; cursor: pointer; text-align: left; }
.phone-code__btn::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid var(--text-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform 0.15s; }
.phone-code.is-open .phone-code__btn::after { transform: rotate(-135deg); margin-top: -2px; }
.phone-code__iso { color: var(--text-3); font-weight: 600; margin-right: 2px; }
.phone-code__btn:hover, .phone-code.is-open .phone-code__btn { border-color: var(--accent); }
.phone-code__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cc-pop { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; width: 320px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 18px 44px rgba(11,27,46,0.18); overflow: hidden; }
.cc-pop[hidden] { display: none; }
.cc-search { display: block; width: 100%; margin: 0; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; font: inherit; font-size: 0.95rem; color: var(--text); background: var(--light); }
.cc-search:focus { outline: none; background: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.cc-list { list-style: none; margin: 0; padding: 6px 0; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; }
.cc-group { padding: 10px 14px 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.cc-opt { display: grid; grid-template-columns: 58px 1fr; align-items: baseline; column-gap: 8px; padding: 8px 14px; cursor: pointer; font-size: 0.92rem; color: var(--text); }
.cc-dial { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
.cc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-opt:hover, .cc-opt.is-active { background: var(--light); }
.cc-opt[aria-selected="true"] { color: var(--accent); }
.cc-opt[aria-selected="true"] .cc-dial { color: var(--accent); }
.cc-none { padding: 14px; color: var(--text-3); font-size: 0.9rem; }
@media (max-width: 480px) { .cc-pop { width: calc(100vw - 32px); } .cc-list { max-height: 260px; } }

/* ============================================================
   Logo intro ("from far away to the surface")
   Shown only when <html> has the class "intro" (set in head.html: once per visit, never for
   reduced-motion users or search engines). The page loads underneath at the same time.
   Pure CSS: it removes itself after ~1.7 s even if JavaScript fails. main.js lets visitors skip it.
   ============================================================ */
.intro-screen { display: none; }
html.intro .intro-screen {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(900px circle at 50% 45%, #15304F 0%, #0B1B2E 65%);
  perspective: 900px; overflow: hidden;
  animation: intro-out .5s cubic-bezier(.4, 0, .2, 1) 1.2s forwards;
}
html.intro .intro-screen::before {          /* faint blueprint grid, like the hero */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/40px 40px,
              linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0/40px 40px;
}
html.intro .intro-screen__logo {
  width: clamp(96px, 16vmin, 150px); aspect-ratio: 740 / 912; position: relative;
  background: url(/logo-mark.svg) center / contain no-repeat;
  transform-origin: 50% 60%;
  animation: intro-in 1.05s cubic-bezier(.16, 1, .3, 1) both;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45));
}
html.intro .intro-screen__ring {             /* soft orange ring when the logo "lands" */
  position: absolute; width: clamp(120px, 20vmin, 190px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgba(240, 122, 46, .8); box-shadow: 0 0 40px rgba(240, 122, 46, .35);
  opacity: 0; animation: intro-ring .9s cubic-bezier(.2, .7, .2, 1) .78s forwards;
}
html.intro .intro-screen.is-skipped { animation: intro-out .25s ease forwards; }
@keyframes intro-in {
  0%   { opacity: 0; transform: translate3d(0, -6vh, -1400px) rotateX(38deg) rotateZ(-8deg) scale(.6); filter: blur(14px); }
  35%  { opacity: 1; }
  80%  { transform: translate3d(0, 0, 40px) rotateX(-4deg) rotateZ(0) scale(1.03); filter: blur(0); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) rotateX(0) rotateZ(0) scale(1); filter: blur(0) drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
}
@keyframes intro-ring {
  0%   { opacity: .9; transform: scale(.55); }
  100% { opacity: 0; transform: scale(2.6); }
}
@keyframes intro-out {
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) { .intro-screen { display: none !important; } }

/* Project videos: turntable on a project page (.cs-video) and rotation on hover in a project card */
.cs-video { max-width: 760px; margin-left: auto; margin-right: auto; }
.cs-video video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #EEF0F3; }
.cs-note { font-size: .85rem; color: var(--text-3); border-left: 3px solid var(--border); padding-left: 12px; }
.project-card__img[data-hover-video] { position: relative; }
.project-card__img .hover-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; pointer-events: none; }
.project-card__img.is-playing .hover-video { opacity: 1; }
.project-card__img.is-playing img { transform: none !important; }

/* Case study photo strip for tall (1:2 portrait) photos, e.g. the monitor arm extension.
   Five photos side by side on a computer; on phones and tablets they scroll sideways. */
.cs-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cs-strip .cs-figure { margin: 0; display: flex; flex-direction: column; }
.cs-strip .cs-figure img { aspect-ratio: 1 / 2; object-fit: cover; }
.cs-strip .cs-figure figcaption { flex: 1; }
@media (max-width: 860px) {
  .cs-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto;
    scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .cs-strip .cs-figure { scroll-snap-align: start; }
}

/* ===== Site search (src/js/search.js): header button + search window ===== */
.nav__search { order: 3; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-left: 10px;
  border: 0; border-radius: var(--radius); background: none; color: rgba(255,255,255,0.8); cursor: pointer; transition: background .15s, color .15s; }
.nav__search:hover, .nav__search:focus-visible { color: var(--white); background: rgba(255,255,255,0.08); }
.nav__search .icon { width: 20px; height: 20px; }
@media (max-width: 1000px) {
  .nav__search { order: 1; margin-left: auto; margin-right: 4px; }
  .nav__search ~ .nav__cart { margin-left: 0; }
}
.search[hidden] { display: none; }
.search { position: fixed; inset: 0; z-index: 3000; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search__backdrop { position: absolute; inset: 0; background: rgba(11,27,46,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.search__panel { position: relative; width: min(680px, 100%); max-height: 78vh; display: flex; flex-direction: column; background: #fff;
  border-radius: 16px; box-shadow: 0 30px 80px rgba(11,27,46,0.35); overflow: hidden; }
.search__bar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.search__ic { display: inline-flex; color: var(--text-3); }
.search__ic .icon { width: 20px; height: 20px; }
.search__input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 1.05rem; color: var(--text); background: none; padding: 6px 0; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__close { border: 1px solid var(--border); background: var(--light); color: var(--text-3); border-radius: 6px; padding: 3px 8px; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.search__status { margin: 0; padding: 10px 18px 4px; font-size: 0.82rem; color: var(--text-3); }
.search__list { list-style: none; margin: 0; padding: 6px 8px 10px; overflow-y: auto; }
.search__item { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search__item strong { font-size: 0.98rem; font-weight: 600; }
.search__item small { grid-column: 2; font-size: 0.84rem; color: var(--text-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search__item.is-active, .search__item:hover { background: var(--light); }
.search__item mark { background: rgba(240,122,46,0.22); color: inherit; border-radius: 2px; padding: 0 1px; }
.search__item--ask { grid-template-columns: 1fr; color: var(--accent); }
.search__tag { grid-row: span 2; align-self: start; margin-top: 2px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px; background: var(--light-2); color: var(--text-2); white-space: nowrap; }
.search__tag--svc { background: rgba(194,65,12,0.1); color: #9A3412; }
.search__tag--mat { background: rgba(47,111,237,0.1); color: #1E4FB8; }
.search__tag--tool { background: rgba(15,122,64,0.1); color: #0F6B3A; }
body.search-open { overflow: hidden; }
@media (max-width: 600px) { .search { padding: 8px; } .search__panel { max-height: 92vh; } .search__tag { display: none; } .search__item { grid-template-columns: 1fr; } .search__item small { grid-column: 1; } }
.form-hint { margin: 6px 0 0; font-size: 0.86rem; color: var(--text-3); }
.form-hint a { color: var(--accent); font-weight: 600; }

/* ---------- Announcement bar (text set in site.json "announcement") ---------- */
.announce { background: linear-gradient(90deg, #9A3412, #C2410C 55%, #9A3412); color: #fff; font-size: 0.9rem; position: relative; z-index: 101; }
.announce__inner { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.announce p { margin: 0; text-align: center; line-height: 1.4; color: #fff; }
.announce__tag { display: inline-block; margin-right: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,0.18); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 1px; }
.announce__link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.announce__link:hover { color: #FFE4D2; }
.announce__close { flex: none; width: 30px; height: 30px; margin-right: -6px; border: 0; border-radius: 8px; background: transparent; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.announce__close:hover { background: rgba(255,255,255,0.16); }
.announce__close:focus-visible, .announce__link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 640px) {
  .announce { font-size: 0.84rem; }
  .announce__inner { justify-content: space-between; }
  .announce p { text-align: left; }
  .announce__tag { display: none; }
}

/* Contact page: phone numbers (set in site.json phone_en_* / phone_it_*) */
.contact-phone { margin: 10px 0 0; }
.contact-phone p { margin: 0; }
.contact-phone__who strong { color: var(--text); }
.contact-phone__lang { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--light-2); font-size: 0.74rem; font-weight: 600; color: var(--text-2); }
.contact-phone__links a { font-weight: 600; color: var(--accent); white-space: nowrap; }
.contact-phone__hours { margin: 12px 0 14px; font-size: 0.88rem; color: var(--text-3); }

/* Homepage project cards (built from src/data/projects.json): whole card is a link when the project has a page */
.portfolio-item--link { display: block; color: inherit; text-decoration: none; }
.portfolio-item--link:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.portfolio-item__info .project-card__tag { margin-bottom: 8px; }
.portfolio-item__more { display: inline-block; margin-top: 10px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.portfolio-item--link:hover .portfolio-item__more { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .portfolio__grid { grid-template-columns: 1fr; } }
/* Project cards: 'fit': 'contain' in projects.json = whole CAD render visible, with a margin */
.portfolio-item__img.is-contain img, .project-card__img.is-contain img { object-fit: contain; padding: 14px; box-sizing: border-box; }

/* ---------- Homepage project carousel (one sliding row; script in main.js "Project carousel") ---------- */
.pcar { position: relative; }
.pcar__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 16px; margin: -6px -2px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.pcar__track::-webkit-scrollbar { display: none; }
.pcar__track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-lg); }
.pcar__track > .portfolio-item { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; }
.pcar__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.pcar__track.is-dragging .portfolio-item { pointer-events: none; }
.pcar__track img { -webkit-user-drag: none; user-select: none; }
.pcar__btn { position: absolute; top: calc(6px + (100% - 22px) * 0.3); z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: #fff; color: var(--text);
  box-shadow: var(--shadow-md); cursor: pointer; transition: opacity .2s, transform .2s, background .2s; }
.pcar__btn:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
.pcar__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pcar__btn:disabled { opacity: 0; pointer-events: none; }
.pcar__btn svg { width: 20px; height: 20px; }
.pcar__btn--prev { left: -23px; }
.pcar__btn--prev svg { transform: rotate(180deg); }
.pcar__btn--next { right: -23px; }
.pcar--static .pcar__btn { display: none; }
@media (max-width: 1240px) { .pcar__btn--prev { left: 6px; } .pcar__btn--next { right: 6px; } }
@media (max-width: 900px) { .pcar__track > .portfolio-item { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) {
  .pcar__track { gap: 14px; }
  .pcar__track > .portfolio-item { flex-basis: 84%; }
  .pcar__btn { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .pcar__track { scroll-behavior: auto; } }
