/* RHT Media — site styles (brand: black, cyan, magenta pixel mosaic) */
:root {
  --ink: #0b0b0d;
  --ink-2: #3a3d45;
  --muted: #6b6f78;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --line: #e4e6ea;
  --cyan: #01c6fd;
  --magenta: #fc1a6c;
  --magenta-ink: #d10c55;   /* darker magenta for text on white (AA contrast) */
  --cyan-ink: #0079a3;      /* darker cyan for text on white */
  --ok: #10734a;
  --err: #b0123f;
  --wrap: 1160px;
  --px: 10px;               /* base pixel size for decorations */
  --display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.4rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* Eyebrow label with three-pixel marker, echoing the logo */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 1.1em;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; background: var(--cyan);
  box-shadow: 10px 0 0 var(--magenta), 20px 0 0 var(--ink);
  margin-right: 20px; flex: none;
}
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 40rem; }
.muted { color: var(--muted); }
.hl { color: var(--magenta-ink); }
.hl-c { color: var(--cyan-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  position: relative; color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .02em;
  padding: 8px 14px;
}
.site-nav a::after { content: ""; position: absolute; left: 14px; bottom: 2px; width: 6px; height: 6px; background: var(--magenta); opacity: 0; transition: opacity .15s; }
.site-nav a:hover::after, .site-nav a.active::after { opacity: 1; }
.site-nav a:nth-child(2)::after { background: var(--cyan); }
.site-nav a.nav-cta { background: var(--ink); color: #fff; margin-left: 10px; padding: 9px 18px; transition: box-shadow .15s, transform .15s; }
.site-nav a.nav-cta::after { display: none; }
.site-nav a.nav-cta:hover, .site-nav a.nav-cta.active { box-shadow: 4px 4px 0 var(--magenta); transform: translate(-2px, -2px); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 22px; height: 3px; background: var(--ink); margin: 4px 0; }
.nav-toggle .bar:nth-child(3) { background: var(--cyan); width: 14px; }
.nav-toggle .bar:nth-child(4) { background: var(--magenta); width: 18px; }

/* Buttons — square, with pixel offset shadow on hover */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2.2rem; }
.btn {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: .02em;
  padding: 13px 24px; border: 2px solid var(--ink); cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.btn:hover { color: #fff; box-shadow: 5px 5px 0 var(--magenta); transform: translate(-2px, -2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { color: var(--ink); box-shadow: 5px 5px 0 var(--cyan); }
.btn-invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn-invert:hover { color: var(--ink); box-shadow: 5px 5px 0 var(--cyan); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 14em; }
.mosaic { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; max-width: 400px; width: 100%; justify-self: end; }
.mosaic i { aspect-ratio: 1; background: transparent; transition: background-color .6s ease; }
.mosaic i.k { background: var(--ink); }
.mosaic i.c { background: var(--cyan); }
.mosaic i.m { background: var(--magenta); }

/* Page headers on inner pages: scattered pixels at the right */
.page-head { position: relative; padding: clamp(56px, 8vw, 96px) 0 clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); top: 50%;
  width: 160px; height: 120px; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Crect x='140' y='0' width='18' height='18' fill='%23fc1a6c'/%3E%3Crect x='100' y='20' width='18' height='18' fill='%2301c6fd'/%3E%3Crect x='120' y='40' width='18' height='18' fill='%230b0b0d'/%3E%3Crect x='80' y='60' width='18' height='18' fill='%23fc1a6c'/%3E%3Crect x='60' y='80' width='18' height='18' fill='%2301c6fd'/%3E%3Crect x='100' y='80' width='18' height='18' fill='%230b0b0d'/%3E%3Crect x='20' y='100' width='18' height='18' fill='%230b0b0d'/%3E%3Crect x='40' y='100' width='18' height='18' fill='%23fc1a6c'/%3E%3Crect x='80' y='100' width='18' height='18' fill='%2301c6fd'/%3E%3Crect x='0' y='100' width='18' height='18' fill='%2301c6fd'/%3E%3C/svg%3E") no-repeat center / contain;
}
.page-head.center { text-align: center; }
.page-head.center::after { display: none; }
.page-head.center .lede { margin-left: auto; margin-right: auto; }
.page-head.center .actions { justify-content: center; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { margin-bottom: 2.6rem; max-width: 40rem; }
.section-dark { background: var(--ink); color: #e9eaee; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #b9bcc5; }
.section-dark .eyebrow::before { box-shadow: 10px 0 0 var(--magenta), 20px 0 0 #fff; }
.section-dark p { color: #c9ccd4; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.split .btn { margin-top: .6rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 2px solid var(--ink); padding: 32px; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 8px 8px 0 var(--cyan); transform: translate(-3px, -3px); }
.card:nth-child(2):hover { box-shadow: 8px 8px 0 var(--magenta); }
.card:nth-child(3):hover { box-shadow: 8px 8px 0 var(--ink); }
.card p { color: var(--ink-2); margin-bottom: 0; }
.card-num { display: inline-block; font-family: var(--mono); font-size: .95rem; color: #fff; background: var(--ink); padding: 3px 9px; margin-bottom: 22px; }
.card-num[data-c="c"] { background: var(--cyan); color: var(--ink); }
.card-num[data-c="m"] { background: var(--magenta); color: #fff; }
.property p { margin-bottom: 1em; }
.tag { display: inline-block; font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--paper-2); border-left: 6px solid var(--cyan); padding: 3px 10px; margin-bottom: 16px; }
.link-arrow { font-family: var(--display); font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow span { display: inline-block; color: var(--magenta); transition: transform .15s; }
.link-arrow:hover span { transform: translateX(4px); }
.empty { text-align: center; max-width: 38rem; margin: 0 auto; padding: 56px 28px; border: 2px dashed var(--ink); }
.empty .pixels { display: inline-flex; gap: 6px; margin-bottom: 22px; }
.empty .pixels i { width: 14px; height: 14px; background: var(--ink); }
.empty .pixels i:nth-child(1) { background: var(--cyan); }
.empty .pixels i:nth-child(2) { background: var(--magenta); }
.empty p { color: var(--ink-2); }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2em; font-size: 1.7rem; }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: .9em; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; background: var(--cyan); }
.checklist li:nth-child(2)::before { background: var(--magenta); }
.checklist li:nth-child(3)::before { background: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; }
.contact-aside { border-left: 4px solid var(--ink); padding-left: 28px; }
.contact-aside h2 { font-size: 1.15rem; margin-bottom: .3em; }
.contact-aside p { color: var(--ink-2); margin-bottom: 1.6em; }
.form label { display: block; font-weight: 500; font-size: .94rem; margin-bottom: 18px; }
.form .opt { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid #cfd2d8; border-radius: 0; padding: 11px 13px;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--cyan); }
.form textarea { resize: vertical; min-height: 150px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 18px; margin-bottom: 24px; font-size: .96rem; border-left: 6px solid; }
.notice ul { margin: 0; padding-left: 18px; }
.notice-ok { background: #e8f8ef; color: var(--ok); border-color: var(--cyan); }
.notice-err { background: #fdebf1; color: var(--err); border-color: var(--magenta); }

/* Footer */
.site-footer { background: var(--ink); color: #b9bcc5; padding-bottom: 8px; }
.pixel-rule { height: 10px; background:
  linear-gradient(90deg, var(--cyan) 0 10px, transparent 10px 20px, var(--magenta) 20px 30px, transparent 30px 40px, #fff 40px 50px, transparent 50px 60px) 0 0 / 60px 10px repeat-x; opacity: .9; }
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-top: 56px; padding-bottom: 40px; }
.site-footer .brand img { height: 46px; }
.footer-tag { margin-top: 16px; max-width: 26rem; }
.site-footer a { color: #fff; text-decoration: none; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: flex-start; font-family: var(--display); font-weight: 600; }
.footer-nav a:hover { color: var(--cyan); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; border-top: 1px solid #262830; padding-top: 20px; padding-bottom: 24px; font-family: var(--mono); font-size: .9rem; }
.footer-base p { margin: 0; }
.footer-base a:hover { color: var(--magenta); }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .mosaic { justify-self: start; max-width: 260px; gap: 6px; }
  .page-head::after { width: 100px; height: 76px; top: 28px; transform: none; opacity: .9; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; }
  .brand img { height: 32px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 2px solid var(--ink); padding: 8px 16px 16px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 4px; }
  .site-nav a::after { left: auto; right: 4px; bottom: 50%; transform: translateY(50%); }
  .site-nav a.nav-cta { margin: 8px 0 0; text-align: center; }
  .row-2 { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .page-head::after { width: 72px; height: 54px; top: 20px; right: 16px; }
  .contact-aside { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Keep inner-page headings clear of the pixel graphic on wide screens */
@media (min-width: 901px) {
  .page-head h1, .page-head .lede { max-width: calc(100% - 220px); }
}
