/* ===== Rigid Concepts Design System — canon (assembled verbatim from handoff) ===== */
/* Rigid Concepts — Webfonts
   Display:  Saira (industrial grotesque, heavy weights, uppercase headings)
   Body:     IBM Plex Sans (engineered, highly legible)
   Mono:     IBM Plex Mono (technical labels, specs, measurements)
   NOTE: These are Google Fonts substitutes approximating the custom logo wordmark.
*/
/* Rigid Concepts — Color tokens
   Industrial / precision-machining palette.
   Base: graphite + aluminum neutrals (cool, machined-metal).
   Accent: molten orange (energy, motion, CTAs) — the heat of cutting.
   Secondary: steel blue (technical highlights, links, data).
   Light theme overall; dark surfaces reserved for header/footer + hero.
*/
:root {
  /* ---- Graphite scale (dark -> light) ---- */
  --graphite-950: #0c0e10;  /* deepest — header/footer/hero base */
  --graphite-900: #121619;
  --graphite-800: #1a1f23;
  --graphite-700: #262d32;
  --graphite-600: #353e44;
  --graphite-500: #4c575e;
  --graphite-400: #6a767d;  /* muted text on light */
  --graphite-300: #98a3a9;
  --graphite-200: #c3cbcf;
  --graphite-150: #d8dee1;
  --graphite-100: #e6eaec;
  --graphite-50:  #f1f4f5;
  --graphite-25:  #f7f9fa;  /* page background — aluminum white */
  --white:        #ffffff;

  /* ---- Molten orange (primary accent) ---- */
  --orange-700: #ad3a0d;
  --orange-600: #c9450f;
  --orange-500: #e85318;  /* primary accent */
  --orange-400: #f4702f;
  --orange-300: #fb9a63;
  --orange-100: #fde4d6;
  --orange-50:  #fdf0e9;

  /* ---- Steel blue (secondary / technical) ---- */
  --steel-700: #1d4f72;
  --steel-600: #226189;
  --steel-500: #2b7cae;  /* secondary accent */
  --steel-300: #7db5d6;
  --steel-100: #d8eaf4;

  /* ---- Signal / semantic ---- */
  --green-500:  #2f9e63;
  --green-100:  #d7efe1;
  --amber-500:  #d99413;
  --amber-100:  #f8ecd0;
  --red-500:    #cf3a3a;
  --red-100:    #f6dada;

  /* ================= Semantic aliases ================= */
  /* Surfaces */
  --surface-page:      var(--graphite-25);
  --surface-card:      var(--white);
  --surface-sunken:    var(--graphite-50);
  --surface-inverse:   var(--graphite-950);
  --surface-inverse-2: var(--graphite-900);

  /* Text */
  --text-strong:    var(--graphite-950);
  --text-body:      var(--graphite-700);
  --text-muted:     var(--graphite-400);
  --text-inverse:   var(--white);
  --text-inverse-muted: var(--graphite-300);
  --text-accent:    var(--orange-600);
  --text-link:      var(--steel-600);

  /* Borders / lines */
  --border-subtle:  var(--graphite-100);
  --border-default: var(--graphite-150);
  --border-strong:  var(--graphite-300);
  --border-inverse: rgba(255,255,255,0.12);
  --hairline:       rgba(12,14,16,0.08);

  /* Accents */
  --accent:         var(--orange-500);
  --accent-hover:   var(--orange-600);
  --accent-press:   var(--orange-700);
  --accent-contrast:var(--white);
  --focus-ring:     rgba(232,83,24,0.45);
}
/* Rigid Concepts — Typography tokens */
:root {
  /* Families */
  --font-display: 'Saira', 'Arial Narrow', system-ui, sans-serif; /* @kind font */
  --font-sans:    'IBM Plex Sans', system-ui, -apple-system, sans-serif; /* @kind font */
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace; /* @kind font */

  /* Weights */
  --fw-regular: 400; /* @kind font */
  --fw-medium:  500; /* @kind font */
  --fw-semibold:600; /* @kind font */
  --fw-bold:    700; /* @kind font */
  --fw-extra:   800; /* @kind font */
  --fw-black:   900; /* @kind font */

  /* Display scale (Saira, uppercase, tight) — clamp for responsive */
  --fs-display-1: clamp(3.25rem, 6vw, 5.5rem); /* @kind font */
  --fs-display-2: clamp(2.5rem, 4.4vw, 4rem); /* @kind font */
  --fs-h1: clamp(2rem, 3.2vw, 3rem); /* @kind font */
  --fs-h2: clamp(1.6rem, 2.4vw, 2.25rem); /* @kind font */
  --fs-h3: 1.5rem; /* @kind font */
  --fs-h4: 1.25rem; /* @kind font */

  /* Body scale (IBM Plex Sans) */
  --fs-lead: 1.25rem; /* @kind font */
  --fs-body: 1rem; /* @kind font */
  --fs-sm:   0.875rem; /* @kind font */
  --fs-xs:   0.75rem; /* @kind font */

  /* Mono / eyebrow labels */
  --fs-label: 0.8125rem; /* @kind font */

  /* Line heights */
  --lh-tight:   1.02; /* @kind font */
  --lh-snug:    1.15; /* @kind font */
  --lh-normal:  1.55; /* @kind font */
  --lh-relaxed: 1.7; /* @kind font */

  /* Letter spacing */
  --ls-display: -0.01em; /* @kind font */
  --ls-tight:   -0.02em; /* @kind font */
  --ls-label:   0.18em; /* @kind font */
  --ls-wide:    0.04em; /* @kind font */
}
/* Rigid Concepts — Spacing & layout tokens
   8px base grid with a few half-steps. Generous, calm rhythm.
*/
:root {
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Layout */
  --container-max: 1240px; /* @kind spacing */
  --container-pad: clamp(20px, 5vw, 64px); /* @kind spacing */
  --section-y: clamp(64px, 9vw, 128px); /* @kind spacing */

  /* Radii — restrained, machined feel. Square-ish, not pill-y. */
  --radius-0: 0;
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;
  --radius-pill: 999px;
}
/* Rigid Concepts — Effects: shadows, borders, motion
   Industrial precision: shadows are tight and crisp, not soft blobs.
   Motion is fast, mechanical, confident — short durations, decisive easing.
*/
:root {
  /* Elevation — crisp, low-spread shadows on a cool base */
  --shadow-xs:  0 1px 2px rgba(12,14,16,0.06);
  --shadow-sm:  0 1px 3px rgba(12,14,16,0.08), 0 1px 2px rgba(12,14,16,0.04);
  --shadow-md:  0 4px 12px rgba(12,14,16,0.08), 0 2px 4px rgba(12,14,16,0.05);
  --shadow-lg:  0 12px 32px rgba(12,14,16,0.12), 0 4px 8px rgba(12,14,16,0.06);
  --shadow-xl:  0 24px 60px rgba(12,14,16,0.18);
  /* Accent glow for motion/hover on CTAs */
  --shadow-accent: 0 8px 24px rgba(232,83,24,0.30);
  /* Inset for inputs / sunken */
  --shadow-inset: inset 0 1px 2px rgba(12,14,16,0.06);

  /* Hairline borders used as precision rules */
  --rule: 1px solid var(--border-default);
  --rule-subtle: 1px solid var(--border-subtle);
  --rule-strong: 2px solid var(--graphite-950);

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1); /* @kind other */
  --ease-snap:  cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
  --dur-fast:   120ms; /* @kind other */
  --dur-base:   200ms; /* @kind other */
  --dur-slow:   360ms; /* @kind other */
  --dur-slower: 600ms; /* @kind other */
}
/* Rigid Concepts — Base element styles & utility primitives
   Lightweight resets + helpers that lean on the tokens. */

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display headings — Saira, uppercase, tight */
.rc-display {
  font-family: var(--font-display);
  font-weight: var(--fw-black);
  text-transform: uppercase;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  color: var(--text-strong);
  margin: 0;
}
.rc-h1 { font-family: var(--font-display); font-weight: var(--fw-extra); text-transform: uppercase; line-height: var(--lh-snug); letter-spacing: var(--ls-display); color: var(--text-strong); margin: 0; }
.rc-h2 { font-family: var(--font-display); font-weight: var(--fw-extra); text-transform: uppercase; line-height: var(--lh-snug); letter-spacing: var(--ls-display); color: var(--text-strong); margin: 0; }

