/* Tech World Networking — constellation node-map */
:root {
  --ink:         #061828;
  --navy:        #083050;
  --navy-2:      #0c3a5c;
  --blue:        #1a78b8;
  --cyan:        #2490cc;
  --sky:         #5ec4e8;
  --ice:         #e8f6fc;
  --paper:       #f5fafd;
  --sheet:       #ffffff;
  --line:        #cfe4f0;
  --text:        #0a2840;
  --muted:       #3d5a70;
  --on-dark:     #f4fbfe;
  --on-dark-dim: #c5dce8;
  --line-dark:   rgba(244, 251, 254, 0.16);
  --radius:      14px;
  --maxw:        1120px;
  --ease:        cubic-bezier(.22, .61, .36, 1);
  --serif:       "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans:        "Outfit", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand-name, .cat-id, .mag, blockquote {
  font-family: var(--serif);
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: break-word;
}
p, li { overflow-wrap: break-word; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cyan); color: #fff; padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 0; }

.kicker, .eyebrow, .legend-kicker, .key-label {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 650;
  color: var(--cyan);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 24px; border-radius: 999px; font-weight: 650; font-size: 15px;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary {
  background: var(--cyan); color: #fff;
  box-shadow: 0 10px 26px -12px rgba(36, 144, 204, .7);
}
.btn-ghost {
  background: transparent; color: var(--on-dark); border-color: var(--line-dark);
}

/* Header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(6, 24, 40, 0.9);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line-dark);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand img {
  width: 40px; height: 40px; border-radius: 10px;
  background: #fff; flex: 0 0 auto;
}
.brand-name {
  font-size: 18px; font-weight: 650; color: var(--on-dark);
  letter-spacing: -0.02em;
}
.brand-name em { font-style: italic; font-weight: 500; color: var(--sky); }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a {
  font-size: 14.5px; font-weight: 550; color: var(--on-dark-dim);
  transition: color .2s var(--ease);
}
.nav .nav-cta {
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  padding: 8px 16px; border-radius: 999px;
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 10px;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 22px; height: 2px; background: var(--ice); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero: constellation node-map */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 120px 0 72px;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  display: flex; align-items: center;
}
.constellation { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.star-map { width: 100%; height: 100%; display: block; }

.link {
  stroke-width: 1.15;
  stroke-opacity: 0.28;
}
.link.pulse {
  stroke-width: 1.6;
  stroke-opacity: 0.55;
  stroke-dasharray: 10 18;
  animation: dash-pulse 5.5s linear infinite;
}
.link-a { animation: line-fade 4.2s ease-in-out infinite; }
.link-b { animation: line-fade 5.1s ease-in-out infinite 0.6s; }
.link-c { animation: line-fade 4.8s ease-in-out infinite 1.1s; }
.link-d { animation: line-fade 5.6s ease-in-out infinite 0.3s; }
.link-e { animation: line-fade 4.4s ease-in-out infinite 1.4s; }

@keyframes dash-pulse {
  to { stroke-dashoffset: -280; }
}
@keyframes line-fade {
  0%, 100% { stroke-opacity: 0.18; }
  50% { stroke-opacity: 0.55; }
}

.nodes .core {
  fill: var(--ice);
  animation: node-pulse 3.2s ease-in-out infinite;
}
.nodes .core-lg { animation-duration: 2.6s; }
.nodes .core-sm { animation-duration: 3.8s; animation-delay: .4s; }
.nodes .glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: glow-breathe 3.6s ease-in-out infinite;
}

@keyframes node-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.18); }
}

.halo {
  fill: none;
  stroke: var(--sky);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: halo-ring 4.8s ease-out infinite;
}
.halo.h2 { animation-delay: 1.6s; stroke-opacity: 0.45; }
@keyframes halo-ring {
  0% { transform: scale(0.35); opacity: .55; }
  100% { transform: scale(2.6); opacity: 0; }
}

