/* Hub pages — shared layout for about, contact, natural-stone, steadfast, links, drone intro surfaces
   Does not replace site-chrome (nav/footer SoT). Scoped via body.hub-page. */

@import url("https://fonts.googleapis.com/css2?family=Source+Serif+4:opsz,wght@8..60,500;8..60,650;8..60,700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --hub-bg: #05070a;
  --hub-ink: #f3eee8;
  --hub-muted: #b8a99a;
  --hub-line: rgba(214, 196, 163, 0.16);
  --hub-accent: #38bdf8;
  --hub-stone: #d6c4a3;
  --hub-panel: rgba(12, 16, 22, 0.72);
  --hub-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hub-sans: Outfit, "Segoe UI", system-ui, sans-serif;
  --hub-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.hub-page {
  min-height: 100vh;
  margin: 0;
  color: var(--hub-ink);
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(50, 28, 22, 0.55), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(56, 189, 248, 0.08), transparent 50%),
    linear-gradient(180deg, #0c1016 0%, var(--hub-bg) 45%, #000 100%);
  font-family: var(--hub-sans);
  font-size: 1.02rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.hub-page *,
body.hub-page *::before,
body.hub-page *::after {
  box-sizing: border-box;
}

body.hub-page a {
  color: inherit;
  text-decoration: none;
}

body.hub-page a:visited {
  color: inherit;
}

body.hub-page .shell {
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
}

body.hub-page .topbar {
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hub-line);
}

body.hub-page .menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--hub-ink);
  cursor: pointer;
  padding: 6px;
}

body.hub-page .menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

body.hub-page .nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 640px) {
  body.hub-page .menu-toggle {
    display: block;
  }

  body.hub-page .topbar {
    flex-wrap: wrap;
  }

  body.hub-page #site-nav.nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px 0 4px;
  }

  body.hub-page #site-nav.nav.open {
    display: flex;
  }
}

/* Motion */
@keyframes hub-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hub-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.hub-page .hub-hero,
  body.hub-page .hub-section,
  body.hub-page .hub-photo {
    animation: none !important;
  }
}

/* Full-bleed photo plane (natural-stone / steadfast) */
.hub-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.38;
  pointer-events: none;
  overflow: hidden;
  animation: hub-fade 1.1s var(--hub-ease) both;
}

.hub-photo picture,
.hub-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.hub-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 7, 10, 0.28) 0%,
    rgba(5, 7, 10, 0.55) 45%,
    rgba(5, 7, 10, 0.96) 100%
  );
}

/* Hero — one composition */
.hub-hero {
  padding: clamp(36px, 8vw, 72px) 0 clamp(28px, 5vw, 40px);
  text-align: left;
  animation: hub-rise 0.7s var(--hub-ease) both;
}

.hub-hero--centre {
  text-align: center;
}

.hub-brand {
  display: block;
  margin: 0 0 18px;
  font-family: var(--hub-display);
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--hub-ink);
}

.hub-hero .hub-avatar {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: cover;
  object-position: center 28%;
  margin: 0 0 20px;
  border-radius: 50%;
  border: 2px solid rgba(214, 196, 163, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.hub-hero--centre .hub-avatar {
  margin-inline: auto;
}

.hub-hero h1 {
  margin: 0 0 12px;
  font-family: var(--hub-display);
  font-size: clamp(1.55rem, 4.2vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--hub-ink);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.55);
}

.hub-hero .hub-lead {
  margin: 0 0 22px;
  max-width: 36em;
  color: var(--hub-muted);
  font-size: 1.05rem;
  line-height: 1.55;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.5);
}

.hub-hero--centre .hub-lead {
  margin-inline: auto;
}

.hub-hero .hub-lead strong {
  color: var(--hub-ink);
  font-weight: 600;
}

.hub-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.hub-hero--centre .hub-cta {
  justify-content: center;
}

.hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-family: var(--hub-sans);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.2s var(--hub-ease), background 0.2s, border-color 0.2s;
}

.hub-btn:hover {
  transform: translateY(-1px);
}

.hub-btn--primary {
  background: var(--hub-accent);
  color: #001018;
}

.hub-btn--primary:visited {
  color: #001018;
}

