/* =========================================================
   Koodvik OÜ: "Living Blueprint"
   Tokens: four drafting tools (non-photo blue, ink, highlighter, redline) on white paper
   ========================================================= */
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-ext-wdth-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Archivo'; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-wdth-italic.woff2) format('woff2-variations'), url(../fonts/archivo-latin-ext-wdth-italic.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Archivo'; font-style: italic; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-wdth-italic.woff2) format('woff2-variations'), url(../fonts/archivo-latin-wdth-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --paper: #FCFDFE;
  --paper-2: #F4F8FC;
  --grid: #E6EEF6;
  --grid-major: #D3E1EE;
  --npb: #74C3E6;
  --npb-text: #2B86B3;
  --ink: #18214A;
  --ink-80: #2E3866;
  --ink-60: #4A5578;
  --ink-30: #A9B3C9;
  --hl: #FFE04A;
  --hl-soft: #FFF3B8;
  --red: #F0412A;
  --red-text: #C42F1B;
  --font: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1360px;
  --frame: 0px;
  --header-h: 76px;
  --ease-draft: cubic-bezier(.65, .05, .25, 1);
  --ease-snap: cubic-bezier(.34, 1.56, .64, 1);
  --email: 'hello@koodvik.ee';
}
@media (min-width: 1100px) { :root { --frame: 18px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; color: var(--ink); background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  font-family: var(--font); font-size: 17px; line-height: 1.6; font-weight: 400; font-stretch: 100%;
  font-kerning: normal; font-variant-numeric: tabular-nums;
  overflow-x: clip;
  cursor: crosshair;
}
img, svg { max-width: 100%; }
a { color: inherit; }
a, button, input, select, textarea, label, [role="button"] { cursor: pointer; }
input, textarea, select { cursor: text; }
select { cursor: pointer; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
::selection { background: var(--hl); color: var(--ink); }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 24px; top: -60px; z-index: 2000; background: var(--hl); padding: 10px 16px; border: 1.5px solid var(--ink); font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 24px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.012em; text-wrap: balance; }
.t-display { font-size: clamp(2.45rem, 1.2rem + 4.6vw, 6.1rem); font-stretch: 122%; font-weight: 640; line-height: .98; letter-spacing: -0.028em; }
.t-h1 { font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.8rem); font-stretch: 120%; font-weight: 640; line-height: 1; letter-spacing: -0.024em; }
.t-h2 { font-size: clamp(1.95rem, 1.2rem + 2.5vw, 3.6rem); font-stretch: 118%; font-weight: 630; line-height: 1.02; letter-spacing: -0.02em; }
.t-h3 { font-size: clamp(1.2rem, 1rem + .6vw, 1.55rem); font-stretch: 108%; font-weight: 620; line-height: 1.15; }
.lead { font-size: clamp(1.08rem, 1rem + .35vw, 1.3rem); line-height: 1.55; color: var(--ink-80); max-width: 36em; }
.ann { font-style: italic; font-weight: 500; font-stretch: 72%; font-size: .9rem; letter-spacing: .01em; color: var(--ink-60); }
.ann-red { color: var(--red-text); }
.num { font-stretch: 125%; font-weight: 250; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--ink-60); }

/* links in running text: underline ruled in from the left */
.tl { text-decoration: none; background-image: linear-gradient(var(--red), var(--red)), linear-gradient(var(--ink-30), var(--ink-30)); background-size: 0% 1.5px, 100% 1px; background-position: 0 100%, 0 100%; background-repeat: no-repeat; transition: background-size .45s var(--ease-draft); padding-bottom: 1px; }
.tl:hover, .tl:focus-visible { background-size: 100% 1.5px, 100% 1px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: calc(var(--gutter) + var(--frame)); }
.section { position: relative; padding-block: clamp(84px, 11vw, 168px); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 860px; }
.section-head p { margin: 0; }

