/* body text: Polin (local). No bold cut exists, so Semibold also covers 700–900 instead of a faux bold */
@font-face{font-family:"Polin";src:url("https://shani-shmaytser.vercel.app/assets/fonts/Polin-Thin.otf") format("opentype");font-weight:100 300;font-display:swap}
@font-face{font-family:"Polin";src:url("https://shani-shmaytser.vercel.app/assets/fonts/Polin-Regular.otf") format("opentype");font-weight:400 500;font-display:swap}
@font-face{font-family:"Polin";src:url("https://shani-shmaytser.vercel.app/assets/fonts/Polin-Semibold.otf") format("opentype");font-weight:600 900;font-display:swap}
/* Layout: one dark scroll-story. Each scene is a pinned stage; one thing moves at a time. Paper interrupts ink only where reading is the subject. */
:root{
  --ink:#1D232D; --ink-2:#272E3A; --ink-line:#3A4250;
  --paper:#FCF8F7; --paper-2:#F1EBE9;
  --coral:#FF6159; --coral-deep:#E2463F;
  --mute-ink:#9AA2AE; --mute-paper:#6E6663;
  --display:"Karantina","Polin","Arial Hebrew",sans-serif;
  --body:"Polin","Arial Hebrew","Segoe UI",sans-serif;
  --gut-l:max(16px,env(safe-area-inset-left,0px));
  --gut-r:max(16px,env(safe-area-inset-right,0px));
  color-scheme:dark;
}
html{scroll-behavior:auto}
*,*::before,*::after{box-sizing:border-box}
body{margin:0;background:var(--ink);color:var(--paper);font-family:var(--body);font-size:18px;line-height:1.6;overflow-x:hidden}
.site{direction:rtl}
a{color:inherit}
:focus-visible{outline:3px solid var(--coral);outline-offset:4px;border-radius:6px}
.wrap{padding-left:var(--gut-l);padding-right:var(--gut-r);max-width:1180px;margin-inline:auto}
h1,h2,h3{font-family:var(--display);font-weight:700;line-height:.92;margin:0;text-wrap:balance;letter-spacing:.005em}
p{margin:0}
.eyebrow{font-size:13px;letter-spacing:.14em;font-weight:600;color:var(--coral)}

/* NAV: a rounded pill; sits on top in the hero, then drops to the bottom and stays there */
.nav{--nav-h:64px;position:fixed;z-index:40;left:50%;top:calc(14px + env(safe-area-inset-top,0px));translate:-50% 0;width:min(720px,calc(100% - 24px));height:var(--nav-h);
  display:flex;align-items:center;gap:clamp(8px,2.4vw,28px);padding-inline:26px 9px;
  background:rgba(252,248,247,.92);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border:1px solid var(--paper-2);color:var(--ink);border-radius:999px;
  box-shadow:0 18px 50px -24px rgba(0,0,0,.7);transition:top .75s cubic-bezier(.65,0,.35,1),background-color .4s,border-color .4s,box-shadow .4s}
