/* Switchboard's site. One stylesheet for every page. Fonts are served from this
   site, so nothing is fetched from anywhere else. No scripts, no cookies. */

@font-face { font-family: Poppins; font-weight: 300; font-display: swap; src: url(fonts/poppins-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 500; font-display: swap; src: url(fonts/poppins-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Poppins; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format("woff2"); }
/* The wordmark only. Outfit is the closest open match to the logo files in brand/. */
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(fonts/outfit-latin-500-normal.woff2) format("woff2"); }

:root {
  --navy: #283349;
  --deep: #222b3e;      /* a quieter band, for alternating sections */
  --line: #4a6080;      /* slate: outlines, the cable */
  --soft: #7a9cc5;      /* secondary text */
  --orange: #e8853a;    /* accent, used sparingly */
  --text: #ffffff;
  --body: #d5deea;      /* body copy on navy: softer than white, still well above AA */
  --max: 68rem;
  --gutter: clamp(1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--body);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:hover { color: var(--orange); }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: var(--gutter); top: 0.75rem; z-index: 10; padding: 0.5rem 1rem; background: var(--orange); color: var(--navy); }

h1, h2, h3 { color: var(--text); font-weight: 600; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.25rem); letter-spacing: -0.005em; }
h3 { font-size: 1.15rem; }
p { margin: 0; }
p + p { margin-top: 1rem; }
strong { color: var(--text); font-weight: 500; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* --- header ----------------------------------------------------------------- */
.top { position: relative; z-index: 5; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.brand { text-decoration: none; color: var(--text); font-family: Outfit, Poppins, sans-serif; font-weight: 500; font-size: 1.6rem; line-height: 1; white-space: nowrap; }
.brand:hover { color: var(--text); }
/* The logo: a dotless i with two orange dots, like the two ends of a patch cable. */
.mark-i { position: relative; display: inline-block; }
.mark-i::before, .mark-i::after {
  content: ""; position: absolute; left: 50%; width: 0.175em; height: 0.175em; margin-left: -0.0875em;
  border-radius: 50%; background: var(--orange);
}
.mark-i::before { top: 0.08em; }
.mark-i::after { top: 1.005em; }

nav ul { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2rem); margin: 0; padding: 0; list-style: none; }
nav a { text-decoration: none; color: var(--body); font-size: 0.95rem; font-weight: 400; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.button {
  display: inline-block; padding: 0.7rem 1.4rem; border-radius: 99px;
  background: var(--orange); color: var(--navy); font-weight: 600; font-size: 0.95rem; text-decoration: none; line-height: 1.2;
}
.button:hover { background: #f0995a; color: var(--navy); }
.button.quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--soft); }
.button.quiet:hover { box-shadow: inset 0 0 0 1px var(--text); color: var(--text); }
nav .button { color: var(--navy); }

@media (max-width: 46rem) {
  .top .wrap { flex-wrap: wrap; row-gap: 0.75rem; }
  nav { width: 100%; }
  nav ul { gap: 0.4rem 1rem; flex-wrap: wrap; }
  nav a { font-size: 0.875rem; white-space: nowrap; }
  nav li.cta { display: none; }
}

/* --- sections --------------------------------------------------------------- */
section { padding: clamp(4rem, 10vw, 7rem) 0; }
section.band { background: var(--deep); }
.eyebrow { display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 1.25rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft); }
.eyebrow::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: var(--orange); }
.lead { max-width: 40rem; margin-top: 1.25rem; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.6; }
.narrow { max-width: 42rem; }

/* A short page heading, for every page but the home page. */
.intro { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }

