/* HAMIXIYA site · the home page, "לי מדברת", refined (Guy, 30.11.2026 15:58): Lee's words lead, at a calm size.
   Two layouts, each built for its screen: a wide one, and one for a phone (under 860px).
   Two numbers drive what moves, set by home.js on its host (the opening, or a tool's panel): --p, how far it
   has come in, and --c, how far the next thing covers it. Without the script both rest at their end (1 and 0):
   everything is drawn. */

.hero, .panel { --p: 1; --c: 0; }

/* ── a sign drawn flat: the phone's layout, and strong contrast on a wide window (elsewhere the sign is glass:
   opening.css). The fine line-work that used to surround it is gone (Guy, 1.12.2026 02:22: "לא רוצה את הקווים
   המזעזעים האלה יותר"). ── */
.plate { display: block; width: 100%; height: auto; overflow: visible; fill: none; color: var(--text); }
.pl-sign path { stroke-width: 4.5; stroke-dasharray: 1; }
.pl-sign .g-ink { stroke: currentColor; stroke-dashoffset: max(0, calc(1 - var(--p) * 1.3)); }
.pl-sign .g-lee { stroke: var(--pink); stroke-dashoffset: max(0, calc(2.4 - var(--p) * 2.6)); }
.pl-lee .l { stroke: currentColor; stroke-width: 6; stroke-dasharray: 1; stroke-dashoffset: max(0, calc(1 - var(--p) * 1.3)); fill: currentColor; fill-opacity: clamp(0, calc((var(--p) - .7) * 4), 1); }
.pl-lee .y { fill: var(--pink); opacity: clamp(0, calc((var(--p) - .8) * 6), 1); transform-box: fill-box; transform-origin: 50% 50%; transform: scale(min(1, calc(.5 + var(--p) * .55))); }

/* ── the opening: her words, and her sign coming into register beside them ── */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: center; gap: clamp(2rem, 6vw, 7rem);
  max-width: 104rem; min-height: 100vh; min-height: 100svh; margin-inline: auto; padding: 7.5rem var(--pad) 5rem;
}
.hero h1 { font-size: clamp(2.6rem, 5.9vw, 6.75rem); line-height: 1.05; letter-spacing: -.035em; }
.hero h1 span { display: block; width: fit-content; }
.me { position: relative; }
.me::after {   /* one fine pink line under her name, slanted like her own stroke */
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -.02em; height: .06em; background: var(--pink);
  transform-origin: calc(50% - 50% * var(--dir)) 50%; transform: scaleX(clamp(0, calc(var(--p) * 2 - 1), 1)) skewX(-15deg);
}
.lead { max-width: 24ch; margin-block-start: clamp(1.4rem, 2.6vw, 2.5rem); font-size: clamp(1.3rem, 2.1vw, 2.25rem); font-weight: 600; line-height: 1.25; text-wrap: balance; }
.house { max-width: 34rem; margin-block-start: clamp(1.25rem, 2vw, 2rem); font-size: clamp(1.0625rem, 1.2vw, 1.25rem); }
.state { max-width: 34rem; margin-block-start: .9rem; padding-block-start: .9rem; border-block-start: 1px solid var(--line); color: var(--text-2); font-size: 1rem; }
.hero .plate { max-width: 30rem; justify-self: center; }

/* ── a fine scale at the window's edge: where the page is ── */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail {
    position: fixed; inset-block: 24vh; inset-inline-end: 1.1rem; z-index: 5; display: block; width: .6rem; pointer-events: none;
    background: repeating-linear-gradient(to bottom, var(--text-2) 0 1px, transparent 1px 10px); opacity: .55;
  }
  .rail::after { content: ""; position: absolute; inset-inline: -.35rem; inset-block-start: calc(var(--s, 0) * 100%); height: .1875rem; background: var(--pink); transform: skewY(-15deg); }
}

