/* The plain HTML beats that sit between the glass sections: have it built (4), the three ways to be
   taught and accompanied (5), and the contact form (6). They carry the readable "what you get" text;
   the impression layer (glass, city, lens) stays in its own files and can be swapped without touching these. */
:root { --on-ink:#f4f4f2; --on-ink-muted:#a9a9a4; --gut:clamp(20px,6vw,88px); --ease:cubic-bezier(.16,1,.3,1); }
main h2, main h3 { text-wrap:balance; }
main svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; flex:none; }

.ctas.three { flex-wrap:wrap; max-width:min(560px, calc(100vw - 2 * var(--gut))); }
.draft { display:inline-block; font-size:12px; font-weight:500; line-height:1.5; color:var(--muted); border:1px dashed #b9b9b4; border-radius:999px; padding:0 9px; margin-left:6px; white-space:nowrap; vertical-align:2px; }

.ask { display:inline-flex; align-items:center; gap:10px; min-height:48px; margin-top:32px; padding:0 22px; border-radius:999px; background:var(--ink); color:#fff; font-weight:600; font-size:15px; text-decoration:none; pointer-events:auto; }
.ask.light { background:var(--on-ink); color:var(--ink); }
.ask svg, .ask-link svg { transition:transform .3s var(--ease); }
.ask:hover svg, .ask-link:hover svg { transform:translateX(3px); }
.ask-link { display:inline-flex; align-items:center; gap:10px; margin-top:20px; font-weight:600; font-size:15px; color:var(--ink); text-decoration:none; border-bottom:1px solid var(--ink); padding-bottom:4px; }

.facts { margin:0; border-top:1px solid var(--line); }
.facts > div { display:grid; grid-template-columns:150px minmax(0,1fr); gap:6px 24px; padding:18px 0; border-bottom:1px solid var(--line); }
.facts dt { font-weight:600; }
.facts dd { margin:0; font-size:18px; line-height:1.45; max-width:52ch; }
.facts.on-ink, .facts.on-ink > div { border-color:#ffffff2a; }
.facts.on-ink .draft { color:var(--on-ink-muted); border-color:#ffffff55; }

/* 4. Custom systems: an ink plane with a straight top edge (the diagonal was dropped 2026-11-27, Meidy: "lurus aja"). One step down from the products: scrolling holds the
   segment for about one screen while five jobs slide by, each with a small coded screen in monochrome.
   overflow-x:clip (not hidden) keeps position:sticky working inside it. */
.built { --rule:#ffffff1f; --screen:#121214; position:relative; pointer-events:auto; background:var(--ink); color:var(--on-ink); padding:clamp(110px,12vw,170px) var(--gut); }
.built ::selection { background:var(--on-ink); color:var(--ink); }
.built :focus-visible { outline:2px solid var(--on-ink); outline-offset:4px; border-radius:2px; }
.built-head { display:grid; grid-template-columns:minmax(0,7fr) minmax(0,5fr); column-gap:clamp(28px,5vw,80px); align-items:end; }
.built-label { grid-column:1 / -1; margin:0 0 22px; font-size:13px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--on-ink-muted); }
.built-head h2 { margin:0; font-size:clamp(38px,4.6vw,4.5rem); font-weight:600; line-height:1; letter-spacing:-.04em; }
.built-sub { margin:0; font-size:18px; color:var(--on-ink-muted); max-width:46ch; }

.built .pin { position:relative; margin:clamp(24px,4vh,48px) calc(-1 * var(--gut)) 0; }
.built .sticky { position:sticky; top:0; height:100vh; display:flex; flex-direction:column; justify-content:center; gap:clamp(20px,3.2vh,36px); }
.built .bar { display:flex; align-items:center; gap:20px; padding:0 var(--gut); font-size:13px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--on-ink-muted); }
.built .bar .line { flex:1; height:1px; background:var(--rule); position:relative; max-width:420px; }
.built .bar .line i { position:absolute; inset:0; background:var(--on-ink); transform-origin:0 50%; transform:scaleX(var(--p,0)); }
.built .bar .count { font-variant-numeric:tabular-nums; letter-spacing:.06em; }
.built .track { display:flex; gap:clamp(20px,2.4vw,36px); padding:0 var(--gut); width:max-content; will-change:transform; list-style:none; margin:0; }
.built .work { flex:0 0 clamp(300px, 31vw, 460px); transition:opacity .6s var(--ease); }
.built.pinned .work:not(.live) { opacity:.42; }
.work-tag { margin:18px 0 0; font-size:12px; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:var(--on-ink-muted); }
.built .work h3 { margin:6px 0 0; font-size:clamp(22px,1.9vw,28px); font-weight:600; letter-spacing:-.03em; line-height:1.08; }
.work-desc { margin:8px 0 0; color:var(--on-ink-muted); max-width:42ch; }
.built .ask { margin-top:clamp(24px,4vh,48px); }

/* the small screens: coded UI fragments, monochrome, playing only on the live item */
.built .screen { position:relative; aspect-ratio:4 / 3; border-radius:8px; overflow:hidden; background:var(--screen); border:1px solid #ffffff17; box-shadow:0 30px 60px -36px #000; font:500 11px/1.3 "Inter Tight",system-ui,sans-serif; color:var(--on-ink-muted); font-variant-numeric:tabular-nums; }
.built .screen * { animation-play-state:paused !important; }
.built .live .screen * { animation-play-state:running !important; }

/* The on-orbit card: the radar picture from /satellite, a scan line passing over it, two dark vessels marked as it reaches them (6 s, CSS only). */
.v-orbit img { width:100%; height:100%; object-fit:cover; }
.v-orbit .scan { position:absolute; left:0; right:0; top:0; height:2px; z-index:1; background:#ffffffb3; box-shadow:0 0 18px 4px #ffffff40; animation:or-scan 6s linear infinite; }
.v-orbit .hit { position:absolute; z-index:1; width:15%; aspect-ratio:1; translate:-50% -50%; border:1.5px solid var(--on-ink); border-radius:2px; opacity:0; animation:6s linear infinite; }
.v-orbit .hit b { position:absolute; left:calc(100% + 6px); top:-1px; white-space:nowrap; font-weight:600; color:var(--on-ink); background:#121214cc; padding:2px 5px; border-radius:2px; }
.v-orbit .h1 { left:41.4%; top:29.2%; animation-name:or-hit1; } .v-orbit .h2 { left:55.4%; top:78.1%; animation-name:or-hit2; }
.v-orbit .steps { position:absolute; left:0; right:0; bottom:0; z-index:2; display:flex; gap:8px; padding:22px 14px 12px; white-space:nowrap; color:#ffffff66; background:linear-gradient(#12121400, #121214e6 45%, #121214f2); }
.v-orbit .steps i { font-style:normal; color:#ffffff40; }
.v-orbit .steps span { animation:6s linear infinite; }
.v-orbit .steps span:nth-of-type(1) { animation-name:or-s1; } .v-orbit .steps span:nth-of-type(2) { animation-name:or-s2; } .v-orbit .steps span:nth-of-type(3) { animation-name:or-s3; }
@keyframes or-scan { 0% { top:0; opacity:1; } 70% { top:100%; opacity:1; } 71%, 100% { top:100%; opacity:0; } }
@keyframes or-hit1 { 0%, 20% { opacity:0; } 21%, 97% { opacity:1; } 100% { opacity:0; } }
@keyframes or-hit2 { 0%, 55% { opacity:0; } 56%, 97% { opacity:1; } 100% { opacity:0; } }
@keyframes or-s1 { 0%, 20% { color:var(--on-ink); } 21%, 100% { color:#ffffff66; } }
@keyframes or-s2 { 0%, 20% { color:#ffffff66; } 21%, 70% { color:var(--on-ink); } 71%, 100% { color:#ffffff66; } }
@keyframes or-s3 { 0%, 70% { color:#ffffff66; } 71%, 100% { color:var(--on-ink); } }
@media (prefers-reduced-motion:reduce) { .v-orbit .scan { display:none; } .v-orbit .hit { opacity:1; } }

/* The radar and website cards: a 10 s video each; the step names follow its clock (sections.js). */
.v-sar video, .v-detect video { width:100%; height:100%; object-fit:cover; }
.v-sar .steps, .v-detect .steps { position:absolute; left:0; right:0; bottom:0; z-index:2; display:flex; gap:8px; padding:22px 14px 12px; white-space:nowrap; color:#ffffff66; background:linear-gradient(#12121400, #121214e6 45%, #121214f2); }
.v-sar .steps i, .v-detect .steps i { font-style:normal; color:#ffffff40; }
.v-sar[data-step="0"] .steps span:nth-of-type(1), .v-sar[data-step="1"] .steps span:nth-of-type(2), .v-sar[data-step="2"] .steps span:nth-of-type(3), .v-sar[data-step="3"] .steps span:nth-of-type(4), .v-detect[data-step="0"] .steps span:nth-of-type(1), .v-detect[data-step="1"] .steps span:nth-of-type(2), .v-detect[data-step="2"] .steps span:nth-of-type(3), .v-detect[data-step="3"] .steps span:nth-of-type(4) { color:var(--on-ink); }

.v-clone video { width:100%; height:100%; object-fit:cover; }

/* phones, reduced motion, or no JavaScript: no pin; the strip swipes freely and the item in view plays.
   (sections.js sets .free for this; the selector does not need it, so the strip also holds without the script) */
.built:not(.pinned, .hpin) .pin { height:auto !important; }
.built:not(.pinned, .hpin) .sticky { position:static; height:auto; }
.built:not(.pinned, .hpin) .rail { overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:none; scroll-padding-left:var(--gut); padding-bottom:6px; }
.built:not(.pinned, .hpin) .rail::-webkit-scrollbar { display:none; }
.built:not(.pinned, .hpin) .track { transform:none !important; }
.built:not(.pinned, .hpin) .work { scroll-snap-align:start; flex-basis:min(340px, 82vw); }
/* on a phone, with motion: the label, title and strip are held together while the page scroll slides the cards sideways, and
   the rest of the offer follows (sections.js moves them there and sets --x) */
.built .rig { display:contents; }
@media (max-width:820px) {
  .built.hpin .sticky { display:contents; }
  .built.hpin .rig { display:flex; flex-direction:column; gap:14px; position:sticky; top:0; padding-top:88px; }
  .built.hpin .rig .built-label { margin:0 0 -6px; padding:0 var(--gut); }
  .built.hpin .rig h2 { margin:0; padding:0 var(--gut); font-size:28px; font-weight:600; line-height:1.05; letter-spacing:-.04em; }
  .built.hpin .rail { overflow:hidden; }
  .built.hpin .track { will-change:transform; }
  .built.hpin .work { flex-basis:min(340px, 82vw); }
  .built.hpin .work h3 { font-size:20px; }
  .built.hpin .work-desc { font-size:14px; }
  .built.hpin .work:not(.live) { opacity:.42; }
  .built.hpin .after .built-side { margin:28px 0 0; padding:20px; border:1px solid var(--rule); border-radius:8px; }
  .built.hpin .after .built-sub { margin:0; }
  .built.hpin.hpin { padding-bottom:72px; }      /* the room below: the grains start to fall from the section's edge */
}
/* a short screen (a small phone, or Safari's bars): the held block must still fit */
@media (max-width:820px) and (max-height:700px) {
  .built.hpin .rig { gap:8px; padding-top:80px; }
  .built.hpin .screen { aspect-ratio:16 / 10; }
  .built.hpin .work-desc { display:none; }
}
@media (prefers-reduced-motion:reduce) { .built .screen *, .built .work { animation:none !important; transition:none !important; } }

/* 5. The three ways, under the glass heading */
.ways { position:relative; pointer-events:auto; background:#fff; padding:clamp(40px,5vw,72px) var(--gut) clamp(80px,10vw,140px); }
.way { display:grid; grid-template-columns:minmax(0,4fr) minmax(0,7fr); gap:8px clamp(32px,5vw,96px); padding:clamp(32px,4vw,56px) 0; border-top:1px solid var(--ink); }
.way h3 { margin:0; font-size:clamp(34px,4.2vw,64px); font-weight:600; line-height:1; letter-spacing:-.04em; }
.way .facts, .way .ask-link { grid-column:2; }
.way .ask-link { justify-self:start; }

/* 6. The closing section: "Tell us what you need." and one "Talk to us" button in the middle, inside the dust sphere (closing-sphere.js).
   The grains fall from the bottom edge of Selected work and build the ball with the scroll, so the section is a screen and a half:
   the words fade in at the middle once the ball is nearly there, and stay pinned. --q (0 to 1) is how far the fall is;
   As the footer comes up, closing-sphere.js keeps the words in the middle of what is left of the screen and opens the ball into a net. */
.sec.closing.fall { height:auto; min-height:0; }
.closing.fall .panel { position:relative; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100vh; min-height:100svh; text-align:center; }
/* a white wash behind the words, over the grains, so the letters stay clean */
.closing.fall .panel::before { content:""; position:absolute; inset:0; z-index:-1; pointer-events:none; opacity:var(--in); background:radial-gradient(closest-side, #fff 0%, rgba(255,255,255,.9) 35%, rgba(255,255,255,0) 100%) center / min(100%,900px) 62% no-repeat; }
.closing.fall { --in:clamp(0, (var(--q,1) - .6) * 3.4, 1); }
html.enhanced .closing.fall { height:180vh; height:180svh; }
html.enhanced .closing.fall .panel { position:sticky; top:0; height:100vh; height:100svh; min-height:0; }
.closing.fall .copy, html.enhanced .closing.fall .copy { position:static; width:auto; height:auto; max-width:none; margin:0; padding:0 var(--gut); overflow:visible; clip:auto; white-space:normal; }
.closing.fall .copy h2, html.enhanced .closing.fall .copy h2 { font-size:clamp(46px,min(7.2vw,11vh),120px); line-height:.94; letter-spacing:-.055em; max-width:5.6em; margin:0 auto 36px; text-shadow:0 0 24px #fff, 0 0 24px #fff; }
.closing.fall .ctas { position:static; transform:none !important; }
.closing.fall .copy, .closing.fall .ctas { opacity:var(--in); translate:0 calc((1 - var(--in)) * 24px); }
.closing.fall .ctas:focus-within { opacity:1; }
/* with the script, the words are fixed to the screen like the ball, so the two cannot drift apart while scrolling */
html.enhanced .closing.fall.scripted .panel { position:fixed; inset:0; height:auto; pointer-events:none; }
.closing.fall.scripted .copy, .closing.fall.scripted .ctas { translate:none; }
.closing.fall.scripted .ctas a { pointer-events:none; scale:calc(1 / var(--fit,1)); }   /* the button keeps its size when the rest shrinks */
.closing.fall.scripted.arrived .ctas a { pointer-events:auto; }
.closing-sphere { position:absolute; inset:0; z-index:0; pointer-events:none; }
.closing-sphere canvas { position:absolute; inset:0; width:100%; height:100%; display:block; }
.closing.fall .closing-sphere.falling { position:fixed; z-index:2; }
@media (prefers-reduced-motion:reduce) { html.enhanced .closing.fall { height:100vh; height:100svh; } }
/* The map and the globe before the ball (closing-globe.js): more scroll, and their words in the middle of the screen: "Across
   Indonesia" then "Across borders", and four numbers that come in one by one. Without them the words are for screen readers only. */
.closing.fall .reach { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
html.enhanced .closing.fall.reaching { height:425vh; height:425svh; }
.closing.fall.reaching .reach { position:fixed; z-index:3; top:0; left:0; right:0; width:auto; height:auto; overflow:visible; clip-path:none; padding:0 16px; text-align:center; pointer-events:none; opacity:0; }
.closing.fall .reach-sr { position:absolute; width:1px; height:1px; margin:0; overflow:hidden; clip-path:inset(50%); }
.closing.fall .reach > div > b { display:block; font-weight:600; font-size:24px; line-height:1.1; letter-spacing:-.035em; text-shadow:0 0 6px #fff, 0 0 14px #fff, 0 0 24px #fff, 0 0 40px #fff, 0 0 60px #fff; }
.closing.fall .swap { display:inline-grid; justify-items:start; white-space:nowrap; vertical-align:baseline; }
.closing.fall .swap > span { grid-area:1/1; }
.closing.fall .swap > span + span { opacity:0; }
.closing.fall .reach-n { display:grid; grid-template-columns:repeat(4, min(190px,22vw)); justify-content:center; margin:16px 0 0; transition:translate .5s cubic-bezier(.2,.7,.2,1); }
.closing.fall .reach-n p { margin:0; opacity:0; translate:0 10px; text-shadow:0 0 4px #fff, 0 0 8px #fff, 0 0 14px #fff, 0 0 22px #fff, 0 0 34px #fff; transition:opacity .35s ease-out, translate .45s cubic-bezier(.2,.7,.2,1); }
.closing.fall .reach-n p.in { opacity:1; translate:0 0; }
.closing.fall .reach-n b { display:block; font-weight:600; font-size:clamp(32px,4vw,54px); line-height:1; letter-spacing:-.04em; font-variant-numeric:tabular-nums; }
.closing.fall .reach-n span { display:block; margin-top:4px; color:var(--muted); font-size:clamp(13px,1.15vw,15px); }
.closing.fall .reach-n var { display:inline-block; font-style:normal; opacity:0; scale:.6; }   /* the "+" keeps its place and shows when the number has arrived */
.closing.fall .reach-n var.in { opacity:1; scale:1; transition:opacity .25s ease-out, scale .35s cubic-bezier(.2,.8,.2,1); }
@media (max-width:820px) { .closing.fall .reach-n { grid-template-columns:repeat(2, 44vw); row-gap:14px; transition:none; } }
/* the fall starts from a straight edge, and the footer under the closing is straight too (other pages keep the slant) */
.built.pinned, .built.hpin { padding-bottom:0; }
main:has(.closing.fall) ~ .foot { clip-path:none; padding-top:clamp(64px,7vw,104px); }
.built-managed { margin:clamp(28px,4vh,48px) 0 0; padding-top:20px; border-top:1px solid var(--rule); max-width:820px; font-size:17px; color:var(--on-ink-muted); }
.built-managed b { color:var(--on-ink); font-weight:600; }

@media (max-width:820px) {
  .built-sub { margin-top:18px; }
  .built .pin { margin-top:40px; }
  .nav nav a.nav-mid { display:none; }
  .built-head, .way { grid-template-columns:1fr; }
  .way .facts, .way .ask-link { grid-column:1; }
  .facts > div { grid-template-columns:1fr; }
}

/* Selected work: the heading sits in the pinned view with the rail, so it stays while the jobs slide by */
.built { padding-top:clamp(60px,6vw,100px); }
.built .pin { margin-top:0; }
.built .sticky { padding-top:clamp(72px,9vh,96px); justify-content:center; }
.built .sticky .built-head { padding:0 var(--gut); }
.built .sticky .built-label { margin-bottom:14px; }
.built .sticky .built-head h2 { font-size:clamp(32px,3.6vw,56px); }
.built .sticky .built-sub { font-size:16px; }
@media (max-height:820px) and (min-width:821px) {
  .built .sticky { gap:16px; } .built .sticky .built-sub { display:none; } .built .work { flex-basis:clamp(260px,26vw,380px); }
  .built .work-desc { font-size:14px; }
}
.built:not(.pinned, .hpin) .sticky { padding-top:0; }
/* the right column of the heading carries the whole offer: what we built, that we run it, and the way in */
.built .sticky .built-side { display:grid; gap:12px; justify-items:start; align-self:end; }
.built .sticky .built-managed { margin:0; padding-top:12px; font-size:14.5px; line-height:1.45; max-width:52ch; }
.built .sticky .built-side .ask { margin:4px 0 0; min-height:42px; padding:0 18px; font-size:14.5px; }
@media (max-height:820px) and (min-width:821px) { .built .sticky .built-managed { font-size:13.5px; } }
.built .sticky .built-head { align-items:start; }
.built .sticky .built-head h2 { margin-top:4px; }
@media (max-height:960px) and (min-width:821px) { .built .work { flex-basis:clamp(270px,27vw,400px); } }
@media (max-height:820px) and (min-width:821px) { .built .sticky .built-managed { border-top:0; padding-top:0; } }

/* Selected work on a wide screen: the words stay on the left, the cards run up the right (one at a time, the one
   in the middle is live). Phones and reduced motion keep the sideways strip under the heading. */
.built .track { position:relative; }
.built.pinned { --cw:clamp(300px, min(34vw, calc(82vh - 170px)), 640px); }
.built.pinned .sticky { display:grid; grid-template-columns:minmax(0,5fr) minmax(0,6fr); grid-template-rows:1fr auto auto 1fr; column-gap:clamp(28px,5vw,96px); gap:0 clamp(28px,5vw,96px); padding:0 0 0 var(--gut); align-items:start; }
.built.pinned .sticky .built-head { grid-column:1; grid-row:2; display:block; padding:0; align-self:end; }
.built.pinned .sticky .built-label { margin:0 0 14px; }
.built.pinned .sticky .built-head h2 { font-size:clamp(34px,3.8vw,60px); }
.built.pinned .sticky .built-side { margin-top:clamp(18px,3vh,32px); }
.built.pinned .sticky .built-sub { display:block; font-size:clamp(15px,1.2vw,18px); max-width:44ch; }
.built.pinned .sticky .built-managed { max-width:46ch; }
.built.pinned .bar { grid-column:1; grid-row:3; padding:0; margin-top:clamp(20px,4vh,40px); }
.built.pinned .rail { grid-column:2; grid-row:1 / 5; height:100vh; overflow:hidden; }
.built.pinned .track { width:var(--cw); margin:0 auto; padding:0; flex-direction:column; gap:clamp(28px,6vh,64px); }
.built.pinned .work { flex:0 0 auto; width:100%; }

/* a work card that has a page of its own */
.built .work-more { display:inline-flex; align-items:center; gap:8px; margin-top:12px; font-weight:600; font-size:15px; color:var(--on-ink); text-decoration:none; border-bottom:1px solid var(--on-ink); padding-bottom:2px; }
.built .work-more svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.built .work-more:focus-visible { outline:2px solid var(--on-ink); outline-offset:4px; border-radius:2px; }
