/* אלברט · מנעולן בכפר יונה. Drawn like an old patent sheet: paper, ink, an enamel-red door and a brass key.
   Flat colours, square buttons, a serif for the big words. No glow, no glass, no gradient text.
   Scroll: the key slides into a cut-away cylinder, the pins ride its cuts and line up, the plug turns,
   and each pin brings one word from his Google reviews. Then the red door opens and the page turns to paper. */
:root {
  --paper: #F1EADB; --paper-hi: #F7F2E7; --sand: #E4DAC4; --ink: #1B1A17; --ink-2: #3A3630; --grey: #6E675C;
  --red: #B8361F; --red-dk: #962A17; --brass: #C9A04A; --green: #2F6B3A;
  --serif: "Frank Ruhl Libre Variable", "Frank Ruhl Libre", Georgia, serif;
  --sans: "Rubik Variable", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --top: 56px;
  --grid: linear-gradient(rgba(27, 26, 23, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(27, 26, 23, .055) 1px, transparent 1px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { display: block; }
h1, h2, p, ol, dl, dd, figure, blockquote { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: var(--paper); font-weight: 600; }
.skip:focus { top: 10px; }
.demo { padding: 7px 18px; background: var(--ink); color: var(--paper); font-size: 13px; line-height: 1.45; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 18px;
  background: var(--paper); border-bottom: 1.5px solid var(--ink); }
.logo { text-decoration: none; font: 900 25px/1 var(--serif); }
.logo small { font: 400 13px var(--sans); color: var(--grey); margin-inline-start: 4px; }
.top__call { font-weight: 600; font-size: 16px; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* ---------- buttons: square, flat, one red ---------- */
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; padding: 0 22px; border-radius: 3px; font: 600 17px var(--sans); text-decoration: none; transition: background-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dk); }
.btn--ink { border: 2px solid var(--ink); color: var(--ink); }
.btn--ink:hover { background: var(--ink); color: var(--paper); }
.btn--paper { border: 2px solid var(--paper); color: var(--paper); }
.btn--paper:hover { background: var(--paper); color: var(--ink); }

/* ---------- hero: a drawing sheet ---------- */
.hero { display: grid; gap: 22px; align-content: start; min-height: calc(100svh - var(--top)); padding: 30px 18px 22px; background-color: var(--paper); background-image: var(--grid); background-size: 22px 22px; }
h1 { font: 900 clamp(96px, 31vw, 210px)/.8 var(--serif); letter-spacing: -.01em; margin-top: 8px; }
.hero__sub { margin: 14px 0 20px; max-width: 24ch; font-size: 19px; color: var(--ink-2); }
.draw { border-top: 1.5px solid var(--ink); padding-top: 12px; }
.draw__key { width: 100%; max-width: 560px; height: auto; overflow: visible; }
.ln > * { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.6, .1, .3, 1) forwards; }
.ln .brass { fill: var(--brass); fill-opacity: 0; animation: draw 1.5s cubic-bezier(.6, .1, .3, 1) forwards, ink .5s 1.25s forwards; }
.ln .hole { fill: var(--paper); fill-opacity: 0; animation: draw 1.5s cubic-bezier(.6, .1, .3, 1) forwards, ink .5s 1.25s forwards; }
.ln .thin { stroke-width: 1; }
.ln > :nth-child(2) { animation-delay: .15s; } .ln > :nth-child(3) { animation-delay: .25s, 1.3s; } .ln > :nth-child(4) { animation-delay: .35s, 1.3s; }
.ln > :nth-child(5) { animation-delay: .4s, 1.4s; } .ln > :nth-child(6) { animation-delay: .9s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ink { to { fill-opacity: 1; } }
.callout { opacity: 0; animation: show .5s 1.6s forwards; }
.callout path { fill: none; stroke: var(--ink); stroke-width: 1; }
.callout text { font: 600 13px var(--serif); fill: var(--ink); }
@keyframes show { to { opacity: 1; } }
.draw figcaption, .cut__cap { margin-top: 6px; font: 500 14px var(--serif); color: var(--grey); }
.sheet { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--ink); background: var(--paper-hi); }
.sheet div { padding: 8px 11px 9px; }
.sheet div:nth-child(even) { border-inline-start: 1.5px solid var(--ink); }
.sheet div:nth-child(n + 3) { border-top: 1.5px solid var(--ink); }
.sheet dt { font-size: 12px; color: var(--grey); letter-spacing: .03em; }
.sheet dd { font-weight: 600; font-size: 15.5px; line-height: 1.35; }

/* ---------- the lock (pinned) ---------- */
.lock { position: relative; height: 460vh; background-color: var(--paper); background-image: var(--grid); background-size: 22px 22px; border-top: 1.5px solid var(--ink); }
.lock__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: 12px; max-width: 680px; margin: 0 auto; padding: calc(var(--top) + 6px) 18px 22px; overflow: hidden; }
.lock h2, .revs h2, .clock h2 { font: 800 clamp(34px, 9.6vw, 54px)/1.04 var(--serif); }
.cut { position: relative; }
.cut__svg { width: 100%; height: auto; }
.cut__shear { stroke: var(--ink); stroke-width: 1.3; stroke-dasharray: 6 5; }
.cut.is-open .cut__shear { stroke: var(--red); stroke-width: 2.4; stroke-dasharray: none; }
.pin { transition: opacity .3s; }
.pin.on .pin-key { fill: var(--red); }
.pin.dim { opacity: .4; }
.state { position: absolute; top: -10px; inset-inline-start: 3%; padding: 1px 12px 3px; border: 2.5px solid var(--red); color: var(--red); background: rgba(247, 242, 231, .9); font: 800 18px/1.3 var(--serif); letter-spacing: .05em; transform: rotate(-5deg); }
.cut.is-open .state { color: var(--green); border-color: var(--green); transform: rotate(3deg); }
.cut__hint { margin-top: 2px; font-size: 15px; color: var(--ink-2); transition: opacity .3s; }
.why { list-style: none; padding: 0; }
.why li { display: flex; flex-direction: column; gap: 4px; padding: 6px 0; }
.why b { font: 900 clamp(56px, 16vw, 84px)/1 var(--serif); color: var(--red); }
.why q { font: 500 20px/1.45 var(--serif); quotes: "\"" "\""; }
.why cite { font-style: normal; font-size: 14px; color: var(--grey); }
html.js:not(.calm) .why { display: grid; min-height: 184px; }
html.js:not(.calm) .why li { grid-area: 1 / 1; opacity: 0; transform: translateY(14px); transition: opacity .3s, transform .4s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
html.js:not(.calm) .why li.on { opacity: 1; transform: none; }
html.js:not(.calm) .why li.was { transform: translateY(-14px); }

/* ---------- the red door (pinned) ---------- */
.door { position: relative; height: 240vh; background: var(--ink); }
.door__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: linear-gradient(var(--ink) 0 71%, #24221E 71%); }
.door__scene { position: absolute; inset: 0; display: grid; place-items: center; padding-top: var(--top); will-change: transform; }
.door__frame { position: relative; width: min(56vw, 280px); aspect-ratio: 1 / 2.05; border: 11px solid var(--sand); border-bottom-width: 0; perspective: 1100px; background: #0F0E0C; }
.door__light { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: radial-gradient(85% 65% at 50% 45%, #FFF8E8, #F6E3B8 62%, #EBCB8C); }
.door__msg { display: flex; flex-direction: column; gap: 6px; font: 800 clamp(26px, 8vw, 34px)/1.1 var(--serif); text-align: center; }
.door__msg span { font: 500 16px var(--sans); color: var(--ink-2); }
.door__leaf { position: absolute; inset: 0; transform-origin: 100% 50%; display: grid; grid-template-rows: 1fr 1.3fr; gap: 8%; padding: 13% 13% 15%;
  background: linear-gradient(90deg, #A93019, #BC3820 40%, #B3341D); box-shadow: inset 0 0 0 2px #8F2614; backface-visibility: hidden; }
.door__panel { border: 2px solid #8F2614; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .12); }
.door__knob { position: absolute; left: 10%; top: 50%; width: 12%; aspect-ratio: 1; border-radius: 50%; background: var(--brass); border: 2px solid var(--ink); }
.door__floor { position: absolute; left: -60%; right: -60%; top: 100%; height: 34vh; background: linear-gradient(rgba(246, 227, 184, .6), rgba(246, 227, 184, 0)); clip-path: polygon(27.3% 0, 72.7% 0, 100% 100%, 0 100%); opacity: 0; pointer-events: none; }
.door__flood { position: absolute; inset: 0; background: var(--paper); opacity: 0; pointer-events: none; }

/* ---------- reviews, set like print ---------- */
.revs { padding: 60px 18px 58px; max-width: 820px; margin: 0 auto; }
.revs__count { margin-top: 6px; font-weight: 600; font-size: 15px; color: var(--grey); }
.revs__list { margin-top: 24px; border-top: 1.5px solid var(--ink); }
.rev { padding: 22px 0 20px; border-bottom: 1px solid rgba(27, 26, 23, .28); }
.rev blockquote { font: 500 clamp(22px, 6.2vw, 29px)/1.42 var(--serif); }
.rev figcaption { margin-top: 10px; font-size: 14.5px; font-weight: 600; color: var(--grey); }
html.js:not(.calm) .rev { opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .7s cubic-bezier(.22, 1, .36, 1); }
html.js:not(.calm) .rev.in { opacity: 1; transform: none; }
.more { display: inline-block; margin-top: 20px; font-weight: 600; text-underline-offset: 4px; }

/* ---------- 24 hours ---------- */
.clock { display: grid; gap: 20px; padding: 34px 18px 76px; max-width: 820px; margin: 0 auto; }
.dial { width: min(66vw, 280px); aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; }
.dial__ring { fill: var(--paper-hi); stroke: var(--ink); stroke-width: 2; }
.dial__in { fill: none; stroke: var(--ink); stroke-width: .8; }
.dial__ticks line { stroke: #CFC5AF; stroke-width: 2; stroke-linecap: butt; transition: stroke .25s; }
.dial__ticks line.big { stroke-width: 3.5; }
.clock.lit .dial__ticks line { stroke: var(--ink); }
.dial__ticks text { font: 700 13px var(--serif); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.dial__hand line { stroke: var(--red); stroke-width: 3.5; }
.dial__hand circle { fill: var(--ink); }
.dial__hand .tip { fill: var(--red); stroke: var(--paper-hi); stroke-width: 2.5; }
.clock__text p { margin-top: 8px; font-size: 18px; color: var(--ink-2); }

/* ---------- the end ---------- */
.end { display: flex; flex-direction: column; gap: 22px; padding: 68px 18px 84px; background: var(--ink); color: var(--paper); }
.end h2 { font: 800 clamp(40px, 11vw, 66px)/1.04 var(--serif); }
.addr { color: #BDB5A6; }
.addr a { color: var(--paper); text-underline-offset: 4px; }
.foot { padding: 22px 18px 92px; background: #121110; color: #9B9384; font-size: 14px; display: grid; gap: 6px; }
.sticky { position: fixed; z-index: 45; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom));
  background: var(--ink); border-top: 1.5px solid #3A3630; transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
.sticky a { display: grid; place-items: center; min-height: 48px; border-radius: 3px; font-weight: 600; text-decoration: none; }
.sticky a:first-child { background: var(--red); color: #fff; }
.sticky a:last-child { border: 2px solid var(--paper); color: var(--paper); }
.sticky.off { transform: translateY(110%); }

/* no script or calm motion: everything is simply there */
html:not(.js) .lock, html:not(.js) .door, .calm .lock, .calm .door { height: auto; }
html:not(.js) .lock__pin, html:not(.js) .door__pin, .calm .lock__pin, .calm .door__pin { position: relative; height: auto; min-height: 100svh; }
html:not(.js) .door__leaf, .calm .door__leaf { transform: rotateY(-100deg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ln > * { stroke-dashoffset: 0; } .ln .brass, .ln .hole { fill-opacity: 1; } .callout { opacity: 1; }
}

@media (min-width: 900px) {
  :root { --top: 64px; }
  .hero { grid-template-columns: 1fr 1.15fr; align-items: end; column-gap: 48px; padding: 48px 6vw 30px; }
  .hero__text { align-self: center; }
  .draw { align-self: center; }
  .sheet { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .sheet div:nth-child(n) { border-top: 0; border-inline-start: 1.5px solid var(--ink); }
  .sheet div:first-child { border-inline-start: 0; }
  .clock { grid-template-columns: auto 1fr; align-items: center; column-gap: 56px; }
  .sticky { display: none; }
  .foot { padding-bottom: 26px; }
  .door__frame { width: 290px; }
}