/* Mono eyebrow / technical label */
.rc-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-label);
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.rc-eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  display: inline-block;
}

.rc-lead { font-size: var(--fs-lead); line-height: var(--lh-relaxed); color: var(--text-body); }
.rc-mono { font-family: var(--font-mono); }

a { color: var(--text-link); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Container */
.rc-container { max-width: var(--container-max); margin: 0 auto; padding-inline: var(--container-pad); }

/* Precision corner-tick: a small machined detail for cards/sections */
.rc-ticks { position: relative; }
.rc-ticks::before, .rc-ticks::after {
  content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none;
  border-color: var(--accent); border-style: solid; border-width: 0;
}
.rc-ticks::before { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.rc-ticks::after  { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
/* Rigid Concepts — Control styles (Button, IconButton)
   Interaction model ported from the earlier staging build's .btn block (in the
   shared stylesheet): a diagonal light glint sweeps across
   on hover, any icon slides right, and the fill brightens with a glow — no lift,
   no press-shrink. We keep the SYSTEM's shape (our radius + sizing) and COLOR
   (molten orange / graphite), and only adopt the demo's behavior.

   Note: the glint is clipped with overflow:hidden, so the hover glow uses
   filter: drop-shadow() (which survives the clip) instead of box-shadow.
   Pure CSS states — robust, never stick. Shipped to consumers via styles.css. */

.rc-btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-mono); font-weight: var(--fw-semibold);
  text-transform: uppercase; letter-spacing: 0.06em; line-height: 1;
  cursor: pointer; text-decoration: none; user-select: none; white-space: nowrap;
  border: 1px solid transparent; border-radius: var(--radius-md);
  background: none; color: inherit;
  transition:
    background var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    filter var(--dur-base) var(--ease-out);
}
.rc-btn:hover { text-decoration: none; }
.rc-btn--full { width: 100%; }

/* Icon: size + nudge right on hover (demo behavior) */
.rc-btn svg { width: 1em; height: 1em; flex: none; transition: transform var(--dur-base) var(--ease-out); }
.rc-btn:hover svg { transform: translateX(4px); }

/* Light glint sweep — on EVERY text button (.rc-btn). Icon buttons (.rc-icon-btn,
   which don't carry the .rc-btn base class) are still excluded. */
.rc-btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 80%; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
  transform: translateX(-160%); transition: transform 0.7s var(--ease-out);
}
.rc-btn:hover::after { transform: translateX(290%); }

