/* ==========================================================================
   site.css
   Static Consultancy Website
   --------------------------------------------------------------------------
   Purpose
   -------
   Shared presentation layer for the static consultancy website.

   Design goals
   ------------
   1. Keep visual identity easy to retheme when the corporate logo/palette
      becomes available.
   2. Use a small number of layout tokens and color tokens.
   3. Keep the page readable and restrained before final branding is applied.
   4. Support the Featured R&D and Engineering Lab accordion/card patterns.
   5. Remain framework-free and usable with ordinary static hosting.

   HOW TO RETHEME THE SITE
   -----------------------
   Start in :root below.

   Most branding changes can be made by updating:
     --color-brand-primary
     --color-brand-secondary
     --color-brand-accent
     --color-brand-dark
     --color-brand-light
     --color-text
     --color-text-muted
     --color-surface
     --color-surface-alt
     --color-border

   Layout changes can usually be made by updating:
     --content-max
     --content-readable
     --section-space
     --card-padding
     --radius-card
     --space-*

   Typography can be changed through:
     --font-sans
     --font-display
     --font-mono
   ========================================================================== */


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     TYPOGRAPHY
     ------------------------------------------------------------------------
     These are intentionally system-font defaults so the site works without
     downloading web fonts. Replace --font-display / --font-sans later if the
     corporate identity specifies a typeface.
     ------------------------------------------------------------------------ */

  --font-sans:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --font-display: var(--font-sans);

  --font-mono:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;


  /* ------------------------------------------------------------------------
     COLOR PALETTE
     ------------------------------------------------------------------------
     CURRENT STATE:
     Neutral corporate / technical placeholder palette.

     WHEN THE CORPORATE LOGO IS AVAILABLE:
     - Set --color-brand-primary to the dominant identity color.
     - Set --color-brand-secondary to a secondary corporate tone.
     - Set --color-brand-accent to the high-attention CTA / highlight color.
     - Keep sufficient contrast between text and background.
     - Avoid using too many unrelated colors; the project logos already
       introduce additional visual variety.

     Tip:
     A common corporate setup is:
       primary   = logo's dominant color
       secondary = darker/lighter companion hue
       accent    = complementary or high-energy brand color
     ------------------------------------------------------------------------ */

  --color-brand-primary: #174a78;
  --color-brand-secondary: #2f6f95;
  --color-brand-accent: #2f8f83;

  --color-brand-dark: #10283c;
  --color-brand-light: #e9f1f6;

  --color-text: #17212b;
  --color-text-muted: #586674;
  --color-text-soft: #75818c;

  --color-background: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f7f8;
  --color-surface-strong: #eef2f4;

  --color-border: #d8e0e5;
  --color-border-strong: #bcc9d1;

  --color-focus: #0b6fc2;

  --color-link: var(--color-brand-primary);
  --color-link-hover: var(--color-brand-secondary);

  --color-button-primary-bg: var(--color-brand-primary);
  --color-button-primary-text: #ffffff;
  --color-button-secondary-bg: transparent;
  --color-button-secondary-text: var(--color-brand-primary);

  --color-footer-bg: var(--color-brand-dark);
  --color-footer-text: #ffffff;


  /* ------------------------------------------------------------------------
     SPACING SCALE
     ------------------------------------------------------------------------
     Use these rather than hard-coded margins wherever possible.
     This makes density easy to tune globally.
     ------------------------------------------------------------------------ */

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;


  /* ------------------------------------------------------------------------
     LAYOUT
     ------------------------------------------------------------------------ */

  /* Main overall content width. Increase for a wider, more editorial site. */
  --content-max: 76rem;

  /* Comfortable maximum width for long-form copy. */
  --content-readable: 48rem;

  /* Default side padding for site sections. */
  --gutter: 1.5rem;

  /* Vertical rhythm between major homepage sections. */
  --section-space: 5.5rem;

  /* Card internals. */
  --card-padding: 1.5rem;


  /* ------------------------------------------------------------------------
     BORDER RADIUS
     ------------------------------------------------------------------------
     Reduce these toward 0 for a sharper / more formal identity.
     Increase them for a softer / more contemporary product aesthetic.
     ------------------------------------------------------------------------ */

  --radius-small: 0.375rem;
  --radius-medium: 0.65rem;
  --radius-card: 0.85rem;


  /* ------------------------------------------------------------------------
     SHADOWS
     ------------------------------------------------------------------------
     Keep subtle for a corporate technical presentation.
     Remove entirely by setting values to "none".
     ------------------------------------------------------------------------ */

  --shadow-small:
    0 1px 2px rgba(16, 40, 60, 0.06),
    0 2px 8px rgba(16, 40, 60, 0.04);

  --shadow-card:
    0 8px 24px rgba(16, 40, 60, 0.07);


  /* ------------------------------------------------------------------------
     TRANSITIONS
     ------------------------------------------------------------------------ */

  --transition-fast: 140ms ease;
  --transition-normal: 220ms ease;
}


