
/* ==========================================================================
   EINEVA Labs — shared stylesheet
   --------------------------------------------------------------------------
   UI language in the Airbnb design language:

     · Figtree as the typeface — the closest free match to Airbnb Cereal
     · the Airbnb DLS palette: Rausch #FF5A5F primary, Babu #00A699 accent,
       Hof #484848 text, Foggy #767676 secondary, #DDDDDD borders on white
     · light surfaces (--color-bg / -elevated / -card / -sunken)
     · the signature rausch→magenta brand gradient on buttons and figures
     · an 8 / 12 / 18 / 26px radius scale instead of ad-hoc corners
     · a fixed, blurred, always-visible white navbar with a scroll state
     · cards that lift and soften on hover, never restyle per page
     · scroll-reveal motion (`.rv` / `.in`, driven by loader.js)
     · numbered step markers, gradient text figures, uppercase micro-labels

   The palette is the Airbnb brand: #ffffff base, #FF5A5F rausch, #00A699 babu.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */

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

/* Bootstrap reboot compensation.
   The `*` reset above has specificity (0,0,0) while Bootstrap's reboot styles
   bare elements at (0,0,1), so it outranks the reset no matter which file
   loads last. Vendoring Bootstrap therefore silently changes every page:
     p      gains margin-bottom: 1rem
     ul     gains padding-left: 2rem
     h1-h6  gain font-weight: 500, line-height: 1.2 and a white colour
   These rules are element-level too, so they load after bootstrap.min.css
   and win on source order, restoring the zero-margin baseline the page
   markup is authored against. Class rules elsewhere in this file always
   outrank them. `line-height: inherit` / `color: inherit` hand the property
   back to inheritance rather than restoring a literal value.
   Do not remove this block. */
address, blockquote, caption, dd, dl, ol, ul,
fieldset, figure, hr, kbd, legend, p, pre, table, th, td {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  color: inherit;
  font-weight: 700;
  line-height: inherit;
}

b, strong { font-weight: 700; }

a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
.hidden, [hidden] { display: none !important; }

