/* Homepage V4 (design canvas). Self-contained: the homepage no longer loads style.css.
   Fonts are self-hosted (SIL Open Font License): Schibsted Grotesk for all reading text,
   Sora only for the wordmark (subset to the letters of "Lance Liang"). Light only. */
@font-face {
  font-family:"Schibsted Grotesk"; font-style:normal; font-weight:400 800; font-display:swap;
  src:url("/assets/fonts/schibsted-latin-ext.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:"Schibsted Grotesk"; font-style:normal; font-weight:400 800; font-display:swap;
  src:url("/assets/fonts/schibsted-latin.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:"Sora"; font-style:normal; font-weight:700; font-display:swap; src:url("/assets/fonts/sora-wordmark.woff2") format("woff2"); }

/* neutral editor greys + the editor's selection blue; brand green only for the principle.
   corners match: canvas, covers and UI (menu, toolbar, tooltip) 8; buttons and rows inside them 6 */
:root {
  color-scheme:light;
  --page:#F6F7F8; --ink:#16191D; --muted:#5E646C; --line:#E2E5E9;
  --brand:#145C61; --go:#22A35A;
  --canvas:#ECEEF1; --grid:#E1E5EA; --select:#0D99FF; --select-soft:#E5F4FF;
}
* { box-sizing:border-box; margin:0; }
body { background:var(--page); color:var(--ink); font:16px/1.6 "Schibsted Grotesk",sans-serif; }
.page { max-width:1280px; margin:0 auto; }
.nav { display:flex; justify-content:space-between; align-items:center; padding:24px 48px; }
/* wordmark: the only Sora on the page, geometric like the hexagon mark and the pixel icons.
   Everything else is Schibsted Grotesk in seven styles: 58/650 display, 24/500 intro, 24/600 case titles,
   17/600 small headings, 16 body (600 for bold leads), 14 muted meta. The canvas UI (menu, toolbar, tags) keeps its own small sizes */
.brand { color:inherit; text-decoration:none; display:flex; align-items:center; gap:10px; font:700 19px/1 "Sora",sans-serif; letter-spacing:-0.02em; }
.brand img { width:26px; height:30px; }
.links { display:flex; gap:32px; font-size:16px; }
.links a { color:inherit; text-decoration:none; } .links a:hover { text-decoration:underline; text-decoration-color:var(--brand); text-underline-offset:5px; }
a:focus-visible { outline:2px solid var(--select); outline-offset:3px; border-radius:2px; }
.skip { position:absolute; left:16px; top:-48px; z-index:10; padding:8px 12px; background:#fff; color:var(--ink); border-radius:6px; }
.skip:focus { top:12px; }
.visually-hidden { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
h1, h2, h3, h4, p { margin:0; font-size:inherit; font-weight:inherit; }
.greet { font-size:clamp(40px,4.4vw,58px); }

.canvas-bg { border-radius:8px; background-color:var(--canvas);
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px); background-size:16px 16px; }
.sel { position:absolute; border:1.5px solid var(--select); pointer-events:none; }
.sel i { position:absolute; width:9px; height:9px; background:#fff; border:1.5px solid var(--select); }
.sel i:nth-child(1) { left:-5px; top:-5px; } .sel i:nth-child(2) { right:-5px; top:-5px; } .sel i:nth-child(3) { left:-5px; bottom:-5px; } .sel i:nth-child(4) { right:-5px; bottom:-5px; }

/* hero: one big canvas; the greeting sits on its top edge; the intro is a selected text box */
.hero { --f:clamp(20px,1.85vw,24px); --pw:clamp(330px, calc(.92 * (100vw - 170px - 25 * var(--f))), 460px);   /* portrait width: a little under what the copy column allows */
  position:relative; height:calc(62px + 1.1526 * var(--pw)); margin:0 48px; }
.hero .panel { position:absolute; left:0; right:0; top:calc(59px + .625 * clamp(40px,4.4vw,58px)); bottom:24px; }   /* top edge through the middle of the greeting's capitals */
.copy { position:absolute; left:48px; top:64px; bottom:56px; width:600px; display:flex; flex-direction:column; z-index:3; }
.greet { font-size:clamp(40px,4.4vw,58px); line-height:1.05; font-weight:650; letter-spacing:-0.025em; white-space:nowrap; }
.greet .nb { white-space:nowrap; }
/* the selection hugs the longest line, as a text box set to hug contents would */
.textbox { position:relative; margin-top:52px; width:fit-content; max-width:100%; }
.rest span { display:block; }
.textbox .rest { position:relative; z-index:1; text-shadow:0 0 2px var(--canvas), 2px 0 0 var(--canvas), -2px 0 0 var(--canvas), 0 2px 0 var(--canvas), 0 -2px 0 var(--canvas), 2px 2px 0 var(--canvas), -2px 2px 0 var(--canvas), 2px -2px 0 var(--canvas), -2px -2px 0 var(--canvas); }
.textbox .sel { inset:-16px -28px 14px -14px; }
.rest, .principle { font-size:var(--f); line-height:1.38; font-weight:500; letter-spacing:-0.01em; }
.principle { margin-top:32px; color:var(--ink); }   /* two lines, inside the text box's width */
.principle { white-space:nowrap; }
/* one highlighter stroke per line, so it still reads as a stroke when the line wraps */
.principle .mark { padding:0 10px .16em 8px; margin:0 -10px 0 -8px; background:url("/assets/home/v4/highlighter-01-mint.svg") 0 100% / 100% 88% no-repeat; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.status { margin-top:auto; display:flex; align-items:center; gap:12px; }
.status .light { position:relative; width:20px; height:20px; flex:none; }
.status .light::before { content:""; position:absolute; inset:-7px; border-radius:50%; background:radial-gradient(circle, rgba(34,163,90,.30), rgba(34,163,90,0) 68%); }
.status .light svg { position:relative; display:block; }
.status b { display:block; font-weight:600; font-size:16px; line-height:1.3; }
.status span { display:block; color:var(--muted); font-size:14px; line-height:1.3; }

/* portrait: cut edges flush with the canvas's right and bottom sides; only the head rises past the top */
.portrait { position:absolute; right:0; bottom:24px; width:var(--pw); aspect-ratio:1265/1458; z-index:1; clip-path:inset(-50% 0 0 -50% round 0 0 8px 0); }
.portrait img { width:100%; height:auto; display:block; cursor:pointer; }
.portrait .color { position:absolute; inset:0; height:100%; opacity:0; pointer-events:none; transition:opacity .35s; }   /* the original colours, while Lance.jpg is selected */
.portrait.picked .color { opacity:1; }
/* the photo's own selection: Lance.jpg in the menu, or a click on the photo, selects it the way Figma selects an image layer */
.psel { right:0; bottom:24px; width:var(--pw); aspect-ratio:1265/1458; z-index:3; }
.psel[hidden] { display:none; }
.psel .size { position:absolute; left:50%; top:calc(100% + 6px); transform:translateX(-50%); padding:2px 6px; border-radius:4px; background:var(--select); color:#fff; font-size:11px; line-height:1.4; white-space:nowrap; font-variant-numeric:tabular-nums; }

/* light menu: lighter than the editor's dark one */
.pop { position:absolute; z-index:5; font-size:13px; }
/* the menu scales with the portrait and sits over his arm, below the chin */
.layers { right:calc(.53 * var(--pw)); top:calc(38px + .292 * var(--pw)); font-size:calc(.026 * var(--pw)); width:20.15em; padding:.46em; background:rgba(255,255,255,.85); -webkit-backdrop-filter:blur(1px); backdrop-filter:blur(1px); color:var(--ink); border-radius:8px; box-shadow:0 6px 18px rgba(22,25,29,.10), 0 0 0 1px rgba(22,25,29,.06); }
/* the pointer that opened this menu: a right click on the photo, as in Figma */
.layers .cursor { position:absolute; z-index:1; left:-.62em; top:-.42em; width:1.85em; height:1.85em; pointer-events:none; filter:drop-shadow(0 1px 1px rgba(22,25,29,.18)); }
.layers .cursor svg { width:100%; height:100%; display:block; }
.layers .hd { padding:.3em .7em .4em; color:var(--muted); font-size:.923em; }
.layers .it { all:unset; box-sizing:border-box; width:100%; cursor:pointer; display:flex; align-items:center; gap:.77em; height:2.615em; padding:0 .77em; border-radius:6px; white-space:nowrap; line-height:1; }
.layers .it svg { width:1.846em; height:1.846em; flex:none; display:block; }
.layers .it.on { background:var(--select-soft); color:#0A6FBA; }
/* the blue row is the pointer's row, as in a real menu: it rests on AI in workflows and follows the pointer */
.layers .it:hover { background:var(--select-soft); color:#0A6FBA; }
.layers:hover .it.on:not(:hover) { background:none; color:inherit; }
.layers .it:focus-visible { outline:2px solid var(--select); outline-offset:-2px; }
.tip { bottom:100px; padding:8px 12px 9px; white-space:nowrap; transform:translateX(-50%); background:#fff; color:var(--ink); border-radius:8px; box-shadow:0 6px 18px rgba(22,25,29,.10), 0 0 0 1px rgba(22,25,29,.06); display:flex; flex-direction:column-reverse; }
.tip .k { font-size:14px; font-weight:600; line-height:1.3; }
.tip .t { display:flex; gap:6px; margin-top:2px; font-size:12px; color:var(--muted); }
.tip .t kbd { font:inherit; color:#9AA0A8; }
[hidden] { display:none !important; }
.toolbar { position:absolute; left:50%; bottom:44px; transform:translateX(-50%); z-index:4; display:flex; gap:2px; padding:4px; background:#fff; border-radius:8px; box-shadow:0 4px 14px rgba(22,25,29,.10), 0 0 0 1px rgba(22,25,29,.06); }
.toolbar button { all:unset; width:38px; height:38px; display:grid; place-items:center; border-radius:6px; cursor:pointer; }
.toolbar button:hover { background:#F2F4F6; }
.toolbar button[aria-pressed="true"] { background:var(--select-soft); }
.toolbar button:focus-visible { outline:2px solid var(--select); outline-offset:1px; }
.toolbar .sep { width:1px; margin:8px 4px; background:var(--line); }
.toolbar svg { width:24px; height:24px; }
@media (max-width:1079px) and (min-width:861px){ .toolbar { left:calc(100% - .5 * var(--pw)); } }   /* narrow side by side: the status needs the space, so the toolbar floats over his legs */

/* work, supporting, about, footer: V2's rhythm (88px sections, hairlines); the canvas theme stays light:
   covers show corner handles when hovered, the About portrait stands on a small grid patch */
.work { padding:56px 48px 0; }   /* 80px below the canvas, counting the hero's own 24 */
.primary { display:grid; grid-template-columns:8fr 4fr; gap:48px; align-items:center; }
.frame { position:relative; display:block; }
.frame img { width:100%; height:auto; display:block; aspect-ratio:1847/852; object-fit:cover; border-radius:8px; box-shadow:0 0 0 1px rgba(22,25,29,.07); }
.frame .sel { inset:-6px; opacity:0; transition:opacity .15s; border-color:rgba(13,153,255,.7); }
.frame:hover .sel, .frame:focus-visible .sel { opacity:1; }
/* the hero menu's layer rows reappear as each project's label, always shown: same pixel icon and words,
   so the link to the hero needs no explaining */
.work .label { display:inline-flex; align-items:center; gap:6px; height:26px; padding:0 10px 0 6px; border-radius:6px; background:var(--select-soft); color:var(--ink); font-size:13px; line-height:1; white-space:nowrap; }
.work .meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; }
.work .label svg { width:18px; height:18px; display:block; }
.lit .frame .sel { opacity:1; }   /* arrived from the hero menu */
/* a project's cover and title light up together, whichever one the pointer is on */
.primary:has(a:hover) .frame .sel, .supporting article:has(a:hover) .frame .sel { opacity:1; }
.primary:has(a:hover) .title a, .supporting article:has(a:hover) .title a, .work .title a:focus-visible { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:6px; text-decoration-color:var(--brand); }
.earlier .archive-card img { transition:outline-color .15s; outline:1.5px solid transparent; outline-offset:4px; }
.earlier .archive-card:hover img, .earlier .archive-card:focus-visible img { outline-color:rgba(13,153,255,.7); }
.earlier .archive-card:hover h4, .earlier .archive-card:focus-visible h4 { text-decoration:underline; text-decoration-color:var(--brand); text-underline-offset:4px; }
.supporting { display:grid; grid-template-columns:1fr 1fr; gap:48px; margin-top:80px; padding-top:80px; border-top:1px solid var(--line); }
.supporting .frame { margin-bottom:20px; }
.supporting p.desc { margin-top:10px; font-size:16px; line-height:1.6; color:var(--muted); }
/* about: a corner of a living room. The Pixabay TV (Divexfre, Pixabay Content License) and a matching remote stand on a low
   cabinet; TV, cabinet and remote all at 4px a cell. The screen (cells 5-54 x 27-64) shows each channel's photos,
   all pushed through one small palette so they look like the same broadcast */
.about { margin:80px 48px 0; padding:80px 0; border-top:1px solid var(--line); display:grid; grid-template-columns:1fr 1fr; column-gap:48px; align-items:end; }   /* the same two columns as the supporting cases */
.set { position:relative; isolation:isolate; width:484px; height:416px; zoom:.8; }
.set::before { content:""; position:absolute; z-index:-1; left:40%; top:36%; width:118%; aspect-ratio:560 / 376;
  transform:translate(-50%,-50%) rotate(26deg); background:#5FA9AE; opacity:.24;
  -webkit-mask:url("/assets/home/marker-about.png") center / 100% 100% no-repeat; mask:url("/assets/home/marker-about.png") center / 100% 100% no-repeat; }
.set::after { content:""; position:absolute; z-index:-1; left:2%; right:2%; bottom:-6px; height:12px; border-radius:50%; background:rgba(22,25,29,.10); }   /* the floor */
.set img { display:block; image-rendering:pixelated; }
.cabinet { position:absolute; left:0; bottom:0; width:484px; height:116px; }
.tv { position:absolute; left:40px; bottom:112px; width:300px; height:304px; }
.tv > img { width:100%; height:100%; }
.tv .gloss { position:absolute; inset:0; pointer-events:none; }
.tv .screen { position:absolute; left:20px; top:108px; width:196px; height:148px; border-radius:12px; overflow:hidden; background:#1E2329; cursor:pointer; }
.tv .screen canvas { display:block; width:100%; height:100%; image-rendering:pixelated; }
.tv .screen::after { content:""; position:absolute; inset:0; background:repeating-linear-gradient(transparent 0 2px, rgba(0,0,0,.14) 2px 3px); pointer-events:none; }
.tv .osd { position:absolute; left:10px; top:8px; z-index:1; font:600 12px/1 "Schibsted Grotesk",sans-serif; color:#A9D3CF; text-shadow:0 1px 0 #000; opacity:0; transition:opacity .2s; }
.tv .osd.on { opacity:1; }
.remote { position:absolute; right:28px; bottom:112px; width:92px; height:148px; }
.remote > img { width:100%; height:100%; }
.remote button { all:unset; position:absolute; left:24px; width:44px; height:44px; cursor:pointer; border-radius:3px; }
.remote button::before { content:""; position:absolute; inset:-5px; }   /* a bigger target than the drawn key */
.remote button:active, .remote button.press { background:rgba(0,0,0,.28); }
.remote button:focus-visible { outline:2px solid var(--select); outline-offset:2px; }
/* the guide: all three channels at once; the one on air opens to its paragraph; any row changes the channel */
.guide .kicker { font-size:17px; font-weight:600; margin-bottom:12px; }
.guide ol { list-style:none; padding:0; border-top:1px solid var(--line); }
.guide li { border-bottom:1px solid var(--line); }
.guide button { all:unset; box-sizing:border-box; width:100%; display:grid; grid-template-columns:44px 150px 1fr; align-items:baseline; gap:12px; padding:14px 0; cursor:pointer; }
.guide button:focus-visible { outline:2px solid var(--select); outline-offset:2px; }
.guide .no { font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; color:var(--muted); white-space:nowrap; }
.guide .name { font-weight:600; font-size:17px; }
.guide .tease { color:var(--muted); font-size:14px; }
.guide li.on .no { color:var(--brand); } .guide li.on .no::before { content:"▶ "; font-size:10px; vertical-align:1px; }
.guide li.on .tease { display:none; }
.guide button:hover .name { text-decoration:underline; text-decoration-color:var(--brand); text-underline-offset:5px; }
.guide .says { display:none; margin:-4px 0 18px 56px; font-size:16px; line-height:1.6; max-width:34em; }
.guide li.on .says { display:block; }
.guide .about-icon { width:1.35em; height:1.35em; vertical-align:-.32em; }
/* earlier work: four small covers, as on V2 */
.earlier { margin-top:80px; padding-top:80px; border-top:1px solid var(--line); }
.earlier .archive-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
.earlier h3 { font-size:17px; font-weight:600; }
.earlier .archive-link { color:var(--ink); font-size:16px; text-decoration:underline; text-decoration-color:var(--brand); text-underline-offset:5px; }
.earlier .earlier-projects { display:grid; grid-template-columns:repeat(4,1fr); gap:28px; }
.earlier .archive-card { color:inherit; text-decoration:none; }
.earlier .archive-card img { width:100%; height:auto; aspect-ratio:2; object-fit:contain; background:#fff; border-radius:8px; margin-bottom:10px; box-shadow:0 0 0 1px rgba(22,25,29,.07); display:block; }
.earlier .archive-brand { display:block; font-size:14px; color:var(--muted); }
.earlier h4 { font-size:16px; font-weight:600; }
.foot { margin:0 48px; padding:32px 0 48px; border-top:1px solid var(--line); display:flex; flex-wrap:wrap; gap:8px 28px; }
.foot a { font-size:16px; color:var(--ink); text-decoration:underline; text-decoration-color:var(--brand); text-underline-offset:5px; min-height:36px; display:inline-flex; align-items:center; }
.work .sec { font-size:17px; font-weight:600; margin-bottom:6px; }
.work .org { display:flex; align-items:center; flex-wrap:wrap; gap:4px 8px; margin-bottom:48px; font-size:16px; line-height:1.5; color:var(--muted); }
.work .org-mark { width:24px; height:24px; fill:#C74634; flex:none; }
.work .org b { color:var(--ink); font-weight:600; }
.work .name { font-size:14px; color:var(--muted); }
.work .title a, .about a { color:inherit; text-decoration:none; }
.work .title a:hover { text-decoration:underline; text-decoration-thickness:2px; text-underline-offset:6px; text-decoration-color:var(--brand); }
.work .title { font-size:24px; line-height:1.25; font-weight:600; margin-top:12px; }
.work .sum { margin-top:12px; font-size:16px; line-height:1.55; color:var(--muted); }

/* below 861 the copy and the canvas stack; the head still rises past the canvas top */
@media (max-width:860px){
  .hero { height:auto; display:flex; flex-direction:column; --pw:min(386px, 46vw); --ph:calc(1.1526 * var(--pw)); }
  .copy { position:static; width:auto; padding-top:24px; }
  .greet { white-space:normal; } .principle { white-space:normal; }
  .textbox { margin-top:24px; } .textbox .sel { display:none; }
  .status { margin-top:28px; }
  .art-m { position:relative; height:calc(var(--ph) + 24px); margin-top:12px; }
  .hero .panel { top:calc(8px + .2 * var(--ph)); bottom:16px; }
  .portrait, .psel { bottom:16px; }
  .layers { left:12px; right:auto; top:calc(.2 * var(--ph) - 6px); font-size:12px; }
  .toolbar { left:50%; bottom:28px; } .tip { bottom:84px; }
}
@media (max-width:860px){
  .nav { padding:16px 20px; } .links { gap:16px; font-size:14px; } .brand { font-size:16px; gap:8px; } .brand img { width:22px; height:25px; }
  .hero { margin:0 20px; --pw:min(400px, 62vw); }
  .layers { font-size:11px; top:0; }   /* phones: the menu sits beside the head, clear of the arm and the toolbar */
  .toolbar { bottom:12px; transform:translateX(-50%) scale(.82); transform-origin:50% 100%; } .tip { bottom:62px; }
  .work { padding:40px 20px 0; } .primary, .supporting { grid-template-columns:1fr; gap:20px; } .supporting { margin-top:48px; padding-top:48px; gap:48px; }
  .about { margin:48px 20px 0; padding:48px 0; grid-template-columns:1fr; overflow-x:clip; } .set { justify-self:start; margin-bottom:40px; } .guide button { grid-template-columns:52px 1fr; row-gap:6px; } .guide .tease { grid-column:2; } .guide .says { margin-left:64px; } .foot { margin:0 20px; }
  .earlier { margin-top:48px; padding-top:48px; } .earlier .earlier-projects { grid-template-columns:1fr 1fr; gap:24px 18px; }
}
/* tablets: the copy is narrow enough that his head and shoulders rise beside it, and the menu drops below the status */
@media (max-width:860px) and (min-width:700px){ .art-m { margin-top:calc(-.38 * var(--ph)); } .layers { top:calc(.38 * var(--ph) + 12px); } }
@media (max-width:540px){ .set { zoom:.68; } }
@media (max-width:1180px) and (min-width:861px){ .set { zoom:.66; } .guide button { grid-template-columns:52px 1fr; row-gap:6px; } .guide .tease { grid-column:2; } .guide .says { margin-left:64px; } }   /* phones: the whole living-room corner scales as one */
