/* Trikorporation: shared layout for the category and project pages of odtriki.com (loaded after tk-page.css) */
body { margin: 0; background: var(--surface-100); color: var(--ink); font-family: var(--font-sans); }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 64rem; }
.hero { padding: clamp(2.5rem, 8vw, 5rem) 0 2rem; }
.hero.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 46rem) { .hero.split { grid-template-columns: 1fr auto; } }
.hero-tile { width: clamp(6rem, 16vw, 9.5rem); height: auto; border-radius: 22%; }
.back { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .9rem; color: var(--brand-strong); text-decoration: none; margin: 0 0 1.1rem; }
.back:hover { text-decoration: underline; text-underline-offset: 3px; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-strong); margin: 0 0 .75rem; }
h1 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em; line-height: .95; font-size: clamp(2.6rem, 9vw, 6rem); margin: 0 0 1.25rem; }
h1.name { font-size: clamp(2.2rem, 7vw, 4.4rem); line-height: 1; }
h2 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.6rem, 3.6vw, 2.3rem); margin: 2.5rem 0 .75rem; line-height: 1.05; }
h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; font-size: 1.25rem; margin: 0 0 .4rem; }
.lede { font-size: 1.25rem; max-width: 38rem; opacity: .88; margin: 0 0 1.5rem; }
.pill { display: inline-block; background: var(--lime); color: #0B3D2E; font-weight: 700; padding: .5rem 1.1rem; border-radius: 999px; margin: 0 .4rem .4rem 0; }
.cta { display: inline-block; background: var(--forest); color: var(--on-forest); font-weight: 700; padding: .55rem 1.2rem; border-radius: 999px; text-decoration: none; margin: 0 .5rem .5rem 0; }
.cta:hover { background: var(--brand-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .cta { background: var(--lime); color: #0B3D2E; } .cta:hover { background: #fff; } }
.pcards { list-style: none; margin: 1rem 0 5rem; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.pcard { display: flex; flex-direction: column; gap: .75rem; color: inherit; text-decoration: none; height: 100%; }
.pcard .shot { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--hairline); background: var(--surface-200); aspect-ratio: 16 / 10; }
.pcard .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard h3 { margin: 0; }
.pcard p { margin: 0; opacity: .85; }
.pcard .tagwip { align-self: flex-start; font-size: .75rem; font-weight: 700; padding: .15rem .6rem; border-radius: 999px; background: var(--surface-200); }
@media (prefers-reduced-motion: no-preference) { .pcard .shot { transition: translate .2s ease; } .pcard:hover .shot { translate: 0 -4px; } }
.pcard:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 4px; border-radius: 16px; }
.proj { display: grid; gap: 2rem; grid-template-columns: 1fr; margin: 2rem 0 3rem; }
@media (min-width: 52rem) { .proj { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.shot-fig { margin: 0; }
.shot-fig img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; border: 1px solid var(--hairline); display: block; }
.shot-fig figcaption { margin-top: .6rem; font-size: .9rem; opacity: .75; }
.proj p { max-width: 34rem; margin: 0 0 1rem; opacity: .9; }
.facts { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 36rem; }
.facts li { margin: .45rem 0; }
.steps { list-style: none; margin: 1.5rem 0 3rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { background: var(--surface-200); border-radius: 18px; padding: 1.4rem; }
.steps b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.steps p { margin: 0; opacity: .85; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.tags li { background: var(--surface-200); border-radius: 999px; padding: .25rem .8rem; font-size: .85rem; font-weight: 600; }
.note { background: var(--surface-200); border-radius: 14px; padding: 1rem 1.2rem; max-width: 40rem; margin: 0 0 3rem; }
.code { background: var(--forest); color: var(--on-forest); border-radius: 14px; padding: 1rem 1.2rem; max-width: 40rem; overflow-x: auto; font-size: .92rem; }
.stories { list-style: none; margin: 2rem 0 5rem; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); }
.story a { display: flex; flex-direction: column; gap: .6rem; color: inherit; text-decoration: none; }
.story img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; border: 1px solid var(--hairline); background: var(--surface-200); }
.story span { font-family: var(--font-display); font-weight: 800; font-size: .98rem; letter-spacing: -.01em; line-height: 1.2; }
.ex { margin: 0 0 3rem; max-width: 34rem; }
.ex img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--hairline); display: block; }
.ex figcaption { margin-top: .6rem; font-size: .9rem; opacity: .75; }
.rules { max-width: 40rem; margin: 0 0 3rem; padding-left: 1.2rem; }
.rules li { margin: .4rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wm { --trik: var(--brand-strong); --flag: var(--brand); }
.wm-t { display: inline-block; height: .76em; width: auto; vertical-align: baseline; margin-right: -.01em; }
.wm-t path { fill: var(--trik); }
.wm-t .flag { fill: var(--flag); }
.wm-k { color: var(--trik); }
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin: 3rem 0 5rem; }

.pcard .shot.term { background: var(--forest); color: var(--on-forest); padding: .9rem 1rem; }
.pcard .shot.term pre { margin: 0; font: .72rem/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow: hidden; height: 100%; }
h2 + .pcards { margin-top: 1rem; }
