/* techontouch.us version 4. Rules: status/rules.html (Fictive Kin column), approved 17 Oct 2026.
   Two themes on the same layout. Dark: ground rgb(13,13,13), white type. Light: the mirror on white.
   No accent colour: colour comes only from the live work. */

@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #0d0d0d;
  --muted: #5c5c5c;          /* 6.7:1 on white */
  --rule: #0d0d0d;
  --panel: #e6e6e6;          /* the one other surface; logos stay black on it in both themes */
  --panel-ink: #0d0d0d;
  --tag-bg: #0d0d0d;
  --tag-ink: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --tile-bg: #f0f0f0;
  color-scheme: light;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --pad: 65px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0d0d; --ink: #ffffff; --muted: #a6a6a6; --rule: #ffffff;
    --panel: #cccccc; --panel-ink: #0d0d0d; --tag-bg: #0d0d0d; --tag-ink: #ffffff;
    --nav-bg: rgba(13, 13, 13, 0.92); --tile-bg: #1a1a1a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0d0d; --ink: #ffffff; --muted: #a6a6a6; --rule: #ffffff;
  --panel: #cccccc; --panel-ink: #0d0d0d; --tag-bg: #0d0d0d; --tag-ink: #ffffff;
  --nav-bg: rgba(13, 13, 13, 0.92); --tile-bg: #1a1a1a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body.v4 {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/22px var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  animation: v4-fade 500ms linear both;
}
@keyframes v4-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.v4 { animation: none; } }