/* ── the pile: each tool is one window tall, stops at the top, and the next one covers it ── */
.panel { position: sticky; inset-block-start: 0; z-index: 0; display: grid; align-items: center; min-height: 100vh; min-height: 100svh; background: var(--paper-2); box-shadow: 0 -1px 0 var(--line); overflow: clip; }
.panel:nth-child(2) { background: var(--card); }
.panel:nth-child(3) { background: var(--paper); }
.panel.is-tall { position: relative; }
.panel-in {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(2rem, 7vw, 9rem);
  width: 100%; max-width: 104rem; margin-inline: auto; padding: 6rem var(--pad);
  transform-origin: 50% 0; transform: scale(calc(1 - .05 * var(--c))); opacity: calc(1 - .55 * var(--c));
}
.panel:nth-child(even) .plate { order: 2; }
.panel .plate { max-width: 26rem; justify-self: center; }
.words { display: grid; gap: .9rem; }
.line { color: var(--pink-text); font-size: clamp(1.05rem, 1.3vw, 1.4rem); font-weight: 700; }
.panel h2 { font-size: clamp(2.2rem, 4.2vw, 4.75rem); letter-spacing: -.03em; }
.what { max-width: 28ch; font-size: clamp(1.2rem, 1.6vw, 1.75rem); font-weight: 600; line-height: 1.3; }
.more { max-width: 40ch; color: var(--text-2); }
.words .says { max-width: 40ch; margin-block-start: .4rem; }

/* ── three that are not built: an outline, a name, and a refusal when touched ── */
.soon-row { position: relative; padding: clamp(3.5rem, 8vw, 8rem) var(--pad); background: var(--paper); }
.soon-row > * { max-width: 97rem; margin-inline: auto; }
.soon-row h2 { font-size: clamp(1.8rem, 3vw, 3.5rem); }
.soon-row ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block-start: clamp(1.5rem, 3vw, 3rem); border-block: 1px solid var(--line); }
.soon-row li + li { border-inline-start: 1px solid var(--line); }
.soon { display: grid; justify-items: start; gap: 1.1rem; width: 100%; padding: clamp(1.5rem, 2.6vw, 2.75rem) clamp(1rem, 2.4vw, 2.5rem); border: 0; background: none; color: var(--grey); cursor: default; text-align: start; }
.soon-seat { display: block; width: clamp(3.5rem, 6vw, 6rem); aspect-ratio: 1; }
.soon-seat svg { width: 100%; height: 100%; fill: none; stroke-width: 5; }
.soon-glass { display: none; }
.soon .g-ink { stroke: currentColor; }
.soon .g-lee { stroke: currentColor; transition: stroke .15s ease; }
.soon-name { color: var(--text-2); font-size: clamp(1.25rem, 2vw, 2.1rem); font-weight: 800; line-height: 1.1; }
.soon-tag { padding: .15rem .65rem; border: 1px solid currentColor; color: var(--text-2); font-size: 1rem; font-weight: 600; }
.soon:is(:hover, :focus-visible) .soon-seat { animation: refuse .42s cubic-bezier(.3, .9, .4, 1); }
.soon:is(:hover, :focus-visible) .g-lee { stroke: var(--pink); }
@keyframes refuse { 20% { transform: translateX(-7%); } 45% { transform: translateX(7%); } 70% { transform: translateX(-4%); } }

/* ── what she does, beside what stays with the visitor: two halves, edge to edge ── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > div { padding: clamp(3.5rem, 8vw, 8rem) clamp(1.5rem, 6vw, 7rem); }
.does { background: var(--paper-2); }
.split h2 { font-size: clamp(1.8rem, 3vw, 3.5rem); }
.split .marks { margin-block-start: clamp(1.25rem, 2.2vw, 2.25rem); font-size: clamp(1.1rem, 1.4vw, 1.5rem); font-weight: 600; line-height: 1.4; }
.keep-line { max-width: 24ch; margin-block-start: clamp(1.25rem, 2.2vw, 2.25rem); font-size: clamp(1.2rem, 1.6vw, 1.75rem); font-weight: 600; line-height: 1.3; }
.split .go { margin-block-start: clamp(1.75rem, 3.5vw, 3.5rem); }

/* ── the entrance: a short scene over the page (home.js builds and plays it). The page is covered from the
   first paint; if the script never arrives, the cover leaves by itself. ── */