/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--color-background);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-background);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-link-hover);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}


/* ==========================================================================
   3. ACCESSIBILITY UTILITIES
   ========================================================================== */

/* Visually hide text while keeping it available to screen readers. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Keyboard focus styling.
   Update --color-focus if the brand palette changes. */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}


/* ==========================================================================
   4. GLOBAL CONTAINERS
   ========================================================================== */

.site-shell {
  width: min(100% - (2 * var(--gutter)), var(--content-max));
  margin-inline: auto;
}

/* Long paragraphs can become hard to read if stretched across the whole page.
   This class is available if additional pages need a controlled text measure. */
.readable {
  max-width: var(--content-readable);
}


/* ==========================================================================
   5. TYPOGRAPHY
   ========================================================================== */

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 15ch;
  margin-bottom: var(--space-5);
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  font-weight: 700;
}

h2 {
  margin-bottom: var(--space-4);
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  font-weight: 700;
}

h3 {
  margin-bottom: var(--space-3);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 650;
}

p {
  margin-top: 0;
  margin-bottom: var(--space-4);
}

strong {
  font-weight: 650;
}

.eyebrow {
  margin-bottom: var(--space-3);
  color: var(--color-brand-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-heading {
  max-width: var(--content-readable);
  margin-bottom: var(--space-7);
}

.section-heading > :last-child {
  margin-bottom: 0;
}

.section-closing {
  max-width: var(--content-readable);
  margin-top: var(--space-6);
  margin-bottom: 0;
}


/* ==========================================================================
   6. SITE HEADER / NAVIGATION
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.site-header .site-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  min-height: 4.5rem;
}

.site-brand {
  color: var(--color-brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.site-logo {
    display: block;
    width: auto;
    height: min(100%, 100px);
    object-fit: contain;
    border: #000 solid 2px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
}

.site-nav a {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast);
}

.site-nav a:hover {
  color: var(--color-brand-primary);
}

/* ==========================================================
   Corporate logo / wordmark

   Uses the SVG favicon as the graphical symbol and HTML text
   for the company name.

   Adjust --brand-symbol-size and --brand-name-size to control
   the overall dimensions without modifying the SVG.
   ========================================================== */

.site-brand {
    --brand-symbol-size: 64px;
    --brand-name-size: 1.75rem;

    display: inline-flex;
    align-items: center;
    gap: 0.75rem;

    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

/* Graphical symbol */
.site-brand__symbol {
    display: block;

    width: var(--brand-symbol-size);
    height: var(--brand-symbol-size);

    flex: 0 0 auto;
    object-fit: contain;
}

/* Two-line text block */
.site-brand__wordmark {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;
    line-height: 1;
}

/* Primary company name */
.site-brand__name {
    display: flex;
    align-items: baseline;
    gap: 0.3em;

    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--brand-name-size);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;

    white-space: nowrap;
}

.site-brand__temporal {
    color: #142d40; /* Dark navy */
}

.site-brand__shift {
    color: #087f91; /* Teal */
}

/* Secondary line: complete legal-name suffix */
.site-brand__descriptor {
    margin-top: 0.35rem;

    color: #506779;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.2;

    white-space: nowrap;
}

/* Keyboard navigation */
.site-brand:focus-visible {
    outline: 2px solid #087f91;
    outline-offset: 4px;
    border-radius: 4px;
}


/* ==========================================================================
   7. BUTTONS / CTAs
   ========================================================================== */

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--color-button-primary-bg);
  border-radius: var(--radius-small);
  background: var(--color-button-primary-bg);
  color: var(--color-button-primary-text);
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.button:hover {
  transform: translateY(-1px);
  background: var(--color-brand-secondary);
  border-color: var(--color-brand-secondary);
  color: var(--color-button-primary-text);
}

.button--secondary {
  background: var(--color-button-secondary-bg);
  color: var(--color-button-secondary-text);
}

.button--secondary:hover {
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
}


/* ==========================================================================
   8. HERO
   ========================================================================== */

.hero {
  padding-block:
    clamp(5rem, 10vw, 9rem)
    clamp(4rem, 8vw, 7rem);

  border-bottom: 1px solid var(--color-border);
  background:
    linear-gradient(
      180deg,
      var(--color-surface) 0%,
      var(--color-surface-alt) 100%
    );
}

.hero__lede {
  max-width: 44rem;
  margin-bottom: var(--space-5);
  color: var(--color-text);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.45;
}

.hero p:not(.eyebrow):not(.hero__lede) {
  max-width: var(--content-readable);
  color: var(--color-text-muted);
  font-size: 1.05rem;
}


/* ==========================================================================
   9. STANDARD CONTENT SECTIONS
   ========================================================================== */

.content-section,
.portfolio-section,
.contact-section {
  padding-block: var(--section-space);
}

.content-section:nth-of-type(even) {
  /* Soft alternating surface.
     Remove this rule if the final corporate design uses a single background. */
  background: var(--color-surface-alt);
}

.content-grid {
  display: grid;
  gap: var(--space-6);
}

.content-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-grid article {
  padding-top: var(--space-4);
  border-top: 2px solid var(--color-border-strong);
}

.content-grid article p:last-child {
  margin-bottom: 0;
}

/* ================================================================
   WHEN APPLIED SOFTWARE R&D HELPS
   Background artwork
   ----------------------------------------------------------------
   The SVG is decorative. It provides a visual representation of
   exploratory technical paths gradually converging toward a more
   focused direction.

   The background is deliberately subtle so that the section copy
   remains the primary content.

   Production asset:
     ../images/site/when-applied-software-rd-helps-background.svg
   ================================================================ */

.rd-help-section {
    /*
     * Establish a positioning context for the decorative background.
     * The section's normal background color remains underneath the SVG.
     */
    position: relative;
    overflow: hidden;

    /*
     * Keep an explicit background color so the section still looks
     * correct if the SVG cannot be loaded.
     *
     * Change this variable/value if the section already uses another
     * approved surface color.
     */
    background-color: var(--color-surface);
}


/*
 * Render the artwork on a pseudo-element instead of applying it
 * directly as background-image on the section.
 *
 * This gives us independent control over the artwork's opacity,
 * position, and responsive behavior without affecting the section
 * content.
 */
.rd-help-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        url("../images/svgs/backgrounds/when-applied-software-rd-helps-background.svg");

    background-repeat: no-repeat;

    /*
     * Center the complete composition within the section.
     *
     * "cover" allows the SVG to fill the band while preserving its
     * aspect ratio. Some artwork may extend beyond the visible area
     * depending on the band's dimensions; that is intentional.
     */
    background-position: center calc(50% + 0.5em);
    background-size: cover;

    /*
     * The SVG itself already uses restrained opacity values.
     * This additional layer-level opacity makes it easy to tune the
     * entire graphic after seeing it behind the actual copy.
     *
     * Recommended tuning range: approximately 0.35–0.70.
     */
    opacity: 0.35;

    /*
     * The graphic is purely decorative and must never interfere with
     * links, selections, or other pointer interaction.
     */
    pointer-events: none;

    /*
     * Keep the decorative layer behind the section content.
     */
    z-index: 0;
}


