/* =============================================================
   נפש — עיצוב משותף
   כותרות: Bellefair (אלגנטי ורך) · טקסט: Rubik (נקי וחמים)
   ============================================================= */

:root {
    --paper: #f7f2ea;
    --paper-2: #efe7da;
    --card: #fffcf7;
    --ink: #2b2420;
    --ink-soft: #6e625a;
    --ink-faint: #a0948a;
    --line: #e3d8c8;
    --accent: #b0603c;
    --accent-soft: #f1dfd2;
    --display: 'Bellefair', 'David Libre', serif;
    --text: 'Rubik', system-ui, sans-serif;
    --type: 'David Libre', 'Bellefair', serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --header-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.page { padding-top: var(--header-h); min-height: 100vh; }
.wrap { padding-inline: 6vw; }

/* ---------- כותרת עליונה ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 5vw;
    background: rgba(247, 242, 234, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
}

.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-mark {
    font-family: var(--display);
    font-size: 36px;
    line-height: 1;
    letter-spacing: 0.02em;
}
.brand-mark::after {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
    margin-inline-start: 4px;
}
.brand-sub { font-size: 14px; color: var(--ink-soft); }

.main-nav { display: flex; gap: 6px; }
.main-nav a {
    font-size: 16px;
    font-weight: 400;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--ink-soft);
    transition: background 0.25s, color 0.25s;
}
.main-nav a:hover { color: var(--ink); background: var(--paper-2); }
.main-nav a.active { color: var(--ink); background: var(--paper-2); }

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--text);
    font-size: 15px;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--paper);
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    white-space: nowrap;
}
.btn-pill:hover { background: var(--accent); }
.btn-pill.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-pill.ghost:hover { background: var(--ink); color: var(--paper); }

.text-link {
    color: var(--ink);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: color 0.2s;
}
.text-link:hover { color: var(--accent); }

/* ---------- טיפוגרפיה משותפת ---------- */
.eyebrow {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 14px;
}
.display-1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1.05; }
.display-2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }

.page-head { padding: 80px 6vw 40px; }
.page-head .lede { margin-top: 18px; }

/* =============================================================
   הילת האור — שכבת צבע וזוהר שעוקבים אחרי העכבר
   ============================================================= */
.bw { filter: grayscale(100%) sepia(0.14) contrast(1.06); }

.halo-color {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(circle var(--halo-r, 0px) at var(--hx, -999px) var(--hy, -999px),
        #000 0%, rgba(0,0,0,0.92) 35%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.18) 82%, transparent 100%);
    mask-image: radial-gradient(circle var(--halo-r, 0px) at var(--hx, -999px) var(--hy, -999px),
        #000 0%, rgba(0,0,0,0.92) 35%, rgba(0,0,0,0.55) 62%, rgba(0,0,0,0.18) 82%, transparent 100%);
}
.halo-color img { filter: saturate(1.15) contrast(1.04) brightness(1.05); }

.halo-glow {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    mix-blend-mode: soft-light;
    background: radial-gradient(circle calc(var(--halo-r, 0px) * 1.15) at var(--hx, -999px) var(--hy, -999px),
        rgba(255, 238, 210, 0.9) 0%, rgba(255, 226, 186, 0.35) 40%, transparent 75%);
}

/* תמונה בתוך מסגרת עם הילה: שתי השכבות חולקות מיקום וזום */
.photo {
    position: relative;
    overflow: hidden;
    background: #2b2420;
}
.photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--pos, center 25%);
    transform: scale(calc(var(--zoom, 1) * 1.04));
    transition: transform 1.2s var(--ease);
}
.photo:hover img { transform: scale(var(--zoom, 1)); }

/* דיוקן מיושר: העיניים באותו גובה והפנים באותו גודל (ראו applyFrame ב־site.js) */
.photo.framed img {
    inset: auto;
    left: 50%;
    top: var(--fe);
    width: auto;
    max-width: none;
    height: var(--fs);
    object-fit: initial;
    transform: translate(calc(var(--fx) * -1), calc(var(--fy) * -1));
    transform-origin: var(--fx) var(--fy);
    scale: 1.04;
    transition: scale 1.2s var(--ease), filter 1.2s var(--ease);
}
.photo.framed:hover img { transform: translate(calc(var(--fx) * -1), calc(var(--fy) * -1)); scale: 1; }

