/* Hetech institutional tokens; native gallery, no production dependencies. */
:root {
  color-scheme: light;
  --paper: #fff;
  --surface: #f4f7f4;
  --ink: #102019;
  --muted: #526259;
  --green: #007a32;
  --green-dark: #064522;
  --line: #d9e2dc;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--font); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 5px; }
.wrap { width: min(100% - 96px, 1280px); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 12px 20px; background: var(--green-dark); color: #fff; transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { min-height: 88px; display: flex; justify-content: space-between; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { width: 192px; }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: .9375rem; font-weight: 600; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; gap: 16px; }
.site-header .institutional { margin-left: 28px; color: var(--green-dark); }
.intro { padding-block: 54px 42px; }
.eyebrow { color: var(--green-dark); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
h1 { font-size: clamp(2.5rem, 4.5vw, 4rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.05; }
h1 span { color: var(--green); }
.intro-copy { max-width: 680px; font-size: 1.125rem; color: var(--muted); line-height: 1.55; margin-top: 24px; }
.demo-notice { margin-top: 22px; font-size: .8125rem; color: var(--muted); }
.niche { padding-block: 32px 64px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { margin-bottom: 28px; }
h2 { font-size: clamp(1.875rem, 3vw, 2.5rem); letter-spacing: -.035em; font-weight: 650; line-height: 1.15; }
.section-heading p { color: var(--muted); max-width: 680px; margin-top: 10px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.demo-card { min-width: 0; }
.demo-link { display: flex; flex-direction: column; height: 100%; border-radius: 2px; }
.thumbnail { aspect-ratio: 16/10; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 2px; }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 20px; }
h3 { font-size: 1.25rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.35; }
.project-meta { margin-top: 4px; color: var(--muted); font-size: .8125rem; }
.card-context { color: var(--muted); font-size: .9375rem; line-height: 1.6; margin-top: 10px; margin-bottom: 14px; max-width: 44ch; }
.card-cta { color: var(--green-dark); font-size: .875rem; font-weight: 650; display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin-top: auto; border-bottom: 1px solid var(--line); }
.card-cta span { font-size: 1.35rem; }
.contact { background: var(--surface); margin-top: 8px; }
.contact-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-block: 60px; }
.contact h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
.contact p:not(.eyebrow) { color: var(--muted); max-width: 520px; margin-top: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; min-height: 52px; padding: 13px 22px; border: 1px solid var(--green); border-radius: 2px; background: var(--green); color: #fff; font-weight: 650; line-height: 1.25; flex-shrink: 0; }
.button span { font-size: 1.3rem; }
.site-footer { padding-block: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: .8125rem; }
.site-footer p { font-weight: 650; }
.site-footer p span { color: var(--muted); margin-left: 24px; font-weight: 400; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; gap: 20px; }
@media (hover: hover) {
  .site-header nav a:hover, .site-footer a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
  .demo-link:hover .thumbnail { border-color: var(--green); }
  .demo-link:hover .card-cta { border-color: var(--green); }
  .demo-link:hover h3 { color: var(--green); }
  .button:hover { background: var(--green-dark); border-color: var(--green-dark); }
}
@media (prefers-reduced-motion: no-preference) {
  a, .thumbnail, .card-cta { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
}
@media (max-width: 1279px) {
  .demo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; }
  .site-header nav { gap: 24px; }
  .site-header .institutional { margin-left: 0; }
}
@media (max-width: 900px) {
  .wrap { width: calc(100% - 64px); }
  .site-header nav { gap: 20px; font-size: .875rem; }
  .brand img { width: 166px; }
  .contact-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
}
@media (max-width: 699px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 120px; padding-block: 18px 10px; flex-wrap: wrap; gap: 10px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 10px; font-size: .8125rem; }
  .site-header nav a { gap: 6px; }
  .brand img { width: 170px; }
  .intro { padding-block: 36px 32px; }
  h1 { font-size: clamp(2rem, 8.7vw, 3rem); }
  .intro-copy { font-size: 1rem; margin-top: 20px; }
  .demo-notice { max-width: 38ch; margin-top: 18px; }
  .niche { padding-block: 28px 48px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading p { font-size: .9375rem; }
  .demo-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .card-heading { margin-top: 16px; }
  .card-context { margin-top: 8px; margin-bottom: 6px; }
  .contact-inner { padding-block: 40px; }
  .contact h2 { font-size: 2rem; }
  .button { gap: 22px; }
  .site-footer { align-items: flex-start; font-size: .75rem; }
  .site-footer p span { display: block; margin-left: 0; }
}
@media (max-width: 359px) {
  .site-header nav { flex-wrap: wrap; justify-content: flex-start; gap: 0 20px; }
  .site-header .institutional { flex-basis: 100%; }
  .button { font-size: .875rem; gap: 14px; }
}