/*
 * Raise the actual section content above the decorative artwork.
 *
 * .site-shell is already the common content container used throughout
 * the site, so this avoids requiring an additional HTML wrapper.
 */
.rd-help-section > .site-shell {
    position: relative;
    z-index: 1;
}

/* ================================================================
   Capabilities
   Background artwork
   ----------------------------------------------------------------
   The SVG is decorative. It provides a visual representation of
   how the areas of expertise converge on solutions.

   The background is deliberately subtle so that the section copy
   remains the primary content.

   Production asset:
     ../images/site/capablities-background.svg
   ================================================================ */

.capabilities-section {
    /*
     * Establish a positioning context for the decorative background.
     * The section's normal background color remains underneath the SVG.
     */
    position: relative;
    overflow: hidden;

    /*
     * Keep an explicit background color so the section still looks
     * correct if the SVG cannot be loaded.
     *
     * Change this variable/value if the section already uses another
     * approved surface color.
     */
    background-color: var(--color-surface);
}


/*
 * Render the artwork on a pseudo-element instead of applying it
 * directly as background-image on the section.
 *
 * This gives us independent control over the artwork's opacity,
 * position, and responsive behavior without affecting the section
 * content.
 */
.capabilities-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        url("../images/svgs/backgrounds/capabilities-background.svg");

    background-repeat: no-repeat;

    /*
     * Center the complete composition within the section.
     *
     * "cover" allows the SVG to fill the band while preserving its
     * aspect ratio. Some artwork may extend beyond the visible area
     * depending on the band's dimensions; that is intentional.
     */
    background-position: center calc(50% + 0.5em);
    background-size: cover;

    /*
     * The SVG itself already uses restrained opacity values.
     * This additional layer-level opacity makes it easy to tune the
     * entire graphic after seeing it behind the actual copy.
     *
     * Recommended tuning range: approximately 0.35–0.70.
     */
    opacity: 0.35;

    /*
     * The graphic is purely decorative and must never interfere with
     * links, selections, or other pointer interaction.
     */
    pointer-events: none;

    /*
     * Keep the decorative layer behind the section content.
     */
    z-index: 0;
}