/* Available to assistive tech, invisible on screen. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   2. Tokens
   --------------------------------------------------------------------------
   Split in two. The first block is the brand: the Airbnb palette, gradients,
   radii and motion.

   The second block is the theme: every neutral surface, text tone, border,
   shadow and chrome colour the components actually consume. Components only
   ever reference these, never a literal, so re-theming is a matter of
   redefining this one block — it currently carries the Airbnb light theme.
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;

  /* DM Sans is the closest free match to Airbnb Cereal, the proprietary
     Airbnb typeface: same geometric skeleton, open variable weights. */
  --font-heading: 'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'Fira Code', 'JetBrains Mono', 'SF Mono', monospace;

  /* --- Brand: the Airbnb DLS palette --- */
  /* Rausch #FF5A5F is the Airbnb primary red. -bright is the deeper step
     (#E0484D) that keeps small red text readable on white; -deep is the
     pressed/hover step for filled controls. */
  --color-red:        #FF5A5F;
  --color-red-bright: #E0484D;
  --color-red-deep:   #C2374B;
  --color-red-dim:    rgba(255, 90, 95, 0.10);
  --color-red-dim-strong: rgba(255, 90, 95, 0.16);
  --color-red-glow:   rgba(255, 90, 95, 0.35);
  --color-red-border: rgba(255, 90, 95, 0.35);

  /* Babu #00A699 — Airbnb's secondary teal */
  --color-teal:      #00A699;
  --color-teal-dim:  rgba(0, 166, 153, 0.10);
  --color-teal-bd:   rgba(0, 166, 153, 0.30);

  /* Department accent. Rausch stays the brand colour for chrome (see
     --color-red above); babu teal is the software engineering accent, and
     violet marks the 3D and motion work. Nothing else uses violet, so a
     violet tag always reads as "3D". */
  --color-violet:      #8B5CF6;
  --color-violet-bright: #7C3AED;
  --color-violet-dim:  rgba(139, 92, 246, 0.10);
  --color-violet-bd:   rgba(139, 92, 246, 0.28);

  --color-amber:      #D97706;
  --color-amber-dim:  rgba(217, 119, 6, 0.10);
  --color-amber-bd:   rgba(217, 119, 6, 0.25);
  --color-amber-text: #B45309;
  --color-amber-soft: rgba(217, 119, 6, 0.40);

  --color-green:        #25D366;
  --color-green-hover:  #1da851;
  --color-green-glow:   rgba(37, 211, 102, 0.25);

  /* Brand gradients — the signature Airbnb Bélo gradient (rausch → magenta),
     reused everywhere */
  --grad:       linear-gradient(135deg, #FF5A5F 0%, #D70466 100%);
  --grad-hover: linear-gradient(135deg, #FF7A7E 0%, #E31C5F 100%);
  --grad-accent: linear-gradient(135deg, #FF5A5F 0%, #00A699 100%);

  /* The Airbnb search-button fill: E61E4D → E31C5F → D70466, one step deeper
     on hover, for any filled control that carries a small text label.
     Drives buttons and form submits, never display type. */
  --grad-fill:       linear-gradient(135deg, #E61E4D 0%, #E31C5F 50%, #D70466 100%);
  --grad-fill-hover: linear-gradient(135deg, #D6153F 0%, #CC1758 50%, #C00460 100%);

  /* Radius scale */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   26px;
  --radius-pill: 999px;

  /* Layout */
  --nav: 68px;
  --section-gap: 64px;
  --shell: 1160px;
  --shell-pad: 2rem;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.3s;

  /* --- Theme roles: the Airbnb light theme --- */
  /* White page, Hof #484848 body, Foggy #767676 secondary, #DDDDDD hairlines —
     the neutrals Airbnb's DLS uses across airbnb.com. */
  --color-bg:          #ffffff;   /* page */
  --color-bg-elevated: #ffffff;   /* raised chrome */
  --color-bg-card:     #ffffff;   /* cards sit on white, lifted by border + shadow */
  --color-bg-hover:    #f7f7f7;   /* Airbnb's light gray hover wash */
  --color-bg-sunken:   #f7f7f7;   /* inset wells, form fields */

  --color-text:       #484848;    /* body copy — Hof */
  --color-text-dim:   #767676;    /* secondary copy — Foggy */
  --color-text-muted: #999999;    /* micro-labels, footnotes */
  --color-heading:    #484848;    /* titles and figures */
  --color-on-brand:   #ffffff;    /* text sitting on a brand fill */

  --color-border:       #dddddd; /* Airbnb hairline */
  --color-border-hover: #b0b0b0;

  /* Chrome */
  --color-nav:        rgba(255, 255, 255, 0.85);
  --color-nav-solid:  #ffffff;
  --color-nav-scrolled: rgba(255, 255, 255, 0.96);
  --color-nav-text:   #484848;
  --color-brand-text: #484848;
  --color-icon:       #767676;
  --color-placeholder: #b0b0b0;
  --color-scrollbar:  #e5e5e5;
  --color-scrollbar-hover: #c9c9c9;
  --color-selection:  rgba(255, 90, 95, 0.25);
  --color-separator:  #ebebeb;

  /* Shadows: on a light page they read as soft lift, never a black outline. */
  --shadow-nav:   0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-card:  0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-panel: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-fab:   0 6px 16px rgba(0, 0, 0, 0.18);
  --shadow-fab-hover: 0 8px 22px rgba(0, 0, 0, 0.22);
  --shadow-drop:  0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-drop-soft: 0 14px 36px rgba(0, 0, 0, 0.10);
  --shadow-drop-lg: 0 28px 70px rgba(0, 0, 0, 0.14);
  --shadow-drop-lg-hover: 0 34px 88px rgba(0, 0, 0, 0.18);
  --shadow-card-inset: 0 2px 10px rgba(0, 0, 0, 0.05);

  /* Ambient effects removed — the light theme is a clean flat white. */
  --aurora: none;
  --grain-opacity: 0;
}



/* --------------------------------------------------------------------------
   3. Bootstrap remap
   Bootstrap 5.3.8 is vendored in assets/vendor/ and linked before this file,
   so everything here wins the cascade. Bootstrap supplies the grid, reboot
   and spacing utilities; all colour and surface styling is remapped onto the
   tokens above.
   -------------------------------------------------------------------------- */
:root {
  --bs-body-bg: var(--color-bg);
  --bs-body-color: var(--color-text);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--color-border);
  --bs-link-color: var(--color-red);
  --bs-link-hover-color: var(--color-red-bright);
  --bs-link-color-rgb: 255, 90, 95;
  --bs-link-hover-color-rgb: 224, 72, 77;
  --bs-emphasis-color: var(--color-text);
  --bs-secondary-color: var(--color-text-dim);
  --bs-secondary-bg: var(--color-bg-sunken);
  --bs-tertiary-color: var(--color-text-muted);
  --bs-heading-color: var(--color-heading);
  --bs-emphasis-color-rgb: 72, 72, 72;
}

/* .container is deliberately NOT remapped here: it is the body wrapper on
   all ten pages, and the "Page shell" rule below declares max-width in this
   later-loading file. Media queries add no specificity, so that rule beats
   Bootstrap's 1320px at every viewport width. */

/* --------------------------------------------------------------------------
   4. Page shell
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
  /* keep in-page anchor targets clear of the fixed topbar */
  scroll-padding-top: calc(var(--nav) + 24px);
}

body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient aurora and film grain removed: the light theme is a clean flat
   white page with no fixed overlay layers. */

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: calc(var(--nav) + 3.5rem) var(--shell-pad) 4.5rem;
  /* `both` so the entrance survives with JavaScript disabled. */
  animation: shellIn 0.8s var(--ease) 0.05s both;
}

/* Bootstrap pulls every .row out by half its gutter so the columns' own
   padding becomes the gap. That negative margin assumes the container's
   padding equals the gutter. Ours is responsive, and a large gutter such as
   g-5 (3rem) is wider than the padding at 480px, which would push the row
   past the viewport edge and open a horizontal scrollbar. Clamping the pull
   to the padding keeps full-bleed rows flush with the shell at every width
   while leaving the wide desktop gutter intact. */
.row {
  margin-right: max(calc(-0.5 * var(--bs-gutter-x, 1.5rem)), calc(-1 * var(--shell-pad)));
  margin-left: max(calc(-0.5 * var(--bs-gutter-x, 1.5rem)), calc(-1 * var(--shell-pad)));
}

/* --------------------------------------------------------------------------
   5. Topbar
   Fixed, blurred and always present; the scroll state only deepens it.
   Sits as a sibling of .container (a direct child of <body>) so it spans
   the full viewport while page content stays in the shell.
   -------------------------------------------------------------------------- */




















/* Theme toggle. Always visible at every breakpoint, mirroring the reference
   build: the sun and the moon are both in the DOM and CSS decides which one
   shows, so the icon can never disagree with the applied theme. */









/* The theme toggle is moved ahead of the hamburger in the flex row. The DOM
   order is brand, toggle, hamburger, menu - the toggle is a sibling of the
   bar's flex children (not nested in the collapsible panel) so it survives at
   every breakpoint, and these order values park it between the brand and the
   hamburger on mobile and beside the CTA on wide screens. */


/* The menu is a Bootstrap .collapse, so on mobile its visibility is governed
   by .collapse:not(.show) { display: none }. This block only supplies the
   chrome — a full-width panel docked under the bar. */







/* Paired with the topbar so it outranks the .btn declarations further down,
   which share specificity and would otherwise win on source order. */

/* The text label only appears on the desktop bar; on mobile the CTA is an
   icon-only tile inside the dropdown. */


/* Cart: a ghost circle button with a rausch badge, Airbnb-style. Written as
   .topbar .topbar__cta--cart so it outranks the .topbar .topbar__cta padding. */



/* Desktop: horizontal bar, menu always visible.
   !important is required because Bootstrap's .collapse:not(.show) is (0,2,0)
   and would otherwise hide the menu on wide viewports. */
@media (min-width: 992px) {
  
  
  /* Paired selectors: .btn sets display at (0,1,0) later in this file, so
     the CTA needs (0,2,0) to be able to change it. */
  
  
  /* The hamburger is out of the row, so the toggle no longer needs to hold
     the row open on its own. */
  
  
}

/* Mobile: the panel drops below the bar and spans the viewport. */
@media (max-width: 991.98px) {
  /* Mobile menu hidden until the hamburger adds .show (the React layout no
     longer uses Bootstrap's .collapse, whose Tailwind-generated
     `visibility: collapse` utility hid the menu entirely). */
  
  
  
  
  /* One auto margin, on the toggle, pushes both the toggle and the hamburger
     to the right edge. Giving both of them margin-left:auto would split the
     free space between them and strand the hamburger mid-bar. */
  
  
  
  
  
  
  
}

/* --------------------------------------------------------------------------
   6. Scroll reveal
   The class is only ever added by loader.js, so with scripting off every
   element is simply visible.
   -------------------------------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--rv-d, 0ms);
}
.rv.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   7. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4,
.page-title, .section-title, .glitch-text {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

h2, h3 { color: var(--color-text); font-weight: 700; }

::selection { background: var(--color-selection); color: var(--color-on-brand); }

/* Page title — the big statement, tight leading, centred. */
.page-title {
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.025em;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 14px;
}

/* Section eyebrow — uppercase micro-label with a gradient lead-in rule. */
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 auto 26px;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-red);
  text-align: center;
}
.section-title::before {
  content: '';
  width: 20px;
  height: 1.5px;
  flex-shrink: 0;
  background: var(--color-red);
  border-radius: 2px;
}

