/* HF Specialist — modern site styles */
:root {
  --ink: #0f1c24;
  --ink-2: #33464f;
  --muted: #5d6f78;
  --line: #e3e7ea;
  --bg: #ffffff;
  --bg-soft: #f5f3ef;
  --bg-dark: #0f1c24;
  --slate: #617d8b;
  --slate-dark: #3f5662;
  --orange: #f3946a;
  --orange-strong: #d9643a;
  --orange-soft: #fdeee6;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 28, 36, .06), 0 8px 24px rgba(15, 28, 36, .06);
  --shadow-lg: 0 20px 50px rgba(15, 28, 36, .14);
  --max: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15, 28, 36, .05); }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); transition: color .2s; }
.brand svg { height: 40px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: var(--ink-2); font-weight: 500; font-size: .95rem;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { text-decoration: none; }
.nav a:not(.btn):hover { background: var(--bg-soft); color: var(--ink); }
.nav a:not(.btn)[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.nav .btn { margin-left: 10px; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  font-family: inherit; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
/* White text on these oranges: 4.6:1 normal, 6.2:1 on hover (WCAG AA) */
.btn-primary { background: #c4522a; color: #fff !important; box-shadow: 0 6px 18px rgba(196, 82, 42, .28); }
.btn-primary:hover, .btn-primary:focus-visible, .btn-primary[aria-current="page"] { background: #a8401b; box-shadow: 0 8px 22px rgba(168, 64, 27, .35); }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--ink) !important; }
.btn-outline-light { color: #fff !important; border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  min-height: min(88vh, 820px); display: flex; align-items: flex-end;
  margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
  background: var(--bg-dark);
}
.hero-bg { position: absolute; inset: 0; background: url("../images/hero-control-room.jpg") center 55%/cover no-repeat; transform: scale(1.04); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* Bright photo: darken the top (header) and left (text) for readable white text */
  background:
    linear-gradient(90deg, rgba(15, 28, 36, .72) 0%, rgba(15, 28, 36, .35) 55%, rgba(15, 28, 36, .1) 100%),
    linear-gradient(180deg, rgba(15, 28, 36, .6) 0%, rgba(15, 28, 36, .3) 30%, rgba(15, 28, 36, .5) 60%, rgba(15, 28, 36, .94) 100%);
}
.hero .container { position: relative; z-index: 1; padding: 120px 0 88px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: rgba(255, 255, 255, .85); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-strong); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.hero .eyebrow, .dark .eyebrow, .page-hero .eyebrow { color: var(--orange); }
.hero-quote {
  margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex; gap: 18px; align-items: flex-start; max-width: 720px; color: rgba(255, 255, 255, .8);
}
.hero-quote blockquote { margin: 0; font-size: 1.05rem; font-style: italic; }
.hero-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: .9rem; color: rgba(255, 255, 255, .6); }
.hero-quote svg { flex: none; width: 28px; color: var(--orange); }

/* Page hero (inner pages) */
.page-hero {
  position: relative; color: #fff; background: var(--bg-dark); overflow: hidden;
  margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 88px) 0 80px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1000px 400px at 85% 0%, rgba(243, 148, 106, .28), transparent 60%),
              radial-gradient(800px 400px at 0% 100%, rgba(97, 125, 139, .45), transparent 60%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
.page-hero p { color: rgba(255, 255, 255, .78); font-size: 1.15rem; max-width: 62ch; margin: 0; }

/* Over-hero header style */
.on-dark .site-header:not(.scrolled) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.on-dark .site-header:not(.scrolled) .brand { color: #fff; }
.on-dark .site-header:not(.scrolled) .nav a:not(.btn) { color: rgba(255, 255, 255, .85); }
.on-dark .site-header:not(.scrolled) .nav a:not(.btn):hover,
.on-dark .site-header:not(.scrolled) .nav a:not(.btn)[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
.soft { background: var(--bg-soft); }
.dark { background: var(--bg-dark); color: rgba(255, 255, 255, .78); }
.dark h2, .dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.dark .section-head p { color: rgba(255, 255, 255, .7); }
.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.split-head .section-head { margin-bottom: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
a.card { color: inherit; }
a.card:hover, .card.hoverable:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
a.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-body .more { margin-top: auto; font-weight: 600; color: var(--orange-strong); display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.card-body .more::after { content: "→"; transition: transform .2s; }
a.card:hover .more::after { transform: translateX(4px); }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--slate-dark); background: #eaf0f3; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; align-self: flex-start;
}
.num {
  font-size: .85rem; font-weight: 700; color: var(--orange-strong);
  font-variant-numeric: tabular-nums; margin-bottom: 10px; display: block;
}

/* Icon feature */
.feature { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--orange-soft); color: var(--orange-strong); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.dark .feature { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); }
.dark .feature p { color: rgba(255, 255, 255, .7); }
.dark .icon { background: rgba(243, 148, 106, .14); color: var(--orange); }

/* Stats / standards strip */
.strip { padding: 40px 0; border-bottom: 1px solid var(--line); }
.strip .container { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
.strip-label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.standards { display: flex; gap: 12px; flex-wrap: wrap; }
.standards span {
  font-weight: 600; font-size: .9rem; color: var(--ink); padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
}

/* Split media/text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.single { grid-template-columns: 1fr; max-width: 820px; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media.contain { background: #fff; padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.split-media.contain img { object-fit: contain; }
.inline-media { margin: 4px 0 24px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.inline-media img { display: block; width: 100%; height: auto; }

/* Lists */
.checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9643a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.2em; display: grid; gap: 10px; }
.steps li {
  counter-increment: s; display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 500; color: var(--ink);
}
.steps li::before {
  content: counter(s, decimal-leading-zero); font-size: .8rem; font-weight: 700; color: var(--orange-strong);
  background: var(--orange-soft); border-radius: 8px; padding: 4px 8px; font-variant-numeric: tabular-nums;
}

/* Pull quote */
.pull {
  margin: 0 0 28px; padding: 22px 26px; border-left: 3px solid var(--orange); background: var(--orange-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1.1rem; font-weight: 500; color: var(--ink); font-style: italic;
}

/* Big quote band */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 900px; font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; color: #fff; font-weight: 600; letter-spacing: -0.02em; }
.quote-band cite { display: block; margin-top: 20px; font-style: normal; color: var(--orange); font-weight: 500; font-size: 1rem; letter-spacing: 0; }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 16px; align-items: center; }
.logos div {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); aspect-ratio: 4 / 3;
  display: grid; place-items: center; padding: 14px;
}
.logos img { max-height: 64px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logos div:hover img { filter: none; opacity: 1; }

/* Service sub-nav */
.subnav {
  position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.subnav .container { display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a {
  white-space: nowrap; padding: 8px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 500; font-size: .92rem; border: 1px solid var(--line);
}
.subnav a:hover, .subnav a.active { background: var(--ink); color: #fff; border-color: var(--ink); text-decoration: none; }
.service + .service { border-top: 1px solid var(--line); }
.service.soft + .service, .service + .service.soft { border-top: 0; }

/* Accordion */
.accordion { display: grid; gap: 10px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); transition: box-shadow .2s; }
.accordion details[open] { box-shadow: var(--shadow); }
.accordion summary {
  cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; color: var(--ink); position: relative;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary small { display: block; font-weight: 600; color: var(--orange-strong); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }
.accordion summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--muted); transition: transform .2s;
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details > div { padding: 0 22px 20px; color: var(--muted); font-size: .98rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; padding: 34px 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.plan.featured { background: var(--bg-dark); color: rgba(255, 255, 255, .8); border-color: var(--bg-dark); box-shadow: var(--shadow-lg); }
.plan.featured h3, .plan.featured .hours { color: #fff; }
.plan .badge {
  position: absolute; top: 20px; right: 20px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--orange); color: var(--ink); padding: 5px 10px; border-radius: 999px;
}
.plan h3 { font-size: 1.1rem; margin-bottom: 4px; }
.plan .hours { font-size: 3rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; line-height: 1; margin: 18px 0 6px; }
.plan .hours small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan.featured .hours small { color: rgba(255, 255, 255, .6); }
.plan .desc { font-size: .95rem; color: var(--muted); min-height: 3.2em; }
.plan.featured .desc { color: rgba(255, 255, 255, .7); }
.plan .checks { margin: 22px 0 28px; font-size: .95rem; }
.plan.featured .checks li::before { background-color: rgba(243, 148, 106, .18); }
.plan .btn { margin-top: auto; justify-content: center; }

/* Tabs (plan details) */
.plan-details { margin-top: 48px; }

/* CTA */
.cta {
  border-radius: 24px; padding: 64px; background: var(--bg-dark); color: rgba(255, 255, 255, .78); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 100% 0%, rgba(243, 148, 106, .35), transparent 60%);
}
.cta > * { position: relative; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { margin: 0; font-size: 1.1rem; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field label .req { color: var(--orange-strong); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 15px; border: 1px solid #d3dade; border-radius: var(--radius-sm); background: #fbfcfc;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--orange-strong); background: #fff; box-shadow: 0 0 0 4px rgba(217, 100, 58, .14);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #c0392b; }
.field .hint { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; font-size: .95rem; }
.form-alert.error { background: #fdecea; color: #8e2a1f; }
.form-alert.success { background: #e7f6ee; color: #1d6b43; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.contact-list { display: grid; gap: 14px; margin-top: 28px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact-item .icon { margin: 0; flex: none; }
.contact-item strong { display: block; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--ink-2); font-size: 1.05rem; }
.map { border-radius: var(--radius); overflow: hidden; height: 420px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3); }
/* Responsive 16:9 YouTube embed */
.video { margin: 28px 0 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: var(--shadow-lg); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame { display: block; color: #fff; }
.video-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; opacity: .9; }
.video-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: #c4522a; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .2s, background .2s; }
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-frame:hover img { transform: scale(1.03); opacity: 1; }
.video-frame:hover .video-play, .video-frame:focus-visible .video-play { transform: scale(1.08); background: #a8401b; }
.video figcaption { margin-top: 12px; font-size: .9rem; color: var(--muted); }
/* R&D: research projects with video */
.rd-project {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 48px; box-shadow: var(--shadow);
}
.rd-project + .rd-project { margin-top: 32px; }
.rd-project.reverse .rd-text { order: 2; }
.rd-text h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.025em; }
.rd-text p { color: var(--muted); }
.rd-badge {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 16px;
  background: linear-gradient(135deg, var(--slate-dark), var(--bg-dark)); color: var(--orange);
  font-weight: 800; font-size: .95rem; letter-spacing: -0.01em; box-shadow: 0 8px 20px rgba(15, 28, 36, .18);
}
.rd-text .tag { display: table; }
.rd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 28px; padding: 20px 0 0; border-top: 1px solid var(--line); }
.rd-facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.rd-facts dd { margin: 0; color: var(--ink); font-weight: 500; font-size: .95rem; line-height: 1.4; }
.rd-text .btn svg { margin-left: 4px; }
.rd-video { margin: 0; }
.rd-text > :last-child { margin-bottom: 0; }
.countries { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.countries li { padding: 6px 14px; border-radius: 999px; background: var(--orange-soft); color: #a8401b; font-size: .88rem; font-weight: 600; }
.rd-role { margin: 4px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--orange-soft); border-left: 3px solid var(--orange-strong); color: var(--ink-2) !important; font-size: .95rem; }
.rd-role strong { display: block; margin-bottom: 2px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #a8401b; }

/* HF Methods: ISO 11064 process — intro text beside the video, five phases in one row below */
.process-intro { margin-bottom: 56px; }
.process-video { margin: 0; }
.phases { grid-template-columns: repeat(5, 1fr); }
.phases .feature { padding: 26px; }

/* Article cards (R&D) */
.article { display: grid; grid-template-columns: 220px 1fr; gap: 0; }
.article .card-media { aspect-ratio: auto; height: 100%; }
.article .card-media:not(.text-only) { padding: 20px; display: grid; place-items: center; }
.article .card-media img { object-fit: contain; height: auto; max-height: 300px; border-radius: 6px; box-shadow: var(--shadow); }
.article .text-only { display: grid; place-items: center; background: linear-gradient(135deg, var(--slate-dark), var(--bg-dark)); color: var(--orange); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.02em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255, 255, 255, .65); padding: 80px 0 32px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr; gap: 48px; }
.site-footer h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .7); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand img { height: 56px; width: auto; margin-bottom: 22px; }
.footer-brand p { max-width: 38ch; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #fff;
}
.socials a:hover { background: var(--orange-strong); border-color: var(--orange-strong); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .phases > :last-child { grid-column: 1 / -1; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 48px; }
  .cta .actions { justify-content: flex-start; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  section { padding: 72px 0; }
  .menu-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 16px 24px 28px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .menu-open .nav { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; border-radius: 10px; }
  .on-dark .site-header:not(.scrolled) .nav a:not(.btn) { color: var(--ink-2); }
  /* Menu panel is white on mobile: dark text, light orange highlight */
  .nav a:not(.btn):hover,
  .nav a:not(.btn)[aria-current="page"],
  .on-dark .site-header:not(.scrolled) .nav a:not(.btn):hover,
  .on-dark .site-header:not(.scrolled) .nav a:not(.btn)[aria-current="page"] { background: #fdece3; color: var(--ink); box-shadow: inset 3px 0 0 var(--orange-strong); }
  .nav a:not(.btn)[aria-current="page"] { font-weight: 600; }
  .on-dark.menu-open .site-header { background: #fff; }
  .on-dark.menu-open .site-header .brand { color: var(--ink); }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .grid-2, .grid-3, .split, .contact-grid, .plans { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .split.reverse > :first-child { order: 0; }
  .article { grid-template-columns: 1fr; }
  .rd-project { grid-template-columns: 1fr; gap: 28px; padding: 24px; border-radius: 20px; }
  .rd-project.reverse .rd-text { order: 0; }
  .article .card-media { aspect-ratio: 16 / 9; }
  .form-card { padding: 26px; }
}
@media (max-width: 600px) {
  .grid-4, .form-grid, .phases { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .cta { padding: 36px 26px; }
  .hero .container { padding: 96px 0 64px; }
  .brand svg { height: 36px; }
}
