/* Kreativ by 4Knotts, site v4. Print-OS direction: light paper, black ink, one red plate.
   Usability first: plain navigation and plain explanations; the OS layer (window chrome, terminal) is an extra, never the way in. */
:root {
  --shot: #e6e5e1; --ok: #1a7a3c;
  --paper: #f3f3f1; --sheet: #fbfbf9; --ink: #0c0c0c; --term: #070707; --grey: #5f5d59; --rule: rgba(12,12,12,.16); --red: #ff1e1e; --red-ink: #d10f0f;
  --display: "Bebas Neue", "Arial Narrow", sans-serif; --mono: "DM Mono", ui-monospace, Consolas, monospace; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --g: clamp(18px, 4.5vw, 64px); --nav: 60px; --max: 1320px;
  --nav-bg: rgba(243,243,241,.92); --shadow: #0c0c0c; --band: #0c0c0c; --band-fg: #f3f3f1; --field: #fff; --plate-blend: multiply;
  color-scheme: light;
}
html[data-theme="dark"] {
  --shot: #222; --ok: #3ad46a;
  --paper: #0e0e0e; --sheet: #171717; --ink: #f1f0ec; --grey: #a6a39d; --rule: rgba(241,240,236,.16); --red-ink: #ff4a4a;
  --nav-bg: rgba(14,14,14,.9); --shadow: rgba(241,240,236,.24); --band: #000; --band-fg: #f1f0ec; --field: #101010; --plate-blend: screen;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 16px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--g); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 900; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.mono { font: 500 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--red-ink); margin: 0 0 14px; }
.display { font-family: var(--display); font-weight: 400; letter-spacing: .005em; line-height: .86; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(64px, 11vw, 184px); }
.h2 { font-size: clamp(46px, 6.5vw, 104px); }
.h3 { font-size: clamp(32px, 3.4vw, 50px); line-height: .92; }
.lead { font-size: clamp(18px, 1.7vw, 23px); line-height: 1.45; max-width: 46ch; margin: 0; }
.body-l { font-size: 18px; max-width: 62ch; }
.muted { color: var(--grey); }
p { margin: 0 0 1em; }
/* the red plate: prints off-register, settles when in view */
.op { position: relative; display: inline-block; }
.op::after { content: attr(data-t); position: absolute; inset: 0; color: var(--red); mix-blend-mode: var(--plate-blend); transform: translate(var(--dx, 10px), var(--dy, -7px)); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
.in .op::after, .op.set::after { --dx: 3px; --dy: -2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; min-height: 46px; padding: 0 20px; border: 1.5px solid var(--ink); background: var(--sheet); color: var(--ink); font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background-color .15s; }
@media (hover: hover) { .btn:hover { box-shadow: 4px 4px 0 var(--shadow); transform: translate(-2px, -2px); } }
.btn:active { box-shadow: none; transform: none; }
.btn.red { background: var(--red); border-color: var(--ink); color: #0c0c0c; }
.btn.ink { background: var(--ink); color: var(--paper); }
.btn.ink:hover { box-shadow: 4px 4px 0 var(--red); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1.5px solid var(--red); padding-bottom: 3px; }

/* ---------- navigation: plain labels, always visible ---------- */
.nav { position: sticky; top: 0; z-index: 500; height: var(--nav); background: var(--nav-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1.5px solid var(--ink); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand .mk { width: 26px; height: 36px; color: var(--ink); flex: none; }
.lock { display: grid; gap: 3px; line-height: 1; }
.lock b { font: 400 21px/1 var(--display); letter-spacing: .16em; font-weight: 400; }
.lock small { font: 500 8px/1 var(--mono); letter-spacing: .34em; color: var(--red-ink); }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 8px 0; border-bottom: 1.5px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-color: var(--red); }
.nav .login { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--grey); }
.nav .login:hover { color: var(--ink); }
.nav .btn { min-height: 40px; padding: 0 14px; }
.theme-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
.cmd-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper); font: 500 12px/1 var(--mono); cursor: pointer; }
.menu-btn { display: none; width: 44px; height: 40px; border: 1.5px solid var(--ink); background: var(--sheet); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }
.menu { margin: 0; inset: var(--nav) 0 auto auto; width: min(340px, 100vw); border: 1.5px solid var(--ink); border-top: 0; background: var(--sheet); padding: 18px 20px 22px; }
.menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.menu a { display: block; padding: 10px 0; font: 400 34px/1 var(--display); text-decoration: none; }
.menu .small a { font: 500 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); padding: 12px 0; }
@media (max-width: 1040px) { .nav-links, .nav .login { display: none; } .menu-btn { display: grid; } }
@media (max-width: 520px) { .brand span { display: none; } .theme-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; }
.theme-btn svg { width: 18px; height: 18px; }
.cmd-btn { display: none; } .nav .wrap { gap: 10px; } }