/* Sizes — the system's shape (height + horizontal padding) */
.rc-btn--sm { font-size: 13px; height: 36px; padding: 0 16px; }
.rc-btn--md { font-size: 14px; height: 46px; padding: 0 22px; }
.rc-btn--lg { font-size: 16px; height: 56px; padding: 0 30px; }

/* Variants (primary/accent share orange; secondary/solid share graphite) */
.rc-btn--primary, .rc-btn--accent {
  background: var(--accent); color: var(--accent-contrast); border-color: var(--accent);
}
.rc-btn--primary:hover, .rc-btn--accent:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  filter: drop-shadow(0 8px 20px rgba(232,83,24,0.45));
}

.rc-btn--secondary, .rc-btn--solid {
  background: var(--graphite-950); color: var(--white); border-color: var(--graphite-950);
}
.rc-btn--secondary:hover, .rc-btn--solid:hover {
  filter: drop-shadow(0 10px 24px rgba(12,14,16,0.35));
}

/* No ghost buttons anywhere: the "outline" variant is a SOLID machined-steel
   secondary (graphite-700), not a transparent outline. */
.rc-btn--outline, .rc-btn--on-dark.rc-btn--outline {
  background: var(--graphite-700); color: var(--white); border-color: var(--graphite-600);
}
.rc-btn--outline:hover, .rc-btn--on-dark.rc-btn--outline:hover {
  background: var(--graphite-600); border-color: var(--graphite-500);
  filter: drop-shadow(0 10px 24px rgba(12,14,16,0.4));
}

