/* ==========================================================================
   365 Networking -- the one stylesheet of the 365 family sites (365networking.org, 365hosting.org,
   365business.org, 365books.org, 365payments.org, 365vault.org, 365proxy.org, 365phoenix.org).
   The house language of 365Entertainment (Z:\365\entertainment\public\includes\c\main.css), one job per colour:
     gold  = brand and value (the mark, hashes, the one button)
     ember = life and attention, at most once per view
     gray  = structure, charcoal = ground
   Georgia display + the system sans; no web fonts, no external resources, no url(), no data: URIs.
   ASCII only. CSP: style-src 'self' (no inline styles anywhere). Dark by design (the house has one ground).
   Built by Z:\365\_family\build.py into every site's public/assets/css/site.css.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #131416;
  --panel: #1b1d20;
  --panel-2: #202227;
  --shell: rgba(13, 14, 16, 0.86);
  --line: rgba(255, 255, 255, 0.065);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-gold: rgba(212, 175, 55, 0.2);
  --gold: #d4af37;
  --gold-hi: #e2c25a;
  --gold-soft: rgba(212, 175, 55, 0.08);
  --ember: #e0693a;
  --ink: #ece9e2;
  --ink-hi: #f7f4ec;
  --gray: #c9ccd1;
  --muted: #a3a7ad;
  --muted-2: #9ba0a8;
  --muted-3: #8e9299;
  --on-gold: #0f1012;
  --focus: #e2c25a;
  --display: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, Menlo, monospace;
  --ease: cubic-bezier(0.16, 0.84, 0.44, 1);
  --header-h: 68px;
  --gutter: clamp(16px, 4vw, 40px);
  --rail: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 15px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
@supports (overflow-x: clip) { body { overflow-x: clip; } }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink-hi); }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(212, 175, 55, 0.26); }
[hidden] { display: none !important; }
:target { scroll-margin-top: calc(var(--header-h) + 16px); }
@view-transition { navigation: auto; }

.skip-link { position: absolute; left: 16px; top: -120px; z-index: 100; padding: 10px 16px; border-radius: 2px; background: var(--gold); color: var(--on-gold); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; flex: none; width: 20px; height: 20px; vertical-align: middle; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.container { width: 100%; max-width: calc(var(--rail) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- the mark: "365" in gold foil, the name in ink, one word in the display serif ---------- */
.mark { display: inline-flex; align-items: baseline; font-family: var(--display); font-size: clamp(21px, 14px + 1vw, 27px); letter-spacing: -0.012em; line-height: 1; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mark b { font-weight: 500; font-variant-numeric: lining-nums; color: var(--gold); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .mark b, .foil {
    background: linear-gradient(135deg, #fbe6b6 0%, #d4af37 48%, #9d7c1e 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
.mark:hover { color: var(--ink-hi); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(13, 14, 16, 0.94); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.4), transparent); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.site-nav { display: none; align-items: center; gap: 4px; margin-left: 12px; }
.site-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 13.5px; font-weight: 500; color: var(--muted); text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.site-nav a:hover { color: var(--ink-hi); }
.site-nav a:hover::after { transform: scaleX(1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 880px) { .site-nav { display: flex; } }

/* ---------- buttons, eyebrows ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 14px 26px; border: 1px solid transparent; border-radius: 2px; font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease); }
.btn .icon { width: 16px; height: 16px; }
.btn--gold { background: var(--gold); color: var(--on-gold); }
.btn--gold:hover { background: var(--gold-hi); }
.btn--line { border-color: rgba(255, 255, 255, 0.16); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn--sm { padding: 10px 16px; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.7; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(44px, 8vw, 112px) clamp(36px, 6vw, 80px); }
@supports (overflow: clip) { .hero { overflow: clip; } }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(48% 60% at 78% 40%, rgba(212, 175, 55, 0.075), transparent 70%), radial-gradient(38% 46% at 6% 92%, rgba(224, 105, 58, 0.1), transparent 70%); }
.hero-inner { position: relative; display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .hero-inner { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 4.7vw, 76px); letter-spacing: -0.016em; line-height: 1; overflow-wrap: anywhere; }
.hero h1 .foil { display: block; }
.hero-lead { margin-top: 22px; max-width: 58ch; font-size: clamp(15px, 14px + 0.3vw, 17px); color: var(--muted-2); line-height: 1.7; }
.sign { margin-top: 18px; font-family: var(--display); font-style: italic; font-size: clamp(18px, 1.6vw, 23px); color: var(--gray); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { position: relative; margin: 0; }
.hero-art svg { display: block; width: 100%; height: auto; }
.hero-art figcaption { margin-top: 10px; text-align: center; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-3); }
.plate { margin: 0; padding: clamp(10px, 2vw, 18px); border: 1px solid var(--line-gold); border-radius: 3px; background: var(--panel); }
.plate img { display: block; width: 100%; height: auto; border-radius: 2px; }

/* ---------- sections ---------- */
.section { padding-block: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); }
.section--panel { background: var(--panel); }
.section-head { max-width: 760px; }
.section-head h2 { margin-top: 14px; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.008em; }
.section-lead { margin-top: 14px; max-width: 64ch; color: var(--muted-2); }
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }

/* numbered rows: 01, 02 ... in the display serif, gold at .8 */
.rows { list-style: none; counter-reset: row; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.rows > li { counter-increment: row; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.rows > li::before { content: counter(row, decimal-leading-zero); grid-row: span 2; font-family: var(--display); font-size: 26px; line-height: 1; color: var(--gold); opacity: 0.8; }
.rows h3 { font-size: 21px; }
.rows p { color: var(--muted-2); font-size: 14.5px; }
@media (min-width: 900px) { .rows--2 { grid-template-columns: 1fr 1fr; column-gap: 40px; } }

.cards { display: grid; gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.section--panel .card { background: var(--bg); }
.card .icon { width: 24px; height: 24px; color: var(--gold); }
.card h3 { margin-top: 12px; font-size: 19px; }
.card p { margin-top: 6px; font-size: 14px; color: var(--muted-2); }
.card a { color: var(--gold-hi); }

.spec { margin: 24px 0 0; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.spec-row { display: grid; grid-template-columns: minmax(120px, 0.34fr) 1fr; gap: 8px 16px; padding: 13px 18px; border-top: 1px solid var(--line); }
.spec-row:first-child { border-top: 0; }
.spec dt { font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.spec dd { margin: 0; font-size: 14.5px; color: var(--muted-2); }
@media (max-width: 480px) { .spec-row { grid-template-columns: 1fr; gap: 2px; } }

.note { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 18px; border-left: 2px solid var(--gold); background: var(--gold-soft); font-size: 14px; color: var(--gray); }
.note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.hash { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ---------- figures (inline SVG diagrams, gold on charcoal) ---------- */
.figure { margin: 0; padding: clamp(14px, 2.5vw, 24px); border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.figure svg { display: block; width: 100%; height: auto; }
.figure figcaption { margin-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-3); }
.fg-box { fill: var(--panel-2); stroke: var(--line-2); stroke-width: 1.2; }
.fg-box--gold { fill: rgba(212, 175, 55, 0.07); stroke: rgba(212, 175, 55, 0.45); stroke-width: 1.2; }
.fg-box--out { fill: none; stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 4 4; }
.fg-bound { fill: none; stroke: rgba(212, 175, 55, 0.5); stroke-width: 1.2; stroke-dasharray: 7 6; }
.fg-t { fill: var(--ink-hi); font-family: var(--sans); font-size: 14px; font-weight: 600; }
.fg-s { fill: var(--muted-3); font-family: var(--mono); font-size: 11px; }
.fg-k { fill: var(--gold); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.2em; }
.fg-l { fill: none; stroke: var(--muted-3); stroke-width: 1.4; }
.fg-l--gold { stroke: var(--gold); }
.fg-l--ember { stroke: var(--ember); }
.fg-l--dash { stroke-dasharray: 5 5; }
.fg-head { fill: var(--muted-3); }
.fg-head--gold { fill: var(--gold); }
.fg-head--ember { fill: var(--ember); }
.fg-node { fill: var(--bg); stroke: var(--gold); stroke-width: 2; }
.fg-node--core { fill: var(--gold); stroke: var(--bg); stroke-width: 2.5; }
.fg-dot { fill: var(--ember); }
.fg-shard { fill: rgba(212, 175, 55, 0.12); stroke: var(--gold); stroke-width: 1.2; }
@media (prefers-reduced-motion: no-preference) {
  .fg-pulse { animation: breathe 2.8s var(--ease) infinite; }
  .fg-flow { stroke-dasharray: 6 6; animation: flow 1.6s linear infinite; }
  .rise { animation: rise 0.9s var(--ease) both; }
}
@keyframes breathe { 50% { opacity: 0.4; } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- the emblem: the house rings around each site's ImageForge icon (the 365Entertainment phoenix
   emblem's language: bloom, dotted orbit with four cardinal nodes, a ring of 72 ticks with every sixth long,
   one ember spark travelling the ring). Pure SVG + CSS; the rings turn only when motion is welcome. ---------- */
.emblem { display: block; width: 100%; max-width: 460px; height: auto; margin-inline: auto; overflow: visible; }
.e-orbit-ring { fill: none; stroke: rgba(212, 175, 55, 0.62); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0.01 9.62; }
.e-node { fill: var(--bg); stroke: var(--gold); stroke-width: 1.8; }
.e-ticks { fill: none; stroke: rgba(212, 175, 55, 0.5); stroke-width: 9; stroke-dasharray: 1.5 12.463; }
.e-ticks--long { stroke: rgba(226, 194, 90, 0.85); stroke-width: 17; stroke-dasharray: 2 82.823; }
.e-ring { fill: none; stroke-width: 2.4; }
.e-disc { fill: var(--panel); stroke: rgba(212, 175, 55, 0.22); stroke-width: 1.2; }
.e-disc--ground { fill: var(--bg); }
.e-icon { color: var(--gold); fill: none; stroke: var(--gold); stroke-linecap: round; stroke-linejoin: round; }
.e-spark { fill: var(--ember); }
@media (prefers-reduced-motion: no-preference) {
  .e-orbit { transform-origin: 250px 250px; animation: e-turn 72s linear infinite; }
  .e-inner { transform-origin: 250px 250px; animation: e-turn 52s linear infinite reverse; }
  .e-sparkpath { transform-origin: 250px 250px; animation: e-turn 16s linear infinite; }
  .e-bloom { animation: e-bloom 7s var(--ease) infinite; }
}
@keyframes e-turn { to { transform: rotate(360deg); } }
@keyframes e-bloom { 50% { opacity: 0.55; } }
.hero-art { justify-self: center; width: 100%; max-width: 460px; }
@media (max-width: 899.98px) { .hero-art { order: -1; max-width: min(72vw, 320px); } .hero { padding-top: 20px; } }

/* ---------- status: every piece says what it is (live / built / written / design) ---------- */
.state {
  display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border: 1px dashed var(--line-2);
  border-radius: 999px; font-family: var(--sans); font-size: 9.5px; font-weight: 700; letter-spacing: 0.2em;
  line-height: 1.6; text-transform: uppercase; color: var(--muted-3); white-space: nowrap; vertical-align: middle;
}
.state--built { border-style: solid; border-color: rgba(212, 175, 55, 0.45); color: var(--gold); }
.state--live { border-style: solid; border-color: var(--gold); background: var(--gold); color: var(--on-gold); }
.state--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; max-width: 62ch; margin-top: 28px;
  padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.6; color: var(--muted-2); }
.card h3 .state, .rows h3 .state { margin-left: 8px; }
.card .state { margin-top: 10px; }
.section-head .state { margin-left: 10px; }
.cards--list .card { display: grid; grid-template-columns: 24px 1fr; gap: 4px 14px; align-items: start; }
.cards--list .card .icon { grid-row: span 3; }
.cards--list .card h3 { margin-top: 0; }
.fg-s { font-size: 12px; }
.fg-t { font-size: 15px; }
.fg-state { fill: var(--muted-3); font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; }
.fg-state--live { fill: var(--gold); }
.figure--tall svg { max-width: 460px; margin-inline: auto; }
.split > .figure { position: sticky; top: calc(var(--header-h) + 18px); }
@media (max-width: 959.98px) { .split > .figure { position: static; } }

/* ---------- phones: a header that fits, diagrams that use the whole width ---------- */
@media (max-width: 520px) {
  .header-actions .btn { padding: 8px 10px; letter-spacing: 0.12em; font-size: 10px; }
  .figure { margin-inline: calc(4px - var(--gutter)); padding: 10px 8px; border-left: 0; border-right: 0; border-radius: 0; }
  .figure figcaption { padding-inline: 8px; }
}

/* ---------- the family: every 365 site, one line ---------- */
.family { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.family-grid { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.family-grid a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; min-height: 64px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); text-decoration: none; transition: border-color 0.25s var(--ease); }
.family-grid a:hover { border-color: var(--line-gold); }
.family-grid a[aria-current] { border-color: rgba(212, 175, 55, 0.5); background: var(--gold-soft); }
.family-grid .icon { width: 24px; height: 24px; color: var(--gold); }
.family-grid b { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; color: var(--ink-hi); }
.family-grid small { display: block; font-size: 12px; color: var(--muted-3); }

/* ---------- footer ---------- */
.site-footer { position: relative; padding-block: 34px 26px; border-top: 1px solid var(--line); background: var(--bg); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.24), transparent); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.footer-inner p { font-size: 12.5px; color: var(--muted-3); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--ink-hi); }

/* ---------- 404 ---------- */
.notfound { display: grid; place-items: center; padding-block: clamp(64px, 12vw, 160px); text-align: center; }
.notfound h1 { margin-top: 16px; font-size: clamp(34px, 4vw, 56px); }
.notfound .hero-ctas { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .mark b, .foil { background: none; color: CanvasText; }
  .btn { border: 1px solid ButtonText; }
}
@media print {
  .site-header, .skip-link, .hero::before { display: none !important; }
  body { background: #ffffff; color: #000000; }
}