/* section-cut marker: identifies a section on the sheet (A-A, B-B ...) */
.cut { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-60); }
.cut svg { width: 34px; height: 34px; overflow: visible; }
.cut .cut-c { fill: var(--paper); stroke: var(--ink); stroke-width: 1.4; }
.cut .cut-a { fill: var(--red); }
.cut .cut-t { font: 650 11px var(--font); font-stretch: 85%; fill: var(--ink); }

/* ---------- sheet frame + zones (desktop) ---------- */
.frame { position: fixed; inset: 0; pointer-events: none; z-index: 60; display: none; }
@media (min-width: 1100px) { .frame { display: block; } }
.frame::before { content: ''; position: absolute; inset: var(--frame); border: 1px solid var(--ink-30); }
.frame-row { position: absolute; display: flex; font: italic 500 10px/1 var(--font); font-stretch: 72%; color: var(--ink-60); }
.frame-top { left: var(--frame); right: var(--frame); top: 0; height: var(--frame); }
.frame-bottom { left: var(--frame); right: var(--frame); bottom: 0; height: var(--frame); }
.frame-left { top: var(--frame); bottom: var(--frame); left: 0; width: var(--frame); flex-direction: column; }
.frame-right { top: var(--frame); bottom: var(--frame); right: 0; width: var(--frame); flex-direction: column; }
.frame-row span { flex: 1; display: grid; place-items: center; position: relative; transition: color .25s, background-color .25s; }
.frame-top span + span::before, .frame-bottom span + span::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--ink-30); }
.frame-left span + span::before, .frame-right span + span::before { content: ''; position: absolute; top: 0; left: 4px; right: 4px; height: 1px; background: var(--ink-30); }
.frame-row span.on { color: var(--red-text); background: rgba(240, 65, 42, .1); font-weight: 700; }
.frame-coords { position: absolute; right: calc(var(--frame) + 10px); bottom: calc(var(--frame) + 8px); font: italic 500 11px/1 var(--font); font-stretch: 72%; color: var(--ink-60); background: var(--paper); padding: 4px 6px; border: 1px solid var(--grid-major); }