/* Shared states */
.rc-btn:focus-visible, .rc-icon-btn:focus-visible {
  outline: 2px solid var(--focus-ring); outline-offset: 3px;
}
.rc-btn:disabled, .rc-btn[aria-disabled="true"],
.rc-icon-btn:disabled, .rc-icon-btn[aria-disabled="true"] {
  opacity: 0.45; cursor: not-allowed; filter: none !important;
}
.rc-btn:disabled svg, .rc-btn[aria-disabled="true"] svg { transform: none !important; }
.rc-btn:disabled::after, .rc-btn[aria-disabled="true"]::after { display: none; }

/* Icon-only — square. No background/border/color here — the shared .rc-btn--*
   variant rules supply those; this rule is layout-only so it can sit anywhere
   in source order. */
.rc-icon-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  border-width: 1px; border-style: solid; border-radius: var(--radius-md); cursor: pointer;
  transition:
    background var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    filter var(--dur-base) var(--ease-out);
}
.rc-icon-btn.rc-btn--sm { width: 36px; height: 36px; }
.rc-icon-btn.rc-btn--md { width: 46px; height: 46px; }
.rc-icon-btn.rc-btn--lg { width: 56px; height: 56px; }
.rc-icon-btn svg { width: 20px; height: 20px; flex: none; }
.rc-icon-btn.rc-btn--accent:hover {
  background: var(--accent-hover); border-color: var(--accent-hover);
  filter: drop-shadow(0 6px 16px rgba(232,83,24,0.4));
}
.rc-icon-btn.rc-btn--solid:hover { filter: drop-shadow(0 6px 16px rgba(12,14,16,0.3)); }
.rc-icon-btn.rc-btn--outline:hover {
  border-color: var(--text-strong); filter: drop-shadow(0 4px 10px rgba(12,14,16,0.12));
}

/* The production site deliberately plays button motion for ALL visitors
   (its stylesheet notes prefers-reduced-motion is intentionally not honored).
   tokens/base.css applies a global reduced-motion reset (transition-duration
   0.001ms !important on *, *::before, *::after) — which would kill the glint,
   glow, and icon-nudge. Re-assert the button durations here with class-level
   specificity + !important so they survive that reset and match the demo. */
@media (prefers-reduced-motion: reduce) {
  .rc-btn, .rc-icon-btn,
  .rc-btn svg { transition-duration: var(--dur-base) !important; }
  .rc-btn::after { transition-duration: 0.7s !important; }
}
/* ---- website motion graphics (ui_kits/website/site.css) ---- */
/* Rigid Concepts website — shared screen styles (motion graphics, fades, layout) */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-page); }
#root { min-height: 100vh; }

/* Hero / band motion graphics */
.rc-hero-grid, .rc-cta-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 70% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 70% 30%, #000 30%, transparent 80%);
  animation: rc-grid-pan 24s linear infinite;
}
.rc-cta-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.10) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 80% 90% at 85% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 85% 50%, #000 20%, transparent 75%);
}
@keyframes rc-grid-pan { to { background-position: 48px 48px, 48px 48px; } }

.rc-hero-glow {
  position: absolute; top: -20%; right: -10%; width: 60%; height: 120%;
  background: radial-gradient(circle at 60% 40%, rgba(232,83,24,0.20), transparent 60%);
  pointer-events: none; animation: rc-pulse 7s var(--ease-inout) infinite;
}
@keyframes rc-pulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }

.rc-hero-scan {
  position: absolute; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  box-shadow: 0 0 24px 2px rgba(232,83,24,0.5);
  pointer-events: none; opacity: 0.7;
  animation: rc-scan 9s var(--ease-inout) infinite;
}
@keyframes rc-scan { 0% { left: 8%; } 50% { left: 92%; } 100% { left: 8%; } }

/* ── Reveal-on-scroll (ported from demo: [data-reveal] + IntersectionObserver) ──
   Elements only hide once .rc-reveal-on is set on <body> by reveal.js, so if the
   script never runs everything stays visible. Variants: up (default), left,
   right, scale. Stagger via inline style="--d: 120ms". */