.page-sub {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-dim);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}

/* Divider */
.divider {
  width: 56px;
  height: 3px;
  background: var(--grad-accent);
  margin: 56px auto;
  border-radius: var(--radius-pill);
  opacity: 0.9;
  animation: expandWidth 0.6s var(--ease) 0.2s both;
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */










/* Bootstrap drops the outline on :focus-visible and paints a ring instead. */


/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
/* Column, not row: the .row inside is a flex item, and in a row-direction
   flex container it would size to its own content instead of filling the
   shell, leaving the two hero columns narrower than the rest of the page. */
.hero-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: clamp(320px, 55vh, 540px);
  margin-bottom: var(--section-gap);
  text-align: left;
}
/* No width here on purpose: the column flex container stretches the row by
   its margins, which is what makes it span the full shell. */
.hero-section .hero-badge { margin: 0 0 1.5rem; }
.hero-section .hero-sub { margin: 0 0 32px; }
.hero-section .hero-actions { justify-content: flex-start; }

.glitch-text {
  position: relative;
  display: block;
  max-width: 100%;
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--color-heading);
  margin-bottom: 20px;
  word-break: break-word;
}

/* Glitch text effect removed — the H1 is plain solid type in the light theme. */

.hero-sub {
  max-width: 560px;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.75;
  color: var(--color-text-dim);
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}


.hero-logo,
.product-hero-img { display: flex; justify-content: center; }
.hero-logo img {
  max-width: 220px;
  height: auto;
  filter: none;
  animation: float 7s ease-in-out infinite;
}

/* Eyebrow pill with a breathing brand dot. */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 6px 16px 6px 12px;
  background: var(--color-red-dim);
  border: 1px solid var(--color-red-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-red-bright);
  margin: 0 auto 1.5rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-red);
  animation: dotPulse 2s var(--ease) infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 95, 0.45); }
  70%      { box-shadow: 0 0 0 7px rgba(255, 90, 95, 0); }
}

/* Standalone brand mark above inner-page titles. */
.logo { margin-bottom: 28px; text-align: center; }
.logo img {
  max-width: 96px;
  height: auto;
  filter: none;
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
}
.logo img:hover {
  filter: none;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   10. Card system
   One surface, one radius, one lift. Every card on the site inherits from
   this group so no page restates the treatment.
   -------------------------------------------------------------------------- */
:is(.stat-card, .mv-card, .timeline-item, .project-card, .team-card,
    .info-card, .contact-form, .hours-card, .notice-card, .status-banner,
    .category, .service) {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
:is(.stat-card, .mv-card, .timeline-item, .project-card, .team-card,
    .info-card, .contact-form, .hours-card, .notice-card, .status-banner,
    .category, .service):hover,
:is(.stat-card, .mv-card, .timeline-item, .project-card, .team-card,
    .info-card, .contact-form, .hours-card, .notice-card, .status-banner,
    .category, .service):focus-within {
  border-color: var(--color-red-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
/* Nested cards sit on a sunken surface so they read inside their parent. */
.service {
  background: var(--color-bg-sunken);
  border-radius: var(--radius-md);
  text-align: left;
  padding: 16px 18px;
}
.service:hover { background: var(--color-bg-hover); }
.service h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.service p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.service-icon {
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: text-bottom;
  color: var(--color-red-bright);
}

/* --------------------------------------------------------------------------
   11. Capability accordion
   Shared by services.html and sitesurveyor.html.
   -------------------------------------------------------------------------- */
.category {
  max-width: 1000px;
  margin: 0 auto 12px;
  text-align: center;
  overflow: hidden;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 22px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  color: var(--color-text);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.category-header::-webkit-details-marker { display: none; }
.category-header:hover { background: var(--color-bg-hover); }
.category[open] .category-header {
  background: var(--color-red-dim);
  color: var(--color-red-bright);
}
/* The category title is an h3 inside a department block on the services page
   and an h2 on the standalone capability pages, so both levels are matched
   here rather than duplicating the rule. */
.category-header h2,
.category-header h3 {
  font-size: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  text-transform: none;
  color: inherit;
}

/* Labels each capability group as offensive or defensive work. */
.category-tag {
  padding: 3px 10px;
  border: 1px solid var(--color-border-hover);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.category-tag[data-side='offensive'] {
  color: var(--color-red-bright);
  border-color: var(--color-red-border);
  background: var(--color-red-dim);
}
.category-tag[data-side='defensive'] {
  color: var(--color-teal);
  border-color: var(--color-teal-bd);
  background: var(--color-teal-dim);
}

/* Department tag. Shares the .category-tag shape so the services page has one
   tag vocabulary, and adds one modifier per department. The slugs match
   config/departments.php. */
.dept-tag {
  padding: 3px 10px;
  border: 1px solid var(--color-border-hover);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.dept-tag[data-dept='cyber'] {
  color: var(--color-red-bright);
  border-color: var(--color-red-border);
  background: var(--color-red-dim);
}
.dept-tag[data-dept='software'] {
  color: var(--color-teal);
  border-color: var(--color-teal-bd);
  background: var(--color-teal-dim);
}
.dept-tag[data-dept='three_d'] {
  color: var(--color-violet-bright);
  border-color: var(--color-violet-bd);
  background: var(--color-violet-dim);
}

/* A department heading on the services page. The accent is a left rule plus a
   tinted label, never a fill — a filled block would compete with the section
   it introduces. */
.dept-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.5rem;
}
.dept-heading::before {
  content: '';
  width: 4px;
  height: 1.6em;
  border-radius: 2px;
  background: var(--dept-accent, var(--color-red));
  flex-shrink: 0;
}
.dept-heading > h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  letter-spacing: -0.02em;
}

/* Sets the accent for everything inside one department block. Children read
   var(--dept-accent); the block itself never sets it, so a nested block can
   override it without a cascade fight. */
.dept-block[data-dept='cyber'] {
  --dept-accent: var(--color-red);
  --dept-accent-text: var(--color-red-bright);
  --dept-accent-dim: var(--color-red-dim);
  --dept-accent-bd: var(--color-red-border);
}
.dept-block[data-dept='software'] {
  --dept-accent: var(--color-teal);
  --dept-accent-text: var(--color-teal);
  --dept-accent-dim: var(--color-teal-dim);
  --dept-accent-bd: var(--color-teal-bd);
}
.dept-block[data-dept='three_d'] {
  --dept-accent: var(--color-violet);
  --dept-accent-text: var(--color-violet-bright);
  --dept-accent-dim: var(--color-violet-dim);
  --dept-accent-bd: var(--color-violet-bd);
}

/* Chevron, drawn rather than shipped as an icon font. */
.category-header::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-left: auto;
  flex-shrink: 0;
  border-right: 1.6px solid var(--color-text-muted);
  border-bottom: 1.6px solid var(--color-text-muted);
  border-radius: 1px;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease), border-color 0.25s var(--ease);
}
.category[open] .category-header::after {
  transform: rotate(225deg) translate(-2px, -2px);
  border-color: var(--color-red);
}

/* Status dot, matching the hero badge and the stat tiles. */
.category-accent {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.category-header:hover .category-accent {
  transform: scale(1.3);
  box-shadow: var(--shadow-card);
}

.category-services {
  display: grid;
  gap: 12px;
  padding: 6px 22px 22px;
}
@media (min-width: 768px) {
  .category-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
  .category-services { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* The lead-in paragraph spans the full grid rather than sitting in a cell. */
.account-intro {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-dim);
  text-align: left;
  font-style: italic;
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   12. Product hero + status banner (sitesurveyor)
   -------------------------------------------------------------------------- */
.product-hero {
  margin-bottom: 56px;
  text-align: left;
}
.product-hero .hero-badge { margin: 0 0 1.5rem; }
.product-hero .page-title { text-align: left; margin-bottom: 6px; }
.product-hero .page-sub { text-align: left; margin: 0 0 20px; }
.product-hero .hero-actions { justify-content: flex-start; margin-bottom: 0; }

.product-hero-img img {
  max-width: 200px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-drop-lg), 0 0 60px rgba(255, 90, 95, 0.14);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.product-hero-img img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-drop-lg-hover), 0 0 80px rgba(255, 90, 95, 0.2);
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--color-text-dim);
}

.status-banner {
  max-width: 720px;
  margin: 32px auto 0;
  padding: 20px 24px;
  text-align: center;
  background: var(--color-amber-dim);
  border-color: var(--color-amber-bd);
}
.status-banner:hover {
  border-color: var(--color-amber);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.status-banner .status-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-amber-text);
  margin-bottom: 8px;
}
.status-banner p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-dim);
}
.status-banner a {
  color: var(--color-red);
  font-weight: 600;
  transition: color 0.2s;
}
.status-banner a:hover { color: var(--color-red-bright); text-decoration: underline; }