/*
 * Raise the actual section content above the decorative artwork.
 *
 * .site-shell is already the common content container used throughout
 * the site, so this avoids requiring an additional HTML wrapper.
 */
.capabilities-section > .site-shell {
    position: relative;
    z-index: 1;
}


/* ================================================================
   Engagement
   Background artwork
   ----------------------------------------------------------------
   The SVG is decorative. It provides a visual representation of
   how the areas of expertise converge on solutions.

   The background is deliberately subtle so that the section copy
   remains the primary content.

   Production asset:
     ../images/site/engagement-background.svg
   ================================================================ */

.engagement-section {
    /*
     * Establish a positioning context for the decorative background.
     * The section's normal background color remains underneath the SVG.
     */
    position: relative;
    overflow: hidden;

    /*
     * Keep an explicit background color so the section still looks
     * correct if the SVG cannot be loaded.
     *
     * Change this variable/value if the section already uses another
     * approved surface color.
     */
    background-color: var(--color-surface);
}


/*
 * Render the artwork on a pseudo-element instead of applying it
 * directly as background-image on the section.
 *
 * This gives us independent control over the artwork's opacity,
 * position, and responsive behavior without affecting the section
 * content.
 */
.engagement-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        url("../images/svgs/backgrounds/engagement-background.svg");

    background-repeat: no-repeat;

    /*
     * Center the complete composition within the section.
     *
     * "cover" allows the SVG to fill the band while preserving its
     * aspect ratio. Some artwork may extend beyond the visible area
     * depending on the band's dimensions; that is intentional.
     */
    background-position: center calc(50% + 0.5em);
    background-size: cover;

    /*
     * The SVG itself already uses restrained opacity values.
     * This additional layer-level opacity makes it easy to tune the
     * entire graphic after seeing it behind the actual copy.
     *
     * Recommended tuning range: approximately 0.35–0.70.
     */
    opacity: 0.35;

    /*
     * The graphic is purely decorative and must never interfere with
     * links, selections, or other pointer interaction.
     */
    pointer-events: none;

    /*
     * Keep the decorative layer behind the section content.
     */
    z-index: 0;
}


/*
 * Raise the actual section content above the decorative artwork.
 *
 * .site-shell is already the common content container used throughout
 * the site, so this avoids requiring an additional HTML wrapper.
 */
.engagement-section > .site-shell {
    position: relative;
    z-index: 1;
}


/* ================================================================
   Operating Principles
   Background artwork
   ----------------------------------------------------------------
   The SVG is decorative. It provides a visual representation of
   how the areas of expertise converge on solutions.

   The background is deliberately subtle so that the section copy
   remains the primary content.

   Production asset:
     ../images/site/operation-principles-background.svg
   ================================================================ */

.operating-principles-section {
    /*
     * Establish a positioning context for the decorative background.
     * The section's normal background color remains underneath the SVG.
     */
    position: relative;
    overflow: hidden;

    /*
     * Keep an explicit background color so the section still looks
     * correct if the SVG cannot be loaded.
     *
     * Change this variable/value if the section already uses another
     * approved surface color.
     */
    background-color: var(--color-surface);
}


/*
 * Render the artwork on a pseudo-element instead of applying it
 * directly as background-image on the section.
 *
 * This gives us independent control over the artwork's opacity,
 * position, and responsive behavior without affecting the section
 * content.
 */
.operating-principles-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        url("../images/svgs/backgrounds/operating-principles-background.svg");

    background-repeat: no-repeat;

    /*
     * Center the complete composition within the section.
     *
     * "cover" allows the SVG to fill the band while preserving its
     * aspect ratio. Some artwork may extend beyond the visible area
     * depending on the band's dimensions; that is intentional.
     */
    background-position: center calc(50% + 0.5em);
    background-size: cover;

    /*
     * The SVG itself already uses restrained opacity values.
     * This additional layer-level opacity makes it easy to tune the
     * entire graphic after seeing it behind the actual copy.
     *
     * Recommended tuning range: approximately 0.35–0.70.
     */
    opacity: 0.35;

    /*
     * The graphic is purely decorative and must never interfere with
     * links, selections, or other pointer interaction.
     */
    pointer-events: none;

    /*
     * Keep the decorative layer behind the section content.
     */
    z-index: 0;
}


