/* ============================================================
   RIGID CONCEPTS — Precision Machining
   Flagship one-page site · hand-written, zero-build CSS
   Palette: machined steel + brass/gold
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg:        #0C0A09;   /* near-black warm */
  --bg-2:      #141210;   /* raised */
  --surface:   #1C1917;   /* cards */
  --surface-2: #211E1B;
  --line:      #312C28;   /* hairline borders */
  --line-2:    #423B35;

  --text:      #FAFAF9;
  --muted:     #A8A29E;
  --muted-2:   #78716C;

  --gold:      #CA8A04;   /* machined brass */
  --gold-2:    #E8B43D;   /* bright amber */
  --gold-soft: rgba(202,138,4,0.14);

  --maxw: 1200px;
  --pad: clamp(1.25rem, 5vw, 4rem);

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Per client decision (2026-06-01): animations intentionally play for ALL visitors.
   The standard `@media (prefers-reduced-motion: reduce)` suppression that zeroed out
   animation/transition durations has been removed on purpose. To restore the
   accessibility-friendly behavior, re-add a reduced-motion block here AND set
   `reduceMotion` back to a matchMedia check in js/main.js. */

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }

::selection { background: var(--gold); color: #0C0A09; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 200;
  background: var(--gold); color: #0C0A09; padding: 0.6rem 1rem; border-radius: var(--r-sm);
  font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Texture / grain ---------- */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width 0.1s linear; }

/* ---------- Buttons ---------- */
.btn {
  --bh: 1;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; border-radius: 100px; cursor: pointer;
  padding: 0.72rem 1.4rem; font-size: 0.95rem; line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1A1304; box-shadow: 0 0 0 0 rgba(232,180,61,0.5); }
.btn--gold:hover { box-shadow: 0 8px 30px -8px rgba(232,180,61,0.55); }
.btn--gold:hover svg { transform: translateX(3px); }
.btn--ghost { background: rgba(255,255,255,0.06); color: var(--text); border-color: rgba(245,245,244,0.45); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); background: var(--gold-soft); }
.btn--sm { padding: 0.55rem 1.05rem; font-size: 0.85rem; }
.btn--lg { padding: 0.95rem 1.8rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding: 1.1rem var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  transition: padding 0.35s var(--ease);
}
.nav.scrolled { background: rgba(12,10,9,0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.nav.scrolled .nav__inner { padding-top: 0.7rem; padding-bottom: 0.7rem; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--text); }
/* Official Rigid Concepts wordmark — source PNG is solid black on transparent,
   inverted to crisp white for the dark theme. */
.brand__logo { height: clamp(54px, 9.5vw, 132px); width: auto; display: block; filter: invert(1); transition: height 0.45s var(--ease), opacity 0.45s var(--ease); }
.brand:hover .brand__logo { opacity: 0.85; }
/* On scroll: shrink to a compact mark AND fade to a translucent, glassy state */
.nav.scrolled .brand__logo { height: 42px; opacity: 0.5; }
.nav.scrolled .brand:hover .brand__logo { opacity: 0.8; }
.brand--footer .brand__logo { height: 64px; }
@media (max-width: 560px) { .brand__logo { height: clamp(44px, 14vw, 72px); } .nav.scrolled .brand__logo { height: 34px; } }
.brand__mark { color: var(--gold-2); flex-shrink: 0; transition: transform 0.5s var(--ease); }
.brand:hover .brand__mark { transform: rotate(180deg); }
.brand__type { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.04em; }
.brand__tag { font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.28em; color: var(--muted-2); margin-top: 4px; }

.nav__links { display: flex; gap: 1.55rem; }
.nav__links a {
  position: relative; font-size: 0.92rem; color: var(--muted); font-weight: 500;
  transition: color 0.2s;
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold-2); transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: 1.1rem; }
.nav__phone { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); transition: color 0.2s; white-space: nowrap; }
.nav__phone:hover { color: var(--gold-2); }

