/* ============================================================
   itech88.com — stylesheet
   Direction: "instrument panel". The work is scheduled jobs that
   run unattended and fail loudly, so the page borrows that world:
   a calm cool-grey surface, one deep teal for structure, one amber
   reserved for state, and a monospace utility face for anything
   that reports a fact (labels, schedules, counts).
   No webfonts, no scripts, no third-party requests.
   ============================================================ */

:root {
  /* colour */
  --paper:      #eceff1;
  --surface:    #ffffff;
  --ink:        #10161c;
  --muted:      #5c6874;
  --rule:       #d8dee3;
  --rule-soft:  #e6eaee;
  --accent:     #0b5f57;
  --accent-ink: #084a44;
  --accent-wash:#e4efed;
  --signal:     #a85f18;

  /* type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* metrics */
  --maxw: 1060px;
  --gutter: 1.5rem;
  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:      #0e1317;
    --surface:    #161d23;
    --ink:        #e8edf1;
    --muted:      #9aa7b3;
    --rule:       #29333b;
    --rule-soft:  #212a31;
    --accent:     #5cc4b3;
    --accent-ink: #7ad6c6;
    --accent-wash:#16302d;
    --signal:     #e0a35f;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

/* ---------- links ---------- */

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-ink); }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--ink);
  padding: 0.75rem 1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  z-index: 10;
}
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- header ---------- */

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

header.site .bar {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.4rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand .eight {
  font-family: var(--mono);
  font-size: 0.95em;
  color: var(--accent);
  letter-spacing: 0;
}

header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

header.site nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
header.site nav a:hover { color: var(--ink); }
header.site nav a.here {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* ---------- page shell ---------- */

main { flex: 1 0 auto; padding: 3.5rem 0 4.5rem; }

.col { max-width: 64ch; }

/* ---------- type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

h1 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.032em;
  font-weight: 700;
  margin: 0 0 1rem;
  max-width: 20ch;
  text-wrap: balance;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 650;
  margin: 2.75rem 0 0.9rem;
}

h3 { font-size: 1.05rem; font-weight: 650; margin: 1.75rem 0 0.5rem; letter-spacing: -0.01em; }

p { margin: 0 0 1.1rem; }

.lede {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.75rem;
  text-wrap: pretty;
}

.meta { color: var(--muted); font-size: 0.9rem; }

/* ---------- hero ---------- */

.hero { padding-bottom: 0.5rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin: 1.75rem 0 0;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--surface);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-ink); color: var(--surface); }

@media (prefers-color-scheme: dark) {
  .btn { color: #0e1317; }
  .btn:hover { color: #0e1317; }
}

.btn-quiet {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.btn-quiet:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- signature: the status strip ---------- */

.strip {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem 1.5rem;
  margin: 3rem 0 0;
  max-width: 640px;
}

.strip-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--rule-soft);
  padding-bottom: 0.85rem;
  margin-bottom: 0.4rem;
}

.strip-title { font-weight: 650; margin: 0; font-size: 1rem; letter-spacing: -0.01em; }

.strip-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-wash);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}

.strip dl { margin: 0; }

.strip .row {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.strip .row:last-of-type { border-bottom: 0; }

.strip dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.25rem;
}

.strip dd { margin: 0; font-size: 0.98rem; }

.strip .count {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--signal);
  line-height: 1.2;
}
.strip .count span {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.5rem;
}

.strip-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- service cards ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 4rem 0 1.5rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.section-head h2 { margin: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

.card h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card:hover h3 a { color: var(--accent); }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; line-height: 1.6; }

/* ---------- labelled prose blocks (service pages) ---------- */

.block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem 2.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
  max-width: 860px;
}
.block:first-of-type { margin-top: 2.5rem; }

.block-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0.35rem 0 0.5rem;
}

.block-body { max-width: 62ch; }
.block-body > :last-child { margin-bottom: 0; }

@media (min-width: 860px) {
  .block { grid-template-columns: 10rem 1fr; }
  .block-label { margin: 0.35rem 0 0; }
}

ul.plain { padding-left: 0; list-style: none; margin: 0 0 1.1rem; }
ul.plain li {
  padding: 0.7rem 0 0.7rem 1.1rem;
  border-left: 2px solid var(--rule);
  margin-bottom: 0.4rem;
}
ul.plain li strong { display: block; margin-bottom: 0.15rem; }

/* ---------- contact facts ---------- */

.facts {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.4rem 1.5rem 1.2rem;
  margin: 2rem 0;
  max-width: 460px;
}
.facts .row {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule-soft);
}
.facts .row:last-child { border-bottom: 0; }
.facts dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.3rem;
}
.facts dd { margin: 0; }

/* ---------- closing band ---------- */

.band {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.9rem;
  margin: 4rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.band p { margin: 0; max-width: 42ch; }
.band .band-title { font-weight: 650; letter-spacing: -0.01em; margin-bottom: 0.25rem; }

/* ---------- page footer links ---------- */

.pagenav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 3rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.95rem;
}

/* ---------- footer ---------- */

footer.site {
  flex-shrink: 0;
  background: var(--surface);
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2.25rem 0 2.75rem;
}

footer.site .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem 2rem;
  margin-bottom: 1.75rem;
}

footer.site h2 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
  font-weight: 400;
}

footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 0.35rem; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }

.legal {
  border-top: 1px solid var(--rule-soft);
  padding-top: 1.25rem;
  line-height: 1.6;
  font-size: 0.85rem;
}
.legal .entity { color: var(--ink); }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.5s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  }
  .hero > *:nth-child(2) { animation-delay: 0.05s; }
  .hero > *:nth-child(3) { animation-delay: 0.1s; }
  .hero > *:nth-child(4) { animation-delay: 0.15s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ============================================================
   Logo marks
   All three supplied marks are pure black on transparency, so
   dark mode is a straight inversion rather than a second file.
   ============================================================ */

.logo { display: block; height: auto; }

@media (prefers-color-scheme: dark) {
  .logo { filter: invert(1); }
}

/* header lockup replaces the old text wordmark */
.brand { display: flex; align-items: center; padding: 0.1rem 0; }
.brand .logo { height: 22px; width: auto; }
.brand:focus-visible { outline-offset: 6px; }

/* closing mark: primary lockup at the foot of the home page, after the content */
.closing-mark { max-width: 150px; width: 100%; margin: 3.5rem auto 0.5rem; }

/* wide lockup used as a page mark on About */
.mark-wide { max-width: 200px; width: 100%; margin: 0 0 1.75rem; }

/* tall primary lockup used as a page mark on Contact */
.mark-tall { max-width: 110px; width: 100%; margin: 0 0 1.75rem; }

/* footer lockup */
.footer-mark { height: 22px; width: auto; opacity: 0.5; margin: 0 0 1.25rem; }