/* =============================================================
   עמוד הבית — עמודות אקורדיון
   ============================================================= */
.hero-showcase {
    height: calc(100vh - var(--header-h));
    min-height: 620px;
    display: flex;
    background: #1e1a17;
}

.column-card {
    position: relative;
    flex: 1;
    height: 100%;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: flex 0.85s var(--ease);
}
.column-card:hover { flex: 2.4; }

.column-card .photo { position: absolute; inset: 0; }

.column-shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(30,26,23,0.05) 0%, rgba(30,26,23,0.12) 50%, rgba(30,26,23,0.9) 100%);
}

.column-label {
    position: absolute;
    bottom: 28px;
    right: 0; left: 0;
    z-index: 5;
    text-align: center;
    color: #fff;
    font-family: var(--display);
    font-size: 1.35rem;
    transition: opacity 0.35s ease;
}
.column-card:hover .column-label { opacity: 0; }

.column-content {
    position: absolute;
    bottom: 40px;
    right: 36px;
    left: 36px;
    z-index: 5;
    color: #fff;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease 0.15s, transform 0.6s var(--ease) 0.15s;
    pointer-events: none;
}
.column-card:hover .column-content { opacity: 1; transform: none; }

.col-tag { font-size: 14px; color: rgba(255,255,255,0.75); margin-bottom: 6px; }
.col-name { font-family: var(--display); font-weight: 400; font-size: 2.6rem; line-height: 1.1; margin-bottom: 12px; }
.col-quote {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.55;
    max-width: 460px;
    margin-bottom: 18px;
    border-right: 2px solid var(--accent);
    padding-right: 14px;
}
.col-cta { font-size: 15px; border-bottom: 1px solid rgba(255,255,255,0.5); padding-bottom: 3px; }

/* ---------- מניפסט ---------- */
.manifesto { padding: 120px 6vw; border-bottom: 1px solid var(--line); }
.manifesto-quote {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.9rem, 3.4vw, 2.9rem);
    line-height: 1.3;
    max-width: 960px;
    margin-bottom: 70px;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5vw; }
.pillar { border-top: 1px solid var(--ink); padding-top: 26px; }
.pillar-num { font-size: 14px; color: var(--accent); margin-bottom: 10px; }
.pillar h3 { font-family: var(--display); font-weight: 400; font-size: 1.75rem; margin-bottom: 12px; }
.pillar p { color: var(--ink-soft); }

/* ---------- סקשנים בעמוד הבית ---------- */
.home-section { padding: 110px 6vw; border-bottom: 1px solid var(--line); }
.section-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.poem-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6vw;
    align-items: center;
}
.poem-teaser-paper {
    background: #fffdf8;
    padding: 48px 52px;
    box-shadow: 0 1px 0 var(--line), 0 24px 50px -24px rgba(60, 40, 20, 0.35);
    font-family: var(--type);
    font-size: 1.25rem;
    line-height: 1.9;
    white-space: pre-line;
    transform: rotate(-1.2deg);
    color: #2d2620;
}

.story-cta {
    text-align: center;
    padding: 120px 6vw;
    background: var(--paper-2);
}
.story-cta .lede { margin: 18px auto 34px; }

/* =============================================================
   עמוד אנשים
   ============================================================= */
