/* Sub-page shell — industry.html, community.html, resources.html
 *
 * These pages inherit the brand package and styles.css, and add only what a
 * secondary page needs: a slim header that gets out of the way, a stated
 * hero band, and a content column measured for reading rather than for
 * spectacle. The homepage is the showpiece; these are where somebody who is
 * already interested goes to find out more, so the job is legibility.
 *
 * CORNER CONCENTRICITY
 * Every nested radius on this page derives from --pg-r and the inset that
 * separates the two boxes: inner = outer - inset. Curves that are not
 * concentric pinch at the corner, and the eye reads that as cheap before the
 * mind can name it. Deriving both from one token means they cannot drift.
 */

:root {
  --pg-r: 16px;                                        /* outer card radius   */
  --pg-p: 20px;                                        /* card inset          */
  --pg-r-inner: max(2px, calc(var(--pg-r) - var(--pg-p)));
  --pg-max: 720px;                                     /* reading measure     */
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.pg-head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 14px 20px;
  /* Opaque rather than blurred: the brief forbids backdrop-filter on large
     surfaces, and a full-width sticky bar is one. */
  background: var(--bg-base);
  border-bottom: 1px solid var(--border);
}
.pg-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pg-brand img { width: 22px; height: 22px; }
.pg-brand span {
  font-family: var(--font-heading);
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-primary);
}
.pg-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-accent, var(--accent)); text-decoration: none;
  padding: 10px 4px;              /* 44px touch target without a visible box */
}
.pg-back:hover { color: var(--accent-bright); }
.pg-back svg { width: 15px; height: 15px; }

/* ── Hero band ──────────────────────────────────────────────────────────── */
.pg-hero { padding: var(--space-9) 20px var(--space-8); }
.pg-hero-in { max-width: var(--pg-max); margin: 0 auto; }
.pg-eyebrow {
  display: block;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-4);
}
.pg-title {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: clamp(2.6rem, 11vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--text-heading);
  margin: 0 0 var(--space-4);
}
.pg-title em { font-style: normal; color: var(--accent); }
.pg-lede {
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.75;
  color: var(--text-primary);
  max-width: 58ch;
  margin: 0;
}
.pg-rule {
  width: 56px; height: 1px; margin: var(--space-6) 0 0;
  background: linear-gradient(90deg, var(--accent), transparent);
}

/* ── Content ────────────────────────────────────────────────────────────── */
.pg-body { padding: 0 20px var(--space-9); }
.pg-in { max-width: var(--pg-max); margin: 0 auto; }
.pg-section { margin-top: var(--space-9); }
.pg-h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.28rem;
  color: var(--text-heading);
  margin: 0 0 var(--space-4);
}
.pg-p { color: var(--text-muted); line-height: 1.8; margin: 0 0 var(--space-4); }
.pg-p:last-child { margin-bottom: 0; }
.pg-p strong { color: var(--text-primary); font-weight: 400; }

/* Cards. The inner plate is inset by exactly --pg-p, so its radius is
   --pg-r-inner. That is the whole concentricity rule, applied. */
.pg-card {
  border: 1px solid var(--border);
  border-radius: var(--pg-r);
  padding: var(--pg-p);
  background: linear-gradient(180deg, rgba(28,27,33,.55), rgba(18,18,22,.55));
}
.pg-card + .pg-card { margin-top: 12px; }
.pg-card-plate {
  border-radius: var(--pg-r-inner);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  padding: 14px;
}
.pg-card h3 {
  font-family: var(--font-heading);
  font-weight: 400; font-size: 1rem;
  color: var(--text-heading); margin: 0 0 8px;
}
.pg-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.75; margin: 0; }

.pg-grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .pg-grid.two { grid-template-columns: 1fr 1fr; } }

/* A list that reads as substance rather than as filler. */
.pg-list { list-style: none; padding: 0; margin: 0; }
.pg-list li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.7;
}
.pg-list li:last-child { border-bottom: 0; }
.pg-list li::before {
  content: '';
  position: absolute; left: 4px; top: 21px;
  width: 8px; height: 8px;
  /* the mark, reduced to its silhouette */
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
  background: var(--accent);
}

/* Anything the visitor can act on. */
.pg-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: var(--space-6);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: #17140e;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.pg-cta:hover { background: var(--accent-bright); transform: translateY(-2px); }
.pg-cta.ghost {
  background: transparent; color: var(--accent);
  border: 1px solid var(--border-hover);
}
.pg-cta.ghost:hover { background: rgba(255,255,255,.03); color: var(--accent-bright); }

/* A coloured left stripe is tell #11 in ai-generated-site-tells.md, so this
   states its purpose in words instead of flagging it with a bar of colour. */
.pg-note {
  margin-top: var(--space-8);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: .82rem;
  line-height: 1.75;
  max-width: 54ch;
}
.pg-note::before {
  content: 'On this page';
  display: block;
  margin-bottom: 8px;
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── Prev / next between sibling pages ──────────────────────────────────── */
.pg-nav {
  display: grid; gap: 12px; margin-top: var(--space-9);
  padding-top: var(--space-6); border-top: 1px solid var(--border);
}
@media (min-width: 720px) { .pg-nav { grid-template-columns: 1fr 1fr; } }
.pg-nav a {
  display: block; text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--pg-r);
  padding: var(--pg-p);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.pg-nav a:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.pg-nav small {
  display: block; font-size: .68rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.pg-nav strong { font-weight: 400; color: var(--text-heading); }

.pg-foot {
  padding: var(--space-7) 20px var(--space-8);
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-faint);
  font-size: .78rem;
}
.pg-foot a { color: var(--accent); text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  .pg-cta, .pg-nav a { transition: none; }
  .pg-cta:hover, .pg-nav a:hover { transform: none; }
}


/* Press feedback. The brief requires transform: scale(0.97) on :active for
   anything pressable, and 100-160ms for press response. */
.pg-cta:active, .pg-nav a:active, .pg-back:active, .pg-brand:active {
  transform: scale(0.97);
  transition-duration: 120ms;
}
