/* Migdalim additions on top of the Venture Plant base */
:root { --green: #0E2A47; --green-deep: #0A1F36; --accent: #F0A332; }

/* wordmark */
.m-word { display: grid; justify-items: center; gap: 4px; font-family: var(--f-he); letter-spacing: 0; text-transform: none; }
.m-word b { font-weight: 500; font-size: 22px; line-height: 1; }
.m-word small { font-size: 11.5px; color: var(--muted); line-height: 1; }
.tel-link { font-size: 16px; }
.tel-link:hover { opacity: .55; }
.foot-mark { font-family: var(--f-he); letter-spacing: 0; color: #B4BDC8; }

/* hero */
.hero .t-hero { line-height: 1.08; }
.hero-mail input { width: 170px; }

/* statement */
.statement-m { display: grid; gap: 28px; max-width: 1100px; }
.statement-m .t-h3l { line-height: 1.22; }
.muted-2 { color: var(--muted); }

/* steps */
.stat .n { color: var(--ink); }
.stat .d { font-size: 15px; line-height: 1.45; }
.sd { display: block; color: var(--ink); font-weight: 500; font-size: 17px; margin-bottom: 6px; }

/* founder */
.person-lg { width: min(340px, 100%); }
.vision-media img { object-position: center 30%; }

/* x-ray seals */
.seal { font-size: 13px; letter-spacing: 0; }
.reg-card { transition: background .4s var(--ease); }
.reg-card:hover { background: rgba(240, 163, 50, .1); }
.reg-card:hover .seal { border-color: var(--accent); color: var(--accent); }

/* calculator card */
.calc-card { grid-template-rows: auto auto auto auto 1fr auto; gap: 16px; }
.calc-tag { background: #EEF1F5; color: var(--green); padding: 3px 10px; border-radius: 20px; font-size: 11px; }
.cf { display: grid; gap: 8px; }
.cf > span { color: var(--grey); font-size: 12px; }
.cf-row { display: flex; align-items: center; gap: 14px; }
.cf-row output { min-width: 4.2em; text-align: end; font-size: 18px; font-variant-numeric: tabular-nums; }
.cf input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 4px; background: #E4E3DF; direction: rtl; }
.cf input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(13,16,22,.3); cursor: grab; }
.cf input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid #fff; }
.seg { display: flex; border: 1px solid rgba(13,16,22,.12); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; padding: 8px 4px; font-size: 12px; background: none; border: 0; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease); }
.seg button + button { border-inline-start: 1px solid rgba(13,16,22,.12); }
.seg button.on { background: var(--green); color: #fff; }
.calc-res { display: grid; gap: 6px; align-content: end; }
.calc-res span { color: var(--grey); font-size: 12px; }
.calc-res strong { font-weight: 300; font-size: clamp(26px, 2.4vw, 38px); line-height: 1.05; direction: ltr; unicode-bidi: isolate; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-res small { color: var(--grey); font-size: 11.5px; }
.calc-bar { display: block; height: 8px; border-radius: 8px; background: #EFEEEA; overflow: hidden; }
.calc-bar b { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--accent); transition: width 1s var(--ease); }
.calc-card.in .calc-bar b { width: var(--w); }

/* contact form inside CTA */
.cform { display: grid; gap: 8px; max-width: 360px; margin-top: 30px; }
.cform input { height: 44px; border-radius: 48px; padding-inline: 18px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); outline: 0; color: #fff; font-size: 15px; transition: border-color .3s var(--ease), background .3s var(--ease); }
.cform input::placeholder { color: rgba(255,255,255,.65); }
.cform input:focus { border-color: var(--accent); background: rgba(255,255,255,.16); }
.cform .pill { justify-self: start; margin-top: 8px; border: 0; cursor: pointer; }
.form-ok { color: var(--accent); font-size: 15px; }

/* doors intro */
.doors { position: fixed; inset: 0; z-index: 200; pointer-events: none; animation: doorsSafety 0s 4s forwards; }
@keyframes doorsSafety { to { visibility: hidden; } }
.doors__l, .doors__r { position: absolute; top: 0; bottom: 0; width: 50.2%; background: linear-gradient(90deg, #cfcfcc, #e9e9e6 45%, #d6d6d3); transition: transform 1.25s cubic-bezier(.7, 0, .2, 1); }
.doors__l { left: 0; box-shadow: inset -1px 0 0 rgba(0,0,0,.25); }
.doors__r { right: 0; box-shadow: inset 1px 0 0 rgba(255,255,255,.6); }
.doors__l::after, .doors__r::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, rgba(0,0,0,.025) 0 1px, transparent 1px 6px); }
.doors__ind { position: absolute; top: 22vh; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: #0a0f18; color: var(--accent); padding: 10px 18px; border-radius: 6px; font-weight: 500; font-size: 26px; text-shadow: 0 0 14px rgba(240,163,50,.7); transition: opacity .3s; }
.doors__ind span { font-size: 13px; }
.doors.open .doors__l { transform: translateX(-100%); }
.doors.open .doors__r { transform: translateX(100%); }
.doors.open .doors__ind { opacity: 0; }
.doors.gone { display: none; }

/* floor indicator */
.floor { position: fixed; left: 24px; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.floor.show { opacity: 1; transform: none; }
.floor__panel { display: flex; align-items: center; gap: 8px; background: #0a0f18; color: var(--accent); padding: 7px 13px; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.22); font-variant-numeric: tabular-nums; }
.floor__arrow { font-size: 10px; opacity: .35; transition: opacity .2s, transform .3s; }
.floor.up .floor__arrow { opacity: 1; }
.floor.down .floor__arrow { opacity: 1; transform: rotate(180deg); }
.floor__num { font-weight: 500; font-size: 20px; min-width: 1.2em; text-align: center; text-shadow: 0 0 12px rgba(240,163,50,.6); }
.floor__label { font-size: 13px; background: rgba(250,250,249,.9); backdrop-filter: blur(10px); padding: 5px 12px; border-radius: 20px; border: 1px solid var(--line); }

@media (max-width: 820px) {
  .floor { left: 12px; bottom: 12px; }
  .floor__label { display: none; }
  .tel-link { display: none; }
  .m-word b { font-size: 18px; }
  .calc-card { position: static; padding: 18px; }
  .cta-r { min-height: 0; }
}

/* photographic exploded view */
.stage { background: #DEDDE1; }
.xr { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.xr-in { position: relative; aspect-ratio: 20 / 11; width: min(100%, calc((100svh - var(--bar) - var(--head)) * 20 / 11)); will-change: transform; }
.xr-in img, .xr-c { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.xr-b, .xr-c { opacity: 0; }
.xr-veil { position: absolute; inset: 0; pointer-events: none; }
.xr::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 60px 30px #DEDDE1; }
.layers { height: 760vh; }

/* slow push-in on the hero still while there is no film */
.hero .poster { animation: heroKb 24s ease-in-out infinite alternate; }
@keyframes heroKb { from { transform: scale(1); } to { transform: scale(1.12) translateY(-2%); } }

/* CV list */
.cv { list-style: none; margin-top: 34px; border-top: 1px solid rgba(13,16,22,.25); }
.cv li { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(13,16,22,.14); font-size: 15px; }
.cv b { font-weight: 500; }
.cv span { color: #4a4a4a; }
.vision-media { margin-top: 34px; }

/* articles */
.arts-list { margin-top: 70px; border-top: 1px solid var(--ink); }
.art { border-bottom: 1px solid var(--line); }
.art summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 180px 1fr 24px; gap: 24px; align-items: center; padding: 26px 0; transition: padding .4s var(--ease); }
.art summary::-webkit-details-marker { display: none; }
.art summary:hover { padding-inline-start: 10px; }
.art-k { color: var(--muted); font-size: 14px; }
.art-t { font-size: clamp(20px, 1.7vw, 28px); line-height: 1.2; }
.art summary i { position: relative; width: 18px; height: 18px; justify-self: end; }
.art summary i::before, .art summary i::after { content: ""; position: absolute; inset: 50% 0 auto; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.art summary i::after { transform: rotate(90deg); }
.art[open] summary i::after { transform: rotate(0); }
.art-b { padding: 0 0 34px; margin-inline-start: 204px; max-width: 640px; display: grid; gap: 14px; font-size: 16.5px; line-height: 1.6; color: #2c2f36; }
.cform select { height: 44px; border-radius: 48px; padding-inline: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.28); color: #fff; font: inherit; font-size: 15px; outline: 0; }
.cform select option { color: #111; }
@media (max-width: 820px) {
  .art summary { grid-template-columns: 1fr 20px; gap: 6px 12px; }
  .art-k { grid-column: 1 / -1; }
  .art-b { margin-inline-start: 0; }
  .cv li { grid-template-columns: 1fr; gap: 2px; }
}

/* articles: rows, index and article pages */
.arts-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.arts-chips button { border: 1px solid var(--line); background: none; border-radius: 40px; padding: 8px 16px; font-size: 14.5px; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.arts-chips button:hover { border-color: var(--ink); }
.arts-chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.arows { margin-top: 46px; border-top: 1px solid var(--ink); }
.arow { display: grid; grid-template-columns: 180px 1fr 28px; gap: 24px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .4s var(--ease), background .4s var(--ease); }
.arow[hidden] { display: none; }
.arow:hover { padding-inline: 14px; background: #fff; }
.arow-go { justify-self: end; font-size: 20px; transition: transform .4s var(--ease); }
.arow:hover .arow-go { transform: translateX(-6px); }
a.arts-more { text-decoration: none; }
.ahead { padding-top: 90px; }
.ahead .t-lead { max-width: 560px; margin-top: 22px; color: var(--muted); }
.apage { max-width: 860px; margin: 0 auto; padding-top: 70px; display: grid; gap: 22px; justify-items: start; }
.apage h1 { line-height: 1.12; font-size: clamp(34px, 3.4vw, 56px); }
.aback { margin-bottom: 30px; }
.abody { display: grid; gap: 18px; font-size: 19px; line-height: 1.7; color: #23262d; margin-top: 16px; }
.abody b { font-weight: 500; }
.asign { display: flex; align-items: center; gap: 14px; margin: 26px 0 10px; padding-top: 26px; border-top: 1px solid var(--line); width: 100%; }
.asign img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: center 15%; }
.asign b { display: block; font-weight: 500; }
.asign span { color: var(--muted); font-size: 14px; }
.amore { max-width: 860px; margin: 110px auto 0; }
body.sub .head { border-bottom: 1px solid var(--line); }
@media (max-width: 820px) {
  .arow { grid-template-columns: 1fr 22px; gap: 4px 12px; padding: 20px 0; }
  .arow .art-k { grid-column: 1 / -1; }
  .apage { padding-top: 40px; }
  .abody { font-size: 17.5px; }
}

/* multi-page site */
.head nav { gap: 22px; }
.head nav a { font-size: 15.5px; white-space: nowrap; }
.head nav a[aria-current] { border-bottom: 1px solid var(--ink); }
.phead { padding-top: 90px; display: grid; gap: 22px; justify-items: start; max-width: 1100px; }
.phead .t-hero { font-size: clamp(40px, 5vw, 84px); line-height: 1.04; }
.phead .t-lead { max-width: 620px; color: var(--muted); font-size: clamp(18px, 1.35vw, 22px); line-height: 1.45; }
.pimg { margin-top: 70px; }
.pimg img { width: 100%; height: min(68vh, 640px); object-fit: cover; }
.pgrid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; padding-top: 120px; align-items: start; }
.plist { list-style: none; border-top: 1px solid var(--ink); }
.plist li { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.plist b { font-weight: 400; font-size: clamp(19px, 1.5vw, 24px); }
.plist span { color: var(--muted); font-size: 16.5px; line-height: 1.5; }
.pnote { background: var(--sand); margin-top: 130px; padding-bottom: 110px; }
.pnote-b { display: grid; gap: 18px; font-size: 19px; line-height: 1.65; color: #23262d; max-width: 680px; }
.about-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 6vw; padding-top: 80px; align-items: start; }
.about-ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); position: sticky; top: calc(var(--bar) + var(--head) + 24px); }
.about-ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6vw; padding-top: 70px; align-items: start; }
.cform-light { max-width: 520px; margin-top: 0; gap: 12px; }
.cform-light input, .cform-light select { background: #fff; border: 1px solid var(--line); color: var(--ink); height: 54px; border-radius: 10px; }
.cform-light input::placeholder { color: var(--grey); }
.cform-light input:focus, .cform-light select:focus { border-color: var(--ink); background: #fff; }
.cform-light .form-ok { color: var(--green); }
.contact-side { display: grid; gap: 0; border-top: 1px solid var(--ink); }
.contact-side > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
a.way { color: inherit; }
a.way .shot { transition: transform .6s var(--ease); }
a.way:hover .shot { transform: translateY(-4px); }
@media (max-width: 1180px) { .head nav a { font-size: 14.5px; } .head nav { gap: 16px; } }
@media (max-width: 820px) {
  .phead { padding-top: 50px; }
  .pgrid, .about-grid, .contact-grid { grid-template-columns: 1fr; padding-top: 70px; }
  .plist li { grid-template-columns: 1fr; gap: 6px; }
  .about-ph { position: static; }
  .pnote { margin-top: 80px; padding-bottom: 70px; }
}

/* selected projects */
.pj-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 17vw, 300px); gap: 24px; margin-top: 60px; }
.pj { display: grid; grid-template-rows: 1fr auto; gap: 12px; min-height: 0; }
.pj.big { grid-column: span 2; grid-row: span 2; }
.pj.tall { grid-row: span 2; }
.pj-ph { overflow: hidden; background: var(--sand); min-height: 0; }
.pj-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pj:hover .pj-ph img { transform: scale(1.04); }
.pj figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.pj figcaption b { font-weight: 500; }
.pj figcaption span { color: var(--muted); font-size: 14px; }
@media (max-width: 1100px) { .pj-grid { grid-template-columns: repeat(2, 1fr); } .pj.tall { grid-row: span 1; } }
@media (max-width: 820px) {
  .pj-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; gap: 28px; }
  .pj.big, .pj.tall { grid-column: auto; grid-row: auto; }
}