.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 6vw 36px;
}
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-end: 18px; }
.chip {
    font-family: var(--text);
    font-size: 15px;
    font-weight: 400;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.2s;
}
.chip:hover { border-color: var(--ink-soft); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filter-select {
    font-family: var(--text);
    font-size: 15px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    cursor: pointer;
}
.results-count { color: var(--ink-faint); font-size: 15px; margin-inline-start: auto; }

/* =============================================================
   אנשים — לוח פולרואידים
   ============================================================= */
.polaroid-board {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 64px 48px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 46px 6vw 150px;
}

.polaroid-card {
    position: relative;
    display: block;
    transform: rotate(var(--tilt, 0deg));
    transition: transform 0.7s var(--ease);
}
.polaroid-card:nth-child(even) { margin-top: 34px; }
.polaroid-card:hover { transform: rotate(0deg) translateY(-10px) scale(1.035); z-index: 3; }

.polaroid {
    position: relative;
    background: #fdfaf4;
    background-image: linear-gradient(160deg, rgba(255,255,255,0.7), rgba(236,226,210,0.35));
    padding: 14px 14px 0;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(43,36,32,0.08), 0 18px 34px -14px rgba(43,36,32,0.38);
    transition: box-shadow 0.7s var(--ease);
}
.polaroid-card:hover .polaroid { box-shadow: 0 2px 2px rgba(43,36,32,0.06), 0 34px 56px -18px rgba(43,36,32,0.45); }

/* פס נייר דבק מעל התמונה */
.tape {
    position: absolute;
    top: -15px;
    left: 50%;
    z-index: 8;
    width: 104px;
    height: 30px;
    transform: translateX(-50%) rotate(var(--tape, -4deg));
    background: rgba(226, 206, 172, 0.62);
    box-shadow: 0 1px 2px rgba(43,36,32,0.12);
    clip-path: polygon(0 8%, 4% 0, 8% 9%, 12% 1%, 16% 8%, 20% 0, 80% 0, 84% 9%, 88% 1%, 92% 8%, 96% 0, 100% 7%,
                       100% 92%, 96% 100%, 92% 91%, 88% 100%, 84% 92%, 80% 100%, 20% 100%, 16% 92%, 12% 100%, 8% 91%, 4% 100%, 0 93%);
}

.polaroid-photo {
    aspect-ratio: 4 / 5;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
/* שכבת "פיתוח": התמונה מתחילה כהה ועמומה, ומתבהרת לאט */
.polaroid-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 6;
    pointer-events: none;
    background: linear-gradient(170deg, #3b3d3a 0%, #2c2a27 60%, #3a332c 100%);
    box-shadow: inset 0 0 30px rgba(0,0,0,0.35);
    opacity: 1;
    transition: opacity 3.2s cubic-bezier(0.55, 0, 0.35, 1) var(--delay, 0s);
}
.polaroid-photo img.bw { filter: grayscale(100%) sepia(0.14) contrast(1.06) blur(3px) brightness(1.25); transition: scale 1.2s var(--ease), filter 3.4s ease var(--delay, 0s); }
.developed .polaroid-photo::after { opacity: 0; box-shadow: inset 0 0 30px rgba(0,0,0,0.12); }
.developed .polaroid-photo img.bw { filter: grayscale(100%) sepia(0.14) contrast(1.06); }

.polaroid figcaption {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px 20px;
    text-align: center;
}
.pol-name {
    font-family: 'Amatic SC', var(--display);
    font-weight: 700;
    font-size: 2.15rem;
    line-height: 1.05;
    color: #2a2622;
}
.pol-city {
    font-family: var(--type);
    font-size: 14px;
    color: var(--ink-faint);
    letter-spacing: 0.03em;
}
.polaroid-card:hover .pol-name { color: var(--accent); }

/* פתק מוקלד עם הציטוט, מתחת לתמונה */
.pol-quote {
    position: relative;
    margin: 18px 12px 0;
    padding: 12px 16px;
    background: #fffdf8;
    border-top: 1px dashed var(--line);
    box-shadow: 0 6px 14px -10px rgba(43,36,32,0.35);
    transform: rotate(calc(var(--tilt, 0deg) * -0.8));
    font-family: var(--type);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.pol-quote span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.empty-state { grid-column: 1 / -1; text-align: center; padding: 80px 0; color: var(--ink-soft); }

/* =============================================================
   עמוד ראיון
   ============================================================= */
.interview-hero {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: calc(100vh - var(--header-h));
}
.interview-hero-text {
    padding: 70px 6vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.back-link { font-size: 15px; color: var(--ink-soft); margin-bottom: 50px; }
.back-link:hover { color: var(--ink); }
.interview-title { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 6vw, 5.4rem); line-height: 1; margin-bottom: 26px; }
.interview-lead {
    font-family: var(--display);
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    line-height: 1.4;
    color: #4a3f38;
    max-width: 620px;
    margin-bottom: 40px;
}
.specs {
    display: grid;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    gap: 10px 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink-soft);
}
.specs strong { color: var(--ink); font-weight: 400; }
.interview-hero .photo { min-height: 520px; }

.interview-body {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 6vw;
    padding: 100px 10vw 110px;
}
.article { font-size: 1.15rem; line-height: 1.95; color: #3a322c; }
.article p { margin-bottom: 26px; }
.article p:first-child::first-letter {
    font-family: var(--display);
    float: right;
    font-size: 4.6rem;
    line-height: 0.85;
    padding-left: 14px;
    color: var(--accent);
}
.pull-quote {
    margin: 46px 0;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.pull-quote p {
    font-family: var(--display);
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    line-height: 1.35;
    color: var(--ink);
    max-width: 720px;
    margin: 0 auto 14px !important;
}
.pull-quote p::first-letter { all: unset; }
.pull-quote span { font-size: 14px; color: var(--ink-soft); }

.sidebar { border-right: 1px solid var(--line); padding-right: 36px; }
.side-block { margin-bottom: 46px; }
.side-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
    margin-bottom: 18px;
}
.note {
    background: var(--card);
    border-right: 2px solid var(--accent);
    border-radius: 2px;
    padding: 14px 18px;
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.note strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.timeline-item { display: flex; gap: 12px; margin-bottom: 10px; font-size: 15px; color: var(--ink-soft); }
.timeline-item b { font-weight: 500; color: var(--ink); min-width: 42px; }
.side-text { font-size: 15px; color: var(--ink-soft); }

.gallery { padding: 0 6vw 110px; }
.gallery-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 28px;
}
.gallery-head h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; }
.gallery-head span { font-size: 15px; color: var(--ink-faint); }
.gallery-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.gallery-item { height: 480px; border-radius: 3px; transition: transform 0.5s ease; }
.gallery-item:hover { transform: translateY(-4px); }
.gallery-caption {
    position: absolute;
    bottom: 14px; right: 14px; left: 14px;
    z-index: 5;
    color: #fff;
    font-size: 14px;
    background: rgba(30, 26, 23, 0.55);
    backdrop-filter: blur(4px);
    padding: 7px 12px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover .gallery-caption { opacity: 1; }

.next-person {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 50px 6vw;
    border-top: 1px solid var(--line);
    flex-wrap: wrap;
}
.next-person a.next { font-family: var(--display); font-size: 2rem; }
.next-person a.next:hover { color: var(--accent); }

/* =============================================================
   שיעורים
   ============================================================= */
.lessons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 22px;
    padding: 0 6vw 120px;
}
.home-section .lessons-grid { padding: 0; }
.lesson-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 30px 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.lesson-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(60, 40, 20, 0.35); }
.lesson-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-faint); }
.lesson-tag { color: var(--accent); }
.lesson-card h3 { font-family: var(--display); font-weight: 400; font-size: 1.7rem; line-height: 1.2; }
.lesson-card p { color: var(--ink-soft); font-size: 16px; flex: 1; }
.lesson-card .more { font-size: 15px; color: var(--ink); }

