/* Modern Tech: shared tokens and components. Existing style.css owns media framing. */
:root {
  color-scheme: dark;
  --background: #071116;
  --surface: #101F27;
  --surface-raised: #162B35;
  --accent: #EAB76A;
  --accent-soft: #F5D7A6;
  --text: #F4FAFC;
  --navy: var(--background);
  --blue: var(--accent);
  --ink: var(--text);
  --muted: #B0C3CD;
  --line: #34505D;
  --paper: var(--surface);
  --radius: 16px;
  --card-space: clamp(20px, 4vw, 36px);
  --ease: 180ms ease;
}
body { background: var(--background); color: var(--text); font-family: "Segoe UI", Arial, sans-serif; overflow-x: visible; }
::selection { background: var(--accent); color: var(--background); }
main { background: radial-gradient(ellipse at 90% 0%, #eab76a08, transparent 45%); }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; }
p,li,dd { overflow-wrap: break-word; }
a { text-underline-offset: 4px; }
a:focus-visible,summary:focus-visible,button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 5px; }
.skip { background: var(--accent); color: var(--background); border-radius: 8px; z-index: 100; }
header { background: var(--background); padding: 20px 5%; border-color: var(--line); }
.header-content { flex-direction: column; gap: 18px; }
header .brand .brand-mark { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); border-radius: 12px; box-shadow: 0 0 20px #eab76a12; }
header .brand .brand-name { color: var(--text); font-size: 25px; }
header nav { gap: 6px; width: 100%; }
header nav>a,header .work-menu>summary { background: transparent; color: var(--muted); border: 1px solid transparent; border-radius: 8px; font-size: 13px; padding: 10px 12px; min-height: 44px; font-weight: 600; }
header nav>.process-nav { font-size: 12px; max-width: 170px; }
header nav>a:hover,header .work-menu>summary:hover,header .work-menu[open]>summary { background: var(--surface); color: var(--text); border-color: var(--line); }
header nav>a[aria-current="page"],header .work-menu>summary[aria-current="page"] { background: var(--surface); color: var(--accent); border-color: var(--line); box-shadow: inset 0 -2px var(--accent); }
header nav>a[href="#contact"] { background: var(--accent); color: var(--background); border-color: var(--accent); }
header nav>a[href="#contact"]:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
header nav>a:focus-visible,header .work-menu>summary:focus-visible { outline-color: var(--accent-soft); }
header .work-menu-links { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: 0 16px 40px #0008; border-radius: 12px; }
header .work-menu-links a { font-size: 14px; border-radius: 6px; }
header .work-menu-links a:hover,header .work-menu-links a:focus-visible { background: var(--surface-raised); color: var(--accent-soft); }
.section { padding-block: clamp(44px, 7vw, 88px); }
.eyebrow,.section .eyebrow { color: var(--accent); font-size: 11px; letter-spacing: .14em; line-height: 1.6; }
h2,:is(#work,#specialty-products) .section-heading h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.12; letter-spacing: -.04em; margin-bottom: 24px; }
.section-heading,.career-intro { margin-bottom: 36px; }
.hero { background: transparent; padding-top: 52px; padding-bottom: 32px; }
.hero-heading h1 { font-size: clamp(42px, 6.6vw, 88px); letter-spacing: -.055em; line-height: 1.06; }
h1 em { color: var(--accent); }
.hero-focus { gap: 8px; margin-bottom: 36px; }
.hero-focus span { border: 1px solid var(--line); background: var(--surface); padding: 6px 11px; border-radius: 24px; font-size: 10px; letter-spacing: .09em; }
.hero-focus span:not(:last-child)::after { content: none; }
.hero-portrait { border-color: var(--line); box-shadow: 0 0 0 10px #eab76a04, 0 0 50px #eab76a0c; }
.hero-bottom p { color: var(--muted); font-size: 20px; }
.hero-bottom .hero-capabilities { color: var(--accent-soft); }
.hero-meta { color: var(--muted); border-color: var(--line); }
.button,.contact-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 22px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--background); font-size: 14px; font-weight: 700; transition: background var(--ease), box-shadow var(--ease); }
.button:hover,.contact-links a:hover { background: var(--accent-soft); text-decoration: none; box-shadow: 0 0 24px #eab76a18; }
/* Reusable card component attached to existing content containers. */
.tech-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-space); transition: border-color var(--ease), box-shadow var(--ease); }
.projects { gap: 28px; }
.project.tech-card { background: var(--surface); border: 1px solid var(--line); padding: var(--card-space); }
.project h3 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.035em; }
.project-top { flex-wrap: wrap; gap: 6px 20px; }
.career-card.tech-card,.company-projects.tech-card,.development-tools>.tech-card,.skills>.tech-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-space); }
.career-transition .career-card { border-left: 3px solid var(--accent); }
.career-dot { background: var(--accent); border-color: var(--background); box-shadow: 0 0 0 1px var(--accent), 0 0 14px #eab76a30; }
.career-meta { color: var(--accent); }
.career-card h3,.skills h3 { margin-top: 12px; }
.skills { gap: 20px; }
.skills h3 { color: var(--text); }
.skills p { margin-bottom: 0; }
#specialty-products .specialty-category-card.tech-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
#specialty-products .specialty-product-links a { border-color: var(--line); border-radius: 8px; }
.project-notes,.aligner-process>div,.aligner-trimming,#metals .metals-lead { background: var(--surface-raised); border-color: var(--line); border-radius: 10px; }
.project-notes { padding: 20px; border-left: 2px solid var(--accent); }
#clear-image-aligners .aligner-process>div,#clear-image-aligners .project-role,#taser-10-holster .taser-role,:is(#enhanced-duty-holster,#concealed-duty-holster) .project-role { background: var(--surface-raised); }
.stage-gate-diagram { background: var(--surface); border-color: var(--line); border-radius: var(--radius); }
.stage-gate-steps li { border-color: var(--line); }
.stage-gate-steps li:not(:last-child)::after { background: var(--line); }
.gate-review { border-color: var(--line); }
.gate-diamond { background: var(--accent); }
.tool-tags span { background: var(--surface-raised); color: var(--accent-soft); border: 1px solid var(--line); }
/* One bubble geometry for step markers and existing numeric outcomes. */
.tech-bubble { display: inline-grid; place-content: center; text-align: center; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent-soft); background: radial-gradient(circle at 30% 20%, #eab76a0c, var(--surface) 70%); box-shadow: inset 0 0 18px #eab76a06, 0 0 20px #eab76a09; font-variant-numeric: tabular-nums; }
.stage-number.tech-bubble,.process-number.tech-bubble { width: 44px; height: 44px; font-size: 13px; margin-bottom: 12px; }
#metals .metals-metrics { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; border: 0; background: transparent; padding: 8px 0; }
#metals .metals-metrics>.tech-bubble { width: 188px; min-height: 188px; padding: 22px; flex: 0 1 188px; }
#metals .metals-metrics strong,#metals #microbender-mb1 .mb1-feature-metrics strong { color: var(--accent-soft); font-size: 25px; letter-spacing: -.04em; }
#metals .metals-metrics span { font-size: 13px; }
#metals #microbender-mb1 .mb1-feature-metrics { display: flex; flex-wrap: wrap; justify-content: center; }
#microbender-mb1 .mb1-feature-metrics>div { border: 1px solid var(--accent); padding: 22px; }
.trim-time { gap: 10px; }
.trim-time>.tech-bubble { width: 100%; aspect-ratio: 1; max-width: 210px; padding: 16px; justify-self: center; }
.trim-time strong { color: var(--accent-soft); font-size: clamp(19px, 3vw, 27px); }
.trim-time div>span { font-size: 12px; }
.work-results strong,.trim-comparison figcaption strong { color: var(--text); }
/* Preserve original images and crops; darken only their surrounding frames. */
.product-photo,.carbon-l1-story figure,.process-photo,.mb1-video,.trim-comparison figure,#microbender-mb1 .mb1-appliance-card { background: var(--surface-raised); border-color: var(--line); border-radius: 10px; }
:is(#taser-10-holster,#enhanced-duty-holster,#concealed-duty-holster) .product-photo.product-cutout { background: radial-gradient(ellipse at center, #34505d 0%, #162b35 70%); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
:is(#taser-10-holster,#enhanced-duty-holster,#concealed-duty-holster) .product-original-blend img { mix-blend-mode: normal; background: #fff; border-radius: 6px; }
.sls-visual { background: var(--surface); color: var(--muted); border: 1px solid var(--line); border-radius: 10px; }
.sls-visual figcaption a { color: var(--accent); }
.carbon-video video { background: var(--background); color: var(--text); }
.contact { background: transparent; }
.contact-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--card-space); }
.contact .eyebrow { color: var(--accent); }
.contact h2 { font-size: clamp(30px, 4vw, 48px); }
.email { color: var(--accent-soft); border-color: var(--accent); font-size: clamp(16px, 2.8vw, 27px); }
footer { border-top: 1px solid var(--line); color: var(--muted); gap: 20px; }
@media (hover:hover) and (pointer:fine) {
  .tech-card:hover,.career-milestone:hover .career-card,#specialty-products .specialty-category-card.tech-card:hover { border-color: #8C7350; box-shadow: 0 8px 28px #0002; transform: none; }
  a.tech-card:hover { border-color: var(--accent); }
}
@media (prefers-reduced-motion:no-preference) {
  main>section:not([hidden]) { animation: tech-enter 240ms ease-out; }
  @keyframes tech-enter { from { opacity: .5; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
@media (max-width:900px) { header { position: relative; } html { scroll-padding-top: 20px; } }
@media (max-width:700px) {
  header { padding: 18px 5%; }
  header nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
  header nav>a,header .work-menu>summary { font-size: 12px; padding: 9px 7px; }
  header nav>.process-nav { font-size: 11px; max-width: none; }
  header nav>a[href="#contact"] { grid-column: auto; }
  header .brand .brand-name { font-size: 23px; }
  .hero { padding-top: 32px; }
  .hero-heading { grid-template-columns: minmax(0,1fr) minmax(80px,26%); gap: 16px; }
  .hero-heading h1 { font-size: clamp(31px, 7vw, 48px); letter-spacing: -.05em; }
  .hero-focus { margin-bottom: 28px; }
  .hero-focus span { font-size: 9px; letter-spacing: .04em; padding: 5px 8px; }
  .hero-bottom p { font-size: 18px; }
  .button { white-space: normal; }
  .stage-gate-steps li { padding-left: 60px; }
  .stage-gate-steps li:not(:last-child)::after { left: 22px; top: 50px; }
  .trim-time { grid-template-columns: 1fr; }
  .trim-time-arrow { transform: rotate(90deg); justify-self: center; }
  .trim-time>.tech-bubble { width: 190px; }
  #metals .metals-metrics>.tech-bubble { flex-basis: 180px; min-height: 180px; }
  #microbender-mb1 .mb1-feature-layout { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 4px; }
  footer span:last-child { text-align: left; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation: none !important; transition: none !important; }
  .career-milestone:hover .career-card,#specialty-products .specialty-category-card:hover { transform: none; }
}