/* ---------- crosshair cursor ---------- */
.xhair { position: fixed; inset: 0; pointer-events: none; z-index: 70; opacity: 0; transition: opacity .3s; }
.xhair.on { opacity: 1; }
.xh-h, .xh-v { position: absolute; background: var(--npb); opacity: .55; will-change: transform; }
.xh-h { left: 0; right: 0; top: 0; height: 1px; }
.xh-v { top: 0; bottom: 0; left: 0; width: 1px; }
.xh-ring { position: absolute; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 1.5px solid var(--red); border-radius: 50%; transform: scale(.3); opacity: 0; transition: transform .3s var(--ease-snap), opacity .2s; }
.xhair.hot .xh-ring { opacity: 1; }
.xh-tag { position: absolute; left: 0; top: 0; padding: 3px 6px; background: var(--red); color: #fff; font: italic 550 11px/1.2 var(--font); font-stretch: 72%; white-space: nowrap; will-change: transform; }
.xhair.hot .xh-h, .xhair.hot .xh-v { background: var(--red); opacity: .35; }
@media (hover: none), (pointer: coarse) { .xhair { display: none; } body { cursor: auto; } }

/* ---------- header ---------- */
.hdr { position: fixed; top: var(--frame); left: var(--frame); right: var(--frame); z-index: 50; height: var(--header-h); transition: transform .5s var(--ease-draft), background-color .3s, box-shadow .3s; }
.hdr.scrolled { background: rgba(252, 253, 254, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 1px 0 var(--grid-major); }
.hdr.hide { transform: translateY(calc(-100% - var(--frame) - 2px)); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 28px; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.logo { display: inline-flex; align-items: center; text-decoration: none; margin-right: auto; padding: 6px 0; }
.logo svg { width: 150px; height: auto; overflow: visible; display: block; }
.lg-ink { fill: var(--ink); }
.lg-red { fill: var(--red); }
.lg-st { fill: none; stroke: var(--ink); stroke-width: 4.4; }
.lg-cn { fill: none; stroke: var(--npb); stroke-width: .8; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 15.5px; font-weight: 550; font-stretch: 108%; text-decoration: none; background: none; border: 0; }
.nav-link .caret { width: 10px; height: 10px; transition: transform .35s var(--ease-snap); }
.nav-link[aria-expanded="true"] .caret { transform: rotate(180deg); }
.nav-link::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 1.5px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-draft); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after, .nav-link.cur::after { transform: scaleX(1); }
.svc { position: relative; }
.svc-menu { position: absolute; top: calc(100% + 10px); left: -16px; width: 420px; padding: 10px; display: grid; gap: 2px; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .35s var(--ease-draft), visibility 0s .35s; }
.svc-menu::before, .cookie::before { content: ''; position: absolute; inset: 7px -8px -8px 7px; z-index: -1; background: var(--hatch-bg); border: 1px solid var(--ink-30); }
.svc-menu::after, .cookie::after { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--paper); border: 1.5px solid var(--ink); }
.svc.open .svc-menu { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .35s var(--ease-draft), visibility 0s; }
.svc-item { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 14px; padding: 10px 12px; text-decoration: none; border: 1px solid transparent; transition: background-color .2s, border-color .2s; }
.svc-item:hover, .svc-item:focus-visible { background: var(--hl-soft); border-color: var(--ink-30); }
.svc-item svg { width: 46px; height: 40px; overflow: visible; }
.svc-item b { display: block; font-weight: 620; font-stretch: 106%; font-size: 15.5px; line-height: 1.25; }
.svc-item small { display: block; color: var(--ink-60); font-size: 13.5px; line-height: 1.35; }
.svc-item .p { font-style: italic; font-stretch: 72%; font-weight: 550; font-size: 14px; color: var(--red-text); white-space: nowrap; }
:root { --hatch-bg: repeating-linear-gradient(-45deg, transparent 0 4px, var(--grid-major) 4px 5px); }

/* buttons */
.btn { --bx: 0px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 24px; min-height: 52px; font-size: 16px; font-weight: 650; font-stretch: 112%; line-height: 1; text-decoration: none; color: var(--ink); background: var(--hl); border: 1.5px solid var(--ink); transition: background-color .25s, color .25s; isolation: isolate; white-space: nowrap; }
.btn .cm { position: absolute; width: 9px; height: 9px; border: 0 solid var(--ink); transition: transform .4s var(--ease-snap), border-color .25s; pointer-events: none; }
.btn .cm-tl { left: -7px; top: -7px; border-left-width: 1.5px; border-top-width: 1.5px; transform: translate(-5px, -5px); }
.btn .cm-tr { right: -7px; top: -7px; border-right-width: 1.5px; border-top-width: 1.5px; transform: translate(5px, -5px); }
.btn .cm-bl { left: -7px; bottom: -7px; border-left-width: 1.5px; border-bottom-width: 1.5px; transform: translate(-5px, 5px); }
.btn .cm-br { right: -7px; bottom: -7px; border-right-width: 1.5px; border-bottom-width: 1.5px; transform: translate(5px, 5px); }
.btn .cm { opacity: .45; }
.btn-sm .cm { opacity: 0; }
.btn:hover .cm, .btn:focus-visible .cm { transform: none; opacity: 1; border-color: var(--red); }
.btn:hover, .btn:focus-visible { background: var(--ink); color: var(--hl); }
.btn:active { transform: scale(.97); }
.btn-label { position: relative; display: inline-block; }
.btn-sm { padding: 11px 16px; min-height: 42px; font-size: 14.5px; }
.btn-ghost { background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--ink); color: var(--paper); }
.link-plain { font-weight: 600; font-stretch: 108%; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; padding: 8px 0; }
.link-plain .tl { padding-bottom: 2px; }

