/* Shared ASI homepage styles: tokens, type, buttons, and the sections both versions use. */
:root {
  --cream: #f4f3f2;
  --sand: #e9e5de;
  --card: #d9d4cb;
  --ink: #1a1a1a;
  --dark: #171612;
  --footer: #141414;
  --slate: #343a3e;
  --green: #5b8422;
  --muted: #6e6c66;
  --line: rgba(26, 26, 26, .14);
  --sans: "Roboto Flex", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --margin: 20px;
  --gutter: 20px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }

/* type */
.display, h1, h2, h3 { font-weight: 640; font-stretch: 105%; letter-spacing: -.02em; line-height: 1; }
.h-xl { font-size: clamp(48px, 6.1vw, 88px); line-height: .98; }
.h-l { font-size: clamp(40px, 4.45vw, 64px); }
.h-m { font-size: clamp(32px, 3.35vw, 48px); line-height: 1.05; }
.h-s { font-size: 24px; font-weight: 600; font-stretch: 100%; letter-spacing: -.01em; line-height: 1.2; }
.body { font-size: 16px; line-height: 1.5; }
.small { font-size: 14px; line-height: 1.45; }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* 12-column grid, 20px margins and gutters (matches the Figma grid) */
.wrap { padding: 0 var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 45px; padding: 0 20px; font: 600 14px var(--sans); text-decoration: none; border-radius: 2px; white-space: nowrap; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn::after { content: "→"; }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn.dark:hover { background: #333; }
.btn.outline { border-color: var(--ink); color: var(--ink); }
.btn.outline:hover { background: var(--ink); color: var(--cream); }
.btn.green { background: var(--green); color: var(--cream); }
.btn.green:hover { background: #4c701c; }
.btn.cream { background: var(--cream); color: var(--ink); }
.btn.cream:hover { background: #fff; }
.btn.ghost { background: rgba(244,243,242,.16); color: var(--cream); backdrop-filter: blur(6px); }
.btn.ghost:hover { background: rgba(244,243,242,.28); }
.btn.sm { height: 31px; border-radius: 3px; }

/* icons: rubble-style SVGs used as masks so they take any color.
   Set --i inline as url(icons/NAME.svg); it resolves against this stylesheet (assets/). */
.icon { display: inline-block; width: 56px; height: 56px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }

/* solutions grid (both versions) */
.solutions { background: var(--sand); padding: 120px 0; }
.solutions .head { grid-column: 1 / span 7; margin-bottom: 64px; }
.solutions .head p { margin-top: 18px; max-width: 460px; }
.cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.card { background: var(--card); border-radius: 10px; padding: 12px 12px 24px; display: flex; flex-direction: column; gap: 14px; }
.card .ph { aspect-ratio: 419 / 227; border-radius: 6px; overflow: hidden; position: relative; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .4s, transform .6s; }
.card:hover .ph img { filter: grayscale(0); transform: scale(1.03); }
.card .ph::before, .card .ph::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(244,243,242,.85); z-index: 1; }
.card .ph::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.card .ph::after { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.card h3 { padding: 6px 8px 0; }
.card p { padding: 0 8px; flex: 1; }
.card .btn { margin: 6px 8px 0; align-self: flex-start; background: rgba(26,26,26,.1); color: var(--ink); height: 37px; font-size: 13px; }
.card .btn:hover { background: var(--ink); color: var(--cream); }

/* CTA band + footer (both versions) */
.cta-band { background: #f2f2f2; padding: 120px 0; }
.cta-band .grid { align-items: end; }
.cta-band h2 { grid-column: 1 / span 8; }
.cta-band .btns { grid-column: 9 / -1; display: flex; gap: 20px; justify-content: flex-end; }
footer.site { background: var(--footer); color: var(--cream); padding: 22px 0; min-height: 531px; display: flex; flex-direction: column; justify-content: space-between; gap: 72px; }
footer.site .brand { grid-column: 1 / span 4; }
footer.site .brand h2 { font-size: 40px; line-height: 1.05; margin-bottom: 36px; }
footer.site .col.services { grid-column: 6 / span 2; }
footer.site .col.company { grid-column: 8 / span 2; }
footer.site .col.contact { grid-column: 10 / span 3; }
footer.site h4 { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #8d8d8d; margin-bottom: 10px; }
footer.site ul { list-style: none; display: grid; gap: 10px; font-size: 14px; line-height: 21px; }
footer.site a { text-decoration: none; }
footer.site ul a:hover, footer.site .legal a:hover { text-decoration: underline; }
footer.site .lockup { display: block; width: 264px; height: auto; color: #fff; }
footer.site .legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; line-height: 20px; color: #9e9e9e; }
footer.site .legal .dot { margin: 0 8px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .grid > * { grid-column: 1 / -1 !important; }
  .solutions { padding: 72px 0 80px; } .solutions .head { margin-bottom: 36px; }
  .cta-band { padding: 72px 0; }
  .h-xl { font-size: 40px; } .h-l { font-size: 40px; } .h-m { font-size: 32px; }
  footer.site { min-height: 0; gap: 48px; padding-bottom: 28px; }
  footer.site .brand h2 { margin-bottom: 0; }
  footer.site .legal { flex-direction: column; gap: 8px; }
  .cards { grid-template-columns: 1fr; }
  .cta-band .btns { justify-content: flex-start; margin-top: 28px; flex-wrap: wrap; }
  footer.site .col { margin-top: 36px; }
  footer.site .brand h2 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