/*
 * Raise the actual section content above the decorative artwork.
 *
 * .site-shell is already the common content container used throughout
 * the site, so this avoids requiring an additional HTML wrapper.
 */
.operating-principles-section > .site-shell {
    position: relative;
    z-index: 1;
}


/* ==========================================================================
   10. PORTFOLIO / PROJECT STACK
   ========================================================================== */

/* The stack intentionally reads like a vertical list rather than a card grid.
   This matches the approved Featured R&D / Engineering Lab interaction pattern. */

.project-stack {
  display: grid;
  gap: var(--space-4);
}


/* ==========================================================================
   11. PROJECT CARDS
   ========================================================================== */

.project-card {
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-small);
  transition:
    border-color var(--transition-normal),
    box-shadow var(--transition-normal),
    transform var(--transition-normal);
}

.project-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card);
}

/* Summary row stays visible whether collapsed or expanded. */
.project-card__summary {
  display: grid;
  grid-template-columns: 10rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-6);
  min-height: 8rem;
  padding: var(--card-padding);
}

/* --------------------------------------------------------------
   LOGO AREA
   --------------------------------------------------------------
   Change width here if the final card mockups suggest a larger
   or smaller identity treatment.
   -------------------------------------------------------------- */

.project-card__logo,
.project-card__logo-link {
  width: 100%;
  max-width: 9rem;
}

.project-card__logo {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.project-card__logo-link {
  display: block;
  border-radius: var(--radius-small);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast);
}

.project-card__logo-link:hover {
  opacity: 0.84;
  transform: translateY(-1px);
}

/* Engineering Lab logos are intentionally not links.
   Cursor remains default to reinforce non-navigation. */
.project-card--lab .project-card__logo {
  cursor: default;
}


/* --------------------------------------------------------------
   HOMEPAGE PROPOSITION
   -------------------------------------------------------------- */

.project-card__proposition {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.55;
}


/* --------------------------------------------------------------
   EXPAND / COLLAPSE CONTROL
   --------------------------------------------------------------
   Only this button toggles card context.
   The entire card must NOT be treated as clickable.
   -------------------------------------------------------------- */

.project-card__toggle {
  display: inline-grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-brand-primary);
  cursor: pointer;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast);
}

.project-card__toggle:hover {
  transform: scale(1.04);
  border-color: var(--color-brand-primary);
  background: var(--color-brand-light);
  color: var(--color-brand-dark);
}


/* --------------------------------------------------------------
   EXPANDED DETAILS
   -------------------------------------------------------------- */

.project-card__details {
  padding:
    0
    var(--card-padding)
    var(--card-padding)
    calc(10rem + var(--space-6) + var(--card-padding));

  border-top: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

/* Because hidden is a semantic boolean attribute, this ensures
   the browser will never reserve layout space for collapsed panels. */
.project-card__details[hidden] {
  display: none;
}

.project-card__details h3 {
  margin-top: var(--space-5);
}


/* ==========================================================================
   12. PROJECT METADATA
   ========================================================================== */

.project-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  max-width: 44rem;
  margin:
    var(--space-5)
    0;
}

.project-meta div {
  min-width: 0;
}

.project-meta dt {
  margin-bottom: var(--space-1);
  color: var(--color-text-soft);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta dd {
  margin: 0;
  color: var(--color-text);
  font-weight: 600;
}


/* ==========================================================================
   13. FEATURED R&D ONLY
   ========================================================================== */

.project-card--featured {
  /* Slightly stronger visual emphasis than Engineering Lab.
     Change this border variable if Featured R&D should become substantially
     more prominent once the final visual identity is available. */
  border-left: 4px solid var(--color-brand-primary);
}

.project-card__explore {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: var(--color-brand-primary);
  font-weight: 700;
  text-decoration: none;
}

.project-card__explore::after {
  content: "→";
  transition: transform var(--transition-fast);
}

.project-card__explore:hover::after {
  transform: translateX(0.2rem);
}

/* ==========================================================================
   13.a. FEATURED R&D PAGES
   ========================================================================== */

/* Project Status: full-width, two-column table. */
.project-status-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* First column: fit the longest label without wrapping. */
.project-status-table th {
    width: 1%;
    white-space: nowrap;
    text-align: right;
    vertical-align: top;
    padding: 0.5rem 1rem 0.5rem 0;
}

/* Second column: occupy the remaining width and wrap as needed. */
.project-status-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.5rem 0;
    overflow-wrap: anywhere;
}