.menu-btn { display: none; align-items: center; gap: 10px; padding: 10px 12px; margin-right: -12px; background: none; border: 0; font-weight: 600; font-stretch: 108%; font-size: 15px; }
.menu-btn .mb { position: relative; width: 26px; height: 14px; }
.menu-btn .mb i { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); transition: transform .45s var(--ease-snap), top .3s; }
.menu-btn .mb i:first-child { top: 2px; }
.menu-btn .mb i:last-child { top: 10px; right: 8px; }
.menu-open .menu-btn .mb i:first-child { top: 6px; transform: rotate(45deg); }
.menu-open .menu-btn .mb i:last-child { top: 6px; right: 0; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .nav, .hdr .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .logo svg { width: 132px; }
  :root { --header-h: 66px; }
}

/* mobile menu sheet */
.mnav { position: fixed; inset: 0; z-index: 45; display: none; pointer-events: none; }
.mnav.ready { display: block; }
.mnav-bg { position: absolute; inset: 0; display: flex; }
.mnav-bg i { flex: 1; background: var(--paper); border-right: 1px solid var(--grid-major); transform-origin: top; transform: scaleY(0); }
.mnav-in { position: relative; height: 100%; display: flex; flex-direction: column; padding: calc(var(--header-h) + 28px) var(--gutter) 28px; overflow-y: auto; }
.menu-open .mnav { pointer-events: auto; }
.mnav-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mnav-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--grid-major); text-decoration: none; font-size: clamp(1.6rem, 7vw, 2.3rem); font-weight: 620; font-stretch: 116%; line-height: 1.1; }
.mnav-list a small { font-size: .95rem; font-style: italic; font-stretch: 72%; font-weight: 550; color: var(--red-text); white-space: nowrap; }
.mnav-foot { margin-top: auto; padding-top: 28px; display: grid; gap: 14px; }
.mnav-item { opacity: 0; }

/* ---------- page transition: sheet change ---------- */
.tx { position: fixed; inset: 0; z-index: 1000; pointer-events: none; visibility: hidden; }
.js .tx { visibility: visible; animation: tx-failsafe 0s 5s forwards; }
.tx.done { visibility: hidden; animation: none; }
.tx.busy { pointer-events: auto; visibility: visible; animation: none; }
@keyframes tx-failsafe { to { visibility: hidden; } }
.tx-strips { position: absolute; inset: 0; display: flex; }
.tx-strips i { flex: 1; background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; border-right: 1px solid var(--grid-major); transform-origin: bottom; }
.tx-strips i:last-child { border-right: 0; }
.tx-pen { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; }
.tx-label { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: 8px; justify-items: center; width: min(90vw, 760px); }
.tx-sheet { font: italic 550 15px/1 var(--font); font-stretch: 72%; color: var(--red-text); }
.tx-title { font-size: clamp(1.8rem, 5vw, 3.6rem); font-weight: 640; font-stretch: 120%; line-height: 1; letter-spacing: -0.02em; }
.tx-mark { width: 56px; height: 56px; margin-bottom: 6px; }

