/* ==========================================================================
   TX WireSol — Design System
   Accent is swappable: set data-accent="orange" | "blue" on <html>.
   ========================================================================== */

:root {
  /* Neutrals */
  --ink:          #0B0D11;
  --ink-2:        #12161D;
  --surface:      #171C25;
  --surface-2:    #1F2631;
  --line:         rgba(255,255,255,.09);
  --line-strong:  rgba(255,255,255,.20);
  --text:         #E9ECF1;
  --muted:        #98A1B0;

  --paper:        #FFFFFF;
  --paper-2:      #F3F4F6;
  --paper-line:   rgba(11,13,17,.10);
  --paper-text:   #10141B;
  --paper-muted:  #5C6472;

  /* Accent — orange default */
  --accent:       #F26B1D;
  --accent-ink:   #0B0D11;
  --accent-soft:  rgba(242,107,29,.14);
  --accent-line:  rgba(242,107,29,.42);

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Rhythm */
  --gutter: 24px;
  --maxw: 1240px;
  --sect-y: clamp(64px, 9vw, 128px);
  --radius: 4px;
}

html[data-accent="blue"] {
  --accent:      #2E9BFF;
  --accent-ink:  #04101E;
  --accent-soft: rgba(46,155,255,.14);
  --accent-line: rgba(46,155,255,.44);
}

/* --------------------------------------------------------- reset / base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.022em;
  margin: 0 0 .5em;
  text-transform: uppercase;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.1vw, 3.1rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); letter-spacing: -.012em; }
h4 { font-size: 1.02rem; letter-spacing: .01em; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 20px; font-family: var(--mono); font-size: .8rem;
}
.skip-link:focus { left: 12px; top: 12px; }

/* --------------------------------------------------------------- layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

.section { padding: var(--sect-y) 0; position: relative; }
.section-paper { background: var(--paper); color: var(--paper-text); }
.section-paper .lead,
.section-paper .muted { color: var(--paper-muted); }
.section-surface { background: var(--ink-2); }

.lead { color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.16rem); max-width: 62ch; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ------------------------------------------------- port-grid texture bg */
.port-grid::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 75%);
  pointer-events: none;
}
.section-paper.port-grid::before {
  background-image:
    linear-gradient(to right, var(--paper-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--paper-line) 1px, transparent 1px);
}
.port-grid > .wrap { position: relative; z-index: 1; }

/* ------------------------------------------------------ signature: tags */
/* Section eyebrows are set as cable-labels — the same convention used to
   identify a terminated run. Structure that means something. */
.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .69rem; font-weight: 500;
  letter-spacing: .17em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.tag::before {
  content: attr(data-id);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  padding: 3px 8px; border-radius: 2px;
  letter-spacing: .1em;
}
.section-paper .tag { color: var(--paper-muted); }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  font-family: var(--mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase;
  border-radius: 2px; border: 1px solid transparent;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #fff; color: var(--ink); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.section-paper .btn-ghost { border-color: var(--paper-line); color: var(--paper-text); }
.section-paper .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.center .btn-row { justify-content: center; }

/* Text link with a rule that extends on hover */
.tlink {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--accent);
}
.tlink::after {
  content: ""; width: 18px; height: 1px; background: currentColor;
  transition: width .22s ease;
}
.tlink:hover::after { width: 34px; }

