/* Ilmtrix AI — site styles
   Plain CSS, no build step. Palette is taken from the logo: deep navy ground,
   steel/cyan blue accents, chrome silver, with amber as the spark highlight. */

:root {
  /* Light surfaces */
  --bg: #ffffff;
  --bg-alt: #f3f7fb;
  --surface: #ffffff;
  --border: #dde6f0;
  --text: #101c2b;
  --text-muted: #566884;

  /* Dark surfaces (hero, header, footer) */
  /* Pulled toward the logo's own slate ground (#33414f centre) so the logo
     sits in the hero rather than on top of it. */
  --navy: #0b121b;
  --navy-2: #111b27;
  --navy-3: #1a2633;
  --on-dark: #e8eff8;
  --on-dark-muted: #9fb3cc;

  /* Logo accents */
  --accent: #2f82c4;
  --accent-strong: #1f6aa5;
  --accent-bright: #5fc0f0;
  --accent-soft: #e7f2fb;
  --silver: #c6d5e6;
  --spark: #f0932b;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 28, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(16, 28, 43, 0.10);

  --max: 1120px;
  --gutter: 20px;

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

a { color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
}

/* ---------- Layout ---------- */

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

.section { padding-block: 84px; }

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head { max-width: 680px; margin-bottom: 44px; }

.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }

.section-sub {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Header (dark, continuous with the hero) ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Solid, not translucent: translucent navy over the white page renders grey
     and leaves a seam above the hero. Matches the hero's top colour. */
  background: var(--navy-3);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: rgba(95, 192, 240, 0.22);
  box-shadow: 0 6px 24px rgba(5, 10, 18, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--on-dark);
}

/* logo-cube.jpg is the cube cropped out of the full lockup; the lockup's
   wordmark is illegible at this size. */
.brand-mark {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  border: 1px solid rgba(198, 213, 230, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-ai {
  color: var(--accent-bright);
  margin-left: 0.28em;
}

.brand-name.small { font-size: 1.05rem; }

.site-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-menu a:hover {
  color: #fff;
  background: rgba(95, 192, 240, 0.14);
}

.nav-menu .nav-cta {
  margin-left: 6px;
  background: var(--accent);
  color: #fff;
}

.nav-menu .nav-cta:hover { background: var(--accent-bright); color: var(--navy); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(198, 213, 230, 0.28);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--on-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (dark banner, matching the logo ground) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 9vw, 104px) clamp(60px, 8vw, 96px);
  background:
    radial-gradient(520px 420px at 76% 50%, rgba(70, 88, 104, 0.42), transparent 70%),
    radial-gradient(900px 440px at 80% 0%, rgba(47, 130, 196, 0.16), transparent 62%),
    linear-gradient(180deg, var(--navy-3) 0%, var(--navy-2) 48%, var(--navy) 100%);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(95, 192, 240, 0.16);
}

/* Faint circuit-like grid, echoing the logo background. */
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(95, 192, 240, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 192, 240, 0.055) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 36%, #000 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 36%, #000 18%, transparent 78%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 620px;
  height: 620px;
  max-width: 100%;
  background: radial-gradient(circle, rgba(95, 192, 240, 0.10), rgba(95, 192, 240, 0) 70%);
  pointer-events: none;
}

/* This element is also .container, so do NOT set a max-width here: a narrower
   value shrinks the container and pulls the hero out of line with the page. */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.4vw, 3.9rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
  color: #fff;
}

.hero .eyebrow { color: var(--accent-bright); }

.grad {
  background: linear-gradient(100deg, var(--accent-bright) 8%, var(--silver) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--on-dark-muted);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.hero-actions .btn { padding: 14px 28px; font-size: 1.01rem; }

.hero-logo {
  justify-self: center;
  position: relative;
  /* Glow goes on the wrapper, not the img: the img's mask is applied after
     its own filters, so a drop-shadow there would be clipped away. Here it
     follows the feathered edge of the masked cube. */
  filter: drop-shadow(0 0 16px rgba(95, 192, 240, 0.38));
}

/* Halo behind the cube, breathing slowly. The global reduced-motion rule
   stops the animation for people who ask for that. */
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle,
    rgba(95, 192, 240, 0.34) 0%,
    rgba(47, 130, 196, 0.16) 38%,
    rgba(47, 130, 196, 0) 66%);
  pointer-events: none;
  animation: logo-glow 6s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  from { opacity: 0.7; transform: scale(0.96); }
  to   { opacity: 1;   transform: scale(1.04); }
}

