/* Hallmark · v2.0.0 · theme: TechMet brand · redesign: polish · genre: modern-minimal · signature: service-industry photography · hero: split · scope: homepage */
/* Critique: replace layered light/glass treatments with a single graphite system; preserve existing interaction hooks. */
/* Finish: F4 carousel controls are secondary; F7 shared button aliases intentionally form one component. Measure 38ch is a short section introduction. */
/* Waive 54: retained descriptive labels identify product and sample context. Copy tightened from existing facts. */
:root {
  color-scheme: dark;
  --color-bg: #141414;
  --color-section: #1a1a1a;
  --color-panel: #232323;
  --color-panel-raised: #303030;
  --color-ink: #f4f6f8;
  --color-body: #cfcfcf;
  --color-muted: #b0b0b0;
  --color-line: #474747;
  --color-accent: #333333;
  --color-accent-hover: #4b4b4b;
  --color-accent-ink: #ffffff;
  --color-focus: #dfdfdf;
  --color-button-border: #919191;
  --color-logo-silver: #e2e2e2;
  --color-logo-ink: #303030;
  --color-border-active: #919191;
  --color-success: #d7d7d7;
  --color-success-bg: #353535;
  --color-overlay: #0f0f0fcc;
  --color-image-shade: linear-gradient(transparent 35%, #0f0f0fe6);
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-control: 10px;
  --radius-panel: 16px;
  --container: 1180px;
  --gap: 32px;
}
* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: 100px; }
body { margin: 0; background: var(--color-bg); color: var(--color-ink); font: 400 16px/1.65 var(--font-body); -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow-y: hidden; }
::selection { background: var(--color-accent); color: var(--color-accent-ink); }
body { scrollbar-color: var(--color-line) var(--color-bg); }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
a { color: var(--color-focus); text-underline-offset: 5px; }
:where(a, button, summary, input, select, textarea):focus-visible { outline: 3px solid var(--color-focus); outline-offset: 4px; }
:where(button, input, select, textarea):disabled { opacity: .6; cursor: not-allowed; border-style: dashed; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { color: var(--color-ink); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: break-word; min-width: 0; }
h1, h2 { text-wrap: balance; font-weight: 600; }
p { color: var(--color-body); }
.wrap, .header, .tm-demos-container { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.section { padding-block: clamp(64px, 7vw, 104px); }
.section h2 { font-size: clamp(32px, 3.8vw, 48px); }
.eyebrow, .tag, .sample-source, .rb-demo-kicker, .rb-demo-badge, .tm-about-detail-label { color: var(--color-muted); font-size: 13px; letter-spacing: 0; text-transform: none; }
.eyebrow { margin-bottom: 16px; }
.muted, .gradient-text, .techmet-growth { color: inherit; }
.ambient, #shader-background, .live-dot, .spark { display: none; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; border-bottom: 1px solid var(--color-line); }
.brand { color: var(--color-ink); font-size: 32px; font-weight: 800; letter-spacing: -1px; line-height: 1.2; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.brand .brand-tech, .brand .brand-met { display: inline; font: inherit; letter-spacing: inherit; }
.brand .brand-tech { padding: 3px 8px 5px; border-radius: 6px; background: var(--color-logo-silver); color: var(--color-logo-ink); }
.brand .brand-met { color: var(--color-logo-silver); }
.brand small { display: block; font-size: 12px; letter-spacing: 0; color: var(--color-muted); }
.brand-icon { display: grid; place-items: center; background: var(--color-panel-raised); width: 38px; height: 40px; border-radius: var(--radius-control); }
.header nav, .desktop-navigation { display: flex; align-items: center; gap: 24px; }
.header nav a { color: var(--color-body); text-decoration: none; font-size: 14px; }
.header nav a:hover { color: var(--color-ink); text-decoration: underline; }
.phone-navigation { display: none; }
.button, .rb-showcase-cta, .rb-showcase-secondary, .tm-about-cta, .tm-demos-primary, .tm-portfolio-button, .mini-cta, .footer-call, .footer-mobile-call, .quick-call-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; max-width: 100%; padding: 12px 20px;
  border: 1px solid var(--color-button-border); border-radius: var(--radius-control); background: var(--color-accent); color: var(--color-accent-ink); font-size: 15px; font-weight: 600; line-height: 1.4; text-decoration: none; text-align: center;
}
:where(.button, .rb-showcase-cta, .tm-about-cta, .mini-cta):hover { background: var(--color-accent-hover); }
:where(.button, .rb-showcase-cta, .tm-about-cta, .mini-cta):active { transform: translateY(1px); }
.button svg { width: 18px; height: 18px; flex: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: start; padding-block: 40px 48px; }
.hero-copy, .hero-visual, .workspace-grid > div, .rb-showcase-copy, .rb-demo-panel, .tm-about-content, .tm-about-details { min-width: 0; }
.hero h1 { font-size: clamp(34px, 3.5vw, 52px); line-height: 1.12; max-width: 23ch; }
.hero h1 span { display: block; }
.intro { margin-top: 24px; max-width: 42ch; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }
.hero-visual { border: 1px solid var(--color-line); border-radius: var(--radius-panel); padding: 16px; background: var(--color-section); color: var(--color-ink); }
.visual-label { display: flex; justify-content: space-between; gap: 12px; color: var(--color-body); font-size: 12px; padding-bottom: 16px; }
.visual-label .mono { color: var(--color-muted); }
.slideshow { position: relative; height: 300px; overflow: hidden; border-radius: var(--radius-control); background: var(--color-panel); }
#slides, .slide, .image-shade { position: absolute; inset: 0; }
.slide { opacity: 1; transition: opacity .35s ease; }
.js .slide[aria-hidden="true"] { opacity: 0; }
.slide.active { opacity: 1; }
.slide img, .slideshow-fallback { width: 100%; height: 100%; object-fit: cover; }
.image-shade { background: var(--color-image-shade); pointer-events: none; }
.slide-caption { position: absolute; bottom: 24px; left: 24px; right: 24px; }
.slide-caption > span { display: block; color: var(--color-ink); font-size: 12px; text-transform: lowercase; margin-bottom: 8px; }
.slide-caption h2 { font-size: 38px; }
.slide-index { position: absolute; right: 16px; top: 16px; padding: 4px 8px; background: var(--color-overlay); font-size: 12px; }
.slide-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.slide-dots, .slide-buttons { display: flex; gap: 2px; }
.slide-dots button, .slide-buttons button { min-width: 44px; height: 44px; border: 1px solid var(--color-line); border-radius: var(--radius-control); background: var(--color-panel); color: var(--color-ink); }
.slide-dots button { min-width: 22px; width: 22px; border: 0; background: none; position: relative; }
.slide-dots button::before { content: ''; position: absolute; height: 3px; inset: 20px 4px auto; background: var(--color-muted); }
.slide-dots button[aria-current="true"]::before { background: var(--color-focus); }
.slide-buttons button:hover { background: var(--color-panel-raised); }
.visual-note { border-top: 1px solid var(--color-line); padding-top: 16px; color: var(--color-body); font-size: 14px; }
.visual-note strong { font-weight: 400; color: var(--color-muted); }
.photo-note { margin-top: 8px; font-size: 12px; color: var(--color-muted); }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: var(--gap); margin-bottom: 32px; }
.section-top > p { max-width: 38ch; }
.industry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.industry-card { padding: 0; text-align: left; border: 1px solid var(--color-line); border-radius: var(--radius-control); overflow: hidden; background: var(--color-section); color: var(--color-ink); }
.industry-card:hover { border-color: var(--color-focus); }
.industry-image { position: relative; height: 168px; }
.industry-image img { width: 100%; height: 100%; object-fit: cover; }
.industry-number { position: absolute; bottom: 10px; left: 10px; padding: 2px 8px; background: var(--color-overlay); font-size: 12px; }
.industry-info { padding: 20px; position: relative; }
.industry-info h3 { font-size: 20px; padding-right: 20px; }
.industry-info p { font-size: 14px; margin-top: 8px; }
.industry-info > span { position: absolute; top: 18px; right: 16px; color: var(--color-focus); }
.workspace { background: var(--color-section); border-block: 1px solid var(--color-line); }
.workspace-grid, .rb-showcase-grid, .tm-about-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.section-copy { margin-top: 24px; max-width: 48ch; font-size: 17px; }
.feature-line { display: flex; gap: 20px; padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--color-line); }
.feature-line > span { color: var(--color-muted); font-size: 14px; }
.feature-line h3 { font-size: 18px; margin-bottom: 0; line-height: 1.4; }
.feature-line p { font-size: 16px; }
.dashboard { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: var(--radius-panel); padding: 28px; }
.dash-header, .rb-demo-header { display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.dash-header { padding-bottom: 20px; border-bottom: 1px solid var(--color-line); }
.dash-title { margin-top: 24px; }
.dash-title h3 { font-size: 26px; }
.dash-title .eyebrow { margin-bottom: 8px; }
.dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 24px; }
.dash-stats > div { border-bottom: 1px solid var(--color-line); padding-bottom: 16px; }
.dash-stats span { display: block; color: var(--color-muted); font-size: 14px; }
.dash-stats strong { display: block; font-size: 32px; font-variant-numeric: tabular-nums; }
.sample-contact { padding-block: 20px; border-top: 1px solid var(--color-line); }
.sample-contact h3 { font-size: 22px; margin-top: 8px; }
.sample-contact p { margin-block: 8px; font-size: 15px; }
.status { display: inline-flex; gap: 20px; align-items: center; min-height: 44px; padding: 8px 16px; margin-top: 8px; background: var(--color-panel); color: var(--color-ink); border: 1px solid var(--color-line); border-radius: var(--radius-control); }
.status.new { background: var(--color-success-bg); color: var(--color-success); }
.status:hover { border-color: var(--color-focus); }
.sample-notes { margin-top: 16px; }
summary { cursor: pointer; color: var(--color-focus); padding-block: 12px; }
.sample-notes label { display: block; margin-top: 12px; color: var(--color-body); font-size: 14px; }
textarea { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 12px; border: 1px solid var(--color-muted); border-radius: var(--radius-control); background: var(--color-panel); color: var(--color-ink); caret-color: var(--color-focus); resize: vertical; font-size: 16px; }
.sample-notes small, .sample-note, .dash-bottom { display: block; font-size: 13px; color: var(--color-muted); margin-top: 12px; }
#workspace > .wrap > div:first-child > .eyebrow, .rb-showcase-copy > .eyebrow { font-size: 18px; font-weight: 700; color: var(--color-body); }
#workspace > .wrap > div:first-child > h2, #rb-showcase-title { font-size: clamp(36px, 4vw, 52px); font-weight: 750; line-height: 1.12; letter-spacing: -.025em; }
.rb-showcase-copy h2 span { display: block; }
.rb-showcase-intro { margin-block: 24px 28px; font-size: 17px; }
.rb-showcase-actions { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.rb-showcase-secondary { background: transparent; border-color: var(--color-line); color: var(--color-ink); }
.rb-showcase-secondary:hover { background: var(--color-panel); border-color: var(--color-muted); }
.rb-showcase-secondary:active { transform: translateY(1px); }
.rb-demo-panel { padding: 28px; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: var(--color-section); color: var(--color-ink); }
.rb-demo-header h3 { font-size: 21px; margin-block: 12px 24px; }
.rb-demo-event { display: flex; gap: 16px; padding-block: 20px; border-block: 1px solid var(--color-line); }
.rb-demo-event small { display: block; color: var(--color-muted); }
.rb-demo-chat { display: grid; gap: 20px; margin-block: 24px; }
.rb-demo-message { max-width: 88%; padding: 16px; border-radius: var(--radius-control); background: var(--color-panel-raised); }
.rb-demo-message small { color: var(--color-body); font-size: 12px; }
.rb-demo-message p { color: var(--color-ink); margin-top: 8px; }
.rb-demo-incoming { justify-self: end; background: var(--color-panel); border: 1px solid var(--color-line); }
.rb-demo-footer { color: var(--color-success); font-size: 14px; }
.rb-demo-disclaimer { margin-top: 16px; color: var(--color-muted); font-size: 13px; }
.tm-about { border-top: 1px solid var(--color-line); }
.tm-about-content h2 { margin-bottom: 24px; }
.tm-about-content > p:not(.eyebrow) { margin-bottom: 20px; }
.tm-about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.tm-about-cta { margin-top: 0; }
.tm-about-cta svg, .footer-call svg { width: 18px; height: 18px; flex: none; }
.tm-about-details .tm-about-detail:first-child { margin-top: 0; }
.tm-about-details { padding-left: 32px; border-left: 1px solid var(--color-line); }
.tm-about-detail { display: flex; gap: 16px; margin-top: 28px; }
.tm-about-detail div { min-width: 0; }
.tm-about-detail small { display: block; color: var(--color-muted); }
.tm-about-detail a { overflow-wrap: anywhere; }
.tm-about-icon { color: var(--color-muted); }
footer { border-top: 1px solid var(--color-line); padding-block: 40px; }
footer.wrap, .footer-details, .footer-top, .quick-call { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
footer p, footer small { color: var(--color-muted); }
footer button { border: 0; background: none; color: var(--color-focus); min-height: 44px; }
.footer-tagline { color: var(--color-ink); font-size: 26px; max-width: 26ch; }
.footer-mobile-call { display: none; }
dialog { width: min(900px, calc(100% - 32px)); max-height: 90dvh; padding: 0; border: 1px solid var(--color-line); border-radius: var(--radius-panel); background: var(--color-bg); color: var(--color-ink); }
dialog::backdrop { background: var(--color-overlay); }
.modal-close { position: sticky; display: block; top: 12px; margin: 12px 12px 12px auto; z-index: 3; width: 44px; height: 44px; background: var(--color-panel); color: var(--color-ink); border: 1px solid var(--color-line); border-radius: var(--radius-control); font-size: 24px; }
#credits-dialog { padding: 24px; }
#credits-dialog h2 { margin-bottom: 16px; }
#credit-list li { margin-block: 12px; }
.mini-disclosure, .mini-footer { padding: 16px 24px; color: var(--color-muted); font-size: 13px; }
.mini-header { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding: 24px; }
.mini-header nav { display: flex; gap: 20px; flex-wrap: wrap; }
.mini-header a { min-height: 44px; display: inline-flex; align-items: center; }
.mini-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding: 24px; }
.mini-hero img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; border-radius: var(--radius-control); }
.mini-kicker { font-size: 13px; color: var(--color-muted); margin-bottom: 16px; }
.mini-hero h2 { font-size: 36px; margin-bottom: 20px; }
.mini-cta { margin-top: 20px; }
.mini-section { padding: 32px 24px; border-top: 1px solid var(--color-line); }
.mini-section h3 { font-size: 28px; margin-bottom: 24px; }
.mini-service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mini-service-grid h4 { font-size: 20px; margin-block: 12px; }
.mini-service-grid a { display: inline-block; padding-block: 12px; }
.mini-example { color: var(--color-muted); font-size: 14px; margin-top: 16px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 16px; background: var(--color-panel-raised); color: var(--color-ink); border: 1px solid var(--color-line); border-radius: var(--radius-control); opacity: 0; pointer-events: none; z-index: 100; }
.toast.show { opacity: 1; }
@media (max-width: 1000px) {
  .hero, .workspace-grid, .rb-showcase-grid, .tm-about-inner { gap: 32px; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header .desktop-navigation { display: none; }
  .phone-navigation { display: flex; gap: 12px; align-items: center; }
  .phone-menu summary, .phone-home { min-height: 44px; padding: 12px 16px; border: 1px solid var(--color-line); border-radius: var(--radius-control); color: var(--color-ink); }
  .phone-menu > nav { position: absolute; inset: auto 24px; margin-top: 12px; padding: 20px; z-index: 20; background: var(--color-panel); border: 1px solid var(--color-line); border-radius: var(--radius-control); }
  .phone-menu:not([open]) > nav { display: none; }
  .phone-menu[open] > nav { display: flex; flex-direction: column; align-items: stretch; }
  .phone-menu nav a { padding: 12px; min-height: 44px; }
}
@media (max-width: 800px) {
  .wrap, .header { width: calc(100% - 40px); }
  .hero { grid-template-columns: minmax(0, 1fr); padding-block: 32px 40px; }
  .hero h1 { max-width: 23ch; font-size: clamp(32px, 6.3vw, 48px); }
  .intro { font-size: 17px; }
  .hero-visual { width: 100%; }
  .slideshow { height: 320px; }
  .section-top { display: block; }
  .section-top > p { margin-top: 20px; }
  .workspace-grid, .rb-showcase-grid, .tm-about-inner, .mini-hero { grid-template-columns: minmax(0, 1fr); }
  .tm-about-details { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--color-line); }
  .mini-service-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-details { align-items: start; }
}
@media (max-width: 480px) {
  .header { gap: 8px; flex-wrap: wrap; }
  .brand { font-size: 26px; }
  .phone-navigation .phone-home { display: none; }
  .header > .button { padding-inline: 12px; font-size: 14px; }
  .visual-label .mono { display: none; }
  .slideshow { height: 270px; }
  .slide-caption { left: 16px; right: 16px; bottom: 16px; }
  .slide-caption h2 { font-size: 32px; }
  .slide-toolbar { justify-content: center; }
  .slide-dots button { min-width: 28px; width: 28px; }
  .industry-grid { gap: 16px; }
  .industry-image { height: 130px; }
  .industry-info { padding: 16px; }
  .industry-info h3 { font-size: 17px; padding-right: 0; }
  .industry-info p { font-size: 14px; }
  .industry-info > span { display: none; }
  .dashboard, .rb-demo-panel { padding: 20px; }
  .tag { max-width: 12ch; text-align: right; }
  .rb-showcase-cta, .rb-showcase-secondary, .tm-about-cta, .hero-actions .button { width: 100%; font-size: 14px; padding-inline: 12px; }
  .rb-demo-message { max-width: 95%; }
  .rb-demo-header { flex-wrap: wrap; }
  .rb-demo-header h3 { margin-bottom: 8px; }
  .rb-demo-badge { margin-bottom: 12px; }
}
@media (max-width: 360px) {
  .industry-grid { grid-template-columns: minmax(0, 1fr); }
  .industry-image { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .industry-card, .hero-visual, .rb-demo-panel {
    transition: transform .18s ease-out;
  }
  .pointer-depth { transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
  .industry-card:hover, .hero-visual:hover, .rb-demo-panel:hover { border-color: var(--color-border-active); }
}

/* Layout for the real shared footer's homepage variant. */
.techmet-home .techmet-footer .footer-inner,
.techmet-home .techmet-footer .tm-trust-footer { width: min(var(--container), calc(100% - 64px)); margin-inline: auto; }
.techmet-home .techmet-footer .footer-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.techmet-home .techmet-footer .footer-details > div,
.techmet-home .techmet-footer .footer-contact-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.techmet-home .techmet-footer .tm-trust-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--color-line); padding-top: 24px; margin-top: 32px; }
.techmet-home .techmet-footer .tm-trust-links { display: flex; flex-wrap: wrap; gap: 24px; }
.techmet-home .techmet-footer .footer-call svg { display: block; width: 18px; height: 18px; flex: none; }
.techmet-home .techmet-footer .footer-tagline { text-transform: none; }
@media (max-width: 800px) {
  .techmet-home .techmet-footer .footer-inner,
  .techmet-home .techmet-footer .tm-trust-footer { width: calc(100% - 40px); }
}