.nav-home{display:grid}
.nav-home .logo{grid-area:1/1;transition:opacity .4s}
.nav .logo{display:block;height:52px;width:auto;margin-block:-4px}
.nav .logo{display:none}
.nav .logo-dark{display:block}
/* burger + menu, in the brand's dark/coral */
.nav-burger{width:46px;height:46px;border-radius:50%;border:1px solid #E3DBD8;background:none;display:grid;place-content:center;gap:4px;cursor:pointer;transition:border-color .2s,background .2s}
.nav-burger i{display:block;width:18px;height:2px;border-radius:2px;background:var(--ink);transition:transform .3s,opacity .2s}
.nav-burger:hover{border-color:var(--coral)}
.nav-burger[aria-expanded=true]{background:var(--coral);border-color:var(--coral)}
.nav-burger[aria-expanded=true] i{background:#fff}
.nav-burger[aria-expanded=true] i:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-burger[aria-expanded=true] i:nth-child(2){opacity:0}
.nav-burger[aria-expanded=true] i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.nav-menu{position:absolute;top:calc(100% + 10px);inset-inline-end:0;min-width:230px;display:grid;gap:2px;padding:10px;background:#fff;border:1px solid var(--paper-2);border-radius:22px;box-shadow:0 24px 50px -24px rgba(29,35,45,.45)}
.nav-menu[hidden]{display:none}
.nav-menu a{font-family:var(--display);font-weight:700;font-size:34px;line-height:1;color:var(--ink);text-decoration:none;padding:10px 16px;border-radius:14px;transition:background .2s,color .2s}
.nav-menu a:hover{background:var(--paper);color:var(--coral-deep)}
.nav-menu a.hot{color:var(--coral)}
.nav-cta{margin-inline-start:auto;display:flex;align-items:center;gap:8px}
.nav-cta span{font-family:var(--display);font-weight:700;font-size:28px;line-height:1;margin-inline-end:6px}
.nav-btn{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;text-decoration:none;transition:background .2s,color .2s,border-color .2s,transform .2s}
.nav-btn svg{width:22px;height:22px}
/* the bubble's tail weighs it down-left: nudged so it sits optically centred in the circle */
.nav-btn.wa svg{width:27px;height:27px;transform:translate(.5px,-1.5px)}
.nav-btn:hover{transform:translateY(-2px)}
.nav-btn.wa{background:var(--coral);color:#fff}
.nav-btn.wa:hover{background:var(--coral-deep)}
.nav-btn.tel{border:1px solid #E3DBD8;color:var(--ink)}
.nav-btn.tel:hover{border-color:var(--coral);color:var(--coral)}
@media (max-width:600px){
  .nav{--nav-h:56px;padding-inline:16px 7px}
  .nav .logo{height:42px}
  .nav-links a{font-size:15px;padding:4px 6px}
  .nav-cta span{display:none}
  .nav-btn{width:42px;height:42px}
}
@media (prefers-reduced-motion:reduce){.nav{transition:none}}

/* PEEK: scrolling in the hero grows the pupil's dark disc over the screen; a laptop orbits in under the title, plays the project heroes, orbits out, and the disc closes back into the pupil */
.hero-wrap{position:relative;z-index:1}
.peek{position:fixed;inset:0;z-index:30;background:var(--ink);color:var(--paper);clip-path:circle(0 at 50% 50%);visibility:hidden;overflow:hidden;pointer-events:none;display:grid;place-items:center}
.pk-glow{position:absolute;width:min(92vmin,860px);aspect-ratio:1;border-radius:50%;border:1px solid var(--ink-line);box-shadow:inset 0 0 120px rgba(255,97,89,.08)}
@media (max-width:820px){.pk-glow{width:min(94vw,420px)}
  /* phones: the front screen as wide as it can go, the side screens only peeking in at the edges */
  .peek .pk-browser{width:86vw}}
/* the ring fills the screen and centres the laptop itself (no shrink-to-fit maths, which some browsers size differently) */
.pk-ring{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.pk-item{position:relative;grid-area:1/1}
.pk-browser{width:clamp(300px,min(44vw,62vh),620px);border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 40px 80px -30px rgba(0,0,0,.8),0 0 0 1px rgba(255,255,255,.06)}
.pk-bar{height:22px;background:var(--ink-2);display:flex;gap:6px;align-items:center;padding-inline:10px;direction:ltr}
.pk-bar i{width:8px;height:8px;border-radius:50%;background:var(--ink-line)}
.pk-bar i:first-child{background:var(--coral)}
.pk-scr{position:relative;overflow:hidden;aspect-ratio:16/10}
.pk-scr img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}
/* the carousel: every screen stacked in one spot, then spread by script into centre / sides / waiting off-stage */
.pk-car{display:grid}
.pk-car .pk-browser{grid-area:1/1;pointer-events:auto;cursor:pointer}
.pk-center{position:relative;z-index:2;text-align:center;display:grid;gap:10px;justify-items:center}
.pk-tag{font-size:13px;letter-spacing:.12em;color:var(--coral);font-weight:600}
.pk-title{font-family:var(--display);font-weight:700;line-height:.92;font-size:clamp(44px,5vw,76px)}
.pk-title em{font-style:normal;color:var(--coral)}
@media (prefers-reduced-motion:reduce){.peek{display:none}}

/* HERO */
.hero{background:var(--paper);color:var(--ink);min-height:92svh;display:grid;grid-template-rows:1fr auto;justify-items:center;align-items:center;row-gap:28px;text-align:center;padding-block:96px 6px;padding-inline:var(--gut-l) var(--gut-r);position:relative}
.hero-inner{display:grid;justify-items:center;gap:28px}
.eye{width:min(294px,55vw);height:auto;overflow:visible}
.hero h1{font-size:clamp(60px,11vw,150px);color:var(--ink);max-width:24ch}
.hero h1 em{font-style:normal;color:var(--coral)}
/* a round full stop instead of the display typeface's square one, wherever a heading ends with one */
.rdot{display:inline-block;width:.15em;height:.15em;border-radius:50%;background:currentColor;margin-inline-start:.05em}
.num .rdot{margin-inline:.05em}
.hero .kicker{font-size:clamp(16px,2vw,19px);letter-spacing:.04em;color:var(--ink);margin-bottom:-22px}
.hero .sub{color:var(--mute-paper);font-size:clamp(16px,2vw,19px);max-width:560px;line-height:1.65;text-wrap:pretty}
.hero .sub b{font-weight:700;color:var(--ink)}
.hero .sub .first{display:block;margin-bottom:4px}
.hero-cta{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:17px;text-decoration:none;color:#fff;background:var(--coral);padding:13px 26px;border-radius:999px;transition:background .2s,transform .2s}
.hero-cta:hover{background:var(--ink);color:var(--paper);transform:translateY(-2px)}
.hint{white-space:nowrap;display:grid;justify-items:center;gap:4px;margin-top:34px;color:var(--ink);font-size:13px;letter-spacing:.12em;opacity:.0;transition:opacity .5s}
.hint.on{opacity:1}
.hint svg{width:22px;height:22px;stroke:var(--coral);animation:nudge 1.4s ease-in-out infinite}
@keyframes nudge{0%,100%{transform:translateY(-2px)}50%{transform:translateY(6px)}}

/* CLOCK */
.stage{height:100svh;display:grid;place-items:center;text-align:center;position:relative;overflow:hidden}
.clock{background:var(--ink);color:var(--paper)}
.clock .stage{height:auto;min-height:88svh;padding:110px var(--gut-r) 60px var(--gut-l);align-content:center}
.clock-wrap{width:min(1100px,100%);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(30px,6vw,90px);align-items:center}
.clock-box{display:grid;justify-items:center;gap:10px}
.num-row{display:flex;align-items:baseline;justify-content:center;gap:.18em;direction:rtl}
.num-unit{font-family:var(--display);font-weight:700;font-size:clamp(64px,9vw,120px);line-height:.8;color:var(--coral)}
.clock .num{font-size:clamp(120px,17vw,230px)}
.clock-line .nowrap{white-space:nowrap}
.clock-info{display:inline-grid;flex:none;line-height:0;place-items:center;width:30px;height:30px;margin-inline-start:6px;padding:0;border:0;border-radius:50%;background:none;color:var(--coral);cursor:pointer;vertical-align:middle;transition:background .2s,color .2s,transform .2s}
.clock-info svg{width:26px;height:26px}
.clock-info:hover,.clock-info[aria-expanded=true]{background:var(--coral);color:var(--ink)}
.clock-info:hover{transform:translateY(-1px)}
.study[hidden]{display:none}
/* the screen beside it: dark, except for 0.05s every 3s */
.flash-screen{border-radius:14px;overflow:hidden;background:#0f1319;box-shadow:0 30px 70px -30px rgba(0,0,0,.8),0 0 0 1px var(--ink-line)}
.fs-bar{display:flex;gap:6px;align-items:center;height:24px;padding-inline:12px;background:var(--ink-2);direction:ltr}
.fs-bar i{width:8px;height:8px;border-radius:50%;background:var(--ink-line)}
.fs-bar i:first-child{background:var(--coral)}
.fs-view{aspect-ratio:16/10}
.flash-screen{visibility:hidden}
.flash-screen.on{visibility:visible}
.fs-holder{position:relative}
.fs-note{position:absolute;left:50%;bottom:-18px;translate:-50% 0;margin:0;display:flex;align-items:flex-end;gap:10px;white-space:nowrap;
  font-family:var(--display);font-weight:400;font-size:clamp(30px,3.2vw,44px);line-height:1;color:var(--paper)}
.fs-arrow{width:clamp(40px,4vw,56px);height:auto;color:var(--coral);transform:rotate(-100deg) scaleY(-1);margin-bottom:.35em}
.fs-view .mini{width:100%;height:100%;border-radius:0;box-shadow:none}
.fs-view .mini .chrome{display:none}
@media (max-width:820px){.clock-wrap{grid-template-columns:1fr;gap:34px}.fs-holder{width:min(420px,100%);justify-self:center}}
@media (prefers-reduced-motion:reduce){.flash-screen{visibility:visible}}
.num{font-family:var(--display);font-weight:700;font-size:clamp(150px,30vw,330px);line-height:.8;direction:ltr;color:var(--coral);transform-origin:50% 50%}
.clock-line{font-size:clamp(20px,2.6vw,30px);font-weight:600;max-width:22ch;text-wrap:balance}
.clock-line .dots{color:var(--coral)}
.fn{font-family:var(--body);font-size:.5em;font-weight:800;color:var(--coral-deep);margin-inline-start:2px;vertical-align:super;line-height:0}
/* citation styled like a clipping from the paper */
.study{margin:30px 0 0;width:min(560px,100%);text-align:right;background:#fff;border:1px solid var(--paper-2);border-top:3px solid var(--ink);border-radius:4px 4px 10px 10px;padding:16px 20px 18px;box-shadow:0 22px 50px -30px rgba(29,35,45,.45);transform-origin:50% 0}
.study-tag{display:flex;justify-content:space-between;gap:12px;padding-bottom:10px;margin-bottom:12px;border-bottom:1px dashed #d9cfcc;font-size:12px;letter-spacing:.12em;color:var(--mute-paper);font-family:ui-monospace,"SF Mono",Menlo,monospace}
.study-tag span:first-child{color:var(--coral-deep);font-weight:700;font-family:var(--body);letter-spacing:.14em}
.study blockquote{margin:0;font-size:clamp(18px,2.2vw,22px);font-weight:600;line-height:1.45;color:var(--ink)}
.study blockquote b{background:linear-gradient(transparent 58%,rgba(255,97,89,.32) 58%);font-weight:800}
.study blockquote .fn{font-size:.7em}
.study figcaption{margin-top:12px;font-size:12.5px;line-height:1.55;color:var(--mute-paper);text-align:left;font-family:Georgia,"Times New Roman",serif}
.mini{width:min(560px,84vw);border-radius:12px;overflow:hidden;background:var(--paper);color:var(--ink);text-align:right;box-shadow:0 30px 80px -30px rgba(0,0,0,.6)}
.mini .chrome{display:flex;gap:7px;padding:8px 12px;background:var(--paper-2);direction:ltr}
.mini .chrome i{width:9px;height:9px;border-radius:50%;background:#d9cfcc}
.mini .chrome i:first-child{background:var(--coral)}
.mini .body{padding:22px;display:grid;gap:10px}
.mini .body b{font-family:var(--display);font-size:clamp(30px,5vw,46px);line-height:.95}
.mini .r{height:9px;border-radius:6px;background:var(--paper-2)}
.mini .g{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.mini .g div{aspect-ratio:4/3;border-radius:8px;background:var(--paper-2)}

/* WALL */
.wall{background:var(--paper);color:var(--ink)}
/* the few px the pin adds below the wall must stay paper, not the dark page behind it */
.pin-spacer:has(> #wall){background:var(--paper)}
.wall .stage{height:auto;place-items:center;align-content:start;padding:calc(150px + env(safe-area-inset-top,0px)) var(--gut-l) 70px var(--gut-r)}
/* the paragraph and the line share one spot: the words fall away and the line rises in where they were */
.wall .blob,.wall .wall-end{grid-area:1/1}
.wall-head{position:absolute;top:calc(84px + env(safe-area-inset-top,0px));left:0;right:0;display:flex;justify-content:space-between;gap:16px;padding-inline:var(--gut-r) var(--gut-l);font-size:14px;color:var(--mute-paper);max-width:1180px;margin-inline:auto}
.wall-head .wall-title{font-size:clamp(17px,1.9vw,21px);font-weight:600;color:var(--ink)}
.wall-head strong{color:var(--ink);font-variant-numeric:tabular-nums}
.blob{max-width:640px;font-size:clamp(14px,1.7vw,17px);line-height:1.75;color:#4b4542;text-align:justify}
.blob span{display:inline-block;margin-inline-end:.28em;will-change:transform}
.wall-end{position:relative;align-self:center;z-index:2;text-align:center;display:grid;gap:8px;padding-inline:var(--gut-l) var(--gut-r)}
.wall-end h2{font-size:clamp(54px,9vw,120px)}
.wall-end p{color:var(--mute-paper)}

/* FOLD divider */
/* both colours are painted inside the svg; the box behind is split the same way, so a sub-pixel edge never shows the wrong colour */
.fold{background:linear-gradient(var(--paper) 50%,var(--ink) 50%);line-height:0;position:relative;z-index:2;margin-block:-1px -4px}
.fold svg{display:block;width:100%;height:clamp(70px,11vw,170px);margin-bottom:-1px;overflow:visible}
.fold path{fill:var(--ink)}
.fold .fold-bg{fill:var(--paper)}
.fold.to-paper{background:linear-gradient(var(--ink) 50%,var(--paper) 50%)}
.fold.to-paper path{fill:var(--paper)}
.fold.to-paper .fold-bg{fill:var(--ink)}

/* ATTENTION + MANIFESTO: two beats in one pinned stage (stacked in flow when there is no motion) */
.glance .stage{padding-inline:var(--gut-l) var(--gut-r);align-content:center;gap:60px}
.glance:not(.layered) .stage{height:auto;min-height:100svh;padding-block:50px 90px}
.glance.layered .stage{grid-template-areas:"beat";gap:0}
.glance.layered .stage>div{grid-area:beat}
/* the sentence sits up near the divider, not in the middle of the screen */
.glance.layered .stage{align-content:stretch}
.glance.layered #glA{align-self:start;padding-top:calc(84px + 4vh)}
.glance.layered #glB{align-self:center}
.gl-a{display:grid;gap:26px;justify-items:center}
.world{font-size:clamp(21px,2.8vw,32px);font-weight:600;color:var(--mute-ink);max-width:30ch;text-wrap:balance}
.world span{display:inline-block}
.world b{font-weight:600;color:var(--paper)}
.love{font-size:clamp(60px,10vw,140px);max-width:17ch;text-wrap:balance}
.love i{font-style:normal;color:var(--coral)}
/* the manifesto as a message sent from my profile photo */
.msg{display:flex;align-items:flex-start;gap:clamp(10px,1.6vw,18px);width:min(860px,100%);margin-inline:auto;text-align:right}
.avatar{flex:none;width:clamp(110px,13vw,170px);aspect-ratio:1;border-radius:50%;overflow:hidden;background:#fff}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
.bubble{position:relative;flex:1;min-width:0;background:var(--ink-2);border-radius:26px 6px 26px 26px;padding:clamp(18px,2.6vw,30px) clamp(18px,3vw,34px) 16px;box-shadow:0 26px 60px -34px rgba(0,0,0,.8);transform-origin:100% 0}
.bubble::before{content:"";position:absolute;top:0;right:-11px;width:14px;height:18px;background:var(--ink-2);clip-path:polygon(0 0,100% 0,0 100%)}
/* phones: the photo first, the message under it, its tail pointing up at the photo */
@media (max-width:820px){
  .msg{flex-direction:column;align-items:center;gap:20px}
  .avatar{width:clamp(110px,34vw,140px)}
  .bubble{flex:none;width:100%;border-radius:26px;transform-origin:50% 0}
  .bubble::before{top:-13px;right:auto;left:50%;translate:-50% 0;width:26px;height:14px;clip-path:polygon(50% 0,100% 100%,0 100%)}
}
.mani{margin:0;font-size:clamp(20px,2.7vw,31px);line-height:1.45;font-weight:600;text-wrap:pretty}
.mani .w{opacity:.18}
.mani .hl{color:var(--coral)}
/* name and title under the photo */
.me{flex:none;display:grid;justify-items:center;gap:12px;text-align:center}
.me-cap{margin:0;font-size:15px;line-height:1.45;color:var(--mute-ink)}
.me-cap b{font-weight:600;color:var(--paper)}

/* PROCESS: pinned on paper; one eye goes from a pencil sketch, to colour, to a blink, to a toast inside the pupil */
.proc{background:var(--paper);color:var(--ink);overflow:hidden;height:100svh;display:flex;flex-direction:column}
.proc .proc-stage{flex:1;width:100%;align-content:center}
.proc-fold{flex:none;margin-bottom:-2px}
.proc-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;column-gap:clamp(30px,6vw,90px);row-gap:clamp(16px,3vw,34px);max-width:1180px;margin-inline:auto;padding:calc(84px + 2vh) var(--gut-r) clamp(24px,4vh,44px) var(--gut-l)}
.proc-title{grid-column:1/-1;text-align:center;font-size:clamp(44px,5.6vw,78px);font-weight:300;color:var(--ink)}
.proc-title em{font-style:normal;font-weight:400}
/* the steps stack in one cell, so the box is as tall as the longest step and the bar always sits under the text */
.proc-texts{position:relative;display:grid;align-content:center}
.proc-t{grid-area:1/1;display:grid;align-content:center;gap:14px}
.proc-t h3{font-size:clamp(68px,8.4vw,116px)}
.proc-t .pn{color:var(--coral);font-size:.5em;vertical-align:.45em}
.proc-t p{color:var(--mute-paper);max-width:30ch;font-size:clamp(17px,1.6vw,19px)}
.proc-bar{grid-area:2/1;display:flex;gap:8px;margin-top:26px}
.proc-bar i{width:46px;height:4px;border-radius:4px;background:var(--paper-2);overflow:hidden;position:relative}
.proc-bar i b{position:absolute;inset:0;background:var(--coral);transform-origin:right;transform:scaleX(0)}
.proc-art{position:relative;justify-self:center;width:min(460px,100%);aspect-ratio:400/260;display:grid;place-items:center}
.proc-art svg{width:100%;height:auto;overflow:visible}
/* the graphic bits that fly in for "design" */
.pel{position:absolute;pointer-events:none}
.pel.dot{width:54px;height:54px;border-radius:50%;background:var(--coral);top:-6%;right:6%}
.pel.ring{width:70px;height:70px;border-radius:50%;border:5px solid var(--ink);bottom:-10%;left:4%}
.pel.chips{display:flex;gap:6px;top:-4%;left:2%}
.pel.chips i{width:26px;height:38px;border-radius:7px;border:2px solid var(--ink)}
.pel.chips i:nth-child(1){background:var(--coral)}.pel.chips i:nth-child(2){background:var(--ink)}.pel.chips i:nth-child(3){background:var(--paper-2)}
.pel.aa{font-family:var(--display);font-weight:700;font-size:64px;line-height:1;bottom:-12%;right:2%;color:var(--ink)}
.pel.aa span{color:var(--coral)}
.pel.squig{width:96px;left:-12%;top:38%}
.pel.spark{width:40px;right:-8%;top:30%}
@media (max-width:820px){
  .proc-stage{grid-template-columns:1fr;row-gap:18px;padding-top:80px}
  .proc-title{font-size:40px;order:-2}
  .proc-title em{display:block;font-weight:700}
  .proc{touch-action:pan-y}
  .proc-art{order:-1;width:min(300px,78%)}
  .proc-texts{text-align:center}
  .proc-t{justify-items:center}
  .proc-t h3{font-size:62px}
  .proc-bar{justify-content:center}
  .pel.dot{width:36px;height:36px}.pel.ring{width:46px;height:46px;border-width:4px}.pel.chips i{width:18px;height:26px}.pel.aa{font-size:42px}.pel.squig{width:64px;left:-8%}.pel.spark{width:28px;right:-4%}
}

/* DIVE */
.dive .stage{gap:26px;align-content:center}
.dive h2{font-size:clamp(46px,7vw,92px)}
.dive-eye{width:min(360px,70vw);height:auto;overflow:visible;transform-origin:50% 50%}

/* PROJECTS */
.work{padding-block:0 60px;position:relative;z-index:3}
/* with the dive running, the projects ride up into its last screen (it is solid ink by then) instead of waiting a whole screen below it */
.tight-dive .work{margin-top:calc(-100svh + 228px)}
@media (max-width:820px){.tight-dive .work{margin-top:calc(-100svh + 116px + env(safe-area-inset-top,0px))}}
/* in the projects section the pointer becomes the line eye; over links it turns coral */
.work,.work *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='30' viewBox='0 -14 400 250'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M30 110 Q200 -20 370 110 Q200 240 30 110 Z M200 34 v-16 M118 50 l-10 -13 M282 50 l10 -13' stroke='%231D232D' stroke-width='44'/%3E%3Cpath d='M30 110 Q200 -20 370 110 Q200 240 30 110 Z M200 34 v-16 M118 50 l-10 -13 M282 50 l10 -13' stroke='%23FCF8F7' stroke-width='22'/%3E%3C/g%3E%3Ccircle cx='200' cy='112' r='44' fill='%23FF6159'/%3E%3Ccircle cx='200' cy='112' r='16' fill='%231D232D'/%3E%3C/svg%3E") 24 15, auto}
.work a,.work a *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='30' viewBox='0 -14 400 250'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M30 110 Q200 -20 370 110 Q200 240 30 110 Z M200 34 v-16 M118 50 l-10 -13 M282 50 l10 -13' stroke='%231D232D' stroke-width='44'/%3E%3Cpath d='M30 110 Q200 -20 370 110 Q200 240 30 110 Z M200 34 v-16 M118 50 l-10 -13 M282 50 l10 -13' stroke='%23FF6159' stroke-width='22'/%3E%3C/g%3E%3Ccircle cx='200' cy='112' r='44' fill='%23FF6159'/%3E%3Ccircle cx='200' cy='112' r='16' fill='%231D232D'/%3E%3C/svg%3E") 24 15, pointer}
.work-intro{text-align:center;padding-block:0 24px}
.work-intro h2{font-size:clamp(52px,9vw,118px)}
.work-intro h2.accent{color:var(--coral)}
.work-intro p{color:var(--mute-ink);margin-top:10px}
/* each project: the live site on a laptop, with the same site on a phone over its corner; sides alternate */
.proj{min-height:165vh;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:clamp(28px,5vw,72px);align-items:start;padding-block:60px}
.proj.flip{grid-template-columns:minmax(0,1fr) minmax(0,1.35fr)}
.proj.flip .devices{order:2}
.devices{position:sticky;top:calc(14vh + env(safe-area-inset-top,0px));padding-bottom:9%}
.laptop{margin-inline-end:27%;border-radius:14px;overflow:hidden;background:var(--ink-2);border:1px solid var(--ink-line);box-shadow:0 30px 80px -30px rgba(0,0,0,.6)}
.laptop .vp{aspect-ratio:16/10}
.chrome{text-decoration:none;color:inherit;display:flex;align-items:center;gap:8px;padding:10px 14px;background:var(--ink-2);direction:ltr}
.chrome i{width:10px;height:10px;border-radius:50%;background:var(--ink-line)}
.chrome i:first-child{background:var(--coral)}
.chrome:hover span{color:var(--paper)}
.chrome span{margin-inline:auto;font-size:12px;color:var(--mute-ink);background:var(--ink);padding:3px 14px;border-radius:20px;max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.phone{position:absolute;bottom:0;left:0;width:24%;aspect-ratio:9/19.5;border-radius:28px;background:#0f1319;padding:7px;border:1px solid var(--ink-line);box-shadow:0 26px 60px -20px rgba(0,0,0,.85)}
.proj.flip .laptop{margin-inline:27% 0}
.proj.flip .phone{left:auto;right:0}
/* desktop: bigger screens; the projects get a wider stage than the rest of the page */
@media (min-width:821px){
  .work .wrap{max-width:1440px}
  .proj{grid-template-columns:minmax(0,1.75fr) minmax(0,1fr)}
  .proj.flip{grid-template-columns:minmax(0,1fr) minmax(0,1.75fr)}
  .laptop{margin-inline-end:21%}
  .proj.flip .laptop{margin-inline:21% 0}
  .phone{width:25%}
}
.phone::before{content:"";position:absolute;top:13px;left:50%;translate:-50% 0;width:30%;height:10px;border-radius:10px;background:#0f1319;z-index:2}
.phone .vp{height:100%;border-radius:22px}
/* live sites render at their real width (desktop 1440 / phone 390) and are scaled to the box */
.vp{position:relative;overflow:hidden;background:#0f1319}
.vp iframe{position:absolute;top:0;right:0;border:0;transform-origin:100% 0}
.info{display:grid;gap:18px;align-content:start;padding-top:12vh}
.info h3{font-size:clamp(64px,8vw,112px)}
.info .story{font-size:clamp(18px,1.9vw,21px);color:#D9D4D2;max-width:34ch}
.tags{display:flex;flex-wrap:wrap;gap:8px}
.tags span{font-size:14px;padding:5px 12px;border:1px solid var(--ink-line);border-radius:30px;color:var(--mute-ink)}
.live{justify-self:start;display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:17px;text-decoration:none;color:var(--ink);background:var(--coral);padding:12px 22px;border-radius:40px;transition:background .2s,transform .2s}
.live:hover{background:var(--paper);transform:translateY(-2px)}
.blink-div{display:grid;place-items:center;padding-block:10px}
.blink-div[hidden],.proj[hidden],.more-wrap[hidden]{display:none}
.more-wrap{display:grid;place-items:center;padding-block:30px 10px}
.more-btn{font:inherit;font-weight:800;font-size:18px;color:var(--paper);background:none;border:1.5px solid var(--coral);padding:14px 32px;border-radius:999px;transition:background .2s,color .2s,transform .2s}
.more-btn:hover{background:var(--coral);color:var(--ink);transform:translateY(-2px)}
.blink-div svg{width:84px;height:auto}

/* END */
/* above the footer divider, so the reviews phone's soft shadow fades out over it instead of being cut off by it */
.end{background:var(--paper);color:var(--ink);text-align:center;padding-block:40px 0;position:relative;z-index:3}
.end .wrap{display:grid;justify-items:center;gap:22px}
.end h2{font-size:clamp(60px,11vw,150px)}
.end h2 em{font-style:normal;color:var(--coral-deep)}
.end p{max-width:46ch;color:var(--mute-paper);font-size:19px}
.cta{display:inline-flex;gap:10px;align-items:center;background:var(--ink);color:var(--paper);text-decoration:none;font-weight:800;font-size:19px;padding:15px 30px;border-radius:50px;transition:background .2s}
.cta:hover{background:var(--coral-deep)}
.end-eye{width:120px;height:auto}
/* reviews: a phone receiving client messages, beside the contact buttons */
/* phone, arrow and the call to action sit close together in the middle, the arrow leaving right from the question */
.rv-grid{width:min(1040px,100%);display:grid;grid-template-columns:auto auto auto;justify-content:center;column-gap:clamp(14px,2vw,26px);align-items:center;margin-block:14px 10px}
.rv-acts{display:grid;justify-items:center;gap:14px}
.rv-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.rv-btns .cta{font-size:17px;padding:14px 24px}
.cta svg{width:22px;height:22px;flex:none}
.cta-wa svg{width:28px;height:28px;margin-block:-3px;transform:translateY(-1px)}
.cta-wa{background:#25D366;color:var(--ink)}
.cta-wa:hover{background:#1EBE5A;color:var(--ink)}
.rv-feel{font-family:var(--display);font-weight:700;font-size:clamp(36px,4.6vw,54px);line-height:.95;color:var(--ink)}
.rv-feel em{font-style:normal;color:var(--coral-deep)}
.rv-arrow{width:70px;height:auto;color:var(--coral)}
@media (min-width:821px){.rv-acts{justify-items:start}.rv-arrow{transform:translateY(-78px)}}
.rv-phone{justify-self:center;width:min(300px,74vw);aspect-ratio:9/18.5;border-radius:40px;background:#0f1319;padding:10px;box-shadow:0 30px 70px -30px rgba(29,35,45,.7);position:relative}
.rv-phone::before{content:"";position:absolute;top:18px;left:50%;translate:-50% 0;width:30%;height:14px;border-radius:12px;background:#0f1319;z-index:3}
.rv-screen{height:100%;border-radius:31px;overflow:hidden;background:#EFE7E3;display:grid;grid-template-rows:auto 1fr}
.rv-head{display:flex;align-items:center;gap:10px;background:var(--ink);color:var(--paper);padding:38px 14px 12px;text-align:right}
.rv-head img{width:34px;height:34px;border-radius:50%;object-fit:cover}
.rv-head b{font-size:15px;font-weight:600}
.rv-dot{margin-inline-start:auto;width:8px;height:8px;border-radius:50%;background:var(--coral);box-shadow:0 0 0 4px rgba(255,97,89,.2)}
.rv-thread{overflow:hidden;display:flex;flex-direction:column;justify-content:flex-end;gap:10px;padding:12px}
.rv-msg{flex:none;width:82%;border-radius:16px 16px 16px 4px;background:#fff;overflow:hidden;animation:rvPop .45s cubic-bezier(.3,1.5,.5,1) both}
.rv-msg:nth-child(even){align-self:flex-end;border-radius:16px 16px 4px 16px}
.rv-msg img{display:block;width:100%;height:auto}
.rv-msg.rv-img{background:none;border-radius:0;overflow:visible;filter:drop-shadow(0 6px 14px rgba(29,35,45,.18))}
.rv-ph{aspect-ratio:4/3;display:grid;place-content:center;justify-items:center;gap:6px;color:var(--mute-paper);font-size:13px;line-height:1.35;border:1px solid var(--paper-2);border-radius:inherit}
.rv-ph b{color:var(--ink);font-weight:600}
.rv-typing{align-self:flex-start;display:flex;gap:5px;background:#fff;border-radius:16px 16px 16px 4px;padding:12px 14px;flex:none}
.rv-typing i{width:7px;height:7px;border-radius:50%;background:var(--mute-paper);animation:rvDot 1s infinite}
.rv-typing i:nth-child(2){animation-delay:.15s}.rv-typing i:nth-child(3){animation-delay:.3s}
@keyframes rvPop{from{opacity:0;transform:translateY(14px) scale(.9)}}
@keyframes rvDot{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}
@media (max-width:820px){.rv-grid{grid-template-columns:1fr;gap:14px}.rv-arrow{justify-self:center;width:56px;transform:rotate(180deg) scaleX(-1) rotate(90deg)}.rv-phone{width:min(240px,64vw)}}
@media (prefers-reduced-motion:reduce){.rv-msg{animation:none}.rv-typing i{animation:none}}
.social{display:inline-flex;align-items:center;gap:12px;margin-top:14px;color:var(--ink);text-decoration:none;font-weight:600;font-size:17px;transition:color .2s}
.social-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;border:1.5px solid var(--ink);transition:background .2s,color .2s,border-color .2s,transform .2s}
.social-ic svg{width:22px;height:22px}
.social-arrow{width:40px;height:auto;color:var(--coral);transform:translateY(5px) scaleX(-1)}
.social-txt{font-family:var(--display);font-weight:700;font-size:30px;line-height:1}
.social:hover{color:var(--coral-deep)}
.social:hover .social-ic{background:var(--coral);border-color:var(--coral);color:#fff;transform:translateY(-2px)}
.end-logo{display:block;width:auto;height:clamp(64px,8vw,92px);margin-top:24px}
.site-foot{background:var(--ink);text-align:center}
.foot-logo{display:block;width:auto;height:clamp(64px,8vw,92px);margin:4px auto 0}
.foot{margin:0;padding:14px var(--gut-r) 30px var(--gut-l);text-align:center;font-size:14px;color:var(--paper)}

@media (max-width:820px){
  /* the floating nav sits at the bottom on phones: leave room under content it could cover */
  .work{padding-bottom:90px}
  .glance:not(.layered) .stage{padding-bottom:80px}
  .wall-head{flex-direction:column;gap:4px}
  .wall .stage{padding-top:calc(160px + env(safe-area-inset-top,0px))}
  .hero{padding-block:92px 2px;row-gap:18px}
  .hero-inner{gap:18px}
  .hero .kicker{font-size:15.5px;margin-bottom:-14px}
  .hero .sub{font-size:15.5px;line-height:1.6}
  .hero-cta{font-size:16px;padding:12px 22px}
  .glance:not(.layered) .stage{min-height:0;padding-block:24px 72px;gap:80px}
  .dive .stage{align-content:start;padding-top:36px}
  .proj,.proj.flip{min-height:0;grid-template-columns:1fr;gap:26px;padding-block:36px 76px}
  .devices{position:relative;top:0}
  .info{padding-top:0}
  .proj.flip .devices{order:0}
  /* phones: only the phone mockup, larger, with the live site to scroll inside it */
  .laptop{display:none}
  .devices{padding-bottom:0}
  .phone{position:relative;left:auto;right:auto;width:min(66%,270px);margin-inline:auto;border-radius:34px;padding:8px}
  .proj.flip .phone{right:auto}
  .phone .vp{border-radius:26px}
  .phone::before{top:15px;height:12px}
}
@media (prefers-reduced-motion:reduce){
  .mani .w{opacity:1}
  .hint{opacity:1}
  .hint svg{animation:none}
}