.technical-flowchart--vertical {
    display: block;

    /* Desktop size limits */
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 75vh;

    /* Preserve the complete diagram without cropping. */
    object-fit: contain;

    /* Center within the content area. */
    margin: 1.5rem auto;
}


/* ==========================================================================
   PROJECT DETAIL PAGE — HERO
   --------------------------------------------------------------------------
   Primary identity and orientation for Featured R&D project pages.

   Layout:
   - Project category (eyebrow) above the main content.
   - Project logo in the left column.
   - Project name, subtitle, proposition, and metadata in the right column.
   - Single-column layout on mobile devices.

   All colors, spacing, and typography use the existing site design tokens.
   ========================================================================== */


/* --------------------------------------------------------------------------
   HERO CONTAINER
   -------------------------------------------------------------------------- */

.project-hero {
    padding-block:
        clamp(3rem, 6vw, 5rem)
        clamp(3rem, 5vw, 4.5rem);

    border-bottom: 1px solid var(--color-border);

    background:
        linear-gradient(
            180deg,
            var(--color-surface) 0%,
            var(--color-surface-alt) 100%
        );
}


/* --------------------------------------------------------------------------
   HERO LAYOUT
   --------------------------------------------------------------------------
   Two-column layout with a fixed-width logo area and a flexible
   content area.

   The minmax(0, 1fr) declaration prevents long text from forcing
   the content column beyond the available container width.
   -------------------------------------------------------------------------- */

.project-hero__layout {
    display: grid;

    grid-template-columns:
        minmax(9rem, 12rem)
        minmax(0, 1fr);

    align-items: center;

    gap: clamp(
        var(--space-6),
        5vw,
        var(--space-8)
    );

    margin-top: var(--space-5);
}





/* --------------------------------------------------------------------------
   PROJECT IDENTITY / LOGO CONTAINER
   --------------------------------------------------------------------------
   Provides a consistent presentation area for project logos.

   The logo retains its original proportions, allowing different
   project identities to share the same layout without distortion.
   -------------------------------------------------------------------------- */

.project-hero__identity {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 0;

    padding: var(--space-5);

    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);

    background: var(--color-surface);

    box-shadow: var(--shadow-small);
}


/* --------------------------------------------------------------------------
   PROJECT LOGO
   -------------------------------------------------------------------------- */

.project-hero__logo {
    display: block;

    width: 100%;
    max-width: 10rem;

    height: auto;
    max-height: 10rem;

    object-fit: contain;
}


/* --------------------------------------------------------------------------
   HERO TEXT CONTENT
   -------------------------------------------------------------------------- */

.project-hero__content {
    min-width: 0;

    max-width: var(--content-readable);
}


/* Project title: slightly smaller than the homepage hero heading. */

.project-hero__content h1 {
    max-width: none;

    margin-bottom: var(--space-3);

    font-size: clamp(2.4rem, 4.5vw, 4rem);

    line-height: 1.1;

    overflow-wrap: anywhere;
}


/* --------------------------------------------------------------------------
   PROJECT SUBTITLE
   --------------------------------------------------------------------------
   Identifies the project's technical domain or primary capability.
   -------------------------------------------------------------------------- */

.project-hero__subtitle {
    max-width: 42rem;

    margin-bottom: var(--space-5);

    color: var(--color-brand-secondary);

    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 650;

    line-height: 1.4;
}


/* --------------------------------------------------------------------------
   PROJECT PROPOSITION
   --------------------------------------------------------------------------
   Primary descriptive statement explaining what the project does.

   Uses a larger font than ordinary body copy while remaining visually
   subordinate to the project title.
   -------------------------------------------------------------------------- */

.project-hero__proposition {
    max-width: var(--content-readable);

    margin-bottom: var(--space-6);

    color: var(--color-text);

    font-size: clamp(1.05rem, 1.7vw, 1.2rem);

    line-height: 1.6;
}


/* --------------------------------------------------------------------------
   HERO PROJECT METADATA
   --------------------------------------------------------------------------
   Extends the existing .project-meta component without modifying
   its behavior elsewhere on the site.

   Used for Capability, Maturity, and other project attributes.
   -------------------------------------------------------------------------- */