/* --------------------------------------------------------------------------
   13. Newsletter band
   -------------------------------------------------------------------------- */
.notify {
  margin-bottom: var(--section-gap);
  text-align: center;
}
.notify-band {
  text-align: left;
  padding: 28px 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-bottom: 0;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.notify-band:hover {
  border-color: var(--color-red-border);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.12);
}
.notify-title {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-red);
  margin-bottom: 6px;
}
.notify-sub {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}
.notify-note { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 10px; }
.notify-form { display: flex; gap: 10px; flex-wrap: wrap; }
.notify-band .notify-form { justify-content: flex-start; flex-wrap: nowrap; }

.notify-form button:not([data-slot]) {
  flex: 0 0 auto;
  padding: 0.7rem 1.5rem;
  background: var(--grad-fill);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-on-brand);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease);
}
.notify-form button:not([data-slot]):hover {
  background: var(--grad-fill-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   14. Fields
   One appearance for every input, one focus treatment.
   -------------------------------------------------------------------------- */
:is(.notify-form, .contact-form)
  :is(input:not([type="hidden"]):not([type="checkbox"]), textarea) {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--color-bg-hover);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background-color 0.25s var(--ease);
}
:is(.notify-form, .contact-form) :is(input, textarea)::placeholder { color: var(--color-placeholder); }
:is(.notify-form, .contact-form)
  :is(input:not([type="hidden"]):not([type="checkbox"]), textarea):focus {
  border-color: var(--color-red);
  background: var(--color-bg-hover);
  box-shadow: 0 0 0 3px rgba(255, 90, 95, 0.12);
}

.notify-form input { max-width: 320px; }
.notify-band .notify-form input { flex: 1 1 auto; width: auto; min-width: 0; max-width: none; }

/* --------------------------------------------------------------------------
   15. Contact strip, social, footer
   -------------------------------------------------------------------------- */
.contact {
  font-size: 0.9rem;
  color: var(--color-text-dim);
  text-align: center;
  margin-bottom: 24px;
}
.contact a {
  color: var(--color-red);
  font-weight: 500;
  transition: color 0.2s;
}
.contact a:hover { color: var(--color-red-bright); text-decoration: underline; }

.social {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-dim);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease),
              background 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.social a:hover,
.social a:focus-visible {
  color: var(--color-red);
  border-color: var(--color-red-border);
  background: var(--color-red-dim);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}
.social a svg { width: 17px; height: 17px; fill: currentColor; flex-shrink: 0; }

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 10px;
}
.footer-text {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}
.footer-text a { color: inherit; transition: color 0.2s; }
.footer-text a:hover { color: var(--color-red); }
.footer-sep,
.footer-dot { color: var(--color-separator); }
.footer-sep { margin: 0 0.5rem; }
.footer-dot { margin: 0 0.3rem; }

/* --------------------------------------------------------------------------
   16. 404
   -------------------------------------------------------------------------- */
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 9vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 10px;
  color: var(--color-red);
}
.error-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  text-align: center;
  margin-bottom: 10px;
}
.error-msg {
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-dim);
  text-align: center;
}
.error-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.error-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--color-border-hover);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.error-actions a.primary {
  background: var(--grad-fill);
  border-color: transparent;
  color: var(--color-on-brand);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
}
.error-actions a:hover,
.error-actions a:focus-visible {
  border-color: var(--color-red-border);
  background: var(--color-red-dim);
  color: var(--color-red-bright);
  transform: translateY(-1px);
}
.error-actions a.primary:hover,
.error-actions a.primary:focus-visible {
  background: var(--grad-fill-hover);
  border-color: transparent;
  color: var(--color-on-brand);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   17. WhatsApp FAB
   -------------------------------------------------------------------------- */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-green);
  color: var(--color-on-brand);
  text-decoration: none;
  box-shadow: var(--shadow-fab);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  background: var(--color-green-hover);
  outline: none;
  transform: translateY(-2px) scale(1.05);
  box-shadow: var(--shadow-fab-hover);
}
.whatsapp-fab svg { width: 28px; height: 28px; fill: currentColor; }