.nav__burger { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav__burger span { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav__burger span:nth-child(1) { top: 13px; }
.nav__burger span:nth-child(2) { top: 19px; }
.nav__burger span:nth-child(3) { top: 25px; }
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: rgba(12,10,9,0.97); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.mobile-menu .btn { margin-top: 0.5rem; }
.mobile-menu__phone { font-family: var(--font-mono) !important; font-size: 1rem !important; color: var(--gold-2) !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: clamp(8rem, 16vw, 12rem); }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo {
  position: absolute; inset: 0;
  background: #0a0908 var(--img-hero, none) center/cover no-repeat;
  /* Placeholder look until photo is added */
  background-image:
    radial-gradient(120% 90% at 75% 20%, rgba(202,138,4,0.10), transparent 55%),
    linear-gradient(115deg, #15110d 0%, #0c0a09 55%, #0a0908 100%);
  transform: scale(1.08); will-change: transform;
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1;
  opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero__video.playing { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, rgba(12,10,9,0.95) 0%, rgba(12,10,9,0.72) 42%, rgba(12,10,9,0.35) 100%),
    linear-gradient(0deg, var(--bg) 2%, transparent 30%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: 0.5; z-index: 3;
  background-image:
    linear-gradient(rgba(202,138,4,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202,138,4,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(110% 80% at 70% 35%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(110% 80% at 70% 35%, #000 30%, transparent 80%);
  animation: gridDrift 24s linear infinite;
}
@keyframes gridDrift { to { background-position: 64px 64px; } }
.hero__sparks { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; z-index: 3; }

.hero__content { position: relative; z-index: 2; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--muted); margin-bottom: 1.6rem; text-transform: uppercase;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 12px 2px rgba(232,180,61,0.7); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3rem, 9.5vw, 7.3rem); line-height: 0.96; letter-spacing: -0.03em;
  margin-bottom: 1.6rem;
}
.hero__title em { font-style: normal; color: transparent; background: linear-gradient(100deg, var(--gold-2), var(--gold) 60%, #fff3d4); -webkit-background-clip: text; background-clip: text; }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > * , .reveal-line { }

.hero__sub { max-width: 38ch; font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); line-height: 1.6; margin-bottom: 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3.4rem; }

.hero__stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(1.2rem, 4vw, 3.2rem); justify-content: start; }
.hero__stat dt { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.9rem); color: var(--text); }
.hero__stat dd { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; color: var(--muted-2); margin-top: 0.35rem; }

.hero__scroll { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.7rem; }
.hero__scroll-line { width: 1px; height: 46px; background: linear-gradient(var(--gold-2), transparent); position: relative; overflow: hidden; }
.hero__scroll-line::after { content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--gold-2); animation: scrollDot 2s ease-in-out infinite; }
@keyframes scrollDot { 0% { top: -50%; } 100% { top: 100%; } }
.hero__scroll-text { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.3em; color: var(--muted-2); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 1.1rem 0; position: relative; z-index: 2; }
.marquee__track { display: flex; align-items: center; gap: 2.5rem; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 3vw, 1.7rem); letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.marquee__dot { color: var(--gold) !important; font-size: 0.7rem !important; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ============================================================
   SHARED SECTION
   ============================================================ */
.section { padding-block: clamp(4.5rem, 10vw, 9rem); position: relative; }
.section-num { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.18em; color: var(--gold); margin-bottom: 1rem; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.04; letter-spacing: -0.02em; }
.section-intro { color: var(--muted); font-size: clamp(1rem, 2vw, 1.15rem); margin-top: 1.1rem; max-width: 56ch; }
.gold { color: var(--gold-2); }

/* ============================================================
   STATEMENT
   ============================================================ */
.statement { padding-block: clamp(5rem, 12vw, 11rem); position: relative; }
.statement__head { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 6rem); line-height: 0.98; letter-spacing: -0.03em; margin-bottom: 3rem; }
.strike { position: relative; color: var(--muted-2); }
.strike::after { content: ''; position: absolute; left: -4%; right: -4%; top: 52%; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.statement__head.in .strike::after { animation: strike 0.6s var(--ease) 0.3s forwards; }
@keyframes strike { to { transform: scaleX(1); } }
.statement__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); }
.statement__lead { font-family: var(--font-display); font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 500; line-height: 1.4; color: var(--text); }
.statement__body { color: var(--muted); font-size: 1.05rem; }
.statement__motto { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); color: var(--text); }
.statement__motto .strike { position: relative; color: var(--muted-2); }
.statement__motto .strike::after { content: ''; position: absolute; left: -4%; right: -4%; top: 52%; height: 3px; background: var(--gold); }

/* ============================================================
   ENGINEERING + MANUFACTURING (home niche band)
   ============================================================ */
.eng-home { border-block: 1px solid var(--line); background: var(--bg-2); }
.eng-home__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.eng-home__lead { color: var(--muted); font-size: clamp(1.02rem, 2vw, 1.18rem); margin: 1.3rem 0 2rem; max-width: 48ch; }
.eng-home__lead strong { color: var(--gold-2); font-weight: 600; }
.eng-home__list { display: grid; gap: 1rem; }
.eng-home__list li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.5rem; transition: border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.eng-home__list li:hover { border-color: var(--line-2); transform: translateX(4px); }
.eng-home__list span { font-family: var(--font-mono); color: var(--gold-2); font-size: 0.95rem; padding-top: 0.15rem; }
.eng-home__list strong { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; display: block; margin-bottom: 0.3rem; }
.eng-home__list p { color: var(--muted); font-size: 0.92rem; }
@media (max-width: 860px) { .eng-home__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cap-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 2rem 1.7rem; overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s;
  transform-style: preserve-3d;
}
.cap-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, var(--gold-soft), transparent 70%);
  opacity: 0; transition: opacity 0.4s;
}
.cap-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.cap-card:hover::before { opacity: 1; }
.cap-card__icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-soft); border: 1px solid rgba(202,138,4,0.25); color: var(--gold-2); margin-bottom: 1.4rem; }
.cap-card__icon svg { width: 26px; height: 26px; }
.cap-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; margin-bottom: 0.65rem; letter-spacing: -0.01em; }
.cap-card p { color: var(--muted); font-size: 0.96rem; }
.cap-card__spec { display: inline-block; margin-top: 1.2rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted-2); }