.project-meta--hero {
    max-width: 100%;

    margin-top: var(--space-5);
    margin-bottom: 0;

    padding-top: var(--space-5);

    border-top: 1px solid var(--color-border);
}


/* ==========================================================================
   14. ENGINEERING LAB ONLY
   ========================================================================== */

.project-card--lab {
  /* Lab is intentionally quieter than Featured R&D.
     This preserves hierarchy without changing the shared structure. */
  background: var(--color-surface);
}

.project-card--lab .project-card__details {
  background: var(--color-surface-alt);
}


/* ==========================================================================
   15. CONTACT SECTION
   ========================================================================== */

.contact-section {
  background: var(--color-brand-dark);
  color: #ffffff;
}

.contact-section h2,
.contact-section p {
  color: #ffffff;
}

.contact-section p {
  max-width: var(--content-readable);
}

.contact-section .button {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--color-brand-dark);
}

.contact-section .button:hover {
  background: var(--color-brand-light);
  border-color: var(--color-brand-light);
  color: var(--color-brand-dark);
}


/* ==========================================================================
   16. FOOTER
   ========================================================================== */

.site-footer {
  padding-block: var(--space-6);
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}


/* ==========================================================================
   17. RESPONSIVE DESIGN
   ========================================================================== */

/* ------------------------------------------------------------------------
   TABLET / NARROW DESKTOP
   ------------------------------------------------------------------------ */

@media (max-width: 64rem) {
  :root {
    --section-space: 4.5rem;
  }

  .site-header .site-shell {
    align-items: flex-start;
    flex-direction: column;
    padding-block: var(--space-3);
  }

  .site-nav {
    justify-content: flex-start;
  }

  .project-card__summary {
    grid-template-columns: 8rem minmax(0, 1fr) auto;
    gap: var(--space-5);
  }

  .project-card__details {
    padding-left: calc(8rem + var(--space-5) + var(--card-padding));
  }

  .project-status-table th {
      white-space: normal;
      overflow-wrap: anywhere;
      width: 35%;
  }

  .project-status-table td {
      width: 65%;
  }

  .rd-help-section::before {
      background-position: 55% center;
      opacity: 0.48;
  }

  .capabilities-section::before {
      background-position: 55% center;
      opacity: 0.48;
  }

  .engagement-section::before {
      background-position: 55% center;
      opacity: 0.48;
  }

  .operating-principles-section::before {
      background-position: 55% center;
      opacity: 0.48;
  }
}

/* ------------------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------------------ */