.lesson-page { max-width: 760px; margin: 0 auto; padding: 70px 6vw 120px; }
.lesson-page .lede { margin: 18px 0 50px; }
.lesson-section { margin-bottom: 38px; }
.lesson-section h2 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin-bottom: 8px; }
.lesson-section p { font-size: 1.12rem; color: #3a322c; }
.lesson-box {
    border-radius: 6px;
    padding: 24px 28px;
    margin-bottom: 18px;
    font-size: 1.05rem;
}
.lesson-box strong { display: block; font-weight: 500; margin-bottom: 4px; }
.lesson-box.myth { background: var(--paper-2); }
.lesson-box.practice { background: var(--accent-soft); }
.lesson-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 16px; }
.lesson-nav a:hover { color: var(--accent); }

/* =============================================================
   שליחת סיפור
   ============================================================= */
.story-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 6vw;
    padding: 0 6vw 120px;
    align-items: start;
}
.story-aside { position: sticky; top: calc(var(--header-h) + 30px); color: var(--ink-soft); }
.story-aside ol { padding-right: 20px; margin-top: 14px; }
.story-aside li { margin-bottom: 10px; }
.story-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 40px;
    display: grid;
    gap: 22px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 15px; font-weight: 400; }
.field .hint { font-size: 14px; color: var(--ink-faint); }
.field input, .field select, .field textarea {
    font-family: var(--text);
    font-size: 16px;
    font-weight: 300;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 200px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.check input { margin-top: 6px; accent-color: var(--accent); }
.form-status { font-size: 15px; color: var(--accent); min-height: 1em; }
.thanks { text-align: center; padding: 50px 20px; }
.thanks h2 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; margin-bottom: 10px; }