/* --------------------------------------------------------------------------
   18. Page loader
   -------------------------------------------------------------------------- */
.biz-loader {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 3000;
}
.biz-loader.show { opacity: 1; pointer-events: auto; }
.biz-loader-card { text-align: center; transform: scale(0.92); transition: transform 0.3s var(--ease); }
.biz-loader.show .biz-loader-card { transform: scale(1); }

.biz-spinner { position: relative; width: 64px; height: 64px; margin: 0 auto; }
.biz-spinner::before,
.biz-spinner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.biz-spinner::before { border: 3px solid rgba(255, 90, 95, 0.1); }
.biz-spinner::after {
  border: 3px solid transparent;
  border-top-color: var(--color-red);
  border-right-color: var(--color-red);
  animation: spin 0.85s linear infinite;
  filter: none;
}
.biz-spinner-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 90, 95, 0.2); }
.biz-spinner-ring--outer { inset: -10px; animation: ringPulse 2.2s ease-in-out infinite; }
.biz-spinner-ring--inner {
  inset: 6px;
  border-top-color: rgba(255, 90, 95, 0.4);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  animation: spinReverse 1.6s linear infinite;
}
.biz-spinner-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 10px rgba(255, 90, 95, 0.8);
  animation: dotBreath 1.4s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.18); opacity: 0; }
}
@keyframes dotBreath {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.7; }
  50%      { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* --------------------------------------------------------------------------
   19. Keyframes
   -------------------------------------------------------------------------- */
@keyframes shellIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes expandWidth {
  from { width: 0; opacity: 0; }
  to   { width: 56px; opacity: 0.9; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
  html { scroll-behavior: auto; }
  .glitch-text::before,
  .glitch-text::after { display: none; }
  .hero-logo img { animation: none; }
  .hero-badge::before { animation: none; }
  .biz-spinner::after,
  .biz-spinner-ring,
  .biz-spinner-dot { animation: none !important; }
  .rv { opacity: 1; transform: none; }
}

@media print {
  
  .container { padding: 0; max-width: none; animation: none; }
}

/* --------------------------------------------------------------------------
   20. Scrollbar
   -------------------------------------------------------------------------- */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-scrollbar); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--color-scrollbar-hover); }

/* --------------------------------------------------------------------------
   21. Focus accessibility
   -------------------------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}
input:focus-visible,
textarea:focus-visible { outline-offset: 1px; }

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .container { padding-top: calc(var(--nav) + 2.5rem); }
  .hero-section { min-height: 0; }
  .category-services { padding: 4px 16px 16px; }
  .category-header { padding: 15px 18px; }
}

@media (max-width: 768px) {
  :root { --shell-pad: 1.25rem; }
  .container { padding-top: calc(var(--nav) + 2rem); }
  :root { --section-gap: 48px; }
  .page-title { font-size: 1.75rem; }
  .notify-band { padding: 22px 20px; }
}

@media (max-width: 480px) {
  :root { --shell-pad: 1rem; }
  .container { padding: calc(var(--nav) + 1.5rem) var(--shell-pad) 2.5rem; }
  .page-title { font-size: 1.55rem; }
  .page-sub { font-size: 0.92rem; }
  .section-title { font-size: 0.72rem; letter-spacing: 0.12em; }
  .logo img { max-width: 80px; }
  .divider { margin: 40px auto; }
  .contact { font-size: 0.88rem; }
  .social { gap: 8px; margin-bottom: 32px; }
  .social a { font-size: 0.78rem; padding: 8px 12px; }
  
  .notify-form { flex-direction: column; align-items: center; }
  .notify-form input,
  .notify-form button:not([data-slot]) { width: 100%; max-width: 320px; }
  .notify-band .notify-form { flex-direction: column; align-items: stretch; }
  .notify-band .notify-form input,
  .notify-band .notify-form button:not([data-slot]) { width: 100%; max-width: none; }
  .whatsapp-fab { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
  .error-code { font-size: 3.5rem; }
  .error-title { font-size: 1.15rem; }
}

/* --------------------------------------------------------------------------
   23. Page components
   --------------------------------------------------------------------------
   Everything that used to live in per-page <style> blocks. Grouped here so a
   card behaves the same on every page, and so the pages ship no CSS of
   their own.
   -------------------------------------------------------------------------- */

/* --- Section rhythm ------------------------------------------------------ */
.about-hero,
.stats-row,
.mv-section,
.timeline-section,
.projects-grid,
.team-grid,
.info-cards,
.contact-main { margin-bottom: 3rem; }

/* --- Split hero (about, contact) ------------------------------------------ */
.about-hero,
.contact-hero { margin-bottom: 2.5rem; }
.about-hero .page-title,
.contact-hero .page-title { text-align: left; }
.about-hero .hero-badge,
.contact-hero .hero-badge { margin: 0 0 1.5rem; }
.about-hero p,
.contact-hero p {
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-dim);
}

/* --- Stat tiles ---------------------------------------------------------- */
.stat-card {
  height: 100%;
  padding: 1.7rem 1rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--color-red);
  margin-bottom: 0.45rem;
}
.stat-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

/* --- Mission / vision ---------------------------------------------------- */
.mv-card {
  height: 100%;
  padding: 1.9rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  color: var(--color-red);
  background: var(--color-red-dim);
  border: 1px solid var(--color-red-border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.mv-card:hover .mv-icon {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.mv-label {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-red);
  margin-bottom: 0.7rem;
}
.mv-card p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--color-text-dim);
}