.rc-reveal-on [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0s); will-change: opacity, transform;
}
.rc-reveal-on [data-reveal="left"]  { transform: translateX(-32px); }
.rc-reveal-on [data-reveal="right"] { transform: translateX(32px); }
.rc-reveal-on [data-reveal="scale"] { transform: scale(0.94); }
.rc-reveal-on [data-reveal].rc-in { opacity: 1; transform: none; }

/* Entrance fades — visible base state, animate only when motion allowed */
.rc-fade { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .rc-fade { opacity: 0; transform: translateY(16px); animation: rc-rise 700ms var(--ease-out) forwards; }
}
@keyframes rc-rise { to { opacity: 1; transform: translateY(0); } }
@keyframes rc-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rc-pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.rc-ticks-dark::before, .rc-ticks-dark::after {
  content: ""; position: absolute; width: 14px; height: 14px; z-index: 3; pointer-events: none; border: 2px solid var(--accent);
}
.rc-ticks-dark::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.rc-ticks-dark::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }

/* Showcase masonry grid */
.rc-showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 230px; gap: 16px; }
.rc-part { min-height: 230px; }
.rc-part-tall { grid-row: span 2; }
.rc-part-wide { grid-column: span 2; }
image-slot { --is-bg: var(--graphite-800); }

/* Page sub-hero (compact dark header band on inner pages) */
.rc-subhero { position: relative; overflow: hidden; background: var(--graphite-950); color: #fff; }
.rc-subhero-inner { position: relative; z-index: 2; max-width: var(--container-max); margin: 0 auto; padding: clamp(56px,7vw,96px) var(--container-pad) clamp(48px,6vw,72px); }

/* Responsive */
@media (max-width: 900px) {
  .rc-hero-grid-cols { grid-template-columns: 1fr !important; }
  .rc-desktop-nav { display: none !important; }
  .rc-footer-grid { grid-template-columns: 1fr 1fr !important; }
  .rc-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .rc-two-col { grid-template-columns: 1fr !important; }
}
@media (max-width: 560px) {
  .rc-showcase-grid { grid-template-columns: 1fr; }
  .rc-part-tall, .rc-part-wide { grid-row: auto; grid-column: auto; }
  .rc-footer-grid { grid-template-columns: 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  .rc-hero-grid, .rc-cta-grid, .rc-hero-glow, .rc-hero-scan { animation: none !important; }
  .rc-fade { animation: none !important; opacity: 1; transform: none; }
  /* Reveal still runs (the demo plays motion for all visitors), just shorter. */
  .rc-reveal-on [data-reveal] { transition-duration: 0.4s; }
}

/* ===== Icon tile — card-icon standard (added 2026-06-19) =====
   Dark graphite square with a WHITE line icon. Use on every card/contact icon
   so iconography is uniform site-wide. Small inline status icons (e.g. the
   certification check) stay accent-orange; this is for the framed tile. */
.rc-icon-tile { width: 46px; height: 46px; border-radius: var(--radius-md); flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--graphite-950); color: #fff; }
.rc-icon-tile svg { width: 20px; height: 20px; }

/* ===== Material icon tiles — colored to the respective material (added 2026-06-19).
   Each tile gets a hairline so the lighter (silver/steel/plastic) tiles stay
   defined on the white card; symbol text is high-contrast per tile. ===== */
.mat-card__sym { border: 1px solid rgba(12,14,16,0.14); }
.mat-card--al .mat-card__sym { background: #c9cdcf; color: #14161a; }   /* aluminum — bright silver */
.mat-card--ti .mat-card__sym { background: #565c61; color: #ffffff; }   /* titanium — dark matte gray */
.mat-card--ss .mat-card__sym { background: #aab2b6; color: #14161a; }   /* stainless — bright steel */
.mat-card--as .mat-card__sym { background: #363d44; color: #ffffff; }   /* alloy steel — dark iron */
.mat-card--cu .mat-card__sym { background: #d99a3e; color: #14161a; }   /* yellow metals — brass/copper gold */
.mat-card--ep .mat-card__sym { background: #e6e1d6; color: #14161a; }   /* engineering plastics — natural */
