/* ============================================================
   home.css — homepage only. Loaded after base.css.
   ============================================================ */

/* ---- Masthead -------------------------------------------- */

.masthead {
  margin-bottom: var(--s7);
}

.masthead-top {
  display: flex;
  align-items: center;
  gap: var(--s5);
  flex-wrap: wrap;
}

.masthead-logo { width: 104px; }

.masthead h1 {
  letter-spacing: -0.05em;
  line-height: 0.85;
}

.masthead .rule { margin: var(--s5) 0; }

/* The discipline strip. Reads like a spec line, and tells people what
   kind of engineer wrote this site before they read a sentence. */
.disciplines {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  font-family: var(--mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  margin-bottom: var(--s5);
}

.disciplines li { list-style: none; }
.disciplines li + li::before {
  content: "/";
  margin-right: var(--s4);
  color: var(--line-soft);
}

.masthead .bio {
  color: var(--ink-soft);
  font-size: var(--text-lg);
  max-width: 50ch;
  margin-bottom: var(--s5);
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.social-row a {
  text-decoration: none;
  border-bottom: var(--border) solid transparent;
  padding-bottom: 2px;
}
.social-row a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- The two gateways ------------------------------------ */

.gateways {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--s5);
}

.gateway {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  min-height: 280px;
  padding: var(--s6);
  background: var(--bg-raised);
  border: var(--border-thick) solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gateway:hover,
.gateway:focus-visible {
  transform: translate(-6px, -6px);
  box-shadow: 6px 6px 0 var(--shadow);
}

/* Big faint drawing-sheet number in the corner. */
.gateway-num {
  position: absolute;
  top: var(--s3);
  right: var(--s4);
  font-family: var(--mono);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--line-soft);
  pointer-events: none;
  transition: color 0.15s ease;
}

.gateway:hover .gateway-num { color: var(--accent); }

.gateway h2 {
  font-size: var(--text-2xl);
  line-height: 0.95;
  padding-right: 3.5rem;  /* clear of the number */
}

.gateway p {
  color: var(--ink-soft);
  margin-bottom: auto;
  max-width: 34ch;
}

/* Arrow row pinned to the bottom of each panel */
.gateway-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s4);
  border-top: var(--border) solid var(--line-soft);
  font-family: var(--mono);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gateway:hover .gateway-go { color: var(--accent); }

.gateway-go .arrow {
  font-size: var(--text-lg);
  transition: transform 0.15s ease;
}
.gateway:hover .gateway-go .arrow { transform: translateX(5px); }

/* Products isn't open yet — dashed so it reads as unfinished on sight. */
.gateway--soon {
  background: transparent;
  border-style: dashed;
  border-color: var(--line-soft);
}
.gateway--soon:hover { border-color: var(--line); }

@media (max-width: 520px) {
  .masthead-logo { width: 76px; }
  .gateway { min-height: 0; padding: var(--s5); }
  .gateway-num { font-size: 3rem; }
}
