/* ==========================================================================
   Heem Team — a product forge
   Early-2000s bold Helvetica typography. Off-white paper, off-black ink,
   one vibrant character accent (cyan, #00DCEE).
   Public site: hand-written CSS, no framework.
   ========================================================================== */

:root {
  --paper:    #fcfcfc;   /* near-white canvas */
  --paper-2:  #f1f1f1;   /* slightly deeper panel */
  --ink:      #16130f;   /* off-black, warm */
  --ink-soft: #4a463e;   /* muted body text */
  --line:     #cbc7ba;   /* hairlines */
  --accent:   #00dcee;   /* vibrant cyan — reads on dark backgrounds & fills */
  --accent-2: #1f2d63;   /* navy — Engineering Heem */

  --measure: 66ch;
  --gutter:  clamp(1.25rem, 4vw, 4rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--accent);   /* fills the space beyond the 1600px page */
}

body {
  margin: 0 auto;
  max-width: 1600px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

/* ---- Layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.rule { border: 0; border-top: 2px solid var(--ink); margin: 0; }

/* ---- Type -------------------------------------------------------------- */
/* The house voice: tight, heavy, narrow-kerned Helvetica. */
.display {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.4rem;
  height: 0.55em;
  margin-right: 0.6em;
  background: var(--accent);
  vertical-align: baseline;
}

.lede {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 30ch;
}

p { max-width: var(--measure); }

/* ---- Header ------------------------------------------------------------ */
.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid #ececec;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
.brand {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: 1.15rem;
  text-decoration: none;
}
.brand .dot { color: var(--accent); }

/* Homepage: brand is hidden while the hero wordmark is on screen, and
   revealed the moment the bottom of "Team" meets the header's bottom edge.
   Toggled by the IntersectionObserver in index.html. */
.js-hero .masthead .brand {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.js-hero .masthead .brand.is-revealed {
  opacity: 1;
  visibility: visible;
}

.nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
}
.nav a {
  text-decoration: none;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.nav a:hover { border-color: var(--accent); }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: 0; }

.hero__title {
  font-size: clamp(3.5rem, 20vw, 18rem);
  line-height: 0.82;
}
.hero__title .accent { color: var(--accent); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  border-top: 32px solid #ececec;
}
.hero__meta .lede { margin: 0; }

.hero__image {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
}
.hero__image img { width: 100%; display: block; }

/* ---- About ------------------------------------------------------------- */
.about { background: var(--ink); color: var(--paper); }
.about .eyebrow { color: var(--paper); }
.about .rule { border-top-color: var(--paper); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 820px) {
  .about__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
.about__head .display {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
}
.about__body p {
  color: #d8d4c9;
  font-size: 1.05rem;
  margin-block: 0 1.1rem;
}
.about__body p strong { color: var(--paper); font-weight: 700; }

/* ---- Products ---------------------------------------------------------- */
.products__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.products__head .display { font-size: clamp(2.25rem, 7vw, 5rem); }
.products__count {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2.25rem, 7vw, 5rem);
  color: var(--accent);
  line-height: 0.9;
}

.product-list { border-top: 2px solid var(--ink); }

.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem 2rem;
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-bottom: 2px solid var(--ink);
  text-decoration: none;
  transition: background 0.15s ease, padding-inline 0.15s ease;
}
@media (min-width: 720px) {
  .product {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) auto;
    align-items: center;
  }
}
.product:hover {
  background: var(--ink);
  color: var(--paper);
  padding-inline: clamp(1rem, 3vw, 2rem);
}
.product:hover .product__status { border-color: var(--paper); }
.product:hover .product__arrow { color: var(--accent); transform: translateX(6px); }

.product__name {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 0.95;
  margin: 0;
}
.product__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: inherit;
  opacity: 0.85;
  max-width: 46ch;
}
.product__aside {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  justify-content: space-between;
}
.product__status {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.68rem;
  padding: 0.35rem 0.7rem;
  border: 2px solid currentColor;
  white-space: nowrap;
}
.product__status--live       { color: var(--accent); }
.product__status--early      { color: var(--accent-2); }
.product__status--dev        { color: var(--ink-soft); }
.product:hover .product__status--live  { color: #4de8fb; }
.product:hover .product__status--early { color: #9db0ff; }
.product:hover .product__status--dev   { color: #c9c5ba; }

.product__arrow {
  font-size: 1.75rem;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

/* ---- Footer ------------------------------------------------------------ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding-top: 7.5rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__brand {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  font-size: clamp(2rem, 8vw, 4rem);
  line-height: 0.85;
  margin: 0;
}
.footer__brand .dot { color: var(--accent); }
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
}
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--accent); }
.footer__legal {
  margin-top: 2.5rem;
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(236, 233, 225, 0.18);
  font-size: 0.8rem;
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* ---- Legal / long-form pages ------------------------------------------ */
.doc { padding-top: clamp(2.5rem, 6vw, 4rem); }
.doc__title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 0.9;
  font-size: clamp(2.5rem, 9vw, 6rem);
  margin: 0;
}
.doc__meta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.doc__body {
  max-width: 72ch;
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.doc__body h2 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1;
  margin: 2.75rem 0 0.5rem;
}
.doc__body h2 .num { color: var(--accent); margin-right: 0.6em; }
.doc__body h3 {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 1.75rem 0 0.35rem;
}
.doc__body p,
.doc__body li { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.doc__body p { margin: 0 0 1rem; }
.doc__body ul { padding-left: 1.2rem; margin: 0 0 1.25rem; }
.doc__body li { margin-bottom: 0.4rem; }
.doc__body a { color: #FB1AED; font-weight: 500; }
.doc__body strong { color: var(--ink); }

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 1rem; top: 0.5rem;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 1rem; z-index: 50;
}

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