/* Cube only: the full lockup's wordmark runs edge to edge, so any feathering
   clipped it, and unfeathered it read as a square pasted on the banner. The
   wordmark and tagline are already in the header and eyebrow. A radial mask
   dissolves the cube's slate background into the hero. */
.hero-logo img {
  position: relative;
  display: block;
  width: clamp(170px, 19vw, 230px);
  height: auto;
  filter: brightness(1.1) saturate(1.12);
  -webkit-mask-image: radial-gradient(closest-side at 50% 52%, #000 74%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 52%, #000 74%, transparent 100%);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 130, 196, 0.32);
}
.btn-primary:hover { background: var(--accent-bright); color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(198, 213, 230, 0.34);
}
.btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }

.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #bcd5ec;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}

.card-icon svg { width: 22px; height: 22px; }

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.card p { color: var(--text-muted); font-size: 0.96rem; }

/* How the apps are built — a compact strip under the cards. */
.traits {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.traits li {
  position: relative;
  padding: 12px 16px 12px 34px;
  background: var(--accent-soft);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.94rem;
}

.traits li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 1.35em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spark);
}

.traits strong { color: var(--text); font-weight: 600; }

/* ---------- Who we are ---------- */

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 52px;
  align-items: start;
}

.split-text h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  margin-bottom: 18px;
}

.split-text p {
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 60ch;
}

.split-text strong { color: var(--text); }

/* Right-hand panel: carries what the text column doesn't, rather than
   restating it. */
.team-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
}

.panel-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 14px;
}

.disciplines {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.disciplines li {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 600;
}

.panel-rule {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.panel-rule span {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--spark);
  margin-bottom: 6px;
}

/* ---------- Vision ---------- */

.quote {
  margin: 0 0 44px;
  padding: 28px 30px;
  background: var(--accent-soft);
  border-radius: var(--radius-lg);
  border: 1px solid #cfe3f5;
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  line-height: 1.5;
  color: var(--accent-strong);
  max-width: 54ch;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}

.pillar-n {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 10px;
}

.pillar h3 { font-size: 1.08rem; margin-bottom: 8px; }

.pillar p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Contact ---------- */

.contact {
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(95, 192, 240, 0.22), transparent 66%),
    linear-gradient(135deg, var(--navy-3) 0%, var(--navy) 100%);
  color: #fff;
}

.contact-inner { text-align: center; max-width: 620px; margin-inline: auto; }

.contact h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.1rem);
  margin-bottom: 12px;
}

.contact p {
  color: var(--on-dark-muted);
  margin-bottom: 26px;
}

.contact .btn-primary {
  background: var(--accent-bright);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(95, 192, 240, 0.25);
}
.contact .btn-primary:hover { background: #fff; color: var(--navy); }

/* ---------- Footer ---------- */

.site-footer {
  background: #060c16;
  color: var(--on-dark-muted);
  padding-block: 34px;
  border-top: 1px solid rgba(95, 192, 240, 0.12);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.site-footer .brand-name { color: #fff; }

.footer-note { font-size: 0.92rem; color: var(--on-dark-muted); margin-top: 2px; }

.footer-copy { font-size: 0.86rem; color: #6d819b; }

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* Once stacked, the cube would sit under the buttons adding a screen of
     scroll, and the header already shows the same mark. */
  .hero-logo { display: none; }
}

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 680px) {
  .section { padding-block: 62px; }

  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 16px;
    background: var(--navy-2);
    border-bottom: 1px solid rgba(95, 192, 240, 0.2);
    box-shadow: 0 10px 30px rgba(3, 8, 16, 0.5);
    display: none;
  }

  .nav-menu.is-open { display: flex; }

  .nav-menu a { padding: 11px 12px; }

  .nav-menu .nav-cta { margin-left: 0; text-align: center; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- 404 page ---------- */

.notfound {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.notfound-inner { text-align: center; }

.notfound-inner .lede { margin-inline: auto; }

.notfound-inner .hero-actions { justify-content: center; }

.notfound-mark {
  width: 110px;
  height: auto;
  margin-bottom: 18px;
  -webkit-mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 74%, transparent 100%);
}