.hub-btn--ghost {
  border: 1px solid var(--hub-line);
  color: var(--hub-ink);
  background: rgba(8, 12, 18, 0.45);
}

.hub-btn--ghost:visited {
  color: var(--hub-ink);
}

.hub-btn--ghost:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

/* Sections — one job each */
.hub-section {
  padding: clamp(28px, 5vw, 48px) 0;
  border-top: 1px solid var(--hub-line);
  animation: hub-rise 0.75s var(--hub-ease) both;
  animation-delay: 0.08s;
}

.hub-section h2 {
  margin: 0 0 10px;
  font-family: var(--hub-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--hub-ink);
}

.hub-section > .hub-sub {
  margin: 0 0 18px;
  max-width: 40em;
  color: var(--hub-muted);
  font-size: 0.98rem;
}

.hub-prose {
  max-width: 40em;
}

.hub-prose p {
  margin: 0 0 14px;
  color: var(--hub-muted);
}

.hub-prose p:last-child {
  margin-bottom: 0;
}

.hub-prose strong {
  color: var(--hub-ink);
  font-weight: 600;
}

.hub-prose a,
.hub-prose a:visited {
  color: var(--hub-accent);
  font-weight: 550;
}

.hub-prose a:hover {
  text-decoration: underline;
}

/* Link rows (contact) — interaction containers */
.hub-links {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
}

.hub-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--hub-line);
  border-radius: 12px;
  background: var(--hub-panel);
  color: var(--hub-ink);
  transition: border-color 0.2s;
}

.hub-link:hover {
  border-color: rgba(56, 189, 248, 0.4);
}

.hub-link .hub-link-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.hub-link .hub-link-icon img {
  width: 22px;
  height: 22px;
}

.hub-link .hub-link-label {
  display: block;
  color: var(--hub-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.hub-link .hub-link-detail {
  display: block;
  font-weight: 600;
  word-break: break-word;
}

.hub-note {
  margin: 16px 0 0;
  color: var(--hub-muted);
  font-size: 0.86rem;
  max-width: 42em;
}

.hub-note a,
.hub-note a:visited {
  color: var(--hub-accent);
}

/* Venture / topic lists — not cards-as-decoration; clear interactive blocks */
.hub-list {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

@media (min-width: 640px) {
  .hub-list--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.hub-item {
  padding: 16px 16px 14px;
  border-left: 3px solid var(--hub-accent);
  background: var(--hub-panel);
  border-radius: 0 12px 12px 0;
}

.hub-item--stone {
  border-left-color: var(--hub-stone);
}

.hub-item--teal {
  border-left-color: #2dd4bf;
}

.hub-item .hub-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--hub-accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hub-item--stone .hub-eyebrow {
  color: var(--hub-stone);
}

.hub-item h3 {
  margin: 0 0 6px;
  font-family: var(--hub-display);
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--hub-ink);
}

.hub-item p {
  margin: 0 0 12px;
  color: var(--hub-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hub-item p:last-child {
  margin-bottom: 0;
}

.hub-item-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hub-item-links a {
  display: inline-block;
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 650;
}

.hub-item-links a.hub-mini-primary {
  background: var(--hub-accent);
  color: #001018;
}

.hub-item-links a.hub-mini-primary:visited {
  color: #001018;
}

.hub-item-links a.hub-mini-ghost {
  border: 1px solid var(--hub-line);
  color: var(--hub-ink);
}

.hub-item-links a.hub-mini-ghost:visited {
  color: var(--hub-ink);
}

/* Instagram grid (about) */
.hub-ig {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.hub-ig a {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--hub-line);
}

.hub-ig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--hub-ease);
}

.hub-ig a:hover img,
.hub-ig a:focus-visible img {
  transform: scale(1.04);
}

.hub-ig a:focus-visible {
  outline: 2px solid var(--hub-accent);
  outline-offset: 2px;
}

@media (max-width: 520px) {
  .hub-ig {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.hub-page .site-footer {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--hub-line);
  color: var(--hub-muted);
}

body.hub-page .site-footer .footer-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}

body.hub-page .site-footer .footer-mark svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
  max-width: 18px;
  max-height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.hub-page .site-footer a:hover {
  color: var(--hub-ink);
}
