/* Imhauser Technologies — site styles
   Direction: dark command center. Carbon canvas, graphite panels, 1px slate
   borders, brand green as the single accent, monospace labels. */

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/schibsted-grotesk.woff2') format('woff2');
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
}

:root {
  --carbon: #0b0e12;
  --carbon-2: #0e1116;
  --graphite: #1f2124;
  --graphite-2: #15181d;
  --slate: #303235;
  --dim: #434547;
  --steel: #8a8c8f;   /* labels and faint text: 5.1:1 on carbon, 4.5:1 on graphite */
  --ash: #9a9c9e;     /* muted body copy: 6.3:1 on carbon, 5.5:1 on graphite */
  --light: #a9abad;
  --platinum: #bababb;
  --snow: #dedede;
  --white: #ffffff;
  --green: #09b850;
  --teal: #002923;
  --teal-2: #005441;
  --red: #ff6285;
  --sans: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', Menlo, Consolas, monospace;
  --wrap: 1280px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--carbon);
  color: var(--platinum);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--snow); text-decoration: none; }
a:hover { color: var(--green); }
p { margin: 0; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; color: var(--snow); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Type */
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; line-height: 1.5; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.5; color: var(--steel); }
.label--accent { color: var(--green); }
.h1 { font-size: 58px; line-height: 1.08; letter-spacing: -0.02em; }
.h2 { font-size: 40px; line-height: 1.12; letter-spacing: -0.015em; }
.h3 { font-size: 22px; line-height: 1.25; }
.h4 { font-size: 18px; line-height: 1.3; }
.lead { font-size: 24px; line-height: 1.3; letter-spacing: -0.01em; color: var(--snow); }
.numeral { font-size: 180px; line-height: 0.85; letter-spacing: -0.05em; color: var(--snow); }
.muted { color: var(--ash); }
.faint { color: var(--steel); }
.snow { color: var(--snow); }
.small { font-size: 14px; }
.measure { max-width: 60ch; }
.measure-s { max-width: 50ch; }
.prose { display: flex; flex-direction: column; gap: 14px; font-size: 15px; color: var(--ash); }
.prose a { color: var(--green); }
.prose strong { color: var(--snow); font-weight: 500; }

/* Layout */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sec { padding: 72px 0; border-top: 1px solid var(--slate); }
.sec--alt { background: var(--carbon-2); }
.sec--flush { border-top: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack--s { gap: 12px; }
.stack--l { gap: 32px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; }
.grid { display: grid; gap: 12px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.split { display: grid; grid-template-columns: 6fr 6fr; gap: 40px; align-items: start; }
.split--57 { grid-template-columns: 5fr 7fr; }
.split--75 { grid-template-columns: 7fr 5fr; }
.split--center { align-items: center; }

/* Surfaces */
.card { background: var(--graphite); border: 1px solid var(--slate); border-radius: 1px; }
.card--pad { padding: 24px; }
.card--pad-s { padding: 18px 20px; }
.frame { border: 1px solid var(--slate); border-radius: 1px; background: var(--graphite); overflow: hidden; }
.frame--pad { padding: 12px; background: var(--graphite-2); }
.photo { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.35) contrast(1.05) brightness(0.82); }
.ratio-16-9 { aspect-ratio: 16 / 9; overflow: hidden; }
.ratio-4-3 { aspect-ratio: 4 / 3; overflow: hidden; }
.ratio-1-1 { aspect-ratio: 1 / 1; overflow: hidden; }
.rule { border-top: 1px solid var(--slate); padding-top: 28px; }
.tile { background: var(--graphite); border: 1px solid var(--slate); border-radius: 1px; padding: 18px 16px; display: flex; align-items: flex-end; min-height: 40px; }

/* Controls */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  background: var(--teal); color: var(--green); border: 0; border-radius: 1px;
  box-shadow: inset 0 0 0 1px rgba(9, 184, 80, 0.35);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; white-space: nowrap; cursor: pointer;
}
.btn:hover { color: var(--snow); background: var(--teal-2); }
.btn--s { height: 36px; padding: 0 14px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px;
  border: 1px solid var(--slate); color: var(--platinum); border-radius: 1px; font-size: 14px; white-space: nowrap; background: transparent;
}
.btn-ghost:hover { color: var(--snow); border-color: var(--steel); }
.link { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; }
.link:hover { color: var(--snow); }
.icon { width: 14px; height: 14px; }

/* Lists */
.bullets { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--platinum); }
.bullets li { padding-left: 16px; position: relative; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; background: var(--green); }
.bullets--muted { color: var(--ash); }
.bullets--muted li::before { top: 10px; width: 7px; height: 1px; background: var(--steel); }
.bullets--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }

/* Header */
.site-header { border-bottom: 1px solid var(--slate); position: relative; z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.nav__logo img { height: 34px; width: auto; }
.nav__links { display: flex; gap: 4px; align-items: center; }
.nav__links > li { position: relative; }
.nav__links a, .nav__links button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 14px; color: var(--light);
  background: none; border: 0; cursor: pointer; border-radius: 1px;
}
.nav__links a:hover, .nav__links button:hover, .nav__links li.is-open > button { color: var(--snow); }
.nav__links button svg { width: 10px; height: 10px; }
.menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 6px;
  background: var(--graphite); border: 1px solid var(--slate); border-radius: 1px; flex-direction: column;
}
.menu a { display: block; padding: 8px 12px; font-size: 14px; color: var(--platinum); }
.menu a:hover { color: var(--green); background: var(--graphite-2); }
.nav__links li.is-open > .menu { display: flex; }
.nav__toggle { display: none; background: none; border: 1px solid var(--slate); color: var(--platinum); width: 40px; height: 36px; border-radius: 1px; align-items: center; justify-content: center; cursor: pointer; }
.nav__toggle svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .nav__links > li:hover > .menu { display: flex; }
}

/* Hero */
.hero { padding: 72px 0 64px; }
.hero__frame { position: relative; min-height: 560px; }
.hero__frame .photo { position: absolute; inset: 0; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,14,18,0) 35%, rgba(11,14,18,0.75) 100%); }
.console {
  position: absolute; left: 20px; right: 20px; bottom: 20px; background: rgba(11, 14, 18, 0.92);
  border: 1px solid var(--slate); border-radius: 1px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.console .mono { color: var(--platinum); }
.console .ok { color: var(--green); }
.console .finding { color: var(--red); }
.console .cmd { color: var(--steel); }
.console .cursor { color: var(--teal-2); }

/* Page hero (inner pages) */
.page-hero { padding: 64px 0 56px; }
.page-hero__meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.breadcrumb { display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--green); }

/* Footer */
.site-footer { border-top: 1px solid var(--slate); }
.footgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 48px 0; }
.footgrid a { color: var(--light); font-size: 13px; }
.footgrid a:hover { color: var(--green); }
.footgrid img { height: 32px; width: auto; align-self: flex-start; }
.footbar { border-top: 1px solid var(--slate); }
.footbar .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Data table (project info) */
.kv { display: flex; flex-direction: column; }
.kv > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--slate); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv .snow { color: var(--snow); }

/* FAQ */
.faq details { border-top: 1px solid var(--slate); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--slate); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 16px; color: var(--snow); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--green); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; font-size: 14px; color: var(--ash); max-width: 70ch; }

/* Features (alternating rows) */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.feature:nth-child(even) .feature__media { order: 2; }

/* HubSpot form container */
.form-card { padding: 28px; }
.hs-form-frame { min-height: 320px; }

/* Map */
.map { width: 100%; height: 320px; border: 1px solid var(--slate); filter: grayscale(1) invert(0.92) contrast(0.9); display: block; }

/* Responsive */
@media (max-width: 960px) {
  .grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h1 { font-size: 46px; }
}
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .nav__links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--carbon); border-bottom: 1px solid var(--slate); padding: 8px 12px 16px; }
  .nav__links > li { border-top: 1px solid var(--slate); }
  .nav__links a, .nav__links button { width: 100%; justify-content: space-between; padding: 12px 8px; font-size: 15px; }
  .menu { position: static; border: 0; background: transparent; padding: 0 0 8px 12px; min-width: 0; }
  .nav.is-open .nav__links { display: flex; }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .split, .split--57, .split--75, .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature__media { order: 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4.grid--keep2, .page-hero__meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bullets--2 { grid-template-columns: 1fr; }
  .h1 { font-size: 38px; }
  .h2 { font-size: 30px; }
  .lead { font-size: 20px; }
  .numeral { font-size: 120px; }
  .sec { padding: 48px 0; }
  .hero { padding: 48px 0 40px; }
  .hero__frame { min-height: 420px; }
  .console { left: 12px; right: 12px; bottom: 12px; padding: 12px; }
  .console .mono { font-size: 10px; }
  .btn, .btn-ghost { white-space: normal; height: auto; min-height: 44px; padding-top: 10px; padding-bottom: 10px; line-height: 1.3; }
  .kv > div { grid-template-columns: 110px 1fr; }
  .diagram { display: none; }
}