.packet { filter: drop-shadow(0 0 6px #5ec4e8); }

.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.7fr;
  gap: 48px;
  align-items: center;
}
.hero-copy { max-width: 620px; }
.hero .eyebrow { color: var(--sky); }
.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.55rem);
  font-weight: 600;
  color: var(--on-dark);
}
.hero-sub {
  margin-top: 22px;
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  color: var(--on-dark-dim);
  max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.star-legend {
  justify-self: end;
  width: min(280px, 100%);
  background: rgba(8, 48, 80, 0.55);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 22px 22px 16px;
  backdrop-filter: blur(10px);
}
.legend-kicker { color: var(--sky); }
.star-legend li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-dark);
}
.star-legend li span { display: flex; flex-direction: column; gap: 2px; }
.star-legend strong {
  font-family: var(--serif);
  font-size: 1.05rem; font-weight: 600; color: var(--on-dark);
}
.star-legend em {
  font-style: normal; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-dark-dim);
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; flex: none;
  box-shadow: 0 0 0 4px rgba(94, 196, 232, 0.18);
  animation: node-pulse 2.8s ease-in-out infinite;
}
.d1 { background: var(--sky); }
.d2 { background: var(--ice); animation-delay: .4s; }
.d3 { background: var(--cyan); animation-delay: .8s; }
.d4 { background: #8fd4f0; animation-delay: 1.2s; }

/* Sky key */
.key-band {
  background: var(--navy);
  color: var(--on-dark);
  padding: 18px 0;
  border-block: 1px solid var(--line-dark);
}
.key-row {
  display: flex; align-items: center; gap: 22px;
}
.key-label {
  margin: 0;
  color: var(--sky);
  white-space: nowrap;
}
.key-nodes {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
  font-size: 14.5px; font-weight: 550; color: var(--on-dark);
}
.key-nodes li { display: inline-flex; align-items: center; gap: 8px; }
.key-nodes span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--sky);
  box-shadow: 0 0 0 3px rgba(94, 196, 232, 0.2);
}

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--sheet); border-block: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head h2, .faq-lead h2, .contact-copy h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600; color: var(--navy);
}
.lead { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }

/* Triangle node map */
.tri-map {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-bottom: 8px;
}
.tri-lines {
  position: absolute; inset: 8% 4% 4%;
  width: auto; height: auto;
  pointer-events: none; z-index: 0;
}
.tri-pulse {
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-opacity: 0.35;
  stroke-dasharray: 8 14;
  animation: dash-pulse 7s linear infinite;
}
.node-card {
  position: relative; z-index: 1;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: 0 18px 40px -28px rgba(8, 48, 80, .35);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.nc-c { grid-column: 1 / -1; max-width: 560px; justify-self: center; width: 100%; }
.mag {
  display: block;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--cyan); font-weight: 650; margin-bottom: 12px;
}
.node-card h3 { font-size: 1.45rem; color: var(--navy); margin-bottom: 10px; }
.node-card p { color: var(--muted); font-size: .98rem; }

/* Catalog */
.signals-layout { display: grid; gap: 8px; }
.signals-head { margin-bottom: 36px; }
.catalog { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.catalog-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cat-id {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.25rem; font-weight: 650;
  color: var(--navy);
  border: 1px solid var(--cyan);
  background: var(--sheet);
  box-shadow: 0 0 0 4px rgba(36, 144, 204, 0.08);
}
.catalog-row h3 { font-size: 1.28rem; color: var(--navy); margin-bottom: 8px; }
.catalog-row p { color: var(--muted); font-size: .98rem; }

/* Belief band */
.belief {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-dark);
  padding: 88px 0;
}
.belief-sky { position: absolute; inset: 0; pointer-events: none; }
.b-dot {
  position: absolute; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sky); box-shadow: 0 0 0 5px rgba(94, 196, 232, 0.16);
  animation: node-pulse 3s ease-in-out infinite;
}
.b-dot:nth-child(1) { top: 28%; left: 14%; }
.b-dot:nth-child(2) { top: 62%; left: 78%; animation-delay: .6s; }
.b-dot:nth-child(3) { top: 22%; left: 72%; animation-delay: 1.1s; }
.b-line {
  position: absolute; inset: 36% 16% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 196, 232, .45), transparent);
  animation: line-fade 4s ease-in-out infinite;
}
.pull { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; text-align: center; }
.belief .kicker { color: var(--sky); }
.pull blockquote {
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  font-weight: 550; line-height: 1.35;
  color: var(--on-dark);
  margin: 8px 0 22px;
}
.pull figcaption {
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 650; color: var(--on-dark-dim);
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.faq-lead p:last-child { margin-top: 12px; color: var(--muted); }
.faq-item {
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease);
}
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px;
  background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 650; font-size: 1.05rem;
  text-align: left; color: var(--navy);
}
.faq-ico {
  position: relative; width: 16px; height: 16px; flex: none;
}
.faq-ico::before, .faq-ico::after {
  content: ""; position: absolute; background: var(--cyan); border-radius: 2px;
}
.faq-ico::before { inset: 7px 0 auto; height: 2px; }
.faq-ico::after { inset: 0 7px; width: 2px; transition: transform .25s var(--ease); }
.faq-item.open .faq-ico::after { transform: scaleY(0); }
.faq-a {
  display: none;
  padding: 0 4px 18px;
  color: var(--muted);
}
.faq-item.open .faq-a { display: block; }