/* =============================================================
   שירים — מכונת כתיבה
   ============================================================= */
.poems-page {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3vw;
    padding: 40px 5vw 60px;
    align-items: end;
    min-height: calc(100vh - var(--header-h));
}
.poem-index h1 { font-family: var(--display); font-weight: 400; font-size: 3rem; line-height: 1; margin-bottom: 8px; }
.poem-index .sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 30px; }
.poem-list { list-style: none; border-top: 1px solid var(--line); }
.poem-list button {
    width: 100%;
    text-align: right;
    font-family: var(--display);
    font-size: 1.35rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    color: var(--ink-soft);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    transition: color 0.2s;
}
.poem-list button small { font-family: var(--text); font-size: 13px; color: var(--ink-faint); }
.poem-list button:hover, .poem-list button.on { color: var(--ink); }
.poem-list button.on { color: var(--accent); }
.tw-controls { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.tw-controls button {
    font-family: var(--text);
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink-soft);
    cursor: pointer;
}
.tw-controls button:hover { color: var(--ink); border-color: var(--ink-soft); }
.tw-controls button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.tw-stage {
    --paper-w: min(460px, 78vw);
    --lh: 34px;
    position: relative;
    height: calc(100vh - var(--header-h) - 100px);
    min-height: 640px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
.typewriter { position: relative; width: min(620px, 92vw); }

/* הגררה: נייר + גליל, זזה הצידה עם כל אות */
.tw-carriage {
    position: relative;
    z-index: 3;
    height: 46px;
    transition: transform 0.07s linear;
}
.tw-carriage.returning { transition: transform 0.38s cubic-bezier(0.5, 0, 0.2, 1); }

.tw-paper-clip {
    position: absolute;
    bottom: 22px;
    left: 50%;
    width: var(--paper-w);
    height: 900px;
    transform: translateX(-50%);
    overflow: hidden;
    pointer-events: none;
}
.tw-paper {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-height: 1100px;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.6), transparent 60%),
        linear-gradient(180deg, #fffdf6, #f8f1e2);
    box-shadow: 0 0 0 1px rgba(120, 100, 70, 0.08), 0 10px 30px -10px rgba(60, 40, 20, 0.3);
    padding: 54px 52px 0 52px;
    transform: translateY(0);
    transition: transform 0.28s cubic-bezier(0.3, 0.7, 0.3, 1);
}
.tw-paper.feeding { transition: transform 1.1s cubic-bezier(0.3, 0.8, 0.3, 1); }
.tw-paper.leaving { transition: transform 0.7s cubic-bezier(0.6, 0, 0.8, 0.4), opacity 0.7s; opacity: 0; }

.tw-text {
    font-family: var(--type);
    font-size: 21px;
    line-height: var(--lh);
    color: #231d19;
    white-space: pre;
}
.tw-line { height: var(--lh); white-space: pre; }
.tw-line.title { font-size: 25px; letter-spacing: 0.02em; }
.tw-line.meta { font-size: 15px; color: #8a7d70; }
.tw-line.h1 { font-size: 26px; font-weight: 700; letter-spacing: 0.02em; }
.tw-line.h2 { font-size: 21px; font-weight: 500; color: #8a4a2c; }
.tw-text .seg { position: static; text-shadow: none; }
.tw-text .tw-b span { font-weight: 700; text-shadow: 0.35px 0 0 currentColor, 0 0 0.6px rgba(35, 29, 25, 0.55); }
.tw-text .tw-u { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
/* אותיות נשארות inline כדי שכיווניות (עברית/מספרים) תעבוד נכון */
.tw-text span span { position: relative; white-space: pre; text-shadow: 0 0 0.6px rgba(35, 29, 25, 0.55); }

.tw-roller {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--paper-w) + 90px);
    height: 40px;
    border-radius: 20px;
    background: linear-gradient(180deg, #4a4440 0%, #191614 45%, #2a2522 70%, #0f0d0c 100%);
    box-shadow: 0 6px 12px -4px rgba(0,0,0,0.5);
}
.tw-roller::before, .tw-roller::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px; height: 30px;
    margin-top: -15px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #8f8679, #3a342f 70%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.tw-roller::before { left: -22px; }
.tw-roller::after { right: -22px; }
.tw-paper-bail {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--paper-w) + 30px);
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, #d9d2c6, #8d857a);
    z-index: 2;
}