/* --- Numbered timeline --------------------------------------------------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2.9rem;
  counter-reset: step;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-red), var(--color-red-border) 50%, transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 1rem;
  padding: 1.15rem 1.35rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  counter-increment: step;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: counter(step);
  position: absolute;
  left: -2.9rem;
  top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-red);
  background: var(--color-bg);
  border: 1px solid var(--color-red-border);
  border-radius: 50%;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.timeline-item:hover { background: var(--color-bg-hover); }
.timeline-item:hover::before {
  color: var(--color-on-brand);
  background: var(--grad);
  border-color: transparent;
  box-shadow: var(--shadow-card);
}
.timeline-item h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
  transition: color 0.2s var(--ease);
}
.timeline-item:hover h4 { color: var(--color-heading); }
.timeline-item p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* --- Project cards ------------------------------------------------------- */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.project-header {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-bottom: 1rem;
}
.project-logo {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  object-fit: cover;
  padding: 6px;
  background: var(--color-bg-sunken);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
              transform 0.3s var(--ease);
}
.project-card:hover .project-logo {
  transform: scale(1.05);
  border-color: var(--color-red-border);
  box-shadow: var(--shadow-card);
}
.project-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.25rem;
}
.project-tagline {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-red);
}
.project-desc {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--color-text-dim);
  margin-bottom: 0.6rem;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.55rem 1.2rem;
  background: transparent;
  border: 1px solid var(--color-red-border);
  border-radius: var(--radius-pill);
  color: var(--color-red);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.project-link:hover,
.project-link:focus-visible {
  color: var(--color-on-brand);
  background: var(--grad);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

/* --- Team cards ---------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.team-card {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  text-align: left;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.team-card .team-img {
  width: 100px;
  height: 100px;
  margin: 0 0 0.9rem;
  object-fit: cover;
  border: 2px solid var(--color-red-border);
  border-radius: 50%;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.team-card:hover .team-img {
  transform: scale(1.04);
  border-color: var(--color-red);
  box-shadow: var(--shadow-card);
}
.team-card .placeholder-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  margin: 0 0 0.9rem;
  font-size: 1.9rem;
  color: var(--color-amber-soft);
  background: var(--color-bg-hover);
  border: 2px dashed var(--color-amber-bd);
  border-radius: 50%;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.team-card:hover .placeholder-img {
  background: var(--color-amber-dim);
  border-color: var(--color-amber);
}
.team-card .name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.team-card .role {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-red);
  margin-bottom: 0.7rem;
}
/* Department tag on a vacancy card. The card is a centred flex column, so the
   tag is centred rather than left-aligned and shares the status pill's rhythm.
   align-self is required: without it the span stretches to the full column
   width and the pill's border wraps the whole card. */
.team-card .dept-tag {
  align-self: flex-start;
  margin-bottom: 0.7rem;
}
.team-card .status {
  display: inline-block;
  align-self: flex-start;
  padding: 0.22rem 0.7rem;
  margin-bottom: 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-pill);
}
.team-card .status.filled {
  color: var(--color-red);
  background: var(--color-red-dim);
  border: 1px solid var(--color-red-border);
}
.team-card .status.vacant {
  color: var(--color-amber-text);
  background: var(--color-amber-dim);
  border: 1px solid var(--color-amber-bd);
}
.team-card p {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}
.team-card .apply-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.9rem;
  padding: 0.5rem 1.2rem;
  background: transparent;
  border: 1px solid var(--color-amber-bd);
  border-radius: var(--radius-pill);
  color: var(--color-amber-text);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
}
.team-card .apply-btn:hover,
.team-card .apply-btn:focus-visible {
  color: var(--color-amber-text);
  background: var(--color-amber-dim);
  border-color: var(--color-amber);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.18);
}

/* Closing line under the team grid. */
.team-note {
  max-width: 640px;
  margin: 1.4rem auto 0;
  font-size: 0.85rem;
  line-height: 1.65;
  font-style: italic;
  color: var(--color-text-muted);
  text-align: center;
}

/* --- Contact info cards -------------------------------------------------- */
.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.6rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.info-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.9rem;
  color: var(--color-red);
  background: var(--color-red-dim);
  border: 1px solid var(--color-red-border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.info-card:hover .info-card-icon {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.info-card .label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-red);
  margin-bottom: 0.4rem;
}
.info-card .value {
  font-size: 1rem;
  color: var(--color-text);
  overflow-wrap: anywhere;
}
.info-card .value a {
  color: var(--color-text);
  transition: color 0.2s var(--ease);
}
.info-card .value a:hover,
.info-card .value a:focus-visible { color: var(--color-red); }

/* --- Contact form -------------------------------------------------------- */
.contact-form {
  height: 100%;
  padding: 1.7rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.contact-form .form-title {
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-dim);
  text-align: center;
}
.contact-form .field { margin-bottom: 1rem; }
.contact-form label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  transition: color 0.2s var(--ease);
}
.contact-form .field:focus-within label { color: var(--color-red); }
.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}
.contact-form button:not([data-slot]) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.85rem 1.2rem;
  background: var(--grad-fill);
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-on-brand);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.contact-form button:not([data-slot]):hover {
  background: var(--grad-fill-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.contact-form button:not([data-slot]):active { transform: translateY(0); }

/* --- Notice + business hours --------------------------------------------- */
.notice-card {
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  background: var(--color-red-dim);
  border-color: var(--color-red-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease),
              transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.notice-card:hover {
  background: var(--color-red-dim-strong);
  border-color: var(--color-red);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.notice-label {
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-red);
}
.notice-card p {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--color-text-dim);
}

.hours-card {
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hours-label {
  padding-bottom: 0.7rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-dim);
}
.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
}
.hours-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.hours-day { color: var(--color-text-dim); }
.hours-time {
  color: var(--color-text);
  font-weight: 500;
}

/* --- Legal --------------------------------------------------------------- */
.legal-meta {
  margin-bottom: 2.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}
.legal-section {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  padding: 1.6rem 1.7rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.legal-section h2 {
  margin-bottom: 0.7rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
}
.legal-section p,
.legal-section li {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--color-text-dim);
}
.legal-section ul {
  list-style: none;
  padding-left: 0;
}
.legal-section li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
}
.legal-section li::before {
  content: '\203A';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--color-red);
}
.legal-section a {
  color: var(--color-red);
  transition: color 0.2s var(--ease);
}
.legal-section a:hover,
.legal-section a:focus-visible {
  color: var(--color-red-bright);
  text-decoration: underline;
}