/* Contact */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-copy p { color: var(--muted); margin: 14px 0 22px; max-width: 46ch; }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: 1.2rem; font-weight: 600;
  color: var(--blue);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.contact-form {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid; gap: 16px;
  box-shadow: 0 18px 40px -28px rgba(8, 48, 80, .3);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 550; }
.field input, .field textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit; font-size: 15px;
  width: 100%; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(36, 144, 204, .15);
}
.contact-form .btn { justify-self: start; margin-top: 4px; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: var(--on-dark);
  padding: 48px 0 28px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 28px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--line-dark);
}
.footer-tag { color: var(--on-dark-dim); margin-top: 12px; font-size: .95rem; max-width: 42ch; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--on-dark-dim); font-size: 15px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--on-dark-dim); font-size: 14px; padding-top: 20px;
}

/* Reveal first, then hover */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .link.pulse, .link-a, .link-b, .link-c, .link-d, .link-e,
  .nodes .core, .nodes .glow, .halo, .packet, .dot, .tri-pulse, .b-dot, .b-line {
    animation: none !important;
  }
  .packet { display: none; }
}

@media (hover: hover) and (pointer: fine) {
  .nav a:hover { color: var(--on-dark); }
  .nav .nav-cta:hover {
    border-color: var(--sky);
    color: var(--sky);
    transform: translateY(-2px);
  }
  .btn-primary:hover {
    transform: translateY(-3px);
    background: var(--blue);
    box-shadow: 0 16px 32px -12px rgba(26, 120, 184, .7);
  }
  .btn-ghost:hover {
    transform: translateY(-3px);
    border-color: var(--sky);
    color: var(--sky);
  }
  .node-card.reveal.in:hover,
  .node-card:hover {
    transform: translateY(-6px);
    border-color: var(--cyan);
    box-shadow: 0 22px 40px -22px rgba(8, 48, 80, .4);
  }
  .catalog-row.reveal.in:hover,
  .catalog-row:hover {
    transform: translateX(6px);
    border-color: var(--cyan);
    background: var(--sheet);
  }
  .faq-q:hover { color: var(--cyan); }
  .faq-item:hover { background: rgba(36, 144, 204, 0.04); }
  .contact-email:hover {
    border-bottom-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
  }
  .contact-form.reveal.in:hover,
  .contact-form:hover {
    transform: translateY(-4px);
    border-color: var(--cyan);
    box-shadow: 0 22px 40px -22px rgba(8, 48, 80, .35);
  }
  .footer-nav a:hover { color: var(--on-dark); }
  .star-legend.reveal.in:hover,
  .star-legend:hover {
    transform: translateY(-4px);
    border-color: var(--sky);
  }
}

/* Tablet */
@media (max-width: 960px) {
  .hero { min-height: 0; padding: 118px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .star-legend { justify-self: stretch; width: 100%; }
  .star-legend ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .faq-wrap, .contact-inner { grid-template-columns: 1fr; gap: 32px; }
  .tri-map { grid-template-columns: 1fr; }
  .nc-c { max-width: none; }
  .tri-lines { display: none; }
}

/* Mobile */
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(6, 24, 40, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-dark);
    padding: 12px 24px 22px;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
    z-index: 90;
  }
  .nav.open { transform: translateY(0); }
  .nav a {
    padding: 14px 4px; font-size: 17px;
    border-bottom: 1px solid var(--line-dark);
    color: var(--on-dark);
  }
  .nav .nav-cta { text-align: center; margin-top: 12px; border-color: var(--sky); }

  .hero { padding: 100px 0 48px; }
  .hero-actions { gap: 10px; }
  .section { padding: 64px 0; }
  .belief { padding: 56px 0; }
  .catalog-row { grid-template-columns: 48px 1fr; padding: 18px 16px; gap: 14px; }
  .cat-id { width: 44px; height: 44px; font-size: 1.05rem; }
  .contact-form { padding: 22px 18px; }
  .footer-inner { flex-direction: column; }
  .key-row { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .header-inner { height: 64px; }
  .brand-name { font-size: 16px; }
  .hero { padding: 88px 0 40px; }
  .hero h1 { font-size: 1.9rem; }
  .hero-sub { font-size: 1rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .star-legend { padding: 18px 16px 10px; }
  .star-legend ul { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .node-card { padding: 22px 18px; }
  .faq-q { font-size: 1rem; padding: 16px 2px; }
  .nav { inset: 64px 0 auto 0; padding: 12px 18px 20px; }
  .key-nodes { gap: 10px 14px; font-size: 14px; }
}