/* ---------- page furniture ---------- */
section { padding-block: clamp(72px, 10vw, 136px); }
.sheet { position: relative; }
.crop::before, .crop::after { content: ""; position: absolute; width: 20px; height: 20px; border-color: var(--ink); border-style: solid; opacity: .45; pointer-events: none; }
.crop::before { left: 10px; top: 10px; border-width: 1px 0 0 1px; } .crop::after { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.chrome { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; margin-bottom: clamp(28px, 4vw, 48px); border-bottom: 2px solid var(--ink); font: 500 11px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.chrome .file { margin-right: auto; }
.chrome .file::before { content: ""; display: inline-block; width: 3px; height: 12px; background: var(--red); transform: skewX(-20deg); margin-right: 10px; vertical-align: -1px; }
.chrome .meta { color: var(--grey); text-align: right; }
.ink-sheet { background: var(--band); color: var(--band-fg); }
.ink-sheet .chrome { border-color: var(--band-fg); } .ink-sheet .chrome .meta, .ink-sheet .muted { color: #a3a3a3; }
.ink-sheet .eyebrow { color: var(--red); }
.ink-sheet .btn { background: transparent; color: var(--band-fg); border-color: var(--band-fg); } .ink-sheet .btn:hover { box-shadow: 4px 4px 0 var(--red); }
.ink-sheet .btn.red { background: var(--red); color: #0c0c0c; border-color: var(--red); }

/* window card: a "file" with title bar and offset shadow */
.win { background: var(--sheet); border: 1.5px solid var(--ink); box-shadow: 6px 6px 0 var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.win .tb { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1.5px solid var(--ink); font: 500 10.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.win .wb { padding: clamp(18px, 2vw, 26px); display: grid; gap: 10px; align-content: start; flex: 1; }
.win .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1.5px solid var(--ink); background: var(--shot); }
.win .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
a.win { text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.win:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--red); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--ink); padding: 6px 8px; }
.tag.red { background: var(--red); border-color: var(--red); color: #0c0c0c; }
.status { font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--grey); margin-right: 6px; vertical-align: 1px; }
.status.live::before { background: #1a9a4a; } .status.wip::before { background: var(--red); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* rows: services and process as an editorial index */
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rows > li { border-bottom: 1px solid var(--rule); }
.row-link { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline; padding: 22px 0; text-decoration: none; }
.row-link .n { font: 500 12px/1 var(--mono); color: var(--red-ink); }
.row-link h3 { margin: 0; font: 400 clamp(34px, 4.2vw, 64px)/.9 var(--display); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.row-link p { margin: 0; color: var(--grey); }
.row-link .go { font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
a.row-link:hover h3 { transform: translateX(10px); color: var(--red-ink); }
@media (max-width: 760px) { .row-link { grid-template-columns: 36px minmax(0, 1fr); } .row-link p, .row-link .go { grid-column: 2; } }

/* facts strip */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); margin: 0; }
.facts > div { padding: 14px 16px 0 0; }
.facts > div + div { border-left: 1px solid var(--rule); padding-left: 16px; }
.facts dt { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: 8px; }
.facts dd { margin: 0; font-weight: 600; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts > div:nth-child(3) { border-left: 0; padding-left: 0; } }

/* prose for legal and long pages */
.prose { max-width: 72ch; }
.prose h2 { font: 400 40px/1 var(--display); margin: 2em 0 .4em; }
.prose h3 { font: 600 18px/1.3 var(--body); margin: 1.6em 0 .4em; }
.prose ul { padding-left: 1.2em; }
.note { border: 1.5px dashed var(--red-ink); padding: 14px 16px; font: 500 12px/1.5 var(--mono); letter-spacing: .06em; color: var(--red-ink); }

/* ---------- footer ---------- */
.foot { background: var(--band); color: var(--band-fg); padding-block: 64px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.foot-lock { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; color: var(--band-fg); }
.foot-lock .mk { width: 54px; height: 76px; }
.foot-lock .lock b { font-size: clamp(38px, 5vw, 60px); letter-spacing: .16em; }
.foot-lock .lock small { font-size: 12px; letter-spacing: .38em; color: var(--red); }
.foot h4 { margin: 0 0 14px; font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #a3a3a3; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--red); }
.foot .legal { margin-top: 48px; padding-top: 18px; border-top: 1px solid #333; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; color: #a3a3a3; font-size: 13px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- optional terminal (an extra, opened from the nav) ---------- */
.term { padding: 0; position: fixed; right: 18px; bottom: 18px; z-index: 700; width: min(560px, calc(100vw - 24px)); background: var(--term); color: #d8d8d8; border: 1.5px solid #2a2a2a; box-shadow: 8px 8px 0 var(--red); }
.term[hidden] { display: none; }
.term .tb { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; background: #0c0c0c; color: #f1f0ec; border-bottom: 1px solid #2a2a2a; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.term .tb span { margin-right: auto; }
.term .x { width: 28px; height: 28px; border: 1.5px solid #555; background: none; color: #f1f0ec; cursor: pointer; display: grid; place-items: center; }
.term .x::before, .term .x::after { content: ""; grid-area: 1 / 1; width: 2px; height: 14px; background: var(--red); transform: rotate(45deg); }
.term .x::after { transform: rotate(-45deg); }
.term .tbody { padding: 14px 16px; font: 400 14px/1.6 var(--mono); max-height: 60vh; overflow: auto; }
.term b { color: #fff; font-weight: 500; }
.chips-cmd { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; white-space: normal; }
.chip-cmd { font: 500 12px/1 var(--mono); color: #f1f0ec; background: #161616; border: 1px solid #3a3a3a; padding: 7px 10px; cursor: pointer; }
.chip-cmd:hover, .chip-cmd:focus-visible { border-color: var(--red); color: #fff; }
.chip-cmd::before { content: "→ "; color: var(--red); }
.term .o { white-space: pre-wrap; word-break: break-word; } .term .p { color: var(--red); } .term .dim { color: #8a8a8a; }
.term form { display: flex; gap: 8px; } .term input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: inherit; outline: none; caret-color: var(--red); }
.term form:focus-within { outline: 2px solid var(--red); outline-offset: 4px; }

/* motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .op::after { transition: none; --dx: 3px; --dy: -2px; }
  .btn, a.win, .row-link h3 { transition: none; }
  .btn:hover, a.win:hover { transform: none; }
}