/* ---------- cookie note ---------- */
.cookie { position: fixed; right: calc(var(--frame) + 22px); bottom: calc(var(--frame) + 22px); z-index: 80; width: min(350px, calc(100vw - 32px)); padding: 20px 20px 16px; visibility: hidden; }
.cookie .tape { position: absolute; top: -11px; width: 64px; height: 20px; background: rgba(255, 224, 74, .78); border-left: 1px dashed rgba(24, 33, 74, .25); border-right: 1px dashed rgba(24, 33, 74, .25); }
.cookie .tape-1 { left: 18px; transform: rotate(-4deg); }
.cookie .tape-2 { right: 22px; transform: rotate(5deg); }
.cookie .tape { z-index: 1; }
.cookie h2 { font-size: 1.08rem; font-stretch: 112%; font-weight: 650; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.cookie p { font-size: 14px; line-height: 1.5; color: var(--ink-80); margin: 0 0 14px; }
.cookie-row { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie .btn { min-height: 42px; padding: 11px 18px; font-size: 14.5px; }
.cookie-gear { width: 22px; height: 22px; flex: none; }
.cookie { width: min(330px, calc(100vw - 32px)); padding: 18px 18px 14px; }
.cookie p { font-size: 13.5px; margin-bottom: 12px; }
.cookie .btn { min-height: 38px; padding: 9px 16px; font-size: 14px; }
/* phones: a compact strip, short message on the left, buttons stacked on the right */
@media (max-width: 640px) {
  .cookie { left: 10px; right: 14px; width: auto; bottom: 12px; padding: 11px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
  .cookie h2 { grid-column: 1; font-size: .9rem; margin: 0; gap: 7px; }
  .cookie-gear { width: 16px; height: 16px; }
  .cookie p { grid-column: 1; font-size: 12.5px; line-height: 1.35; margin: 0; padding-left: 23px; }
  .cookie .ck-more { display: none; }
  .cookie-row { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; flex-wrap: nowrap; gap: 6px; }
  .cookie .btn { min-height: 30px; padding: 5px 12px; font-size: 13px; justify-content: center; }
  .cookie .tape { width: 42px; height: 14px; top: -8px; }
}

/* ---------- footer: drawing title block ---------- */
.ftr { position: relative; padding: clamp(60px, 8vw, 110px) 0 calc(var(--frame) + 28px); }
.tb { border: 1.5px solid var(--ink); background: var(--paper); display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.1fr; }
.tb > * { border-right: 1px solid var(--ink-30); border-bottom: 1px solid var(--ink-30); padding: 20px 22px; min-width: 0; }
.tb-k { display: block; font: italic 500 12.5px/1.2 var(--font); font-stretch: 72%; color: var(--ink-60); margin-bottom: 8px; }
.tb-brand { grid-row: span 2; display: flex; flex-direction: column; gap: 18px; }
.tb-brand svg { width: 170px; height: auto; }
.tb-brand p { font-size: 15px; color: var(--ink-80); margin: 0; max-width: 30ch; }
.tb ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tb li a { text-decoration: none; font-size: 15px; }
.tb address { font-style: normal; font-size: 15px; line-height: 1.55; }
.tb-meta { display: grid; grid-template-columns: repeat(4, 1fr); grid-column: 2 / -1; padding: 0; }
.tb-meta > div { padding: 14px 22px; border-right: 1px solid var(--ink-30); font-size: 15px; font-weight: 550; font-stretch: 108%; }
.tb-meta > div:last-child { border-right: 0; }
.tb-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 14px; color: var(--ink-60); border-bottom: 0; border-right: 0; }
.tb > :nth-child(4) { border-right: 0; }
.clock { display: inline-flex; align-items: center; gap: 10px; }
.clock svg { width: 22px; height: 22px; flex: none; }
.clock .ck-face { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.clock .ck-h, .clock .ck-m { stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; }
.clock .ck-s { stroke: var(--red); stroke-width: 1; stroke-linecap: round; }
.scalebar { display: inline-flex; height: 8px; width: 80px; border: 1px solid var(--ink); vertical-align: middle; margin-left: 8px; overflow: hidden; }
.scalebar i { flex: 1; background: var(--ink); }
.scalebar i:nth-child(even) { background: transparent; }
@media (max-width: 980px) {
  .tb { grid-template-columns: 1fr 1fr; }
  .tb-brand { grid-row: auto; grid-column: 1 / -1; }
  .tb > :nth-child(4) { border-right: 1px solid var(--ink-30); }
  .tb > :nth-child(odd):not(.tb-brand) { border-right: 0; }
  .tb-meta { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .tb-meta > div:nth-child(2) { border-right: 0; }
  .tb-meta > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink-30); }
}
@media (max-width: 560px) {
  .tb { grid-template-columns: minmax(0, 1fr); }
  .tb > * { border-right: 0 !important; }
}

/* ---------- reveal helpers ---------- */
.ink-in .ch { display: inline-block; }
.line-mask { overflow: clip; display: block; padding-bottom: .06em; margin-bottom: -.06em; }
.mnav-list a[aria-current] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 3px; text-underline-offset: 6px; }