/* --------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,13,17,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.header.is-stuck { background: rgba(11,13,17,.96); border-bottom-color: var(--line); }
.header .wrap { display: flex; align-items: center; gap: 28px; height: 74px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-word {
  font-family: var(--display); font-weight: 800; font-size: 1.16rem;
  letter-spacing: -.02em; text-transform: uppercase; color: #fff; line-height: 1;
}
.logo-word span { color: var(--accent); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  padding: 6px 0; position: relative; transition: color .18s ease;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}
.header-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; margin-left: auto; cursor: pointer; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink); padding: 24px var(--gutter) 40px;
  display: none; flex-direction: column; overflow-y: auto;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav-top { display: flex; align-items: center; justify-content: space-between; height: 50px; }
.mobile-nav ul { list-style: none; margin: 30px 0 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li a {
  display: block; padding: 18px 0;
  font-family: var(--display); font-weight: 700; font-size: 1.5rem;
  text-transform: uppercase; letter-spacing: -.01em;
}
.mobile-nav .btn { margin-top: 30px; }
.mobile-nav-phone {
  margin-top: 18px; font-family: var(--mono); font-size: .84rem;
  color: var(--muted); letter-spacing: .08em;
}
body.nav-open { overflow: hidden; }

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding: clamp(70px, 11vw, 132px) 0 clamp(64px, 9vw, 108px);
  border-bottom: 1px solid var(--line);
}
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art svg { width: 100%; height: 100%; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 15ch; margin-bottom: 26px; }
.hero .lead { max-width: 58ch; font-size: clamp(1.04rem, 1.7vw, 1.22rem); }

.hero-specs {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 56px; border-top: 1px solid var(--line);
}
.hero-specs div {
  flex: 1 1 190px; padding: 20px 22px 0 0;
  border-right: 1px solid var(--line);
}
.hero-specs div:last-child { border-right: 0; }
.hero-specs dt {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .17em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 7px;
}
.hero-specs dd { margin: 0; font-size: .93rem; color: var(--muted); line-height: 1.5; }

/* page hero (interior) */
.phero {
  position: relative; overflow: hidden;
  padding: clamp(58px, 7vw, 96px) 0 clamp(46px, 6vw, 74px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 340px at 12% -10%, var(--accent-soft), transparent 68%),
    var(--ink);
}
.phero h1 { max-width: 18ch; }
.crumbs {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 22px;
}
.crumbs a:hover { color: var(--accent); }
.crumbs span { opacity: .5; margin: 0 8px; }

/* ---------------------------------------------------------------- grids */
.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section-paper .grid { background: var(--paper-line); border-color: var(--paper-line); }

/* card cells sit on the grid's 1px gap to make hairline rules */
.cell {
  background: var(--ink); padding: 34px 30px;
  transition: background .2s ease;
  position: relative;
}
.section-paper .cell { background: var(--paper); }
.section-surface .cell { background: var(--ink-2); }
a.cell:hover { background: var(--surface); }
.section-paper a.cell:hover { background: var(--paper-2); }
.cell-id {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .14em;
  color: var(--accent); margin-bottom: 18px; display: block;
}
.cell h3 { margin-bottom: 12px; }
.cell p { font-size: .95rem; color: var(--muted); margin-bottom: 16px; }
.section-paper .cell p { color: var(--paper-muted); }
.cell .tlink { font-size: .7rem; }

.icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 20px; }

/* -------------------------------------------------------- feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--flip .split-copy { order: 2; }
.split h2 { margin-bottom: 20px; }

.speclist { list-style: none; margin: 28px 0 0; padding: 0; columns: 2; column-gap: 30px; }
.speclist li {
  font-family: var(--mono); font-size: .76rem; letter-spacing: .04em;
  color: var(--muted); padding: 7px 0 7px 17px; position: relative;
  break-inside: avoid;
}
.speclist li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 7px; height: 1px; background: var(--accent);
}
.section-paper .speclist li { color: var(--paper-muted); }
.speclist--one { columns: 1; }

/* ------------------------------------------------------- media / photos */
.media {
  position: relative; border: 1px solid var(--line);
  background: var(--ink-2); overflow: hidden;
  aspect-ratio: 4 / 3;
}
.media svg { width: 100%; height: 100%; }
.media-note {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  background: rgba(11,13,17,.78); border: 1px solid var(--line);
  padding: 5px 9px; border-radius: 2px;
}
.section-paper .media { border-color: var(--paper-line); background: var(--ink-2); }

