/* ==========================================================================
   Networking - people first: speakers and guests as nodes in a live network
   Signature: an SVG/CSS network graph in the hero whose edges draw themselves
   on load; nodes pulse gently and hovering a person lights up their links
   (script.js); numbered, people-focused sections below.
   Palette: --inv-primary (coral / turquoise), --inv-accent, --inv-bg, --inv-text
   ========================================================================== */

.networking {
    --nw-panel: color-mix(in srgb, var(--inv-text) 5%, var(--inv-bg));
    --nw-line: color-mix(in srgb, var(--inv-text) 14%, transparent);
    --nw-muted: color-mix(in srgb, var(--inv-text) 62%, var(--inv-bg));
    --nw-edge: color-mix(in srgb, var(--inv-primary) 45%, transparent);
    --kit-radius: 14px;
    --kit-field-bg: var(--nw-panel);
    --kit-field-border: var(--nw-line);
    font-family: var(--inv-font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--inv-text);
    background: var(--inv-bg);
    overflow-x: clip;
    counter-reset: section;
}
.networking h1, .networking h2, .networking h3 { font-family: var(--inv-font-heading); font-weight: 700; line-height: 1.06; letter-spacing: -.01em; }
/* zero specificity, so the template's own heading classes can set their spacing */
:where(.networking) :is(h1, h2, h3) { margin: 0; }
.nw-kicker { margin: 0 0 12px; font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--inv-primary); }
.nw-key { margin: 0 0 6px; color: var(--inv-primary); font-weight: 600; }
.nw-muted, .nw-comment { color: var(--nw-muted); margin: 4px 0 0; }

/* ---------- Navigation ---------- */
.nw-nav { position: absolute; top: 0; left: 0; right: 0; z-index: 6; padding: 16px clamp(16px, 4vw, 44px); display: flex; justify-content: flex-end; }
.nw-nav .kit-nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 20px; }
.nw-nav a { text-decoration: none; font-size: .9rem; font-weight: 500; color: var(--nw-muted); padding: 6px 0; }
.nw-nav a:hover, .nw-nav a.is-current { color: var(--inv-text); }
.nw-nav .kit-nav-brand { font-family: var(--inv-font-heading); font-size: 1.2rem; color: var(--inv-text); margin-right: auto; }
.nw-nav.is-stuck { align-items: center; padding: 8px clamp(16px, 4vw, 44px); background: color-mix(in srgb, var(--inv-bg) 88%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--nw-line); }
.networking .kit-to-top { background: var(--inv-primary); color: var(--inv-bg); }
@media (max-width: 899px) {
    .nw-nav { padding: 10px 12px; }
    .nw-nav .kit-nav-toggle { color: var(--inv-text); font-size: 1.5rem; margin-left: auto; }
    .nw-nav .kit-nav-links { display: none; }
    .nw-nav.is-open .kit-nav-links { display: flex; flex-direction: column; gap: 12px; position: absolute; top: 58px; left: 12px; right: 12px; padding: 20px; background: var(--nw-panel); border: 1px solid var(--nw-line); border-radius: 16px; }
}

/* ---------- Hero ---------- */
.nw-hero { min-height: 100svh; display: grid; align-items: center; padding: 100px clamp(20px, 5vw, 64px) 60px; overflow: clip;
    background: radial-gradient(ellipse 50% 60% at 72% 50%, color-mix(in srgb, var(--inv-primary) 12%, transparent), transparent 70%), var(--inv-bg); }
.nw-hero-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .nw-hero-grid { grid-template-columns: .95fr 1.05fr; } }
.nw-hero-logo { height: 34px; width: auto; margin-bottom: 18px; padding: 6px 12px; border-radius: 8px; background: #fff; }
.nw-announce { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--inv-primary); }
.nw-announce::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--inv-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--inv-primary) 25%, transparent); }
.nw-title { font-size: clamp(3rem, 8vw, 5.8rem); font-weight: 800; }
.nw-subtitle { max-width: 520px; margin: 20px 0 0; color: var(--nw-muted); font-size: 1.12rem; }
.nw-when { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 24px 0; }
.nw-when span { color: var(--nw-muted); }
.nw-button { display: inline-block; padding: 13px 26px; border-radius: 999px; background: var(--inv-primary); color: var(--inv-bg); font-weight: 700; text-decoration: none; }
.nw-button:hover { box-shadow: 0 10px 30px -10px var(--inv-primary); }
@media (max-width: 959px) { .nw-hero-text { text-align: center; } .nw-subtitle { margin-inline: auto; } .nw-when { justify-content: center; } }