.cap-card--feature { grid-column: span 1; grid-row: span 2; display: flex; flex-direction: column; padding: 0; }
.cap-card--feature .cap-card__photo {
  flex: 1; min-height: 220px;
  background: var(--img-cap-5axis, none) center/cover no-repeat,
    linear-gradient(135deg, #1d1812, #0e0c0a);
  position: relative;
}
.cap-card--feature .cap-card__photo::after {
  content: '5-AXIS'; position: absolute; right: 1rem; bottom: 1rem;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: rgba(232,180,61,0.5);
}
.cap-card--feature .cap-card__body { padding: 1.9rem 1.7rem; }

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers { background: var(--bg-2); border-block: 1px solid var(--line); overflow: hidden; }
.numbers__grid-bg { position: absolute; inset: 0; opacity: 0.4; background-image: linear-gradient(rgba(202,138,4,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(202,138,4,0.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(80% 100% at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(80% 100% at 50% 50%, #000, transparent 75%); }
.numbers .container { position: relative; }
.numbers__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1rem; }
.num-item { text-align: center; padding: 1.5rem 0.5rem; border-left: 1px solid var(--line); }
.num-item:first-child { border-left: 0; }
.num-item__value { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1; background: linear-gradient(180deg, #fff, var(--gold-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num-item__label { display: block; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--muted); margin-top: 0.9rem; }

/* ============================================================
   MATERIALS
   ============================================================ */
.mat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.mat-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem 1.5rem; overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s; }
.mat-card:hover { transform: translateY(-6px); border-color: var(--line-2); }
.mat-card__sym { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--surface-2); -webkit-text-stroke: 1px var(--line-2); display: block; margin-bottom: 1.2rem; transition: color 0.4s, -webkit-text-stroke-color 0.4s; }
.mat-card:hover .mat-card__sym { color: var(--gold-soft); }
.mat-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.5rem; }
.mat-card p { color: var(--muted); font-size: 0.86rem; }
.mat-card__tag { position: absolute; top: 1rem; right: 1rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em; color: #1A1304; background: var(--gold-2); padding: 0.25rem 0.5rem; border-radius: 5px; }
.mat-card--primary { background: linear-gradient(160deg, rgba(202,138,4,0.12), var(--surface)); border-color: rgba(202,138,4,0.3); }
.mat-card--primary .mat-card__sym { color: var(--gold); -webkit-text-stroke: 0; }

/* ============================================================
   INDUSTRIES
   ============================================================ */
.ind-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.ind-card { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3.4; border: 1px solid var(--line); cursor: pointer; }
.ind-card__photo {
  position: absolute; inset: 0; transition: transform 0.7s var(--ease);
  background: var(--ind-img, none) center/cover no-repeat,
    linear-gradient(160deg, #1a1611, #0d0b09);
}
.ind-card:nth-child(1) .ind-card__photo { --ind-img: var(--img-ind-aerospace, none); }
.ind-card:nth-child(2) .ind-card__photo { --ind-img: var(--img-ind-defense, none); }
.ind-card:nth-child(3) .ind-card__photo { --ind-img: var(--img-ind-medical, none); }
.ind-card:nth-child(4) .ind-card__photo { --ind-img: var(--img-ind-oilgas, none); }
.ind-card:nth-child(5) .ind-card__photo { --ind-img: var(--img-ind-automotive, none); }
.ind-card:nth-child(6) .ind-card__photo { --ind-img: var(--img-ind-electronics, none); }
.ind-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,7,6,0.92) 5%, rgba(8,7,6,0.2) 60%, transparent); }
.ind-card:hover .ind-card__photo { transform: scale(1.08); }
.ind-card__label { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem; }
.ind-card__no { font-family: var(--font-mono); font-size: 0.74rem; color: var(--gold-2); letter-spacing: 0.1em; }
.ind-card__label h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; margin: 0.3rem 0 0.4rem; }
.ind-card__label p { color: var(--muted); font-size: 0.9rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.45s, margin 0.45s; }
.ind-card:hover .ind-card__label p { max-height: 60px; opacity: 1; }

/* ============================================================
   PROCESS
   ============================================================ */
.proc-list { display: grid; gap: 0; max-width: 880px; }
.proc-step { display: grid; grid-template-columns: auto 1fr; gap: 1.8rem; padding: 2rem 0; border-top: 1px solid var(--line); align-items: start; transition: padding-left 0.4s var(--ease); }
.proc-step:last-child { border-bottom: 1px solid var(--line); }
.proc-step:hover { padding-left: 1rem; }
.proc-step__no { font-family: var(--font-mono); font-size: 0.9rem; color: var(--gold); padding-top: 0.4rem; min-width: 2.5rem; }
.proc-step h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 0.5rem; }
.proc-step p { color: var(--muted); max-width: 60ch; }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media { position: relative; }
.about__photo { border-radius: var(--r-lg); aspect-ratio: 4/5; border: 1px solid var(--line); background: var(--img-about-shop, none) center/cover no-repeat, linear-gradient(160deg, #1b1610, #0c0a09); position: relative; overflow: hidden; }
.about__photo::after { content: 'VAN ALSTYNE, TX'; position: absolute; left: 1.2rem; bottom: 1.2rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.2em; color: rgba(232,180,61,0.55); }
.about__badge { position: absolute; right: -1.2rem; top: -1.2rem; width: 110px; height: 110px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1A1304; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem; font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.08em; text-align: center; line-height: 1.2; box-shadow: 0 14px 40px -10px rgba(232,180,61,0.5); }
.about__badge-star { font-size: 1.1rem; }
.about__content p { color: var(--muted); margin-top: 1.1rem; font-size: 1.05rem; }
.about__creds { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin-top: 2.2rem; }
.cred { padding: 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); }
.cred__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--gold-2); }
.cred__sub { display: block; font-size: 0.78rem; color: var(--muted-2); margin-top: 0.3rem; }

/* ============================================================
   QUOTE / RFQ
   ============================================================ */
.quote { background: var(--bg-2); border-top: 1px solid var(--line); overflow: hidden; }
.quote__grid-bg { position: absolute; inset: 0; opacity: 0.35; background-image: linear-gradient(rgba(202,138,4,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(202,138,4,0.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(100% 60% at 80% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(100% 60% at 80% 0%, #000, transparent 70%); }
.quote__inner { position: relative; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.quote__lead { color: var(--muted); font-size: 1.1rem; margin-top: 1.2rem; max-width: 42ch; }
.quote__contact { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2.5rem; }
.quote__contact-item { display: flex; align-items: center; gap: 0.9rem; color: var(--muted); font-size: 0.95rem; }
.quote__contact-item svg { color: var(--gold-2); flex-shrink: 0; }
.quote__contact-item strong { color: var(--text); font-family: var(--font-display); }

.rfq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.6rem); }
.rfq__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; text-transform: uppercase; }
.field label span { color: var(--gold-2); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 0.8rem 0.9rem; color: var(--text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s; width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23A8A29E' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.4rem; }

.filedrop { position: relative; border: 1.5px dashed var(--line-2); border-radius: var(--r); padding: 1.6rem; text-align: center; transition: border-color 0.25s, background 0.25s; cursor: pointer; }
.filedrop.drag, .filedrop:hover { border-color: var(--gold); background: var(--gold-soft); }
.filedrop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filedrop__inner { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; pointer-events: none; color: var(--muted); }
.filedrop__inner svg { color: var(--gold-2); }
.filedrop__text { font-size: 0.95rem; color: var(--text); }
.filedrop__browse { color: var(--gold-2); text-decoration: underline; }
.filedrop__hint { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--muted-2); }
.filedrop__list { margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.4rem; }
.filedrop__list li { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.45rem 0.7rem; }
.filedrop__list button { background: none; border: 0; color: var(--muted-2); font-size: 1rem; line-height: 1; }
.filedrop__list button:hover { color: var(--gold-2); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.rfq__status { margin-top: 1rem; font-size: 0.92rem; min-height: 1.2em; }
.rfq__status.ok { color: #4ade80; }
.rfq__status.err { color: #f87171; }
.rfq__fineprint { margin-top: 1rem; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.04em; color: var(--muted-2); line-height: 1.5; }
.btn.is-loading { pointer-events: none; opacity: 0.75; }
.btn.is-loading .btn__label::after { content: '…'; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg); padding-top: clamp(3rem, 6vw, 5rem); position: relative; z-index: 2; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.brand--footer .brand__mark { color: var(--gold-2); }
.footer__tagline { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; margin-top: 1.4rem; }
.footer__subtag { font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; color: var(--muted); margin-top: 0.4rem; }
.footer__subtag .strike-mini { position: relative; color: var(--muted-2); }
.footer__subtag .strike-mini::after { content: ''; position: absolute; left: -3%; right: -3%; top: 54%; height: 2px; background: var(--gold); }
.footer__certs { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; color: var(--muted-2); margin-top: 0.7rem; }
.footer__col h4 { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 1.1rem; }
.footer__col a, .footer__col span { display: block; color: var(--muted); font-size: 0.95rem; margin-bottom: 0.7rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--gold-2); }
.footer__bar { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.footer__bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted-2); letter-spacing: 0.05em; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal].d1 { transition-delay: 0.08s; }
[data-reveal].d2 { transition-delay: 0.16s; }
[data-reveal].d3 { transition-delay: 0.24s; }
[data-reveal].d4 { transition-delay: 0.32s; }
[data-reveal].d5 { transition-delay: 0.40s; }

/* (reduced-motion reveal/parallax override removed on purpose — see the note near the
   top of this file; reveals now animate in for every visitor via js/main.js) */

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .cap-card--feature { grid-column: span 2; grid-row: span 1; flex-direction: row; }
  .cap-card--feature .cap-card__photo { min-height: 0; min-width: 200px; }
  .mat-grid { grid-template-columns: repeat(3, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers__row { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .num-item:nth-child(3) { border-left: 0; }
  .num-item { border-top: 1px solid var(--line); }
  .num-item:nth-child(-n+2) { border-top: 0; }
}

@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; }
  .quote__inner { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 420px; }
  .statement__grid { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
}

@media (max-width: 560px) {
  .cap-grid { grid-template-columns: 1fr; }
  .cap-card--feature { flex-direction: column; }
  .cap-card--feature .cap-card__photo { min-height: 180px; }
  .mat-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: 1fr; }
  .rfq__row { grid-template-columns: 1fr; }
  .about__creds { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 7rem; }
}

/* ============================================================
   CUSTOM CURSOR — end-mill on interactive elements
   Added 2026-06-01 by request. SVG cursor renders in Chrome/Edge/Firefox;
   Safari falls back to the standard hand pointer. Hotspot = the cutting
   tip (4,4). To remove: delete this block and assets/images/cursor-endmill.svg.
   ============================================================ */
a, button, .btn, input[type="submit"], input[type="button"], [role="button"], summary, label[for] {
  cursor: url("../assets/images/cursor-endmill.svg") 16 22, pointer;
}

/* ============================================================
   FREE MACHINING RESOURCES — nav CTA + signup modal (2026-06-01)
   ============================================================ */
.nav__resource { color: var(--gold-2); font-weight: 600; }
.nav__resource:hover { color: var(--gold); }
.rmodal { position: fixed; inset: 0; z-index: 300; display: none; }
.rmodal.open { display: block; }
.rmodal__overlay { position: absolute; inset: 0; background: rgba(8,7,6,0.74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rmodal__dialog { position: relative; z-index: 1; width: calc(100% - 2.4rem); max-width: 440px; margin: 8vh auto 0; background: var(--bg-2, #16130f); border: 1px solid var(--line, #2a2520); border-radius: 16px; padding: 2.2rem; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.rmodal__close { position: absolute; top: 0.7rem; right: 1rem; background: none; border: 0; color: var(--muted, #a8a29e); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.rmodal__eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; color: var(--gold-2); margin-bottom: 0.5rem; }
.rmodal__title { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 0.6rem; }
.rmodal__lead { color: var(--muted, #a8a29e); font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.4rem; }
.rmodal__field { margin-bottom: 1rem; }
.rmodal__field label { display: block; font-size: 0.8rem; color: var(--muted, #a8a29e); margin-bottom: 0.35rem; }
.rmodal__field input { width: 100%; padding: 0.7rem 0.9rem; background: var(--bg, #0d0b09); border: 1px solid var(--line-2, #3a332c); border-radius: 8px; color: var(--text, #fafaf9); font-family: inherit; font-size: 1rem; }
.rmodal__field input:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; border-color: var(--gold-2); }
.rmodal__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.rmodal__submit { width: 100%; justify-content: center; margin-top: 0.4rem; }
.rmodal__status { margin-top: 0.8rem; font-size: 0.9rem; min-height: 1.1em; }
.rmodal__status.err { color: #f87171; }
.rmodal__status.ok { color: #4ade80; }
.rmodal__fineprint { margin-top: 0.9rem; font-size: 0.72rem; color: var(--muted-2, #78716c); line-height: 1.5; }
body.rmodal-open { overflow: hidden; }

/* Free Machining Resources — homepage section + dedicated form page */
.freeres__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.freeres__lead { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin: 1rem auto 1.8rem; }
.rform-wrap { max-width: 520px; }
.rform-card { background: var(--bg-2, #16130f); border: 1px solid var(--line, #2a2520); border-radius: 16px; padding: 2.2rem; }
.rform-lead { color: var(--muted, #a8a29e); margin: 0.4rem 0 1.4rem; line-height: 1.55; }

/* Delayed cursor glow — faint, large radial (~22x the cursor) that flows toward the pointer */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 720px; height: 720px;
  margin: -360px 0 0 -360px; border-radius: 50%;
  pointer-events: none; z-index: 60;
  background: radial-gradient(circle closest-side, rgba(232,180,61,0.10), rgba(232,180,61,0.05) 45%, rgba(232,180,61,0) 72%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.6s ease;
  will-change: transform;
}
.cursor-glow.active { opacity: 1; }
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* Make homepage capability cards fully clickable (stretched link on the heading) */
.cap-card { position: relative; }
.cap-card__link { color: inherit; text-decoration: none; }
.cap-card__link:hover { color: var(--gold-2); }
.cap-card__link::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }

/* Hub hero with a homepage-style background video (capabilities page).
   Reuses .hero__video (z1, fades in on .playing) + .hero__overlay (z2) from the homepage. */
.page-hero--video { min-height: 100svh; display: flex; align-items: center; }
/* Higher specificity so the text sits ABOVE the video + overlay (beats pages.css's
   .page-hero .container z-index:1, which loads later). */
.page-hero.page-hero--video .container { position: relative; z-index: 3; }
.page-hero.page-hero--video .hero__scroll { z-index: 3; }

/* Image scroller (center-focus coverflow) — homepage, fed by assets/image-scroll/ */
.imgscroll { overflow: hidden; padding-block: clamp(3rem, 7vw, 6rem); }
.imgscroll__wrap { position: relative; display: flex; align-items: center; }
.imgscroll__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(12,10,9,0.6); border: 1px solid rgba(245,245,244,0.35); color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; flex-shrink: 0; }
.imgscroll__arrow:hover { background: rgba(12,10,9,0.9); border-color: var(--gold-2); color: var(--gold-2); transform: translateY(-50%) scale(1.1); }
.imgscroll__arrow--left  { left: clamp(0.5rem, 2vw, 1.5rem); }
.imgscroll__arrow--right { right: clamp(0.5rem, 2vw, 1.5rem); }
.imgscroll__eyebrow { text-align: center; margin-bottom: clamp(1.5rem, 4vw, 2.6rem); }
.imgscroll__viewport { width: 100%; overflow: hidden; padding-block: clamp(30px, 6vw, 64px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.imgscroll__track { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 40px); width: max-content; position: relative; will-change: transform; }
.imgscroll__item { flex: 0 0 auto; height: clamp(130px, 18vw, 240px); aspect-ratio: 4 / 3; transform-origin: center center; will-change: transform, opacity; }
.imgscroll__item img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); display: block; box-shadow: 0 24px 60px -24px rgba(0,0,0,0.65); }