/* Steps, numbered by a dot on a line, like a socket on the panel. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(2rem, 4vw, 3.5rem); margin: clamp(2.5rem, 5vw, 3.5rem) 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-top: 2.75rem; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 2rem; height: 2rem; border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--soft); color: var(--text); font-weight: 600; font-size: 0.9rem; line-height: 2rem; text-align: center;
}
.steps h3 { margin-bottom: 0.6rem; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem); margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.grid h3 { margin-bottom: 0.5rem; }
.grid.three { grid-template-columns: repeat(3, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split .lead { margin-top: 0; }
.split .lead + .lead { margin-top: 1.1rem; }
.split h2 + .lead { margin-top: 1.25rem; }

.moments { margin: 2rem 0 0; padding: 0; list-style: none; }
.moments li { position: relative; padding: 0 0 1.4rem 1.75rem; }
.moments li::before { content: ""; position: absolute; left: 0.3rem; top: 0.55em; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--orange); }
.moments li::after { content: ""; position: absolute; left: calc(0.55rem - 0.5px); top: 1.25em; bottom: 0; width: 1px; background: var(--line); }
.moments li:last-child::after { display: none; }

.cta { text-align: center; }
.cta .lead { margin-left: auto; margin-right: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.cta .actions { justify-content: center; }

.email { font-size: clamp(1.25rem, 3.5vw, 1.75rem); font-weight: 500; overflow-wrap: anywhere; }

@media (max-width: 52rem) {
  .steps, .grid, .grid.three, .split { grid-template-columns: 1fr; }
}

/* --- footer ----------------------------------------------------------------- */
footer { padding: 3rem 0 3.5rem; border-top: 1px solid rgba(122, 156, 197, 0.25); font-size: 0.9rem; color: var(--soft); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 3rem; }
footer .brand { font-size: 1.25rem; }
footer ul { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 0; padding: 0; list-style: none; }
footer a { color: var(--soft); text-decoration: none; }
footer a:hover { color: var(--text); }
footer p { max-width: 26rem; margin-top: 0.9rem; }

/* --- the home page's opening: the panel, the name and the marketplace -------- */
.hero { position: relative; overflow: hidden; padding: 0 var(--gutter); display: flex; flex-direction: column; align-items: center; }
.hero .panel {
  --cell: 2.75rem;      /* every service is the same height */
  --gap: 0.5rem;
  position: relative; z-index: 2; width: 100%; max-width: 78rem; min-width: 0;
  padding: 1.1rem 0.75rem 0 1.5rem; border: 2px solid var(--line); border-radius: 1.5rem; background: var(--navy);
}
.hero .panel::before { content: ""; position: absolute; left: -50vw; right: -50vw; bottom: calc(100% + 2px); height: 100vh; background: var(--navy); }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.5rem; margin: 0 0.75rem 0.9rem 0; }
.panel-head p { margin: 0; font-size: 0.68rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.panel-head .legend { display: flex; flex-wrap: wrap; gap: 0.3rem 1.25rem; letter-spacing: 0.04em; text-transform: none; font-weight: 400; font-size: 0.78rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.5em; }
.legend span::before, .services li::before {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; box-sizing: border-box;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.legend .now::before { background: var(--orange); box-shadow: none; }

/* Two and a half rows show, so the half row says there is more. The list scrolls inside the panel. */
.services {
  height: calc(2.5 * var(--cell) + 2 * var(--gap)); overflow-y: auto; overscroll-behavior: contain; padding-right: 0.75rem;
  scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.4rem), rgba(0, 0, 0, 0.3));
          mask-image: linear-gradient(to bottom, #000 calc(100% - 1.4rem), rgba(0, 0, 0, 0.3));
}
.services::-webkit-scrollbar { width: 6px; }
.services::-webkit-scrollbar-track { background: transparent; }
.services::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.services:focus { outline: none; }
.services:focus-visible { -webkit-mask-image: none; mask-image: none; }
.hero .panel:has(.services:focus-visible) { border-color: var(--orange); }
.services ul {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr)); grid-auto-rows: var(--cell); gap: var(--gap);
  margin: 0; padding: 0 0 1.75rem; list-style: none;
}
.services li {
  display: grid; grid-template-columns: 0.5rem minmax(0, 1fr) 0.5rem; align-items: center; gap: 0.45rem;
  min-width: 0; height: var(--cell); padding: 0 0.8rem; text-align: center;
  border: 1px solid var(--line); border-radius: 99px;
  font-size: 0.78rem; font-weight: 500; line-height: 1.15; color: var(--soft);
}
.services li.on { border-color: var(--soft); color: var(--text); }
.services li.on::before { background: var(--orange); box-shadow: none; }