/* --- Narrow screens ------------------------------------------------------ */
@media (max-width: 768px) {
  .about-hero .page-title,
  .contact-hero .page-title { text-align: center; }
  .about-hero .hero-badge,
  .contact-hero .hero-badge { margin-left: auto; margin-right: auto; }
  .about-hero p,
  .contact-hero p { margin-left: auto; margin-right: auto; }
  .project-card { padding: 1.5rem; }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stat-number { font-size: 1.7rem; }
  .stat-label { font-size: 0.64rem; letter-spacing: 0.12em; }
  .mv-card { padding: 1.4rem; }
  .timeline { padding-left: 2.5rem; }
  .timeline::before { left: 10px; }
  .timeline-item { padding: 1rem 1.1rem; }
  .timeline-item::before { left: -2.5rem; width: 22px; height: 22px; font-size: 0.66rem; }
  .timeline-item h4 { font-size: 0.88rem; }
  .timeline-item p { font-size: 0.82rem; }
  .project-header {
    flex-direction: column;
    gap: 0.9rem;
    text-align: center;
  }
  .project-logo { width: 68px; height: 68px; }
  .project-title { font-size: 1.1rem; }
  .project-link { align-self: center; }
  .team-card { padding: 1.3rem; }
  .team-card .team-img,
  .team-card .placeholder-img { width: 82px; height: 82px; }
  .info-card { padding: 1.3rem; }
  .info-card .value { font-size: 0.92rem; }
  .contact-form { padding: 1.1rem; }
  .legal-section { padding: 1.2rem 1.1rem; }
  .legal-section p,
  .legal-section li { font-size: 0.85rem; }
}

/* Tech Slider Marquee */
.tech-slider-container {
  margin-bottom: var(--section-gap);
  padding: 3rem 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}
.tech-slider-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dim);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.tech-slider {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.tech-slider-track {
  /* The logo set is rendered twice and scrolled by -50%, so the track's box
     must be exactly its content width or the loop visibly jumps at the seam.
     An inline-level box shrink-to-fits, and the site-wide
     `img, svg, video { max-width: 100% }` then resolves each logo's
     max-width against the track's own content box -- a circular percentage
     dependency the browser breaks by clamping the track short of its real
     width. Block-level + max-content removes the shrink-to-fit path. */
  display: flex;
  width: max-content;
  gap: 4rem;
  align-items: center;
  animation: scrollMarquee 30s linear infinite;
  padding-left: 4rem; /* Match gap so the loop doesn't jump */
  will-change: transform;
}
.tech-slider-track:hover {
  animation-play-state: paused;
}
.tech-slider-track img {
  height: 48px;
  width: auto;
  opacity: 0.85;
  /* Never let a logo's width feed back into the track's own sizing. */
  max-width: none;
  flex: 0 0 auto;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.tech-slider-track img:hover {
  opacity: 1;
  transform: scale(1.15);
}
/* Some icon sets ship single-colour glyphs with no `fill` attribute, so the
   paths fall back to black — already correct on the light theme. Do not
   invert them here; inverting would turn them white and hide them on white. */
.tech-slider-track img.tech-logo--mono {
  filter: none;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   19. Embedded showreel video (services page)
   -------------------------------------------------------------------------- */
.video-embed {
  margin: 0 0 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-card);
}
.video-embed__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-dim);
}
.video-embed__bar strong { color: var(--color-text); font-weight: 700; }
.video-embed__stage {
  position: relative;
  height: 560px;
  background: var(--color-bg-sunken);
}
.video-embed__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
@media (max-width: 576px) {
  .video-embed__stage { height: 360px; }
}
/* Zoom controls floating on the 3D walkthrough stage */
.zoom-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
}


#zoom-level {
  min-width: 44px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-text-dim);
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   20. Services sub-nav + per-department quote CTA
   -------------------------------------------------------------------------- */