@media (max-width: 48rem) {
  :root {
    --gutter: 1rem;
    --section-space: 3.75rem;
    --card-padding: 1.15rem;
  }

  .site-header {
    position: static;
  }

  .site-nav {
    gap:
      var(--space-2)
      var(--space-4);
  }

  .site-nav a {
    font-size: 0.86rem;
  }

  .hero {
    padding-block:
      4.75rem
      4rem;
  }

  .content-grid--2 {
    grid-template-columns: 1fr;
  }

  /* On mobile, card content stacks vertically so the proposition
     can remain readable without compressing the logo. */
  .project-card__summary {
    grid-template-columns: 1fr auto;
    align-items: start;
    gap:
      var(--space-4)
      var(--space-3);
  }

  .project-card__logo,
  .project-card__logo-link {
    grid-column: 1;
    grid-row: 1;
    max-width: 8rem;
  }

  .project-card__toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .project-card__proposition {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .project-card__details {
    padding:
      var(--space-1)
      var(--card-padding)
      var(--card-padding);
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .cta-group {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-hero {
      padding-block:
          var(--space-7)
          var(--space-7);
  }

  .project-hero__layout {
      grid-template-columns: minmax(0, 1fr);

      align-items: start;

      gap: var(--space-5);
  }

  .project-hero__identity {
      width: min(100%, 12rem);

      padding: var(--space-4);
  }

  .project-hero__logo {
      max-width: 100%;
      max-height: 9rem;
  }

  .project-hero__content h1 {
      font-size: clamp(2.2rem, 7vw, 3rem);
  }

  .project-hero__subtitle {
      font-size: 1.15rem;
  }

  .project-hero__proposition {
      font-size: 1.05rem;
  }

  .rd-help-section::before {
      background-position: 48% center;
      background-size: auto 115%;
      opacity: 0.40;
  }

  .capabilities-section::before {
      background-position: 48% center;
      background-size: auto 115%;
      opacity: 0.40;
  }

  .engagement-section::before {
      background-position: 48% center;
      background-size: auto 115%;
      opacity: 0.40;
  }

  .operating-principles-section::before {
      background-position: 48% center;
      background-size: auto 115%;
      opacity: 0.40;
  }
}

/* ------------------------------------------------------------------------
   VERY SMALL MOBILE
   ------------------------------------------------------------------------ */

@media (max-width: 30rem) {
  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .project-card__logo,
  .project-card__logo-link {
    max-width: 7rem;
  }

  .project-hero__identity {
      width: min(100%, 10rem);
  }

  .project-hero__content h1 {
      font-size: 2.1rem;
  }

  .rd-help-section::before {
      background-position: 45% center;
      background-size: auto 105%;
      opacity: 0.32;
  }

  .capabilities-section::before {
      background-position: 45% center;
      background-size: auto 105%;
      opacity: 0.32;
  }

  .engagement-section::before {
      background-position: 45% center;
      background-size: auto 105%;
      opacity: 0.32;
  }

  .operating-principles-section::before {
      background-position: 45% center;
      background-size: auto 105%;
      opacity: 0.32;
  }
}

/* ==========================================================================
   18. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ==========================================================================
   19. HIGH-CONTRAST / FORCED-COLOR SUPPORT
   ========================================================================== */

@media (forced-colors: active) {
  .button,
  .project-card,
  .project-card__toggle {
    border: 1px solid CanvasText;
  }

  .project-card--featured {
    border-left-width: 4px;
  }
}

/* ==========================================================
   Responsive adjustment

   Reduce the symbol and text together on narrow screens.
   ========================================================== */

@media (max-width: 600px) {
    .site-brand {
        --brand-symbol-size: 42px;
        --brand-name-size: 1.15rem;

        gap: 0.5rem;
    }

    .site-brand__descriptor {
        margin-top: 0.2rem;
        font-size: 0.46rem;
        letter-spacing: 0.14em;
    }
}



/* ==========================================================================
   20. OPTIONAL FUTURE BRANDING HOOKS
   ========================================================================== */

/*
   These classes are intentionally reserved for future use.

   If the final corporate identity includes:
   - a background motif,
   - a subtle geometric brand pattern,
   - a section divider treatment,
   - or a repeated accent rule,

   implement them through classes such as:

     .brand-rule {}
     .brand-pattern {}
     .section-accent {}
     .site-brand__mark {}

   Avoid embedding those details directly into many unrelated selectors.
   Keeping corporate identity treatments modular will make future updates
   significantly easier.
*/


/* ==========================================================================
   21. QUICK RETHEME EXAMPLE
   ========================================================================== */

/*
   Example only — DO NOT uncomment unless desired.

   A warmer corporate palette might begin with:

   :root {
     --color-brand-primary: #6a3f2d;
     --color-brand-secondary: #956248;
     --color-brand-accent: #c18b3b;
     --color-brand-dark: #2f241f;
     --color-brand-light: #f5eee9;
   }

   A cooler technology palette might begin with:

   :root {
     --color-brand-primary: #1f4f78;
     --color-brand-secondary: #3276a3;
     --color-brand-accent: #1f8b78;
     --color-brand-dark: #112b40;
     --color-brand-light: #edf5f8;
   }

   The goal is to change the palette once, here, rather than throughout
   the stylesheet.
*/


/*
 * OPTIONAL READABILITY LAYER
 * ----------------------------------------------------------------
 * Leave this disabled initially.
 *
 * If the artwork competes with the text after integration, uncomment
 * this block. It introduces a subtle translucent wash between the SVG
 * and the content instead of reducing the SVG opacity excessively.
 */

/*
.rd-help-section::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(247, 249, 250, 0.92) 0%,
            rgba(247, 249, 250, 0.72) 45%,
            rgba(247, 249, 250, 0.28) 100%
        );

    pointer-events: none;
    z-index: 0;
}

.capabilities-section::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(247, 249, 250, 0.92) 0%,
            rgba(247, 249, 250, 0.72) 45%,
            rgba(247, 249, 250, 0.28) 100%
        );

    pointer-events: none;
    z-index: 0;
}

.engagement-section::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(247, 249, 250, 0.92) 0%,
            rgba(247, 249, 250, 0.72) 45%,
            rgba(247, 249, 250, 0.28) 100%
        );

    pointer-events: none;
    z-index: 0;
}

.operating-principles-section::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(247, 249, 250, 0.92) 0%,
            rgba(247, 249, 250, 0.72) 45%,
            rgba(247, 249, 250, 0.28) 100%
        );

    pointer-events: none;
    z-index: 0;
}
*/

