/* ==========================================================================
   HuGR design system.
   One file, shared by every page, so the site and the product collateral
   cannot drift apart. Variation comes from content, never from re-choosing
   colours or type per page.
   ========================================================================== */

@font-face { font-family:'Archivo'; font-style:normal; font-weight:300; font-display:swap; src:url('fonts/archivo-v25-latin-300.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/archivo-v25-latin-regular.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-style:normal; font-weight:500; font-display:swap; src:url('fonts/archivo-v25-latin-500.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-style:normal; font-weight:600; font-display:swap; src:url('fonts/archivo-v25-latin-600.woff2') format('woff2'); }
@font-face { font-family:'Archivo'; font-style:normal; font-weight:700; font-display:swap; src:url('fonts/archivo-v25-latin-700.woff2') format('woff2'); }
@font-face { font-family:'IBM Plex Mono'; font-style:normal; font-weight:400; font-display:swap; src:url('fonts/ibm-plex-mono-v20-latin-regular.woff2') format('woff2'); }

:root {
  /* Colour. Mono + signal (2026-10-09): the site is black, white and glass;
     the accent marks small moments only (the signature full stop, marks,
     arrows, hover lines, number highlights). Never a fill, never body copy.
     True greys, no blue cast. Do not add to it. */
  --bg:       #0E0F10;  /* ink: hero, default dark sections, footer */
  --graphite: #17191B;  /* the alternate dark section */
  --surface:  #222528;  /* raised panels on dark */
  --ivory:    #F4F3F0;  /* primary text on dark */
  --body:     #D4D4D0;  /* body text on dark */
  --muted:    #A2A5A8;  /* supporting text and labels on dark */
  --rule:     #34383C;  /* rules and borders on dark */
  --concrete: #E7E6E2;  /* light sections */
  --paper:    #F4F3F0;  /* panels on light, the closing band */
  --accent:   #38E5A8;  /* laser mint. The signal. */

  /* Buttons invert with the section: white on dark, ink on light. */
  --btn-bg:    var(--ivory);
  --btn-ink:   var(--bg);
  --btn-hover: #FFFFFF;

  /* Legacy. The pre-October green, kept only because client pages under
     /r/ reference it directly. Not for new work. */
  --green:   #1A4C39;
  --lift:    #3E8F6B;

  /* Grid. One maximum content width for the whole site. */
  --measure: 1180px;
  --gutter:  56px;

  /* Vertical rhythm. Sections use --gap-section, nothing else. */
  --gap-section: 132px;
  --gap-head:    26px;   /* heading to its body copy */
  --gap-col:     52px;   /* between columns */

  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: Archivo, system-ui, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* --------------------------------------------------------------------------
   Typography. Fixed styles, used everywhere. No per-section treatments.
   -------------------------------------------------------------------------- */

h1, h2, h3, p, blockquote, figure { margin: 0; }

.h1 {
  font-size: clamp(42px, 6.2vw, 84px);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.042em;
}

.h2 {
  font-size: clamp(30px, 3.9vw, 52px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.032em;
}

.h3 {
  font-size: clamp(21px, 2.1vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.022em;
}

.body {
  font-size: 17px;
  line-height: 1.66;
  font-weight: 300;
  color: var(--body);
  max-width: 60ch;
  text-wrap: pretty;
}

.body-sm {
  font-size: 15.5px;
  line-height: 1.62;
  font-weight: 300;
  color: var(--body);
  max-width: 54ch;
  text-wrap: pretty;
}

.muted { color: var(--muted); }

/* The one place letter-spaced uppercase belongs: a brand or section label.
   Not applied indiscriminately. */
.micro {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Layout. One grid, top to bottom.
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--gap-section); padding-bottom: var(--gap-section); }
.section--tight { padding-top: calc(var(--gap-section) * .62); padding-bottom: calc(var(--gap-section) * .62); }

.stack > * + * { margin-top: var(--gap-head); }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-col); }
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-col); }

.rule { height: 1px; background: var(--rule); border: 0; }

/* --------------------------------------------------------------------------
   Components
   -------------------------------------------------------------------------- */

nav.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: rgba(13, 16, 19, .72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, .045);
}
nav.bar .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  font-size: 19px; font-weight: 600; letter-spacing: .01em;
  color: var(--ivory); text-decoration: none;
}
.navlinks { display: flex; align-items: center; gap: 30px; }
.navlink {
  font-size: 14px; font-weight: 400; color: var(--muted);
  text-decoration: none; transition: color .35s var(--ease);
}
.navlink:hover { color: var(--ivory); }

.btn {
  display: inline-block; text-align: center;
  font-family: Archivo, sans-serif; font-size: 15px; font-weight: 500;
  color: var(--btn-ink); background: var(--btn-bg);
  border: 0; padding: 16px 30px; cursor: pointer; text-decoration: none;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.btn:hover { background: var(--btn-hover); transform: translateY(-2px); }
.btn--sm { font-size: 13px; padding: 12px 22px; }

/* Text link with an arrow. The only other CTA treatment on the site. */
.link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 500; color: var(--ivory);
  text-decoration: none; transition: gap .35s var(--ease), color .35s var(--ease);
}
.link .arrow { color: var(--accent); transition: transform .35s var(--ease); }
.link:hover { gap: 13px; }
.link:hover .arrow { transform: translateX(2px); }

