/* About pages (shared/about-page.css; was shared/tim-halaman.css until 29 Oct 2026): the Tim Kami page and Mitra Kami.
   Tim Kami (tim.html), the "Dub 2" layout (after dub.co/about; docs/research/team-page-research.md):
   the Kabar / Proyek column (min(1300, 100% - 2 gutters)) between thin guide lines, full-width rules between the parts,
   left-aligned heads with a short description on the right, a photo mosaic, 4 people per row on colour blocks (staff
   cut-outs rise above the block) with line drawings drawn in on hover / focus, a white profile window, and a tinted
   "working together" band with a strip of photos that loops, drifts and can be dragged (assets/components/pages/tim/tim-halaman.js; the strip's look:
   shared/photo-strip.css).
   Load after dasar.css (font and colour variables). In shared/ because mitra.html loads it too, for the same layout. */
body[data-halaman="tim"]{background:#fff}   /* white page */
.tk-halaman{--tk-tepi:var(--nk-tepi);padding:calc(var(--head-h) + 40px) 0 0;overflow-x:clip;font-family:var(--nk-font);color:var(--nk-ink)}
.tk-halaman [hidden],.tk-profil [hidden]{display:none!important}

/* ---------- column: the content edges of the Kabar and Proyek lists, thin guide lines 20 px outside them ---------- */
.tk-badan{box-sizing:content-box;width:min(var(--nk-wadah,1300px),100% - 2 * var(--tk-tepi));margin:0 auto;padding:0 19px;border-inline:1px solid var(--nk-line)}
.tk-isi{display:flex;flex-direction:column;min-width:0}
/* the parts after the head: a full-width rule on top (the lines run past the column to the screen edges) */
.tk-panel,.tk-bersama{position:relative;margin:0;padding:56px 0 80px}   /* anchor offset: html scroll-padding-top in dasar.css (R9) */
.tk-panel::before,.tk-bersama::before,.tk-bersama::after{content:"";position:absolute;top:0;left:-100vmax;right:-100vmax;border-top:1px solid var(--nk-line);pointer-events:none}

/* ---------- heads: title left, a short description right (page head, sections, band); one column on phones ---------- */
.tk-bagian{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;align-items:start}
.tk-bagian__teks{margin:0;max-width:480px;font:400 18px/28px var(--nk-font);color:var(--nk-ink-soft);text-wrap:pretty}   /* --fs-lede */
/* page head: open head, left-aligned at the gutter (styling guide §9.2) */
.tk-kepala{margin:0 0 40px}
.tk-kepala__judul{max-width:640px}   /* type: .nk-judul-halaman (shared/page-head.css) */
.tk-kepala .tk-bagian__teks{padding-top:6px}   /* the sentence starts level with the first line of the headline */
.tk-panel__judul{margin:0;font:600 32px/40px var(--nk-font);letter-spacing:-.02em;color:var(--nk-ink);text-wrap:balance;overflow-wrap:anywhere}

/* ---------- photo mosaic under the head: one large photo, two stacked on the right (Dub: 659 + 361 of 1040) ---------- */
.tk-mozaik{display:grid;grid-template-columns:minmax(0,1.83fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:20px;aspect-ratio:2.35/1;margin:0 0 56px}
.tk-mozaik figure{margin:0;min-height:0}
.tk-mozaik figure:first-child{grid-row:1/3}
.tk-mozaik[data-jumlah="1"]{grid-template-columns:minmax(0,1fr)}
.tk-mozaik[data-jumlah="2"] figure{grid-row:1/3}
.tk-mozaik img{display:block;width:100%;height:100%;object-fit:cover;border:1px solid var(--nk-line);border-radius:12px;box-sizing:border-box;background:var(--nk-paper)}   /* --r-lg */

/* ---------- people: 4 per row, 48 px gaps; the last row starts on the left ---------- */
.tk-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:48px;margin:48px 0 0;padding:0;list-style:none}
.tk-item{min-width:0}

/* ---------- a card: block + person + drawings, name and role below. The whole card is the button. ---------- */
.tk-kartu{display:flex;flex-direction:column;align-items:flex-start;width:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.tk-kartu:focus-visible{outline:3px solid var(--nk-forest);outline-offset:3px;border-radius:8px}
.tk-kartu__media,.tk-profil__media{position:relative;display:block;width:100%;aspect-ratio:1/1.2}
.tk-kartu--foto .tk-kartu__media,.tk-profil__media.tk-kartu--foto{aspect-ratio:1/1;border-radius:8px;overflow:hidden}
/* a list that mixes the two (a person with their own photo style, 18 Nov 2026): a photo card gets the cut-out's headroom
   above it (20% of the width: 1.2 - 1), so every block, name and role in a row lines up */
.tk-grid:has(.tk-kartu--potong) .tk-kartu--foto{padding-top:20%}
.tk-blok{position:absolute;left:0;right:0;bottom:0;height:83.333%;border-radius:8px;background:linear-gradient(160deg,color-mix(in srgb,var(--tk-warna) 62%,#fff) 0%,var(--tk-warna) 48%,color-mix(in srgb,var(--tk-warna) 82%,#3B2A14) 100%)}   /* --r-md */
.tk-kartu--foto .tk-blok{height:100%}
.tk-pose1,.tk-pose2{position:absolute;left:0;bottom:0;width:100%;height:100%;object-fit:contain;object-position:50% 100%}
.tk-kartu--foto .tk-pose1{object-fit:cover;object-position:50% 25%}
.tk-pose2{opacity:0}
.tk-inisial{position:absolute;left:0;right:0;bottom:0;height:83.333%;display:grid;place-items:center;font:700 48px/52px var(--nk-font);color:var(--nk-forest-deep)}   /* --fs-h1 */
.tk-kartu--foto .tk-inisial{height:100%}
.tk-kartu__nama{margin-top:16px;font:600 16px/24px var(--nk-font);color:var(--nk-ink);overflow-wrap:anywhere}
.tk-kartu__jabatan{margin-top:2px;font:400 14px/20px var(--nk-font);color:var(--nk-ink-soft);overflow-wrap:anywhere}   /* --fs-sm */
.tk-kartu:hover .tk-kartu__nama,.tk-kartu:focus-visible .tk-kartu__nama{color:var(--nk-forest)}

/* line drawings: behind a staff cut-out (the person stays in front), over a leadership photo */
.tk-coret{position:absolute;left:-6%;right:-6%;bottom:-4%;height:92%;width:112%;overflow:visible;pointer-events:none}
.tk-kartu--potong .tk-coret{z-index:0}
.tk-kartu--potong .tk-pose1,.tk-kartu--potong .tk-pose2{z-index:1}
.tk-kartu--foto .tk-coret{z-index:2}
.tk-coret{opacity:0}
.tk-kartu:hover .tk-coret,.tk-kartu:focus-visible .tk-coret{opacity:1}
/* no vector-effect here: non-scaling strokes break the pathLength dash trick (the drawings showed half drawn) */
.tk-coret path{fill:none;stroke:var(--nk-forest-deep);stroke-width:.55;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:1}
.tk-kartu--foto .tk-coret path{stroke:#fff}
.tk-coret .isi{fill:var(--nk-ochre);opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(.3)}
.tk-kartu:hover .tk-coret path,.tk-kartu:focus-visible .tk-coret path{stroke-dashoffset:0}
.tk-kartu:hover .tk-coret .isi,.tk-kartu:focus-visible .tk-coret .isi{opacity:1;transform:scale(1)}
@media (hover:hover){
  .tk-kartu--dua:hover .tk-pose1{opacity:0}
  .tk-kartu--dua:hover .tk-pose2{opacity:1}
}

/* ---------- "working together" band: tinted to the screen edges, rules above and below, then the photo strip ---------- */
.tk-bersama{padding-bottom:96px;background:var(--nk-paper);box-shadow:0 0 0 100vmax var(--nk-paper);clip-path:inset(0 -100vmax)}
.tk-bersama::after{top:auto;bottom:0}
/* the photo strip (.tk-jalur): shared/photo-strip.css (18 Nov 2026) */

/* ---------- profile window: content dialog (§9.8), white with a thin line ---------- */
/* .nk-dialog--isi (dialog.css) gives the size, corners, shadow, backdrop, the full-screen sheet ≤760 and the opening.
   Here: no padding on the window itself (the column inside scrolls) */
.tk-profil{--tk-warna:#CADFA9;padding:0;background:#fff;border:1px solid var(--nk-line);border-radius:12px;overflow:hidden}   /* --r-lg */
.tk-profil__isi{display:grid;grid-template-columns:260px minmax(0,1fr);gap:40px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);padding:32px;box-sizing:border-box;overflow:auto;overscroll-behavior:contain}   /* --sp-8 */
.tk-profil__media{width:100%}
/* name and role at the top of the text column, then a thin line before the bio */
.tk-profil__nama{margin:0;padding-right:40px;font:600 28px/36px var(--nk-font);letter-spacing:-.02em;text-wrap:balance;overflow-wrap:anywhere}   /* --fs-h3 (dialog title); R11; clear of the × */
.tk-profil__jabatan{margin:4px 0 24px;padding-bottom:24px;border-bottom:1px solid var(--nk-line);font:400 16px/24px var(--nk-font);color:var(--nk-ink-soft)}   /* --sp-6 */
.tk-profil__kanan{display:flex;flex-direction:column;padding-top:32px;min-width:0}   /* text starts below the close button (16 + 48); a column, so the links sit at its foot */
/* the link buttons (LinkedIn, email, web): the lower right corner of the profile, below the bio */
.tk-profil__tautan{display:flex;justify-content:flex-end;gap:8px;margin-top:auto;padding-top:24px}   /* --sp-2, --sp-6 */
/* each link: Kontak's "Ikuti kami" button (home/contact/contact.css .kontak-sos a), so the two look the same */
.tk-profil__tautan a{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;color:var(--ink);transition:background-color .3s ease,color .3s ease,border-color .3s ease}   /* --dur-2 */
.tk-profil__tautan a svg{width:20px;height:20px}
.tk-profil__tautan a:hover{background:var(--forest);border-color:var(--forest);color:var(--paper)}
.tk-profil__tautan a:focus-visible{outline:3px solid var(--forest);outline-offset:3px}   /* §9.14 (Kontak keeps its designer 2px) */
@media (pointer:coarse){ .tk-profil__tautan a{width:44px;height:44px} }   /* touch target */
.tk-profil__bio p{margin:0 0 16px;font:400 18px/30px var(--nk-font);color:var(--nk-ink-soft);text-wrap:pretty}   /* --fs-article */
/* a link in a bio (tim-halaman.js kaya()): running text, styling guide §9.4 */
.tk-profil__bio a{color:var(--nk-forest);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.tk-profil__bio a:hover{color:var(--nk-forest-deep)}
.tk-profil__bio a:focus-visible{outline:3px solid var(--nk-forest);outline-offset:2px;border-radius:var(--r-xs)}
/* close: an icon-only ghost button, .nk-btn + .nk-dialog__tutup (button.css, dialog.css) */

/* ---------- smaller screens ---------- */
@media (max-width:1100px){
  .tk-inisial{font-size:40px;line-height:44px}
}
@media (max-width:899px){
  .tk-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 24px}   /* 3 per row */
}
@media (max-width:760px){
  .tk-halaman{padding-top:calc(var(--head-h) + 32px)}
  .tk-badan{padding:0;border-inline:0}   /* no guide lines on phones: the 16 px gutter only */
  .tk-bagian{grid-template-columns:minmax(0,1fr);gap:16px}
  .tk-bagian__teks{font-size:16px;line-height:24px}
  .tk-kepala{margin-bottom:32px}
  .tk-kepala .tk-bagian__teks{padding-top:0}
  .tk-panel__judul{font-size:28px;line-height:36px}
  .tk-panel{padding:48px 0 56px}
  .tk-bersama{padding:48px 0 64px}
  .tk-grid{margin-top:32px}
  .tk-inisial{font-size:32px;line-height:38px}
  /* mosaic: the large photo on top, the other two side by side below */
  .tk-mozaik{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto auto;aspect-ratio:auto;gap:12px;margin-bottom:40px}
  .tk-mozaik figure,.tk-mozaik[data-jumlah="2"] figure{grid-row:auto;aspect-ratio:4/3}
  .tk-mozaik figure:first-child{grid-column:1/-1}
  /* profile: a full-screen sheet (dialog.css); the column inside */
  .tk-profil{border:0;border-radius:0}
  .tk-profil__isi{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr;gap:20px;height:100%;max-height:100vh;max-height:100dvh;
    padding:calc(20px + env(safe-area-inset-top)) calc(20px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(20px + env(safe-area-inset-left))}
  .tk-profil__media{width:62%;max-width:240px}
  .tk-profil__nama{padding-right:0;font-size:24px;line-height:32px}
  .tk-profil__jabatan{margin-bottom:20px;padding-bottom:20px}
  .tk-profil__kanan{padding-top:0}   /* fills the rest of the full-screen sheet (grid rows auto 1fr), so the link buttons sit at the bottom right */
  .tk-profil__bio p{font-size:17px;line-height:28px}
}
@media (max-width:599px){
  .tk-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px}   /* card-grid column step: 2 per row */
}

/* ---------- motion: html.nk-gerak = the system allows motion, or ?gerak=1 (assets/components/shared/dialog.js) ---------- */
html.nk-gerak .tk-coret path{transition:stroke-dashoffset .7s cubic-bezier(.4,0,.2,1)}   /* line drawing: illustration timing */
html.nk-gerak .tk-coret .isi{transition:opacity .3s ease .3s,transform .3s cubic-bezier(.3,1.6,.5,1) .3s}   /* --dur-2; overshoot curve is part of the drawing */
html.nk-gerak .tk-pose1,html.nk-gerak .tk-pose2{transition:opacity .3s ease}   /* --dur-2 */
html.nk-gerak .tk-kartu .tk-blok{transition:transform .3s var(--ease,cubic-bezier(.32,.72,0,1))}
html.nk-gerak .tk-kartu:hover .tk-blok{transform:translateY(-2px)}
