/* ============================================================
   Root hub (portal) — scoped under body.hub. Loaded only by /.
   Image-forward, logo-prominent service directory.
   ============================================================ */

.hub main { display: block; }

/* ---------- Hero ---------- */
.hub-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1000px 460px at 8% -25%, rgba(15, 118, 110, 0.20), transparent 60%),
    radial-gradient(820px 460px at 96% -30%, rgba(161, 93, 49, 0.14), transparent 55%),
    radial-gradient(600px 380px at 60% 120%, rgba(63, 109, 140, 0.12), transparent 60%),
    linear-gradient(180deg, var(--soft), var(--bg) 72%);
}
.hub-hero-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 104px 0 84px;
}
.hub-eyebrow {
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.hub-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--copper));
}
.hub-hero h1 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.hub-hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), var(--copper));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hub-hero .sub {
  margin: 28px 0 0;
  max-width: 58ch;
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.85;
  color: var(--muted);
}
.hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 0;
}
.hub-chip {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-strong);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.22);
  padding: 8px 15px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.hub-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 38px 0 0;
}
/* logo marquee in hero */
.hub-hero-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 46px 0 0;
  flex-wrap: wrap;
}
.hub-hero-logos .lbl {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hub-hero-logos img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 16px rgba(17, 21, 23, 0.10);
  object-fit: cover;
}

/* ---------- Section shell ---------- */
.hub-section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0;
}
.hub-band {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hub-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hub-head .k {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hub-head .k::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
}
.hub-head h2 {
  margin: 0;
  font-size: clamp(26px, 3.8vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}
.hub-head .note {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 44ch;
}

/* ---------- Service directory (image-forward) ---------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}
.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(17, 21, 23, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.svc:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 54px rgba(17, 21, 23, 0.16);
  border-color: rgba(15, 118, 110, 0.42);
}
.svc-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--soft), #e3ece9);
}
.svc-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.svc:hover .svc-cover img { transform: scale(1.06); }
.svc-cover .cat-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 79, 74, 0.92);
  backdrop-filter: blur(4px);
}
.cat-db .cat-tag { background: rgba(11, 79, 74, 0.92); }
.cat-knowhow .cat-tag { background: rgba(124, 69, 34, 0.92); }
.cat-tool .cat-tag { background: rgba(39, 74, 99, 0.92); }
.svc-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 22px 22px;
}
.svc-logo {
  width: 62px;
  height: 62px;
  margin-top: -32px;
  margin-bottom: 4px;
  border-radius: 16px;
  border: 3px solid var(--paper);
  background: #fff;
  box-shadow: 0 10px 24px rgba(17, 21, 23, 0.18);
  object-fit: cover;
  position: relative;
  z-index: 3;
}
.svc h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: -0.01em;
}
.svc p {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.svc-host {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--accent);
}
.svc-host .arrow { transition: transform 0.2s ease; }
.svc:hover .svc-host .arrow { transform: translateX(5px); }

/* ---------- Mini cards (guides / about) ---------- */
.hub-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.mini-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 22px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(17, 21, 23, 0.10);
  border-color: rgba(15, 118, 110, 0.32);
}
.mini-card h3 { margin: 0; font-size: 17px; font-weight: 800; }
.mini-card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.7; }

@media (max-width: 720px) {
  .hub-hero-inner { padding: 70px 0 56px; }
  .hub-section { padding: 60px 0; }
  .hub-grid { grid-template-columns: 1fr; }
}