.tw-body { position: relative; z-index: 4; margin-top: -6px; }
.tw-body svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 30px 30px rgba(50, 30, 15, 0.28)); }
.tw-key { transition: transform 0.06s; transform-box: fill-box; transform-origin: center; }
.tw-key.down { transform: translateY(3px) scale(0.94); }
.tw-hint { text-align: center; font-size: 14px; color: var(--ink-faint); margin-top: 16px; }

/* ---------- פוטר ---------- */
.site-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 50px 6vw;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink-soft);
}
.site-footer .brand-mark { font-size: 28px; color: var(--ink); }
.footer-links { display: flex; gap: 22px; }
.footer-links a:hover { color: var(--ink); }

/* =============================================================
   מסכים קטנים ומסכי מגע
   ============================================================= */
@media (hover: none) {
    .column-content { opacity: 1; transform: none; }
    .column-label { display: none; }
    .gallery-caption { opacity: 1; }
}

@media (max-width: 1024px) {
    .hero-showcase { flex-direction: column; height: auto; }
    .column-card { flex: none; height: 420px; border-left: none; border-bottom: 1px solid rgba(255,255,255,0.12); }
    .column-card:hover { flex: none; }
    .column-content { opacity: 1; transform: none; }
    .column-label { display: none; }
    .pillars, .poem-teaser, .story-layout { grid-template-columns: 1fr; }
    .interview-hero { grid-template-columns: 1fr; }
    .interview-hero .photo { min-height: 70vh; order: -1; }
    .interview-body { grid-template-columns: 1fr; padding: 70px 6vw; }
    .sidebar { border-right: none; padding-right: 0; border-top: 1px solid var(--line); padding-top: 46px; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item { height: 380px; }
    .story-aside { position: static; }
    .poems-page { grid-template-columns: 1fr; align-items: start; }
    .poem-index { order: 2; }
}

@media (max-width: 720px) {
    :root { --header-h: 112px; }
    .site-header { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding: 12px 16px; gap: 8px 12px; }
    .brand-sub { display: none; }
    .main-nav { order: 3; width: 100%; justify-content: space-between; }
    .main-nav a { padding: 6px 12px; }
    .btn-pill { padding: 8px 16px; font-size: 14px; }
    .wrap, .page-head, .manifesto, .home-section, .filters, .polaroid-board, .lessons-grid, .gallery, .story-layout { padding-inline: 16px; }
    .story-form { padding: 24px 18px; }
    .polaroid-board { gap: 56px; padding-top: 30px; }
    .polaroid-card { width: min(300px, 86%); margin-inline: auto; }
    .polaroid-card:nth-child(even) { margin-top: 0; }
    .field-row { grid-template-columns: 1fr; }
    .specs { grid-template-columns: 1fr; }
    .tw-stage { --lh: 28px; --paper-w: 70vw; min-height: 560px; overflow-x: clip; }
    .tw-roller { width: calc(var(--paper-w) + 50px); }
    .tw-text { font-size: 17px; }
    .tw-line.title { font-size: 20px; }
    .tw-paper { padding: 40px 28px 0; }
    .poem-teaser-paper { padding: 32px 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* =============================================================
   עמוד פרטיות
   ============================================================= */
.privacy { max-width: 720px; padding: 0 6vw 120px; }
.privacy section { padding: 30px 0; border-top: 1px solid var(--line); }
.privacy h2 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.2; margin-bottom: 12px; }
.privacy p { color: var(--ink-soft); line-height: 1.8; max-width: 62ch; }
.privacy p + p { margin-top: 12px; }
.privacy-updated { margin-top: 20px; font-size: 14px; color: var(--ink-faint) !important; }
@media (max-width: 760px) { .privacy { padding-inline: 16px; } }
