
/* Landing (v108): Paul's revised Figma frames, node 103:334 (plain wall) and 102:237 (papered).
   The line runs as one paragraph across the wall, with three pictures hung in it: the wedding after "Your chats.",
   the boys after "Your photos.", the train before "Little moments.". The telly stands on its stand below, on the carpet.
   Everything inside the 1440×1024 frame is laid out in the frame's own units and scaled to fit; the wall and carpet run
   full bleed. Rewind on the screen: the telly takes over, the showreel plays, into Chapter 1. */
:root{
  --tomato:#FF5A45; --ink:#151515; --canvas:#F4F2ED; --wall:#E6D8C0; --fg:#000;
  --body:"Bricolage Grotesque","Helvetica Neue",Arial,sans-serif; --vcr:"VT323",ui-monospace,monospace;
  --dec:cubic-bezier(.23,1,.32,1); --spring:cubic-bezier(.34,1.45,.64,1);
  color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;overflow:hidden;background:var(--wall)}
body{color:var(--fg);font-family:var(--body);-webkit-font-smoothing:antialiased}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* ---------- site bar (same as the other pages) ---------- */
.bar{position:fixed;inset:0 0 auto 0;z-index:30;display:flex;justify-content:flex-end;align-items:center;
  padding:calc(env(safe-area-inset-top,0px) + 32px) max(32px,env(safe-area-inset-right,0px)) 20px 140px;transition:opacity .3s linear}
.bar a{color:inherit;white-space:nowrap}
.me{position:fixed;top:calc(env(safe-area-inset-top,0px) + 32px);left:max(32px,env(safe-area-inset-left,0px));z-index:31;width:80px;height:80px;display:block;transition:opacity .3s linear}
.me img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:50% 90%;transition:transform .45s var(--spring)}
.me:focus-visible{outline:2px solid var(--tomato);outline-offset:4px;border-radius:12px}
@media (hover:hover) and (pointer:fine){.me:hover img{transform:rotate(-5deg) translateY(-2px) scale(1.05)}}
.bar nav{display:flex;align-items:center;height:80px;gap:clamp(22px,4.2vw,60px)}
.bar nav a{font-weight:600;font-size:clamp(17px,1.67vw,24px);line-height:.8;letter-spacing:-.01em;font-variation-settings:"opsz" 14,"wdth" 100;color:var(--fg);
  text-decoration:underline;text-decoration-thickness:from-font;text-underline-offset:.18em}
.bar a:focus-visible{outline:2px solid var(--tomato);outline-offset:3px;border-radius:2px}
@media (hover:hover) and (pointer:fine){.bar nav a:hover{color:var(--tomato)}}
@media (max-width:640px){.me{top:calc(env(safe-area-inset-top,0px) + 10px);left:max(8px,env(safe-area-inset-left,0px));width:70px;height:70px}
  .bar{padding:calc(env(safe-area-inset-top,0px) + 6px) max(16px,env(safe-area-inset-right,0px)) 12px 72px}.bar nav{height:44px;gap:14px}.bar nav a{font-size:15px}}
.going .bar,.going .me{opacity:0;pointer-events:none}