/* A restrained panel. Used for the three solutions and nothing else. */
.panel {
  position: relative;
  display: flex; flex-direction: column;
  padding: 38px 34px 34px;
  background: var(--surface);
  border: 1px solid var(--rule);
  transition: border-color .45s var(--ease), transform .45s var(--ease);
}
.panel:hover { border-color: #4A4F54; transform: translateY(-3px); }
/* An accent line draws across the top edge on hover. */
.panel::before {
  content: ''; position: absolute; left: -1px; top: -1px; width: 0; height: 2px;
  background: var(--accent); transition: width .5s var(--ease);
}
.panel:hover::before { width: calc(100% + 2px); }
.panel .h3 { margin-top: 18px; }
.panel .body-sm { margin-top: 14px; flex: 1; }
.panel .link { margin-top: 26px; }

/* The single accent mark: a short green rule above a label. */
.mark { width: 26px; height: 2px; background: var(--accent); }

/* The signature: a headline's closing full stop in the accent. */
.dot { color: var(--accent); }

/* Client strip. Logos are single-colour white files in /logo/clients/,
   dimmed here so no client's brand colour enters the palette. */
.clients {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap-col);
  margin-top: 30px;
}
.client {
  display: flex; flex-direction: column;
  padding-top: 26px; border-top: 1px solid var(--rule);
  text-decoration: none; transition: border-color .45s var(--ease);
}
.client img {
  display: block; height: 30px; width: auto; max-width: 100%;
  object-fit: contain; object-position: left center;
  opacity: .62; transition: opacity .45s var(--ease);
}
.client .body-sm { margin-top: 22px; flex: 1; }
.client .micro { margin-top: 18px; letter-spacing: .04em; text-transform: none; white-space: nowrap; transition: color .35s var(--ease); }
.client:hover { border-color: var(--accent); }
.client:hover img { opacity: 1; }
.client:hover .micro { color: var(--ivory); }

/* Numbered example rows, for Smarter operations. */
.example { padding: 30px 0; border-top: 1px solid var(--rule); }
.example:last-child { border-bottom: 1px solid var(--rule); }
.example .body-sm { margin-top: 12px; max-width: 64ch; }

blockquote.quote {
  font-size: clamp(26px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.028em;
  color: var(--ivory);
  text-wrap: pretty;
}
.attrib { font-size: 14px; color: var(--muted); font-weight: 400; }

footer.foot { padding-top: 64px; padding-bottom: 34px; border-top: 1px solid #1F2427; overflow: hidden; }

/* Product page hero: a looping video behind the headline, which sits left.
   The veil keeps the left third dark so the headline always reads. */
.phero {
  position: relative; min-height: 72vh; display: flex; align-items: center;
  padding: 140px 0 88px; overflow: hidden; background: var(--bg);
}
.phero video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; display: block;
}
.phero .veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(14,15,16,.7) 0%, rgba(14,15,16,0) 22%),
    linear-gradient(90deg, rgba(14,15,16,.9) 0%, rgba(14,15,16,.72) 33%, rgba(14,15,16,.12) 62%, rgba(14,15,16,0) 100%),
    linear-gradient(0deg, rgba(14,15,16,.85) 0%, rgba(14,15,16,0) 28%);
}
.phero .wrap { position: relative; width: 100%; }
.phero .h1 { font-size: clamp(38px, 5vw, 68px); max-width: 16ch; }
.phero .lede { margin-top: 28px; max-width: 52ch; }

/* Section tones. Dark sections are the default; light ones re-point the
   tokens so every component inside adapts without per-section rules. */
.section--graphite { background: var(--graphite); }
.section--light, .section--paper {
  --ivory: #121314; --body: #2F3235; --muted: #5C6064; --rule: #CFCDC7;
  --surface: var(--paper);
  --btn-bg: #0E0F10; --btn-ink: #F4F3F0; --btn-hover: #000000;
  background: var(--concrete); color: var(--ivory);
}
.section--paper { background: var(--paper); --surface: #FFFFFF; }
/* On light, the small dash goes ink; the full stop keeps the accent. */
.section--light .mark { background: var(--ivory); }
.section--paper .mark { width: 44px; height: 3px; }
/* Client logos are white files; flip them to ink on light. */
.section--light .client img, .section--paper .client img { filter: invert(1); }

/* Reveal on scroll. Subtle, and the only motion outside the hero. */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
[data-reveal].in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive. One set of breakpoints for every page.
   -------------------------------------------------------------------------- */

@media (max-width: 980px) {
  :root { --gutter: 34px; --gap-section: 96px; --gap-col: 34px; }
  .cols-3 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
  .clients { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 22px; --gap-section: 78px; --gap-head: 20px; }
  .body { font-size: 16px; }
  .navlinks { gap: 18px; }
  .navlink { display: none; }
  nav.bar .inner { padding-top: 14px; padding-bottom: 14px; }
  .panel { padding: 30px 24px 28px; }
  .clients { grid-template-columns: 1fr; gap: 0; }
  .phero { min-height: 64vh; padding: 120px 0 64px; }
  .phero .veil { background: linear-gradient(0deg, rgba(14,15,16,.9) 0%, rgba(14,15,16,.55) 60%, rgba(14,15,16,.7) 100%); }
  .client { padding-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