/* --------------------------------------------------------- process rail */
.rail { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rail-step { background: var(--ink); padding: 30px 20px 34px; }
.section-paper .rail { background: var(--paper-line); border-color: var(--paper-line); }
.section-paper .rail-step { background: var(--paper); }
.rail-num {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em;
  color: var(--accent); display: block; margin-bottom: 22px;
}
.rail-step h4 { margin-bottom: 10px; font-size: .96rem; }
.rail-step p { font-size: .84rem; color: var(--muted); line-height: 1.55; }
.section-paper .rail-step p { color: var(--paper-muted); }

/* ------------------------------------------------------------ CTA bands */
.cta-band {
  background: var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: clamp(56px, 7vw, 92px) 0; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 260px at 78% 120%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; }
.cta-band h2 { max-width: 20ch; }

/* -------------------------------------------------------------- empty state */
.empty {
  border: 1px dashed var(--line-strong); border-radius: var(--radius);
  padding: clamp(38px, 6vw, 68px) 30px; text-align: center;
}
.empty h3 { margin-bottom: 12px; }
.empty p { color: var(--muted); max-width: 52ch; margin: 0 auto 22px; }
.section-paper .empty { border-color: var(--paper-line); }
.section-paper .empty p { color: var(--paper-muted); }

/* placeholder token — visible on purpose so it can never ship as fact */
.ph {
  font-family: var(--mono); font-size: .8em; letter-spacing: .06em;
  background: var(--accent-soft); border: 1px dashed var(--accent-line);
  color: var(--accent); padding: 1px 7px; border-radius: 2px; white-space: nowrap;
}

/* ----------------------------------------------------------------- form */
.form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--paper-muted);
}
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem;
  padding: 13px 14px; border-radius: 2px;
  border: 1px solid var(--paper-line); background: #fff; color: var(--paper-text);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #D93B3B; box-shadow: 0 0 0 3px rgba(217,59,59,.12);
}
.field-error { font-family: var(--mono); font-size: .7rem; color: #C22B2B; letter-spacing: .04em; min-height: 1em; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.check {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--paper-line); border-radius: 2px;
  padding: 11px 13px; font-size: .89rem; cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.check:hover { border-color: var(--accent-line); }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.check:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

.file-drop {
  border: 1px dashed var(--paper-line); border-radius: 2px;
  padding: 26px; text-align: center; cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.file-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-drop span { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--paper-muted); }

.form-success {
  border: 1px solid var(--accent-line); background: var(--accent-soft);
  border-radius: var(--radius); padding: clamp(30px, 5vw, 54px); text-align: center;
}
.form-success h2 { margin-bottom: 14px; }
.form-success p { color: var(--paper-muted); max-width: 46ch; margin: 0 auto; }
.form-error {
  border: 1px solid rgba(217,59,59,.45); background: rgba(217,59,59,.07);
  border-radius: var(--radius); padding: 26px 28px; margin-bottom: 26px;
}
.form-error h3 { margin-bottom: 8px; color: #B42525; }
.form-error p { color: var(--paper-muted); margin: 0; }

.hidden { display: none !important; }

/* --------------------------------------------------------------- footer */
.footer { background: var(--ink); border-top: 1px solid var(--line); padding: clamp(52px, 6vw, 80px) 0 0; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 {
  font-family: var(--mono); font-weight: 500; font-size: .7rem;
  letter-spacing: .16em; color: var(--muted); text-transform: uppercase; margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 11px; }
.footer li a { font-size: .9rem; color: var(--text); opacity: .78; transition: opacity .16s ease, color .16s ease; }
.footer li a:hover { opacity: 1; color: var(--accent); }
.footer-blurb { font-size: .92rem; color: var(--muted); max-width: 34ch; margin: 18px 0 22px; }
.footer-phone {
  font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  letter-spacing: -.01em; color: #fff; display: inline-block;
}
.footer-phone:hover { color: var(--accent); }
.footer-bar {
  margin-top: 54px; border-top: 1px solid var(--line);
  padding: 22px 0 96px;
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}

/* ------------------------------------------------------ sticky mobile CTA */
.mcta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: none; background: rgba(11,13,17,.97);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.mcta .btn { flex: 1; padding: 14px 10px; font-size: .72rem; letter-spacing: .1em; }

/* ------------------------------------------------- accent preview switch */
/* PREVIEW ONLY — delete this block and the matching markup before launch. */
.accent-switch {
  position: fixed; right: 16px; bottom: 88px; z-index: 95;
  display: flex; align-items: center; gap: 8px;
  background: rgba(11,13,17,.94); border: 1px solid var(--line-strong);
  border-radius: 40px; padding: 7px 9px 7px 14px;
  font-family: var(--mono); font-size: .6rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
  box-shadow: 0 8px 30px rgba(0,0,0,.4);
}
.accent-switch button {
  width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; padding: 0;
}
.accent-switch button[aria-pressed="true"] { border-color: #fff; }
.accent-switch .sw-orange { background: #F26B1D; }
.accent-switch .sw-blue { background: #2E9BFF; }

/* -------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------------------------------------------------------- breakpoints */
@media (max-width: 1080px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .rail { grid-template-columns: repeat(4, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split--flip .split-copy { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .rail { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .speclist { columns: 1; }
  .mcta { display: flex; }
  .footer-bar { padding-bottom: 110px; }
  .hero-specs div { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; flex-basis: 100%; }
  .hero-specs div:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .accent-switch { bottom: 86px; right: 12px; }
}