/* ---------- the wall (plain #E6D8C0, or the paper at 20%: Figma frame 2) and the carpet ---------- */
.room{position:fixed;inset:0;overflow:hidden;background:var(--wall)}
.papered .room{background-image:url(assets/land5/wallpaper.webp?v=128);background-repeat:repeat}
.carpet{position:absolute;left:0;right:0;bottom:0;background:url(assets/land5/carpet.webp?v=128) repeat-x,#7a2a20 url(assets/land5/carpet-body.webp?v=128) repeat}
.paper{position:fixed;inset:0;z-index:60;background:var(--canvas);opacity:0;pointer-events:none;transition:opacity .3s linear}
.paper.on{opacity:1}

/* ---------- the frame: 1440×1024, in Figma's own units, scaled to fit ---------- */
.stage{position:absolute;left:0;top:0;width:1440px;height:1024px;transform-origin:0 0}
.words{position:absolute;left:0;top:0;width:1440px;height:1024px;transform-origin:0 0}   /* v119: the words and pictures scale on their own, to fill the width */
.w{position:absolute;margin:0;font-weight:500;font-size:107.957px;line-height:.8;letter-spacing:-.04em;font-variation-settings:"opsz" 70,"wdth" 92;font-kerning:normal;white-space:nowrap;color:var(--fg)}   /* −4% tracking, as in Figma (−4.3183px at 107.957px); set in em so it scales with the type */
.c{translate:-50% 0;text-align:center}
.row{position:absolute;display:flex;align-items:center}
.r1{left:153px;top:153px}
.r2{left:145px;top:281px;gap:20px}
.r2 .grp{display:flex;align-items:center}
.row .w{position:relative}
.ov,.f.ov{margin-right:-37px}
.f{position:relative;margin:0;flex:none;width:195.227px;height:130.167px}
.f img,.hang img{position:absolute;inset:0;width:100%;height:100%;display:block}
.hang{position:absolute;inset:0;transform-origin:49.74% 4.8%}
.hang.swing{animation:swing 1.6s cubic-bezier(.3,.6,.4,1)}
@keyframes swing{0%{rotate:0deg}18%{rotate:6deg}40%{rotate:-4.5deg}62%{rotate:2.2deg}82%{rotate:-.9deg}100%{rotate:0deg}}
.tilt{flex:none;width:218.754px;height:169.301px;display:flex;align-items:center;justify-content:center}
.tilt .f{rotate:-12.49deg}
/* the pictures, 20% up on the Figma size: scaled about their centre, with 9px either side so the gaps to the words stay as designed */
.stage .row > .f,.stage .row .grp > .f,.stage .row > .tilt{scale:1.2;margin-left:9px;margin-right:9px}
.stage .row > .tilt.ov,.stage .row .grp > .f.ov{margin-right:-28px}
/* entrance: the words land in reading order, the pictures drop onto their nails */
.in{opacity:0;translate:0 26px;transition:opacity .35s linear,translate .6s var(--dec)}
.c.in{translate:-50% 26px}
.on .in{opacity:1;translate:0 0}
.on .c.in{translate:-50% 0}
.drop{opacity:0;translate:0 -40px;transition:opacity .25s linear,translate .7s var(--spring)}
.on .drop{opacity:1;translate:0 0}
.going .in,.going .drop{opacity:0;transition:opacity .25s linear}
.tvbox{position:absolute;left:486px;top:464.59px;width:435px;height:569.41px;transform-origin:0 0;will-change:transform;z-index:2}
.tvbox.push,.carpet.push{transition:transform 1s cubic-bezier(.7,0,.2,1)}
.carpet{transform-origin:0 0}
.tvbox > img{position:absolute;left:0;top:0;width:434.508px;height:542.936px;display:block}
.screen{position:absolute}
.screen canvas{display:block;width:100%;height:100%}
.rw{position:absolute;inset:0;display:flex;align-items:flex-end;justify-content:center;padding-bottom:9%;border:0;background:none;cursor:pointer;
  color:#FFF3D6;font:400 25px/1 var(--vcr);letter-spacing:.06em;text-shadow:0 0 8px rgba(255,243,214,.6);opacity:0;transition:opacity .3s linear}
.on .rw{opacity:1;transition-delay:1.4s}
.rw span{animation:pulse 1.4s steps(1) infinite}
@keyframes pulse{50%{opacity:.25}}
.rw:focus-visible{outline:3px solid var(--tomato);outline-offset:4px;border-radius:10px}
@media (hover:hover) and (pointer:fine){.rw:hover span{animation:none;color:#fff}}
.going .rw{opacity:0;pointer-events:none}
/* phones and tall windows: the same line as a wrapping paragraph above the set, the pictures inline */
.flow{display:none;position:absolute;left:0;top:0;width:402px;height:874px;transform-origin:0 0}   /* v121: phones follow Figma 108:379 (402×874), scaled to fit */
.flow .mtext{position:absolute;left:24px;top:120px;width:335px;margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:0;text-align:left}   /* v125: Figma 108:379 — left 24, top 120, set solid */
.flow .w{position:relative;font-size:48px;line-height:1}
.flow .mf{position:absolute;width:126px;height:84px}
.flow .m1{left:237px;top:94px;rotate:6deg}
.flow .m2{left:5px;top:189px;rotate:-8deg}
.flow .m3{left:309px;top:248px;rotate:5deg}
.portrait .flow{display:block}
.portrait .flow .mf,.portrait .carpet{display:none}   /* v125: no pictures, no carpet on phones */
/* v124: phones get a real Rewind button under the set, in the nav strip's look (ink, cream, a hard shadow, a slight tilt) but fully rounded;
   the flashing REWIND on the screen stays for desktop only */
.portrait .rw{display:none}
.rwb-wrap{display:none}
.portrait .rwb-wrap{display:flex;justify-content:center;position:fixed;left:0;right:0;bottom:calc(32px + env(safe-area-inset-bottom,0px));z-index:31;pointer-events:none;transform-origin:50% 100%}
.rwb{pointer-events:auto;display:inline-flex;align-items:center;justify-content:center;padding:12px 27px;margin:0;border:0;border-radius:999px;cursor:pointer;
  background:#000;color:#FFF3D6;font:500 36px/1.2 var(--body);font-variation-settings:"opsz" 14,"wdth" 100;letter-spacing:-.02em;
  box-shadow:4px 4px 0 rgba(0,0,0,.25);-webkit-tap-highlight-color:transparent;
  opacity:0;translate:0 24px;transition:opacity .3s linear,translate .7s var(--spring),scale .14s var(--dec)}
.on .rwb{opacity:1;translate:0 0;transition-delay:1.4s,1.4s,0s}
.rwb:active{scale:.96}
.rwb:focus-visible{outline:3px solid var(--tomato);outline-offset:4px}
.going .rwb{opacity:0;pointer-events:none;transition:opacity .25s linear}
@media (prefers-reduced-motion:reduce){.rwb{transition:opacity .2s linear;translate:0 0}}
.portrait .stage .row,.portrait .stage > div > .c{display:none}
/* the way in (as the original): 1 counts up to now on a clear wall, splits in two, and runs off */
.cover{position:fixed;inset:0;z-index:40;background:var(--wall);transition:opacity .5s linear .15s;pointer-events:none}
.cover.off{opacity:0}
.count-in{position:fixed;left:0;right:0;top:50%;translate:0 -50%;z-index:41;margin:0;display:flex;justify-content:center;pointer-events:none;opacity:0;transition:opacity .35s ease-out;
  font:300 clamp(96px,15vw,220px)/.86 var(--body);font-variation-settings:"opsz" 96,"wdth" 92;font-variant-numeric:tabular-nums;letter-spacing:-.045em;color:var(--ink)}
.count-in.show{opacity:1}
.count-in span{display:block;transition:translate .75s cubic-bezier(.7,0,.84,0)}
.count-in .b{position:absolute;left:0;right:0;text-align:center}
.count-in .t{clip-path:inset(-10% -10% 50% -10%)}
.count-in .b{clip-path:inset(50% -10% -10% -10%);transition-delay:.05s}
.count-in.split .t{translate:-110vw 0}
.count-in.split .b{translate:110vw 0}
@media (prefers-reduced-motion:reduce){.in,.drop,.rw,.tvbox.push,.carpet.push{transition:none}.rw span,.hang.swing{animation:none}}

/* ---------- nav v112: a black label strip, tilted like the prints (Figma 104:362) ---------- */
.bar nav{height:auto;margin-block:16px;gap:10px;padding:8px;background:#151515;rotate:1.3deg;box-shadow:5px 4px 0 rgba(0,0,0,.25);
  transition:rotate .4s cubic-bezier(.34,1.56,.64,1)}
.bar nav a{padding:8px;font-weight:500;font-size:20px;line-height:.8;letter-spacing:-.04em;font-variation-settings:"opsz" 14,"wdth" 100;color:#FFF3D6;
  text-decoration:underline;text-decoration-thickness:from-font;text-underline-position:from-font;text-underline-offset:auto;
  transition:color .2s ease,translate .2s cubic-bezier(.23,1,.32,1)}
.bar nav a[aria-current]{color:var(--tomato,#FF5A45)}
.bar nav a:focus-visible{outline:2px solid var(--tomato,#FF5A45);outline-offset:-2px;border-radius:2px}
@media (hover:hover) and (pointer:fine){.bar nav:hover{rotate:0deg}.bar nav a:hover{color:var(--tomato,#FF5A45);translate:0 -1px}}
@media (max-width:640px){.bar nav{height:auto;margin-block:4px;gap:2px;padding:4px}.bar nav a{font-size:15px;padding:7px 6px}}
@media (prefers-reduced-motion:reduce){.bar nav,.bar nav a{transition:none}}
/* the nav head (v114): the sticker head; it plays its double-take on a canvas over the still */
.me img{object-fit:contain}
.me-cv{position:absolute;top:0;left:50%;height:100%;aspect-ratio:320/362;translate:-50% 0;display:block;opacity:0;pointer-events:none}
.me.me-on .me-cv{opacity:1}.me.me-on img{opacity:0}
@media (hover:hover) and (pointer:fine){.me:hover img{transform:none}}
/* ---------- the phone menu (v121): a burger under 700px, a full-screen black sheet (Figma 108:379) ---------- */
.burger{display:none}
.mnav{display:none}
@media (max-width:700px){
  .bar nav{display:none!important}
  .me{top:calc(env(safe-area-inset-top,0px) + 10px)!important;left:max(8px,env(safe-area-inset-left,0px))!important;width:70px!important;height:70px!important}
  .burger{position:fixed;z-index:96;top:calc(env(safe-area-inset-top,0px) + 23px);right:max(26px,env(safe-area-inset-right,0px));width:44px;height:44px;padding:9px 5.5px;margin:0;border:0;background:none;cursor:pointer;
    display:flex;flex-direction:column;justify-content:space-between;-webkit-tap-highlight-color:transparent}
  .burger i{display:block;height:6px;width:100%;background:#1c1417;transition:translate .35s cubic-bezier(.77,0,.175,1),rotate .35s cubic-bezier(.77,0,.175,1),opacity .2s linear,background-color .25s linear}
  .mnav-open .burger i{background:#FFF3D6}
  .mnav-open .burger i:nth-child(1){translate:0 10px;rotate:45deg}
  .mnav-open .burger i:nth-child(2){opacity:0}
  .mnav-open .burger i:nth-child(3){translate:0 -10px;rotate:-45deg}
  .burger:focus-visible{outline:3px solid #FF5A45;outline-offset:2px;border-radius:4px}
  .mnav{position:fixed;inset:0;z-index:95;display:flex;flex-direction:column;justify-content:center;gap:40px;background:#151515;
    padding:96px max(28px,env(safe-area-inset-right,0px)) calc(48px + env(safe-area-inset-bottom,0px)) max(28px,env(safe-area-inset-left,0px));
    clip-path:circle(0 at calc(100% - 48px) 45px);transition:clip-path .45s cubic-bezier(.77,0,.175,1)}
  .mnav[hidden]{display:none!important}
  .mnav.on{clip-path:circle(150% at calc(100% - 48px) 45px)}
  .mnav nav{display:flex;flex-direction:column;align-items:flex-start;gap:18px}
  .mnav nav a{font-family:"Bricolage Grotesque","Helvetica Neue",Arial,sans-serif;font-weight:500;font-stretch:92%;font-size:clamp(44px,13vw,60px);line-height:.9;letter-spacing:-.04em;color:#FFF3D6;
    text-decoration:underline;text-decoration-thickness:from-font;text-underline-position:from-font;opacity:0;translate:0 24px;
    transition:opacity .3s linear,translate .5s cubic-bezier(.23,1,.32,1),color .2s ease;transition-delay:calc(var(--i) * 50ms + 120ms)}
  .mnav.on nav a{opacity:1;translate:0 0}
  .mnav nav a[aria-current]{color:#FF5A45}
  .mnav nav a:focus-visible,.mnav-mail:focus-visible{outline:2px solid #FF5A45;outline-offset:4px;border-radius:2px}
  .mnav-mail{align-self:flex-start;font:500 14px/1 "JetBrains Mono",ui-monospace,monospace;letter-spacing:.06em;color:rgba(255,243,214,.7);text-decoration:none;opacity:0;transition:opacity .3s linear .35s}
  .mnav.on .mnav-mail{opacity:1}
  html.mnav-open,html.mnav-open body{overflow:hidden}
}
@media (max-width:700px) and (prefers-reduced-motion:reduce){.mnav,.mnav nav a,.mnav-mail,.burger i{transition:none}}
.going .burger{opacity:0;pointer-events:none;transition:opacity .3s linear}
/* v123: the burger stays put while a case study is open: it sits in the sleeve's top bar, in the sleeve's cream, with Back to its left */
@media (max-width:700px){
  html:has(.drawer.open) .burger{top:calc(env(safe-area-inset-top,0px) + 10px);right:max(16px,env(safe-area-inset-right,0px))}
  html:has(.drawer.open):not(.mnav-open) .burger i{background:#F1E8D8}
  .drawer .gf-top{padding-right:calc(max(16px,env(safe-area-inset-right,0px)) + 56px)}
}