.dept-nav {
  position: sticky;
  top: calc(var(--nav) + 10px);
  z-index: 900;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 2.5rem;
  padding: 0.4rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.dept-nav a {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dim);
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.dept-nav a:hover,
.dept-nav a:focus-visible {
  color: var(--color-text);
  background: var(--color-bg-hover);
}
.dept-block { scroll-margin-top: calc(var(--nav) + 84px); }
.dept-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dept-cta { flex: 0 0 auto; }
@media (max-width: 576px) {
  .dept-nav { top: calc(var(--nav) + 6px); }
  .dept-nav a { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
}

/* --------------------------------------------------------------------------
   Store & blog (shared by the Inertia storefront/blog pages; moved here from
   the old blade views so the pages stay style-free)
   -------------------------------------------------------------------------- */
.store-hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(180deg, rgba(255, 90, 95, 0.05) 0%, transparent 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  border: 1px solid var(--color-border);
}
.category-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.category-card {
  flex: 1 1 240px;
  max-width: 300px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}
.category-card:hover, .category-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-red-border);
}
.category-preview {
  width: 120px; height: 120px; margin-bottom: 1.5rem;
  border-radius: var(--radius-sm); background: var(--color-bg-sunken);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; border: 1px solid var(--color-border-hover);
  color: var(--color-text-muted);
}
.category-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.category-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--color-heading); margin-bottom: 0.5rem; }
.category-count {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-red);
  background: var(--color-red-dim); padding: 0.2rem 0.6rem; border-radius: 4px;
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; }
.product-card {
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  display: flex; flex-direction: column; text-decoration: none; color: var(--color-text);
}
.product-card:hover, .product-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-card); border-color: var(--color-border-hover); }
.product-image { height: 240px; background: var(--color-bg-sunken); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.product-image img { max-height: 100%; max-width: 100%; object-fit: contain; }
.product-image .no-image { font-family: var(--font-mono); color: var(--color-text-muted); font-size: 0.85rem; }
.product-content { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-category { font-family: var(--font-heading); font-size: 0.75rem; text-transform: uppercase; color: var(--color-red); letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.product-title { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--color-heading); }
.product-price { font-family: var(--font-mono); font-size: 1.1rem; color: var(--color-text); margin-bottom: 1rem; }
.product-price--request { color: var(--color-text-dim); font-size: 0.95rem; font-style: italic; }
.product-footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--color-border); }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--color-text-muted); text-decoration: none; margin-bottom: 2rem; transition: color var(--dur) var(--ease); }
.back-link:hover { color: var(--color-red); }
.product-detail { padding: 2rem 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
@media (max-width: 991px) { .detail-grid { grid-template-columns: 1fr; gap: 2rem; } }
.detail-image {
  background: var(--color-bg-sunken); border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); padding: 3rem;
  display: flex; align-items: center; justify-content: center; min-height: 400px;
}
.detail-image img { max-width: 100%; max-height: 500px; }
.detail-image .no-image { font-family: var(--font-mono); color: var(--color-text-muted); font-size: 1rem; }
.detail-info h1 { font-family: var(--font-heading); font-size: 2.5rem; margin-bottom: 0.5rem; }
.detail-category { font-family: var(--font-heading); font-size: 0.85rem; color: var(--color-red); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; display: block; }
.detail-price { font-family: var(--font-mono); font-size: 2rem; color: var(--color-text); margin-bottom: 2rem; }
.detail-price--request { font-size: 1.25rem; color: var(--color-text-dim); font-style: italic; }
.detail-desc { color: var(--color-text-dim); font-size: 1.1rem; line-height: 1.7; margin-bottom: 2.5rem; }
.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 2.5rem; }
.specs-table th, .specs-table td { padding: 1rem 0; border-bottom: 1px solid var(--color-border); text-align: left; }
.specs-table th { color: var(--color-text-muted); font-weight: 500; width: 30%; }
.specs-table td { font-family: var(--font-mono); color: var(--color-text); }
.thumbnail-row { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }
.thumbnail {
  width: 80px; height: 80px; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  cursor: pointer; background: var(--color-bg-sunken);
  display: flex; align-items: center; justify-content: center; padding: 0.5rem;
  transition: border-color var(--dur) var(--ease);
}
.thumbnail img { max-width: 100%; max-height: 100%; }
.thumbnail[aria-current="true"] { border-color: var(--color-red); }
.thumbnail:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; }
.cart-container { max-width: 800px; margin: 0 auto; padding: 3rem 1.5rem; }
.cart-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 1.5rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--color-border); margin-bottom: 1rem; }
@media (max-width: 575px) {
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item__actions { grid-column: 1 / -1; align-items: flex-start !important; }
}
.cart-item-image { width: 120px; height: 120px; border-radius: var(--radius-sm); object-fit: contain; background: var(--color-bg-sunken); }
.cart-item-details h3 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 0.25rem; }
.cart-item-details p { font-size: 0.85rem; color: var(--color-text-dim); margin: 0; }
.cart-item-price { font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.cart-summary { background: var(--color-bg-card); padding: 2rem; border-radius: var(--radius-md); margin-top: 3rem; border: 1px solid var(--color-border); }
.cart-summary h2 { font-family: var(--font-heading); margin-bottom: 1rem; }
.cart-summary p { display: flex; justify-content: space-between; margin-bottom: 0.75rem; font-size: 1rem; }
.cart-summary-total { font-size: 1.25rem; font-weight: 700; border-top: 1px solid var(--color-border); padding-top: 1rem; margin-top: 1rem; }
.cart-empty { text-align: center; color: var(--color-text-dim); padding: 3rem; }
.cart-empty svg { color: var(--color-icon); }
.checkout-container { max-width: 600px; margin: 0 auto; padding: 3rem 1.5rem; }
.blog-container { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
.blog-header { text-align: center; margin-bottom: 4rem; }
.blog-title { font-size: 3rem; font-weight: 800; color: var(--color-heading); margin-bottom: 1rem; }
@media (max-width: 575px) { .blog-title { font-size: 2.25rem; } .blog-container { padding: 2.5rem 1.25rem; } }
.blog-subtitle { font-size: 1.1rem; color: var(--color-text-dim); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2.5rem; }
.post-card {
  background: var(--color-bg-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 16px); box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none; color: var(--color-text);
  display: flex; flex-direction: column; overflow: hidden;
}
.post-card:hover, .post-card:focus-visible { transform: translateY(-6px); border-color: var(--color-border-hover); }
.post-card-image { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card-image--placeholder { display: flex; align-items: center; justify-content: center; background: var(--color-bg-sunken); color: var(--color-text-muted); }
.post-card-body { padding: 2rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-date { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.post-heading { font-size: 1.4rem; font-weight: 700; color: var(--color-heading); margin-bottom: 1rem; line-height: 1.3; }
.post-excerpt { color: var(--color-text-dim); line-height: 1.6; margin-bottom: 1.5rem; flex-grow: 1; }
.read-more { color: var(--color-red); font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; margin-top: auto; }
.read-more svg { width: 16px; height: 16px; margin-left: 4px; transition: transform 0.2s; }
.post-card:hover .read-more svg { transform: translateX(4px); }
.article-container { max-width: 800px; margin: 0 auto; padding: 5rem 2rem; }
.article-header { margin-bottom: 4rem; text-align: center; }
.article-image { width: 100%; border-radius: var(--radius-md, 16px); margin-bottom: 2rem; object-fit: cover; height: 400px; background: var(--color-bg-card); }
.article-title { font-size: 3rem; font-weight: 800; color: var(--color-heading); line-height: 1.2; margin-bottom: 1.5rem; }
@media (max-width: 575px) { .article-title { font-size: 2rem; } .article-container { padding: 2.5rem 1.25rem; } }
.article-date { display: block; font-size: 0.85rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; }
.article-content { font-size: 1.0625rem; color: var(--color-text); line-height: 1.8; }
.article-content p { margin-bottom: 1.5rem; }
.article-content h2 { font-size: 2rem; color: var(--color-heading); margin-top: 3rem; margin-bottom: 1.5rem; font-weight: 700; }
.article-content h3 { font-size: 1.5rem; color: var(--color-heading); margin-top: 2.5rem; margin-bottom: 1rem; font-weight: 700; }
.article-content h4 { font-size: 1.25rem; color: var(--color-heading); margin-top: 2rem; margin-bottom: 1rem; font-weight: 600; }
.article-content ul, .article-content ol { margin-bottom: 1.5rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content a { color: var(--color-red); text-decoration: underline; }
.article-content code { background: var(--color-bg-sunken); padding: 0.2rem 0.4rem; border-radius: 4px; font-size: 0.9em; font-family: var(--font-mono); }
.article-content pre { background: #0f172a; color: #e2e8f0; padding: 1.5rem; border-radius: 8px; overflow-x: auto; margin-bottom: 1.5rem; }
.article-content pre code { background: none; padding: 0; color: inherit; }
.article-content blockquote { border-left: 4px solid var(--color-red); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--color-text-dim); }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.article-content th, .article-content td { border: 1px solid var(--color-border); padding: 0.75rem 1rem; text-align: left; }
.article-content th { background: var(--color-bg-sunken); color: var(--color-heading); }
.article-content hr { border: none; border-top: 1px solid var(--color-border); margin: 2rem 0; }
.article-content img { max-width: 100%; border-radius: var(--radius-sm); }

/* Department cards (home capabilities, approach steps) carry their accent on
   the top border and the icon, so each discipline reads in its own colour the
   same way the dept tags do. */
.mv-card.dept-block,
.stat-card.dept-block {
  border-top: 3px solid var(--dept-accent);
}
.dept-block .mv-icon {
  color: var(--dept-accent-text);
  background: var(--dept-accent-dim);
  border-color: var(--dept-accent-bd);
}
.dept-block .mv-label {
  color: var(--dept-accent-text);
}
