/* Brick Telecom NOC — Swiss / International Typographic Style.
   Off-white with a fine drafting-grid background (never flat),
   one red accent, strict left alignment, everything on the grid. */

:root {
  --paper: #f7f6f2;
  --ink: #141414;
  --soft: #6b6b66;
  --rule: #d9d6cc;
  --accent: #e03a1e;   /* Swiss red */
  --wrap: 980px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px),
    linear-gradient(180deg, #faf9f6 0%, #f3f1ea 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* the fine drafting grid, fixed so the page "sits on" it */
.fine-grid {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(20,20,20,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,20,20,.035) 1px, transparent 1px);
  background-size: 7px 7px;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

a { color: var(--ink); }
a:hover { color: var(--accent); }

/* ---------- header ---------- */
.site-header {
  border-bottom: 2px solid var(--ink);
  background: rgba(247, 246, 242, .96);
  position: sticky; top: 0; z-index: 10;
}
.header-row {
  display: flex; align-items: baseline; gap: 18px;
  padding-top: 18px; padding-bottom: 16px;
}
.brand {
  font-weight: 700; font-size: 17px; letter-spacing: .04em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-sub {
  font-size: 11px; letter-spacing: .14em; color: var(--soft);
}
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a {
  font-size: 13px; text-decoration: none; color: var(--soft);
  letter-spacing: .04em; text-transform: uppercase;
}
.nav a:hover { color: var(--accent); }

/* language switcher */
.lang-sw {
  display: inline-flex;
  border: 1px solid var(--ink);
  margin-left: 10px;
}
.lang-sw a {
  padding: 3px 9px;
  font-size: 12px; letter-spacing: .04em;
  text-decoration: none; color: var(--soft);
  border-right: 1px solid var(--rule);
}
.lang-sw a:last-child { border-right: 0; }
.lang-sw a.on { background: var(--ink); color: var(--paper); }
.lang-sw a:hover:not(.on) { color: var(--accent); }

/* ---------- section index labels ---------- */
.index-label {
  font-size: 11.5px; letter-spacing: .18em;
  color: var(--accent); font-weight: 600;
  margin-bottom: 20px;
}
.index-label::after {
  content: ""; display: block;
  width: 44px; height: 3px; background: var(--accent);
  margin-top: 8px;
}

/* ---------- intro ---------- */
.intro { padding: 84px 0 72px; }
.intro h1 {
  font-size: clamp(46px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -.025em;
  font-weight: 700;
  margin-bottom: 40px;
}
.intro-cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 760px;   /* deliberately not full width */
}
.intro-lede { font-size: 19px; color: var(--soft); }

/* spec table — a drafting sheet table */
.spec { border-collapse: collapse; font-size: 14px; min-width: 240px; }
.spec td {
  border-top: 1px solid var(--ink);
  padding: 8px 18px 8px 2px;
}
.spec tr:last-child td { border-bottom: 1px solid var(--ink); }
.spec td:first-child {
  color: var(--soft); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; width: 50%;
}
.spec td:last-child { font-weight: 600; }
.footnote { font-size: 12px; color: var(--soft); margin-top: 14px; font-style: italic; }

/* ---------- rows ---------- */
.section { padding: 40px 0 56px; }
.section-last { padding-bottom: 90px; }
.rows { display: flex; flex-direction: column; }
.row {
  display: grid;
  grid-template-columns: 72px 1fr 40px;
  gap: 26px;
  padding: 26px 4px;
  border-top: 1px solid var(--ink);
  align-items: baseline;
  text-decoration: none;
}
.row:last-child { border-bottom: 1px solid var(--ink); }
.row-num {
  font-size: 13px; font-weight: 600; color: var(--accent);
  letter-spacing: .06em;
}
.row h3 {
  font-size: 19px; margin-bottom: 4px; letter-spacing: -.01em;
}
.row p { color: var(--soft); font-size: 15px; max-width: 44em; }
.row-go {
  font-size: 18px; color: var(--soft);
  transition: transform .15s ease-out, color .15s ease-out;
}
.row-link:hover .row-go, .row:hover .row-go {
  transform: translateX(5px); color: var(--accent);
}
.row-link:hover h3 { color: var(--accent); }
.thumb {
  width: 170px; float: left; margin: 4px 20px 8px 0;
  border: 1px solid var(--ink);
}

/* ---------- contact ---------- */
.contact-lede {
  font-size: 19px; color: var(--soft);
  max-width: 34em; margin-bottom: 30px;
}
.spec-wide td { padding: 10px 18px 10px 2px; }
.spec-wide td:last-child { font-weight: 400; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 2px solid var(--ink);
  background: rgba(247, 246, 242, .96);
  position: relative; z-index: 1;
}
.footer-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 18px; padding-bottom: 20px;
  font-size: 12.5px; color: var(--soft); flex-wrap: wrap; gap: 10px;
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .header-row { flex-wrap: wrap; }
  .brand-sub { display: none; }
  .nav { margin-left: 0; width: 100%; gap: 16px; }
  .intro { padding: 56px 0 48px; }
  .intro-cols { grid-template-columns: 1fr; gap: 30px; }
  .row { grid-template-columns: 44px 1fr; }
  .row-go { display: none; }
  .thumb { float: none; display: block; margin: 0 0 12px 0; }
}