.hero .middle { width: 100%; padding: clamp(3.5rem, 9vh, 6rem) 0 clamp(4rem, 10vh, 6rem); display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .lockup { --logo: clamp(3rem, 12vw, 6.5rem); font-size: var(--logo); }
.hero .wordmark { margin: 0; font-family: Outfit, Poppins, sans-serif; font-size: 1em; font-weight: 500; line-height: 1; white-space: nowrap; color: var(--text); }
.hero .i { position: relative; display: inline-block; }
.hero .dot { position: absolute; left: 50%; width: 0.175em; height: 0.175em; margin: -0.0875em 0 0 -0.0875em; border-radius: 50%; background: var(--orange); z-index: 1; }
.hero .dot.top { top: 0.168em; }
.hero .dot.bottom { top: 1.092em; }
.hero .cable { position: absolute; left: 50%; width: 0.5em; margin-left: -0.25em; height: 100vh; overflow: visible; }
.hero .cable path { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero .cable.up { bottom: calc(100% - 0.168em); }
.hero .cable.down { top: 1.092em; transform: scaleY(-1); }
/* The words sit on a navy plate, so the cable passes behind them. */
.hero .say { position: relative; z-index: 2; margin-top: clamp(3rem, 8vh, 4.5rem); padding: 1.25rem 0; background: var(--navy); max-width: 44rem; }
.hero h1 { font-size: clamp(1.6rem, 4.2vw, 2.6rem); }
.hero .lead { margin: 1rem auto 0; }
.hero .actions { justify-content: center; }

.hero .marketplace {
  position: relative; z-index: 2; width: min(26rem, 78vw); margin-bottom: -1px; padding: 1.1rem 1.5rem 0;
  border: 0.6rem solid var(--line); border-bottom: 0; border-radius: 1.6rem 1.6rem 0 0; background: var(--navy);
}
.hero .marketplace p { margin: 0 0 0.9rem; font-size: clamp(1.1rem, 4.4vw, 1.9rem); font-weight: 600; letter-spacing: 0.14em; text-align: center; color: var(--line); }
.hero .row { display: flex; gap: 0.9rem; margin-bottom: 0.9rem; }
.hero .row i { flex: none; width: 24%; height: 2.4rem; background: var(--line); opacity: 0.75; }
.hero .row b { flex: 1; height: 2.4rem; background: repeating-linear-gradient(var(--line) 0 3px, transparent 3px 11px); opacity: 0.75; }
/* The next section covers the cable where the marketplace ends. */
.hero + section { position: relative; z-index: 3; }

@media (max-width: 30rem) {
  .hero .panel { padding-left: 1rem; border-radius: 1.25rem; }
  .services ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services li { padding: 0 0.7rem; font-size: 0.74rem; }
}

/* --- the opening animation (hero.js). Only used while the script runs. --------- */
.hero .cable path.signal { stroke: var(--orange); stroke-width: 3; stroke-dashoffset: 3000; }
.hero.animating .services li { transition: border-color 0.35s ease, color 0.35s ease; }
.hero.animating .services li.on::before { animation: plug-in 0.35s ease-out both; }
@keyframes plug-in { from { transform: scale(0); } 60% { transform: scale(1.4); } to { transform: scale(1); } }
/* Lit by the animation but not built yet: an orange ring rather than a filled dot, still a roadmap socket. */
.hero .services li.on.soon { border-color: var(--line); color: var(--soft); }
.hero .services li.on.soon::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--orange); }

/* Read by screen readers, not shown. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* --- the privacy page: long reading text ------------------------------------- */
.prose { padding-top: clamp(1rem, 3vw, 2rem); }
.prose h2 { margin: 3.5rem 0 1.25rem; font-size: clamp(1.35rem, 3vw, 1.75rem); }
.prose h3 { margin: 2.25rem 0 0.75rem; }
.prose ul { margin: 1rem 0 0; padding-left: 1.25rem; }
.prose li + li { margin-top: 0.5rem; }
.prose ul + p { margin-top: 1rem; }
.draft { margin-top: 1.5rem; color: var(--orange); font-weight: 500; }
/* A placeholder or a fact still to confirm. None may be left when the page is published. */
mark.todo { background: none; color: var(--orange); font-weight: 500; }