html.intro::before { content: ""; position: fixed; inset: 0; z-index: 90; background: #06070A; animation: intro-safe .4s 6s forwards; }
@keyframes intro-safe { to { opacity: 0; visibility: hidden; } }
.intro-box { position: fixed; inset: 0; z-index: 91; transition: opacity .4s ease; }
.intro-box.is-over { opacity: 0; pointer-events: none; }
.intro-scene { --room: #06070A; --lit: #F0F0F3; --dim: #171A21; --hand: #171A21; --seen: #12161F; --cord: #2E333D; --cord-lit: #8A8F9B; width: 100%; height: 100%; }
@media (prefers-color-scheme: dark) {   /* a dark device: the room is lit, and she turns the light off */
  html.intro::before { background: #F0F0F3; }
  .intro-scene { --room: #F0F0F3; --lit: #141821; --dim: #12161F; --hand: #E85C9E; --seen: #ECEFF3; --cord: #8A8F9B; --cord-lit: #4A505C; }
}
/* on a dark device the room she walks into is lit, so her glass wears the light look's glass: the dark one's milky body
   and white edges vanish on #F0F0F3 (Guy, 2.12.2026 01:54: "היא נראית לא טוב בכלל") */
@media (prefers-color-scheme: dark) { .intro-scene { --g-sheen: rgba(255, 255, 255, .14); --g-sheen-2: rgba(255, 255, 255, .5); --g-milk: rgba(255, 255, 255, 0); --g-hair: rgba(13, 18, 23, .42); --g-cast: rgba(13, 18, 23, .2); --g-far: rgba(255, 255, 255, .7); --y-hair: rgba(150, 30, 90, .4); --y-cast: rgba(232, 92, 158, .3); } }
.in-room { fill: var(--room); }
.in-light { fill: var(--lit); transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); transition: transform .62s cubic-bezier(.3, 0, .2, 1); }
.is-lit .in-light { transform: scale(270); }
.in-cord { transform-box: view-box; }
.in-cord path { fill: none; stroke: var(--cord); stroke-width: 1.6; transition: stroke .4s ease; }
/* the bead at the cord's end: her pink, as glass (a body the room shows through, a lit edge, one sheen) */
.in-bead { fill: color-mix(in srgb, var(--pink) 70%, transparent); stroke: color-mix(in srgb, var(--pink) 45%, #FFFFFF); stroke-width: 1; }
.in-bead-sheen { fill: rgba(255, 255, 255, .6); }
.is-lit .in-cord path { stroke: var(--cord-lit); }
.in-rock { transform-box: fill-box; transform-origin: 50% 100%; }
.in-rock .in-l, .in-rock .l { transform-box: fill-box; transform-origin: 50% 100%; }   /* she stretches on her toes, from her foot */
.in-rock .l { fill: var(--dim); transition: fill .45s ease .1s; }
.in-rock .y { fill: var(--hand); transition: fill .45s ease .1s; }
.is-lit .in-rock .l { fill: var(--seen); }
.is-lit .in-rock .y { fill: var(--pink); }
/* on a wide window she stays (home.js): the light is a hole that spreads in the room from the lamp, the dark shape is
   taken away under it (the glass is there, in its place), and the room is cleared by a timer, never by this motion alone */
.in-hole { fill: #000; transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); transition: transform .62s cubic-bezier(.3, 0, .2, 1); }
.is-on .in-hole { transform: scale(270); }
.is-on .in-walk, .is-clear .in-room, .is-gone .in-cord { display: none; }
.is-on .in-cord path { stroke: var(--cord-lit); }

/* ── the phone: its own layout. Her sign opens the page from the corner; each tool is one screen,
   composed top to bottom (its line and name, its sign, what it does); the rest are plain rows. ── */
@media (max-width: 859px) {
  /* her words come in with the page here; on a wide window they stand from the start (opening.css) */
  .hero h1 > span:first-child { opacity: clamp(0, calc(var(--p) * 3), 1); transform: translateY(calc((1 - var(--p)) * .5em)); }
  .me { opacity: clamp(0, calc(var(--p) * 3 - .5), 1); transform: translateY(calc((1 - var(--p)) * .8em)); }
  .hero-words > p { opacity: clamp(0, calc(var(--p) * 2.5 - 1), 1); }
  .hero { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 1.5rem; min-height: 0; padding: 5.5rem var(--pad) 3.5rem; }
  .hero .plate { order: -1; width: 42vw; max-width: 12rem; justify-self: end; }
  .panel-in { grid-template-columns: minmax(0, 1fr); align-content: center; gap: 1.5rem; padding: 5rem var(--pad) 2.5rem; transform: none; }
  .panel:nth-child(even) .plate { order: 0; }
  .words { display: contents; }
  .line { order: -3; }
  .panel h2 { order: -2; margin-block-start: -1rem; }
  .panel .plate { order: -1; width: 58vw; max-width: 16rem; justify-self: center; margin-block: .5rem; }
  .soon-row ul { grid-template-columns: minmax(0, 1fr); }
  .soon-row li + li { border-inline-start: 0; border-block-start: 1px solid var(--line); }
  .soon { grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: 1.1rem 0; }
  .soon-seat { width: 3rem; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split > div { padding: 3.5rem var(--pad); }
}

/* ── the request to join the beta: the page's last screen (Guy, 1.12.2026 03:17). One sheet holds one address, one
   optional line and one button, and the words under them say where the request stands. Shut (no key yet, or the
   request is on its way or in): the fields and the button are plainly shut, a dashed line and an outline, not a
   tile. Nothing here fades: a state replaces a state at once. On a wide window the sheet is clear glass;
   strong contrast and a narrow window keep the plain frame. ── */
.beta-form { display: grid; gap: clamp(1.25rem, 2vw, 1.75rem); max-width: 46rem; margin-block-start: clamp(2.5rem, 5vw, 5rem); padding: clamp(1.25rem, 3vw, 2.75rem); border: 1px solid var(--text); }
.beta-field { display: grid; gap: .5rem; }
.beta-field label { font-weight: 700; }
.beta-opt { color: var(--text-2); font-weight: 400; }
.beta-field input { width: 100%; min-height: 3.25rem; padding: 0 .25rem; border: 0; border-block-end: .125rem solid var(--text); border-radius: 0; background: none; color: inherit; font: inherit; font-size: 1.25rem; }
.beta-field input:disabled { border-block-end: 1px dashed var(--text-2); }
html[dir="rtl"] .beta-field input { text-align: right; }   /* an address is written left to right, and stands under its label */
.beta-go .btn:disabled { background: none; box-shadow: inset 0 0 0 1px var(--text-2); clip-path: none; color: var(--text-2); cursor: default; transform: none; }
.beta-says { position: relative; padding-inline-start: 1.75rem; font-weight: 600; }
.beta-says::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .82em; width: 1rem; height: .125rem; background: currentColor; }
.beta-form[data-state="in"] .beta-says::before { background: var(--pink); }
.beta-fine { color: var(--text-2); font-size: 1rem; }
.beta-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1100px) {   /* room for both: the words on the side a line starts on, the sheet across from them, one window tall */
  .beta .page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36rem); column-gap: clamp(2rem, 6vw, 7rem); align-items: center; min-height: 100vh; min-height: 100svh; }
  .beta-form { margin-block-start: 0; }
}

/* ── help: ten questions, and an answer opens under its own question (the browser's own <details>: no script, and
   nothing fades). The questions are the index. An answer that opens closes no other, so what was clicked stays
   under the pointer. The mark at a question's end is two straight lines; open, it turns into her pink X. ── */
.page-body.asks { grid-template-columns: minmax(0, 1fr); gap: .75rem; }
.asks > div { display: grid; align-content: start; gap: .75rem; }
.ask { border: 1px solid var(--line); }
.ask > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; padding: .6rem 1.25rem; cursor: pointer; list-style: none; }
.ask > summary::-webkit-details-marker { display: none; }
.ask > summary h3 { font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.25; letter-spacing: -.01em; }
.ask > summary .num { color: var(--text-2); font-weight: 400; font-variant-numeric: tabular-nums; }
.ask > summary::after {
  content: ""; flex: none; width: 1rem; height: 1rem; transition: transform var(--jump);
  background: linear-gradient(currentColor, currentColor) center / 100% .125rem no-repeat, linear-gradient(currentColor, currentColor) center / .125rem 100% no-repeat;
}
.ask[open] > summary::after { color: var(--pink); transform: rotate(45deg); }
.ask > .doc { padding: 0 1.25rem 1.35rem; }
@media (min-width: 1100px) {   /* two columns of five, each a flow of its own: an answer pushes only what stands under it */
  .page-body.asks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(1.5rem, 3vw, 3rem); }
}

/* ── one sheet of clear glass, wherever the long page lays something on the room (a wide window): the request's
   sheet, a question in help, each of contact's three, each of the three tools on the way and each of the two
   halves. The light is on the edges that face it and her colours on the edges it leaves by.
   No slab stands between the visitor and the room: the three on the way lose their ground, the half that was
   a dark tile takes the page's own colours back, and the outlines of her sign behind these blocks go, as on the
   inner pages. Strong contrast and a narrow window keep the plain look. ── */
@media (min-width: 860px) {
  html:not([data-contrast]) :is(.beta-form, .ask, .place .trio > div, .soon-row li, .split > div) {
    border: 1px solid; border-image: linear-gradient(135deg, var(--sheet-key) 0 30%, transparent 46% 56%, var(--e-pink) 72%, var(--e-purple) 92%, var(--e-navy)) 1;
    background: var(--sheet); box-shadow: var(--sheet-cast);
  }
  html:not([data-contrast]) .place .trio { gap: clamp(1rem, 2vw, 2rem); padding-block-start: clamp(1.5rem, 3vw, 3rem); }
  html:not([data-contrast]) .place .trio > div { padding: clamp(1.25rem, 2.2vw, 2.25rem); }
  html:not([data-contrast]) .soon-row { background: none; }
  html:not([data-contrast]) :is(.soon-row, .split) .ghosts { display: none; }
  html:not([data-contrast]) .soon-row ul { gap: clamp(1rem, 2vw, 2rem); border-block: 0; }
  /* a tool on the way wears thick glass too, laid on the app's own drawing of it, and none of her pink while it is
     not built: her line is glass like the rest, and the edges the light leaves by are plain (opening.css, --e-none) */
  html:not([data-contrast]) .soon-glass { display: block; overflow: visible; fill: currentColor; }
  html:not([data-contrast]) .soon-seat svg:not(.soon-glass) { display: none; }
  html:not([data-contrast]) .soon-seat { width: clamp(7rem, 11vw, 11rem); }
  html:not([data-contrast]) .split { gap: clamp(1rem, 2vw, 2rem); max-width: calc(97rem + 2 * var(--pad)); margin-inline: auto; padding: 0 var(--pad) clamp(3.5rem, 8vw, 8rem); }
  html:not([data-contrast]) .split > div { padding: clamp(2rem, 4vw, 4.5rem); }
  html:not([data-contrast]) .keep.inverse { --text: inherit; --text-2: inherit; --pink-text: inherit; --line: inherit; --shade: inherit; color: var(--text); }
  html:not([data-contrast]) .keep.inverse .btn { background: var(--tile); color: var(--on-tile); }
}