/* The graph */
.nw-graph { position: relative; width: min(560px, 92vw); aspect-ratio: 1; margin: 0 auto; }
.nw-edges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nw-edge { stroke: var(--nw-edge); stroke-width: .35; vector-effect: non-scaling-stroke; stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; animation: nw-draw .9s ease forwards; animation-delay: calc(var(--k) * 70ms + .3s); transition: stroke .3s, opacity .3s; }
.nw-edge[data-who="g"] { stroke-dasharray: .03 .03; stroke-dashoffset: 0; animation: nw-fade .6s ease both; animation-delay: calc(var(--k) * 40ms + 1s); opacity: .7; }
@keyframes nw-draw { to { stroke-dashoffset: 0; } }
@keyframes nw-fade { from { opacity: 0; } }
.nw-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: color-mix(in srgb, var(--inv-text) 35%, var(--inv-bg)); animation: nw-fade .5s ease both, nw-pulse 3s ease-in-out infinite; animation-delay: calc(var(--k) * 60ms + 1s), calc(var(--k) * -.4s); }
@keyframes nw-pulse { 50% { scale: 1.35; } }
.nw-node { position: absolute; width: clamp(62px, 12vw, 84px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; padding: 3px; background: var(--inv-primary); box-shadow: 0 0 0 5px var(--inv-bg), 0 14px 30px -12px rgba(0, 0, 0, .5); cursor: default; animation: nw-pop .6s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--k) * 120ms + .5s); transition: scale .3s; }
@keyframes nw-pop { from { scale: 0; } }
.nw-node img { font-size: 0; color: transparent; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.nw-node b { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--nw-panel); font-family: var(--inv-font-heading); font-size: 1.6rem; }
.nw-node em { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; white-space: nowrap; font-style: normal; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--nw-panel); border: 1px solid var(--nw-line); }
.nw-node--hub { width: clamp(120px, 26vw, 170px); padding: 5px; background: linear-gradient(135deg, var(--inv-primary), var(--inv-accent)); animation-delay: .1s; }
.nw-graph.is-focus .nw-edge:not(.is-lit), .nw-graph.is-focus .nw-dot { opacity: .15; }
.nw-graph .nw-edge.is-lit { stroke: var(--inv-primary); stroke-width: 2.4; }
.nw-node.is-lit { scale: 1.12; }

/* ---------- Sections ---------- */
.nw-section { max-width: 1060px; margin: 0 auto; padding: clamp(70px, 10vw, 110px) 22px; }
.nw-title-block { display: flex; align-items: center; gap: 16px; margin-bottom: 34px; }
.nw-title-block h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.nw-title-mark { position: relative; flex: none; width: 44px; height: 44px; }
.nw-title-mark i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--inv-primary); }
.nw-title-mark i:nth-child(1) { left: 0; top: 0; }
.nw-title-mark i:nth-child(2) { right: 0; top: 10px; background: var(--inv-accent); }
.nw-title-mark i:nth-child(3) { left: 12px; bottom: 0; }
.nw-title-mark::before { content: ""; position: absolute; inset: 6px 6px 6px 6px; border: 2px solid var(--nw-edge); border-radius: 4px; transform: skew(-12deg); }
.nw-prose { max-width: 720px; font-size: 1.14rem; }
.nw-prose p { margin: 0 0 1em; }
.nw-card { padding: 24px 26px; border-radius: 18px; background: var(--nw-panel); border: 1px solid var(--nw-line); }
.nw-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.nw-card p { margin: 0 0 .5em; }
.nw-organizer { display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) { .nw-organizer { grid-template-columns: 220px 1fr; } }
.nw-logo { width: 100%; max-width: 220px; padding: 14px; border-radius: 12px; background: #fff; }

/* Agenda */
.nw-log { list-style: none; margin: 0; padding: 0; }
.nw-log-line { display: grid; grid-template-columns: 90px 1fr; gap: 6px 22px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--nw-line); }
.nw-log-line .nw-log-track { display: none; }
.nw-log-time { font-family: var(--inv-font-heading); font-size: 1.3rem; color: var(--inv-primary); }
.nw-log-body h3 { font-size: 1.2rem; font-weight: 600; }
.nw-log-who { margin: 4px 0 0; color: var(--inv-primary); font-weight: 600; }
@media (max-width: 560px) { .nw-log-line { grid-template-columns: 1fr; } }

