/* Everything below the hero, and the inner pages. The page goes down through the ground. */
:root {
  --clay: #A95F3B;
  --tile: #96502F;
  --stone: #EAE3D6;
  --space: clamp(64px, 7vw, 120px);
  --cut: clamp(48px, 5.4vw, 100px);
  --radius: 22px;
}

figure { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- Grounds ---------- */
.band { position: relative; padding-block: var(--space); }
.band.ink { background: var(--ink); color: var(--paper); }
.band.paper { background: var(--paper); color: var(--ink); }
.band.earth { background: var(--clay); color: #fff; }
.paper :focus-visible,
.earth :focus-visible { outline-color: currentColor; }
.paper ::selection { background: var(--ink); color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.cut { position: relative; margin-block: -1px; line-height: 0; }
.cut svg { display: block; width: 100%; height: var(--cut); }
/* Hover rule: what receives the pointer never moves, never resizes. Only what is inside it may,
   and that already has its own layer, so nothing around it is redrawn. */

/* ---------- Type ---------- */
.band h1,
.band h2 {
  margin: 0;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.band h1 { font-size: clamp(38px, 4.9vw, 84px); }
.band h2 { font-size: clamp(30px, 3.6vw, 62px); }
.band h3 { margin: 0; font-size: clamp(19px, 1.65vw, 27px); line-height: 1.18; text-wrap: balance; }
.band p { margin: 0; text-wrap: pretty; }
.band .large { max-width: 34em; font-size: clamp(17px, 1.35vw, 22px); line-height: 1.5; }
:lang(he) .band h1,
:lang(he) .band h2 { line-height: 1.16; letter-spacing: 0; }
.prose { max-width: 36em; }
.prose p + p { margin-top: 1.1em; }
.sentence { display: block; text-wrap: balance; }

/* the text always goes under its title */
.heading { margin-bottom: clamp(36px, 4vw, 68px); }
.heading h2 { max-width: 20em; }
.band .heading > * + *,
.band .words > * + p,
.band .words > * + .prose { margin-top: 22px; }
.band .words > * + .status { margin-top: 10px; }
.heading > .prose { max-width: 44em; font-size: clamp(16px, 1.15vw, 19px); }
.heading > .large { max-width: 40em; }

/* ---------- Links and buttons ---------- */
.go {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  font-weight: 700;
}
.words > .go { margin-top: 26px; }
.heading > .go { display: flex; width: fit-content; }
.go > span {
  background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.45s var(--ease);
}
[dir="rtl"] .go > span { background-position: right bottom; }
.go:hover > span { background-size: 100% 1px; }

.round {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-style: normal;
  transition: background-color 0.3s linear, color 0.3s linear, border-color 0.3s linear;
}
a:hover .round { background: var(--earth); border-color: var(--earth); color: var(--ink); }

.row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.words > .button { margin-top: 32px; max-width: 100%; padding-block: 12px; white-space: normal; text-align: start; }
.button.huge { min-height: 80px; padding-inline: 52px; gap: 18px; font-size: clamp(20px, 1.6vw, 26px); }
.button.huge .arrow { width: 22px; height: 22px; }
.earth .button.primary { --wash: var(--ink); --wash-text: var(--paper); }
.earth .button.primary:hover { border-color: var(--ink); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 44px clamp(40px, 6vw, 110px);
}

/* ---------- The states of the material ---------- */
.cube { position: relative; display: block; width: 100%; aspect-ratio: 1 / 0.8; }
/* the renders have empty sky: the frame keeps the object */
.cube img {
  position: absolute;
  left: 0;
  top: -11%;
  width: 100%;
  height: auto;
  pointer-events: none;
  transition: translate 0.7s var(--ease), scale 0.7s var(--ease), rotate 0.7s var(--ease), filter 0.5s var(--ease);
  transform-origin: 50% 58%;
  will-change: transform;
}
.cube .top { z-index: 1; }
:is(.cube:hover, .step.on .cube, .reasons a:hover .cube, .benefits li:hover .cube) .tile { translate: 0 2%; }
:is(.cube:hover, .step.on .cube, .reasons a:hover .cube, .benefits li:hover .cube) .top { translate: 0 -5.5%; }
:is(.cube.clay:hover, .step.on .cube.clay, .reasons a:hover .cube.clay, .benefits li:hover .cube.clay) .top { rotate: -3deg; }
:is(.cube.scm:hover, .step.on .cube.scm, .reasons a:hover .cube.scm, .benefits li:hover .cube.scm) .top { scale: 1.03 1.1; }
:is(.cube.concrete:hover, .step.on .cube.concrete, .reasons a:hover .cube.concrete, .benefits li:hover .cube.concrete) .top { scale: 1.05; }
:is(.cube.calcination:hover, .step.on .cube.calcination, .reasons a:hover .cube.calcination, .benefits li:hover .cube.calcination) .top { animation: embers 0.8s ease-in-out infinite alternate; }
@keyframes embers {
  from { filter: brightness(1) saturate(1); }
  to { filter: brightness(1.32) saturate(1.15); }
}

.material {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.2% minmax(0, 1fr) 4.2% minmax(0, 1fr) 4.2% minmax(0, 1fr);
  align-items: start;
}
.step { text-align: center; cursor: default; }
.step .name {
  display: block;
  max-width: 15em;
  margin: 16px auto 0;
  padding-inline: 8px;
  color: #3D5A4E;
  font-size: clamp(15px, 1.3vw, 21px);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
  transition: color 0.3s linear;
}
.step.on .name { color: #96502F; }

.flow { position: relative; align-self: stretch; }
.flow::before { content: ""; display: block; }
.flow svg {
  position: absolute;
  left: -15%;
  top: 38%;
  width: 130%;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
[dir="rtl"] .flow svg { transform: scaleX(-1); }
.flow .track { stroke: #B8A78F; transition: stroke 0.4s linear; }
.flow .tip { stroke: #A38F75; transition: stroke 0.4s linear; }
.flow .dash { stroke: var(--clay); stroke-dasharray: 5 9; opacity: 0; transition: opacity 0.3s linear; }
.flow.lit .tip { stroke: var(--clay); }
.flow.lit .track { stroke: transparent; }
.flow.lit .dash { opacity: 1; }
.flow.running .dash { animation: along 0.7s linear infinite; }
@keyframes along { to { stroke-dashoffset: -14; } }

/* ---------- The tower ---------- */
.split.tech { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.process { --w: 0.62; }
.machine { position: relative; }
.drawing { position: relative; width: calc(var(--w) * 100%); aspect-ratio: 3 / 4; }
.drawing img,
.drawing svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.drawing img { pointer-events: none; }
.drawing .lit { opacity: 0; transition: opacity 0.4s var(--ease); }
.drawing .lit.on { opacity: 1; }
.zone { fill: #fff; fill-opacity: 0; cursor: pointer; pointer-events: all; }

.zones { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; pointer-events: none; }
.zones li {
  --zone: #e9b168;
  position: absolute;
  inset-inline: 0;
  top: calc(var(--ay) * 100%);
  height: 0;
}
.zones li:nth-child(2) { --zone: #f0622a; }
.zones li:nth-child(3) { --zone: #A9DCCB; }
/* the line from the zone to its name */
.zones li::before,
.zones li::after { content: ""; position: absolute; inset-inline-start: calc(var(--ax) * var(--w) * 100%); }
.zones li::before {
  top: -1px;
  height: 2px;
  width: calc((1 - var(--ax)) * var(--w) * 100% + 14px);
  background: var(--zone);
  opacity: 0.38;
  scale: 1 0.6;
  transition: opacity 0.35s linear, scale 0.35s var(--ease);
}
.zones li::after {
  top: -5px;
  width: 10px;
  height: 10px;
  margin-inline-start: -5px;
  border-radius: 50%;
  background: var(--zone);
  transition: scale 0.35s var(--ease);
}
.zones li.on::before { opacity: 1; scale: 1; }
.zones li.on::after { scale: 1.45; }

.zone-label { margin-inline-start: calc(var(--w) * 100% + 24px); translate: 0 -22px; }
.zones button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--soft);
  font: inherit;
  font-size: clamp(14px, 1.6vw, 27px);
  font-weight: 700;
  line-height: 1.1;
  text-align: start;
  cursor: pointer;
  pointer-events: auto;
  transition: color 0.3s linear;
}
.zones li.on button { color: var(--zone); }
@media (max-width: 1179.98px) {
  .zones li:nth-child(2).on button { color: #FFA070; } /* small type: lighter, to stay legible */
}
.zones button:hover { text-decoration: underline 1px; text-underline-offset: 0.3em; }
.zone-label p { max-width: 27em; color: var(--soft); font-size: 15px; line-height: 1.42; transition: color 0.3s linear; }
.zones li.on .zone-label p { color: var(--paper); }

.process.full { --w: 0.6; max-width: 1120px; }
.zone-texts { display: none; }

/* ---------- References ---------- */
.references { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px clamp(20px, 2.4vw, 44px); }
.reference {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}
.media { position: relative; overflow: hidden; aspect-ratio: 7 / 5.6; background: var(--deep); }
.media > * { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.photo { object-fit: cover; }
.denmark-photo { object-position: 62% 50%; }
.reference .label { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(18px, 2vw, 34px) 24px; }
.band .status { margin-top: 8px; color: #8F4B2B; font-weight: 700; }
.earth .status { color: #fff; }
.reference .status { color: var(--earth); transition: color 0.3s linear; }
.reference .label { transition: background-color 0.3s linear, color 0.3s linear; }
.reference:hover .label { background: var(--earth); color: var(--ink); }
.reference:hover .status { color: var(--ink); }
.reference:hover .round { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Words and a framed picture ---------- */
.framed > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  column-gap: clamp(40px, 6vw, 120px);
}
.framed.start > .wrap { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.framed.start .panel { order: -1; }
.framed .words { display: flex; flex-direction: column; }
/* the picture starts on the capitals of the title and ends on the foot of the words */
.framed .words > h2:first-child { margin-top: -0.161em; }
:lang(he) .framed .words > h2:first-child { margin-top: -0.221em; }
:lang(he) .framed .words.hebrew-first > h2:first-child { margin-top: -0.327em; }
@supports (text-box: trim-start cap alphabetic) {
  .framed .words > h2:first-child,
  :lang(he) .framed .words > h2:first-child { margin-top: 0; text-box: trim-start cap alphabetic; }
  :lang(he) .framed .words.hebrew-first > h2:first-child { margin-top: calc(0.594em - 0.7em); }
}
.framed .words > .go,
.framed .words > .button { align-self: flex-start; }
.framed .words > .go { min-height: 0; }
.panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--deep);
}
.panel > * { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.panel,
.media { contain: paint; }

.framed.israel .words > .large { margin-top: 22px; }
.reasons {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.reasons li { display: flex; }
.reasons a {
  flex: 1;
  display: grid;
  grid-template-columns: clamp(56px, 5vw, 92px) minmax(0, 1fr) 16px;
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--tile);
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  transition: background-color 0.3s linear, color 0.3s linear;
}
.reasons a:hover { background: var(--ink); color: var(--paper); }

/* ---------- Maps ---------- */
.map { display: block; overflow: visible; }
.map text {
  direction: ltr;
  font-family: "CCI Sans", "Heebo", Arial, sans-serif;
  pointer-events: none;
}
.map .town,
.map .place { paint-order: stroke; stroke: rgb(226 205 172 / 0.6); stroke-width: 3px; stroke-linejoin: round; }
.map .town { fill: #10261E; font-size: 18px; font-weight: 700; }
.map .town-dot { fill: #10261E; }
.map .place { fill: #10261E; font-size: 15px; font-weight: 500; }
.map .water { fill: #B5D1C0; font-size: 16px; font-weight: 500; }
.map .country { fill: #10261E; font-size: 21px; font-weight: 700; letter-spacing: 0.08em; }
:lang(he) .map .country { letter-spacing: 0; }
.map .river { fill: none; stroke: #2C7664; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.map .area { fill: rgb(196 92 48 / 0.66); transition: fill 0.4s linear; }
.map .area-edge { fill: none; stroke: var(--paper); stroke-width: 2.5; stroke-dasharray: 7 6; }
.map .pulse { fill: none; stroke: var(--paper); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.panel:hover .pulse,
.map.seen .pulse { animation: pulse 1.6s var(--ease) 3; }
.panel:hover .area { fill: rgb(224 98 42 / 0.75); }
@keyframes pulse {
  from { opacity: 0.9; scale: 1; }
  to { opacity: 0; scale: 1.9; }
}
.map .lead { fill: none; stroke: var(--paper); stroke-width: 2.5; }
.map .plate { fill: var(--ink); }
.map .focus { fill: var(--paper); font-size: 22px; font-weight: 700; }
.map .note { fill: #E8B48F; font-size: 15px; font-weight: 500; }

/* ---------- Articles ---------- */
.stories { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(20px, 2.4vw, 44px); }
.stories.two { grid-template-columns: repeat(2, minmax(0, 400px)); }
.story h2,
.story h3 { font-size: clamp(19px, 1.6vw, 27px); line-height: 1.18; letter-spacing: 0; text-wrap: balance; transition: color 0.3s linear; }
.story a:hover h2,
.story a:hover h3 { color: #96502F; }
.cover { position: relative; overflow: hidden; aspect-ratio: 1; border-radius: var(--radius); background: var(--ink); }
.cover.research { background: var(--clay); }
.cover.israel,
.cover.concrete { background: #3E2419; }
.cover img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: scale 0.9s var(--ease); will-change: scale; }
.cover .round {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.story a:hover .cover img { scale: 1.06; }
.band .meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-block: 18px 8px; color: #4D655A; font-size: 14px; }
.band .meta span { font-weight: 700; }
.ink .meta { color: var(--soft); }
.ink .meta a { text-decoration: underline; }

/* ---------- The company ---------- */
.company-card { padding: clamp(24px, 3vw, 56px); border-radius: var(--radius); background: var(--deep); }
.licence { color: var(--earth); font-size: clamp(21px, 2.1vw, 34px); font-weight: 700; line-height: 1.22; text-wrap: balance; }
.people { list-style: none; margin: 0; padding: 0; }
.company-card .people {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 32px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid rgb(244 241 234 / 0.16);
}
.company-card .people li { display: flex; align-items: center; gap: 12px; }
.company-card .people h3 { font-size: 15px; font-weight: 500; }

/* Until the approved portraits arrive: the symbol of logo 5D, never a stock face. */
.portrait {
  position: relative;
  flex: none;
  width: 38px;
  aspect-ratio: 0.866;
  background: url("portrait-0.svg") center / 100% 100% no-repeat;
}
.portrait.tone1 { background-image: url("portrait-1.svg"); }
/* the initials sit in the middle stratum */
.portrait span {
  position: absolute;
  inset-inline: 0;
  top: 47.2%;
  translate: 0 -50%;
  color: var(--paper);
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.company-card .portrait span { display: none; }

/* a photo takes the same hexagon, flat sides left and right like the symbol */
.photo-portrait { display: block; height: auto; object-fit: cover; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: none; }
.people .role { margin-top: 4px; color: var(--leaf); font-size: 14px; font-weight: 500; line-height: 1.35; }
.company-card .people .role { display: none; }
/* one row per person: bios of any length, no card stretched empty */
.people.full { display: grid; gap: 14px; max-width: 1240px; }
.people.full li {
  display: grid;
  grid-template-columns: 88px minmax(0, 0.8fr) minmax(0, 1.5fr);
  align-items: start;
  gap: 8px clamp(20px, 3vw, 48px);
  padding: clamp(20px, 2.2vw, 36px);
  border-radius: var(--radius);
  background: var(--deep);
}
.people.full .portrait { width: 88px; }
.people.full .portrait span { font-size: 15px; }
.people.full .who { padding-top: 6px; }
.people.full h3 { font-size: 21px; }
.people.full .bio { padding-top: 6px; color: var(--soft); font-size: 16px; max-width: 46em; }
.people.full .bio p { margin: 0; }
.people.full .bio p + p { margin-top: 0.9em; }

/* ---------- Openings of the inner pages ---------- */
.band.opening { padding-block: calc(var(--head) + clamp(20px, 2.6vw, 48px)) clamp(36px, 4vw, 72px); }
.opening > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 24px clamp(32px, 6vw, 110px);
}
.opening h1 + .large,
.opening h1 + .prose { margin-top: 28px; }
.opening .large,
.opening .prose { color: var(--soft); }
.opening .prose { font-size: clamp(16px, 1.25vw, 20px); }
.opening.short > .wrap { display: block; }
.opening.short h1 { max-width: 15em; }
.opening.short .button { margin-top: 32px; }
.opening .picture .cube { max-width: 680px; margin-inline: auto; }
.opening-block,
.opening-tower { display: block; width: 100%; height: auto; margin-inline: auto; }
.opening-block { max-width: 540px; }
.opening-tower { max-width: 460px; }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.4vw, 24px); }
.benefits li {
  display: grid;
  grid-template-columns: 40% minmax(0, 1fr);
  align-items: center;
  gap: 8px 20px;
  padding: clamp(18px, 2vw, 36px);
  border-radius: var(--radius);
  background: var(--stone);
  transition: background-color 0.35s linear;
}
.benefits li:hover,
.benefits li:target { background: #E3D3BD; }
.benefits p { margin-top: 12px; font-size: 16px; }

.piece .cover { width: 100%; max-width: 540px; justify-self: end; }
.piece h1 { font-size: clamp(34px, 4.2vw, 70px); }
.piece .meta { margin-top: 0; }
.wrap.reading { max-width: calc(760px + 2 * var(--gutter)); }
.reading .prose { max-width: none; font-size: clamp(17px, 1.3vw, 21px); line-height: 1.65; }
.band .reading h2 { margin: 42px 0 10px; font-size: 24px; }
/* what the admin lets an article hold besides paragraphs */
.reading .prose :is(ul, ol) { margin: 0; padding-inline-start: 1.2em; }
.reading .prose :is(p, ul, ol) + :is(p, ul, ol) { margin-top: 1.1em; }
.reading .prose li + li { margin-top: 0.4em; }
.reading .prose a { color: inherit; text-decoration: underline; text-decoration-color: var(--clay); text-underline-offset: 0.18em; }
.sources { list-style: none; margin: 0; padding: 0; }
.sources .round { width: 32px; height: 32px; }
.band.next { padding-top: 0; }
.band.next h2 { margin-bottom: 28px; font-size: clamp(26px, 2.4vw, 38px); }

.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; margin-bottom: 40px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 26px; background: var(--stone); }
.tabs button {
  min-height: 42px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s linear, color 0.3s linear;
}
.tabs button:hover { background: #DCCFBB; }
.tabs [aria-selected="true"],
.tabs [aria-selected="true"]:hover { background: var(--ink); color: var(--paper); }
[role="tabpanel"]:not([hidden]) { animation: arrive 0.5s var(--ease); }
@keyframes arrive { from { opacity: 0.2; translate: 0 8px; } }

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 6px 6px, 6px 6px;
  background-position: right 24px center, right 18px center;
  background-repeat: no-repeat;
  cursor: pointer;
}
[dir="rtl"] select { background-position: left 24px center, left 18px center; }
.filters select {
  min-height: 52px;
  padding-inline: 20px 48px;
  border: 1px solid #A99F90;
  border-radius: 999px;
  background-color: transparent;
  color: var(--ink);
  color-scheme: light;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.3s linear;
}
.filters select:hover { border-color: var(--ink); }

/* ---------- Contact ---------- */
.band.contact-page { display: grid; align-items: center; }
.contact-page > .wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.contact-page h1 { font-size: clamp(38px, 4.4vw, 76px); }
form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 18px;
  padding: clamp(20px, 2.6vw, 48px);
  border-radius: 28px;
  background: var(--deep);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.type,
.field.message,
form .result { grid-column: 1 / -1; }
form .cf-turnstile { grid-column: 1 / -1; }
form .cf-turnstile:empty { display: none; }
.field.type { margin-bottom: 18px; }
.field span { font-size: 14px; font-weight: 700; transition: color 0.25s linear; }
.field:focus-within span { color: var(--leaf); }
.field small { color: var(--soft); font-weight: 400; }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 16px;
  border: 1px solid #66887A;
  border-radius: 14px;
  background-color: var(--ink);
  color: var(--paper);
  caret-color: var(--earth);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.25s linear, background-color 0.25s linear;
}
.field select { padding-inline-end: 44px; }
.field :is(input, select, textarea):hover { border-color: var(--leaf); }
.field :is(input, select, textarea):focus-visible { outline-offset: 2px; }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.field textarea { resize: vertical; }
.field [aria-invalid="true"] { border-color: #F0A47A; }
.field em { min-height: 20px; color: #F0A47A; font-size: 13px; font-style: normal; line-height: 1.3; }
.trap { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
form .button { justify-self: start; align-self: center; }
form .button:disabled { opacity: 0.6; cursor: progress; }
form .privacy { align-self: center; color: var(--soft); font-size: 13px; line-height: 1.4; }
form .privacy a { text-decoration: underline; }
form .result { margin-top: 12px; font-weight: 700; }
form .result:empty { display: none; }
form .result.good { color: var(--leaf); }
form .result.bad { color: #F0A47A; }

/* ---------- Closing and footer ---------- */
.band.closing { display: grid; align-items: center; }
.closing > .wrap { display: flex; flex-direction: column; align-items: center; gap: clamp(26px, 2.8vw, 44px); text-align: center; }
.closing h2 { max-width: 15em; font-size: clamp(34px, 4.4vw, 76px); }

.foot { flex: none; padding-block: 34px 30px; background: var(--deep); color: var(--paper); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; }
.foot .brand img { height: 44px; }
.foot .brand span { display: block; }
.foot .end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 22px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 40px; }
.foot a:not(.brand) { text-decoration: underline 1px transparent; transition: color 0.25s linear, text-decoration-color 0.25s linear; }
.foot a:not(.brand):hover { color: var(--leaf); text-decoration-color: currentColor; }
.foot p { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; margin: 0; color: var(--soft); font-size: 13px; }

/* ---------- Tablet ---------- */
.panel .map .town { font-size: 20px; }
.panel .map .place,
.panel .map .water { font-size: 17px; }
@media (min-width: 900px) and (max-width: 1239.98px) {
  .panel .map .town { font-size: 22px; }
  .panel .map .place,
  .panel .map .water { font-size: 18px; }
}

@media (max-width: 1179.98px) {
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefits li { grid-template-columns: minmax(110px, 240px) minmax(0, 1fr); }
  .zone-label p { display: none; }
  .process.full { --w: 0.64; max-width: 680px; }
  .zone-texts { display: grid; gap: 4px; margin: 28px 0 0; }
  .zone-texts div { padding: 14px 18px; border-radius: 16px; transition: background-color 0.3s linear; }
  .zone-texts div.on { background: var(--deep); }
  .zone-texts dt { font-weight: 700; }
  .zone-texts dd { margin: 4px 0 0; color: var(--soft); font-size: 15px; }
}

@media (max-width: 1079.98px) {
  .split.tech { grid-template-columns: minmax(0, 1fr); }
  .split.tech .process { width: 100%; max-width: 640px; }
  .contact-page > .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 899.98px) {
  .split,
  .opening > .wrap { grid-template-columns: minmax(0, 1fr); }
  .split > .cube { max-width: 460px; }
  .opening .picture .cube { max-width: 420px; }
  .opening-block { max-width: 300px; }
  .opening-tower { max-width: 250px; }
  .piece .cover { max-width: 460px; justify-self: stretch; }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* the picture goes under the words, still framed */
  .framed > .wrap,
  .framed.start > .wrap { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .framed.start .panel { order: 0; }
  .panel { aspect-ratio: 1 / 1.08; max-height: 560px; width: 100%; }

  .foot .wrap,
  .foot .end { flex-direction: column; align-items: flex-start; }
  .foot nav,
  .foot p { justify-content: flex-start; }
}

@media (max-width: 599.98px) {
  .stories,
  .stories.two,
  .references,
  form { grid-template-columns: minmax(0, 1fr); }
  .stories { gap: 36px; }
  .stories .cover { aspect-ratio: 4 / 3; }

  /* the sequence turns downwards */
  .material { grid-template-columns: minmax(0, 1fr); }
  .step { display: grid; grid-template-columns: 46% minmax(0, 1fr); align-items: center; text-align: start; }
  .step .name { margin: 0; padding-inline: 14px 0; }
  .flow { height: 26px; width: 46%; }
  .flow svg,
  [dir="rtl"] .flow svg { left: 50%; top: 50%; width: 38px; translate: -50% -50%; transform: rotate(90deg); }

  .process,
  .process.full { --w: 0.66; }
  .zone-label { margin-inline-start: calc(var(--w) * 100% + 18px); }
  .zones li::before { width: calc((1 - var(--ax)) * var(--w) * 100% + 10px); }

  .reference .label { padding: 18px; }
  .round { width: 38px; height: 38px; }
  .benefits li { grid-template-columns: minmax(0, 1fr); }
  .benefits .cube { max-width: 190px; }
  .map .town,
  .map .country { font-size: 22px; }
  .map .place,
  .map .water { font-size: 19px; }
  .map .note { font-size: 16px; }
  .button.huge { width: 100%; min-height: 72px; padding-inline: 20px; }
  .filters select,
  form .button { width: 100%; }
  form .privacy { margin-top: 12px; }
  .people.full li { grid-template-columns: 60px minmax(0, 1fr); gap: 6px 16px; }
  .people.full .portrait { grid-row: span 2; }
  .people.full .bio { grid-column: 2; padding-top: 0; }
  .people.full .portrait { width: 60px; }
  .people.full .portrait span { display: none; }
}

/* A moving layer must be clipped by its holder. Otherwise the browser assumes it can cover what follows
   and re-smooths that text for the length of the animation: the page seems to tremble. */
.contact,
.button,
.round,
.reasons a,
.top .nav { overflow: hidden; }
.cube { clip-path: inset(-16% -5% -4%); }
.process,
.drawing { contain: paint; }

@media (max-width: 359.98px) {
  .actions .button,
  .actions .button.primary { padding-inline: 8px; font-size: 13px; }
}

/* ---------- 404 ---------- */
.lost-words {
  --zero: min(40vh, 34vw);
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px var(--gutter) 28px;
  text-align: center;
  pointer-events: none;
}
.lost-words a { pointer-events: auto; }
.code { display: flex; align-items: center; justify-content: center; }
.code > span {
  color: var(--leaf);
  font-size: calc(var(--zero) * 0.92);
  font-weight: 700;
  line-height: 1;
}
.lost .art {
  flex: none;
  align-self: center;
  width: calc(var(--zero) * var(--art-ratio));
  height: var(--zero);
  min-height: 0;
  margin: 0 calc(var(--zero) * 0.03);
  translate: 0 -1.16%;
}
.lost h1 {
  margin: clamp(16px, 3vh, 40px) 0 0;
  font-size: clamp(28px, min(4vw, 6.4vh), 64px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}
:lang(he) .lost h1 { line-height: 1.16; letter-spacing: 0; }
.lost .lede { max-width: 32em; margin-top: 16px; }
.lost-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (max-width: 599.98px) {
  .lost-words { --zero: min(36vh, 44vw); }
}
@media (min-width: 600px) and (max-width: 1079.98px) {
  .people.full li { grid-template-columns: 80px minmax(0, 1fr); }
  .people.full .portrait { grid-row: span 2; }
  .people.full .bio { grid-column: 2; padding-top: 0; }
}

/* ---------- The three messages (Georges, 24 Nov) ---------- */
.band .partner {
  max-width: 22em;
  margin: clamp(36px, 4vw, 64px) auto 0;
  color: #96502f;
  font-size: clamp(24px, 2.6vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}
.proof { margin-top: clamp(26px, 2.6vw, 40px); }
.proof .figure { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; }
.proof .value { color: var(--leaf); font-size: clamp(56px, 6vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.proof .unit { color: var(--leaf); font-size: clamp(22px, 2vw, 32px); font-weight: 700; }
.proof .label { flex-basis: 100%; margin-top: 8px; color: var(--soft); font-size: clamp(15px, 1.15vw, 18px); }
.proof .points {
  list-style: none;
  margin: 22px 0 0;
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 10px 28px;
  border-top: 1px solid rgb(244 241 234 / 0.16);
}
.proof .points li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: clamp(15px, 1.1vw, 18px); }
.proof .points li::before {
  content: "";
  flex: none;
  width: 12px;
  height: 13.9px;
  background: var(--earth);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.proof + .go { margin-top: 28px; }
@media (max-width: 599.98px) {
  .proof .points { grid-template-columns: minmax(0, 1fr); }
}