a { color: inherit; }
img, video { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, p { margin: 0; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 4px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: calc(1310px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ---------------------------------------------------------------- header: 48px, sticky, no button */
.hd {
  position: sticky; top: 0; z-index: 20; height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; background: var(--nav-bg);
}
.wm { font-weight: 500; font-size: 16px; line-height: 48px; text-decoration: none; letter-spacing: -0.01em; min-height: 44px; display: inline-flex; align-items: center; }
.wm-mark { width: 24px; height: 24px; margin-right: 10px; flex: none; }
.hd-nav { display: flex; align-items: center; gap: 16px; }
.hd-nav a {
  font-size: 12px; font-weight: 500; line-height: 16px; text-decoration: none;
  min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap;
}
.hd-nav a:hover, .hd-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.theme-btn {
  width: 44px; height: 44px; margin-right: -12px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; color: var(--ink); opacity: 0.72; cursor: pointer; border-radius: 22px;
}
.theme-btn:hover { opacity: 1; }

/* ---------------------------------------------------------------- hero: one sentence, two pills */
.hero { padding-top: 160px; }
.lede {
  font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 56px; letter-spacing: -0.01em;
  max-width: 1310px; text-wrap: pretty;
}
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.pill {
  position: relative; display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
  border: 1px solid var(--rule); border-radius: 22px; font: 500 12px/1 var(--sans); text-decoration: none; white-space: nowrap;
}
a.pill::after { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; } /* 44px hit area */
a.pill:hover { background: var(--ink); color: var(--bg); }
.pill-todo { border-style: dashed; color: var(--muted); border-color: var(--muted); cursor: help; }

/* ---------------------------------------------------------------- work: three 4:5 tiles */
.work { padding: 240px 0 80px; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile .media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--tile-bg); }
.tile video, .tile .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tile .still { transition: opacity 200ms linear; }
.tile.is-live .still { opacity: 0; }
.tile .play {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 22px;
  display: none; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  background: #ffffff; color: #0d0d0d; border: 1px solid rgba(13, 13, 13, 0.16);
}
.tile .play .i-stop { display: none; }
.tile.is-playing .play .i-play { display: none; }
.tile.is-playing .play .i-stop { display: inline; }
.tile .play:focus-visible { display: inline-flex; }
@media (hover: none), (prefers-reduced-motion: reduce) { .tile .play { display: inline-flex; } }
.tile .live {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px;
  height: 26px; padding: 0 10px; border-radius: 22px; background: #ffffff; color: #0d0d0d;
  font: 500 12px/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.tile .live::after { content: ""; position: absolute; left: 0; right: 0; top: -9px; bottom: -9px; }
.tile .live:hover { background: #0d0d0d; color: #ffffff; }
.tile .name { margin-top: 24px; }
.tile .line { margin-top: 14px; font-size: 16px; line-height: 22px; max-width: 30em; }

/* ---------------------------------------------------------------- clients panel: the one grey surface */
.clients { padding: 0 16px; }
.panel {
  background: var(--panel); color: var(--panel-ink); border-radius: 4px;
  padding: 49px 49px 160px;
}
.panel .tag {
  display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 22px;
  background: var(--tag-bg); color: var(--tag-ink); font: 500 12px/1 var(--sans);
}
.panel .tag + ul { margin-top: 44px; }
.panel ul + .tag { margin-top: 56px; }
.marks, .trades { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: center; }
.marks li { display: flex; justify-content: center; }
.marks a { display: inline-flex; align-items: center; justify-content: center; min-height: 72px; text-decoration: none; color: var(--panel-ink); }
.marks img { height: 44px; width: auto; }
.marks li:nth-child(3) img { height: 52px; }
.wm-nther { font: 500 40px/1 var(--sans); letter-spacing: -0.035em; }
.trades li { text-align: center; font-family: var(--serif); font-weight: 300; font-size: 40px; line-height: 48px; }

/* ---------------------------------------------------------------- footer */
.ft {
  display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap;
  padding: 2px 16px 4px; font-size: 12px; line-height: 16px; color: var(--muted);
}
.ft-links { display: flex; gap: 14px; flex-wrap: wrap; }
.ft-links a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.ft-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ft-id { padding: 14px 0; }

/* ---------------------------------------------------------------- inner pages: same rhythm as the home */
.ph { padding-top: 120px; }
.ph-h { font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 56px; letter-spacing: -0.01em; max-width: 1100px; text-wrap: pretty; }
.ph-lead { margin-top: 24px; max-width: 760px; font-size: 16px; line-height: 22px; color: var(--muted); }
.ph-case .ph-lead { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 34px; color: var(--ink); max-width: 1000px; }
.ph .back a { display: inline-flex; min-height: 44px; align-items: center; font-size: 12px; font-weight: 500; text-underline-offset: 4px; }
.ph .note { margin-top: 16px; max-width: 760px; color: var(--muted); }
.meta { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 28px 0 0; }
.meta dt { font-size: 12px; color: var(--muted); }
.meta dd { margin: 2px 0 0; }
.meta a { margin-right: 12px; text-underline-offset: 3px; }
.isec { padding: 96px 0 80px; }
.isec + .isec { padding-top: 0; }
.rows { border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 16px; padding: 32px 0 40px; border-bottom: 1px solid color-mix(in srgb, var(--rule) 25%, transparent); }
.row-h { font: 500 16px/22px var(--sans); }
.row-b { max-width: 760px; }
.row-b p + p, .row-b p + dl, .row-b dl + h3, .row-b h3 + p, .row-b p + h3 { margin-top: 16px; }
.row-b h3 { font: 500 16px/22px var(--sans); margin-top: 28px; }
.row-b > h3:first-child { margin-top: 0; }
.row-b dl + p { margin-top: 16px; }
.trade-end { max-width: 1000px; }
.trade-end + .pills { margin-top: 28px; }
.row-b a, .prose a, .story a { text-underline-offset: 3px; }
.serif-lead { font-family: var(--serif); font-weight: 300; font-size: 28px; line-height: 34px; }
.muted { color: var(--muted); }
.more a { display: inline-flex; min-height: 44px; align-items: center; margin-right: 20px; }
.facts { margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr); gap: 16px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--rule) 18%, transparent); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.facts .pill-todo { margin-right: 8px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.people h3 { font: 500 16px/22px var(--sans); }
.people p { margin-top: 4px; }
.wsec { padding: 96px 0 80px; }
.wgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 16px; }
.wtile { text-decoration: none; display: block; }
.wshot { aspect-ratio: 5 / 3; overflow: hidden; background: var(--tile-bg); }
.wshot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.wtile .name { margin-top: 20px; }
.wtile .line { margin-top: 12px; }
.wtile .wmeta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.wtile:hover .pill-name { background: var(--ink); color: var(--bg); }
.wsec-h { margin-bottom: 24px; }
.wsec-next { padding-top: 0; }
.legend.legend-top { margin: -12px 0 24px; }
.legend { margin-top: 64px; max-width: 760px; font-size: 12px; line-height: 16px; color: var(--muted); }
.csec { padding: 48px 0 0; }
.csec:last-of-type { padding-bottom: 80px; }
.chero { background: var(--tile-bg); }
.chero img { width: 100%; height: auto; }
.story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 32px; }
.story p { margin-top: 10px; }
.nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 32px; margin-top: 20px; }
.nums .fig { display: block; font-family: var(--serif); font-weight: 300; font-size: 48px; line-height: 56px; }
.nums .cap { display: block; margin-top: 4px; color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { font: 500 16px/22px var(--sans); margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: 10px; }
.prose ul { list-style: disc; padding-left: 20px; }
.prose li + li { margin-top: 6px; }
@media (max-width: 1100px) {
  .wgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story, .nums { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .ph { padding-top: 72px; }
  .ph-h { font-size: 32px; line-height: 38px; }
  .ph-case .ph-lead, .serif-lead { font-size: 22px; line-height: 28px; }
  .isec, .wsec { padding: 56px 0 56px; }
  .row { grid-template-columns: 1fr; gap: 12px; padding: 24px 0 32px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .people, .wgrid { grid-template-columns: 1fr; }
  .nums .fig { font-size: 36px; line-height: 42px; }
}

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .lede { font-size: 40px; line-height: 48px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --pad: 24px; }
  .hd { padding: 0 12px; }
  .wm { font-size: 15px; }
  .hd-nav { gap: 11px; }
  .hero { padding-top: 82px; }
  .lede { font-size: 28px; line-height: 33px; letter-spacing: -0.005em; }
  .pills { margin-top: 20px; }
  .work { padding: 80px 0 64px; }
  .tiles { grid-template-columns: 1fr; gap: 48px; }
  .tile .name { margin-top: 16px; }
  .tile .line { margin-top: 10px; }
  .clients { padding: 0 8px; }
  .panel { padding: 32px 16px 96px; }
  .panel .tag + ul { margin-top: 28px; }
  .panel ul + .tag { margin-top: 40px; }
  .marks { grid-template-columns: 1fr; gap: 8px; }
  .marks img { height: 34px; }
  .marks li:nth-child(3) img { height: 40px; }
  .wm-nther { font-size: 32px; }
  .trades { grid-template-columns: 1fr; gap: 4px; }
  .trades li { font-size: 32px; line-height: 44px; }
  .ft { flex-direction: column; align-items: flex-start; padding: 8px 16px 16px; }
  .ft-id { padding: 8px 0 0; }
}
/* Below 430px the mark alone stands for the name, so the four links never wrap. */
@media (max-width: 430px) {
  .wm-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wm-mark { width: 28px; height: 28px; margin-right: 0; }
}
@media (max-width: 380px) {
  .hd-nav { gap: 8px; }
  .wm { font-size: 14px; }
}