/* People */
.nw-speakers { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.nw-speaker { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 20px; }
.nw-avatar { width: 110px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; padding: 3px; background: linear-gradient(135deg, var(--inv-primary), var(--inv-accent)); display: grid; place-items: center; font-family: var(--inv-font-heading); font-size: 2.4rem; }
.nw-avatar img { font-size: 0; color: transparent; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nw-speaker h3 { font-size: 1.2rem; }
.nw-speaker-role { margin: 0; color: var(--nw-muted); font-size: .95rem; }
.nw-speaker-role .nw-key { display: inline; }
.nw-speaker-bio { color: var(--nw-muted); font-size: .92rem; margin: 0; }

/* Venue */
.nw-venues { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.nw-venue-time { font-family: var(--inv-font-heading); font-size: 2.6rem; color: var(--inv-primary); margin: 0 0 6px !important; }
.nw-venue-place { font-weight: 700; margin-top: 10px !important; }
.networking .kit-event-actions { justify-content: flex-start; margin-top: 16px; }
.networking .kit-button { border-radius: 999px; border: 1px solid var(--nw-line); color: var(--inv-text); background: transparent; font-weight: 600; }
.networking .kit-button:hover { border-color: var(--inv-primary); color: var(--inv-primary); }

/* Countdown */
.nw-countdown { text-align: center; }
.nw-countdown .kit-countdown { gap: clamp(8px, 2vw, 16px); margin-top: 12px; }
.nw-countdown .kit-countdown-unit { flex: 1; max-width: 180px; min-width: 0; padding: 22px 8px; border-radius: 20px; background: var(--nw-panel); border: 1px solid var(--nw-line); }
.nw-countdown .kit-countdown-value { font-size: clamp(2rem, 7vw, 3.4rem); color: var(--inv-primary); }
.nw-countdown .kit-countdown-label { color: var(--nw-muted); }

/* Gallery */
.nw-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .nw-gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.nw-gallery-grid a { border-radius: 18px; }

/* RSVP */
.nw-rsvp-card { max-width: 700px; margin: 0 auto; padding: clamp(28px, 5vw, 52px); border-radius: 26px; background: var(--nw-panel); border: 1px solid var(--nw-line); }
.networking .inv-rsvp__field input:not([type=checkbox]):not([type=radio]), .networking .inv-rsvp__field select, .networking .inv-rsvp__field textarea { color: var(--inv-text); }
.networking .inv-rsvp__submit { border-radius: 999px; font-weight: 700; color: var(--inv-bg); }

/* Info & contact */
.nw-info-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.nw-faq { margin-top: 44px; max-width: 760px; }
.nw-faq details { border-top: 1px solid var(--nw-line); padding: 16px 0; }
.nw-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.nw-faq summary::-webkit-details-marker { display: none; }
.nw-faq summary::after { content: "+"; float: right; color: var(--inv-primary); }
.nw-faq details[open] summary::after { content: "-"; }
.nw-faq details p { margin: 8px 0 0; color: var(--nw-muted); }
.nw-contacts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.nw-contact-name { font-family: var(--inv-font-heading); font-size: 1.3rem; margin: 0 0 6px; }
.nw-contacts a { color: var(--inv-primary); font-weight: 600; text-decoration: none; }

/* Footer */
.nw-footer { padding: 70px 22px; text-align: center; border-top: 1px solid var(--nw-line); }
.nw-footer-title { font-family: var(--inv-font-heading); font-weight: 800; font-size: clamp(2rem, 6vw, 3.4rem); margin: 0 0 10px; color: var(--inv-primary); }
.nw-footer p { margin: 0 0 6px; }

@media (prefers-reduced-motion: reduce) { .nw-edge, .nw-dot, .nw-node { animation: none; stroke-dashoffset: 0; } }
