/* TERRA website. One stylesheet for Hebrew (rtl) and English (ltr): logical properties only. */
:root {
  --navy: #0E1E3F;
  --ink: #0E1E3F;
  --muted: #45526C;
  --blue: #2456A6;
  --bg: #FCFDFE;
  --soft: #F2F5FA;
  --chip: #E4EFFC;
  --chip-ink: #1E3A6E;
  --line: #D5DEEA;
  --focus: #B45309;
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 9rem; }
html.fs-1 { font-size: 112.5%; }
html.fs-2 { font-size: 125%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Rubik', Arial, 'Helvetica Neue', sans-serif; font-size: 1.125rem; line-height: 1.6; text-align: start; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(72rem, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(48rem, 100% - 2.5rem); }

.skip { position: absolute; inset-inline-start: 1rem; top: -6rem; z-index: 100; background: var(--navy); color: #fff; padding: 0.75rem 1.25rem; border-radius: 0 0 8px 8px; font-weight: 600; }
.skip:focus { top: 0; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(252, 253, 254, 0.97); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 1.25rem; padding-block: 0.6rem; }
.brand { display: inline-flex; align-items: center; min-height: 2.75rem; }
.brand img { width: 8.5rem; height: auto; }
.site-nav { margin-inline-start: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.site-nav a, .lang { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.25rem 0.7rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; }
.site-nav a:hover, .lang:hover { background: var(--chip); }
.lang { border: 2px solid var(--navy); font-weight: 600; }
.menu-btn { display: none; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.25rem 0.9rem; margin-inline-start: auto; background: none; border: 2px solid var(--navy); border-radius: 8px; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; }
.menu-ico { width: 1.1rem; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor, 0 -6px 0 currentColor; }
.tools { background: var(--soft); border-top: 1px solid var(--line); }
.tools-in { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: flex-end; padding-block: 0.3rem; }
.tools button { min-height: 2rem; padding: 0.2rem 0.8rem; background: #fff; border: 1px solid #8793A8; border-radius: 6px; color: var(--ink); font: inherit; font-size: 0.875rem; cursor: pointer; }
.tools button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* hero */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--navy); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 20, 48, 0.62) 0%, rgba(8, 20, 48, 0.78) 100%); }
.hero-in { padding-block: clamp(5rem, 16vw, 11rem) clamp(4rem, 10vw, 7rem); }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 4rem); font-weight: 700; max-width: 22ch; }
.hero-p { font-size: clamp(1.15rem, 2.2vw, 1.5rem); max-width: 44ch; margin-block: 1.25rem 2rem; }
.btn { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.5rem 1.6rem; background: #fff; color: var(--navy); border-radius: 10px; font-weight: 600; text-decoration: none; }
.btn:hover { background: var(--chip); }

/* sections */
.sec { padding-block: clamp(3.5rem, 8vw, 6rem); }
.sec.alt { background: var(--soft); }
.kicker { display: inline-block; background: var(--chip); color: var(--chip-ink); font-size: 0.95rem; font-weight: 600; padding: 0.3rem 0.9rem; border-radius: 8px; margin-bottom: 1rem; }
.sec h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 700; max-width: 38ch; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 62ch; margin-top: 1rem; }
.sub { font-size: 1.4rem; font-weight: 700; margin-block: 2.5rem 1.25rem; }
.small { font-size: 0.9rem; }
.muted { color: var(--muted); }
.take { background: var(--chip); color: var(--chip-ink); font-weight: 600; padding: 1rem 1.4rem; border-radius: 12px; margin-block: 2rem 1rem; }
.num { display: inline-flex; align-items: center; justify-content: center; min-width: 2.4rem; height: 2.4rem; background: #fff; border: 1px solid var(--line); border-radius: 10px; color: #3A4A6B; font-weight: 600; font-size: 1rem; flex-shrink: 0; }

/* what we do */
.tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; margin-top: 2.25rem; }
@media (max-width: 68rem) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 44rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 26rem) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--soft); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile p { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1.1rem 1.1rem 1.3rem; margin: 0; font-weight: 600; line-height: 1.4; }

/* team */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.1rem; margin-top: 2.25rem; }
.person { display: flex; gap: 1.1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.25rem; }
.person img { width: 6rem; height: 6rem; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid #fff; box-shadow: 0 4px 16px rgba(14, 30, 63, 0.14); }
.person h3 { font-size: 1.3rem; font-weight: 700; }
.role { color: var(--blue); font-weight: 600; margin: 0.15rem 0 0.3rem; font-size: 1rem; }
.bio { color: var(--muted); margin: 0; font-size: 1rem; line-height: 1.45; }

/* need */
.points { counter-reset: p; display: grid; gap: 1rem; margin-top: 2rem; max-width: 62rem; }
.points li { counter-increment: p; display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; align-items: start; padding-top: 1rem; border-top: 1px solid var(--line); }
.points li::before { content: counter(p, decimal-leading-zero); display: inline-flex; align-items: center; justify-content: center; height: 2.4rem; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; color: #3A4A6B; font-weight: 600; font-size: 1rem; }
.gap { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1.25rem; }
.panel { background: var(--soft); border-radius: 18px; padding: 1.5rem 1.6rem; }
.panel h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 1.25rem; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.5rem; }
.chart { margin: 0; }
.bars { display: flex; justify-content: center; align-items: flex-end; gap: 1.25rem; height: 14rem; border-bottom: 2px solid var(--line); direction: ltr; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; width: 5.5rem; height: 100%; position: relative; padding-bottom: 0; }
.bar-val { font-weight: 700; font-size: 1.25rem; margin-bottom: 0.35rem; unicode-bidi: plaintext; }
.bar { width: 100%; background: var(--navy); border-radius: 8px 8px 0 0; }
.bar-col:first-child .bar { background: #7FA3DC; }
.bar-year { position: absolute; bottom: -1.9rem; font-weight: 600; color: var(--muted); font-size: 1rem; }
.chart figcaption { margin-top: 2.4rem; font-size: 0.95rem; color: var(--muted); text-align: center; line-height: 1.4; }
.chart-data { display: block; color: var(--ink); font-weight: 500; }
.stats { margin: 0; display: grid; gap: 0.9rem; }
.stat { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.stat dt { font-size: 1.9rem; font-weight: 700; color: var(--blue); line-height: 1.15; }
.stat dd { margin: 0.2rem 0 0; color: var(--muted); }

/* approach table */
.table-wrap { overflow-x: auto; margin-top: 2rem; border-radius: 14px; }
.cmp { width: 100%; min-width: 38rem; border-collapse: separate; border-spacing: 0 0.6rem; }
.cmp caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cmp th, .cmp td { text-align: start; vertical-align: middle; padding: 1rem 1.25rem; }
.cmp thead th { font-size: 1rem; color: var(--muted); font-weight: 700; padding-block: 0.25rem; }
.cmp thead .terra-h { color: var(--blue); }
.cmp tbody th { font-weight: 700; white-space: nowrap; }
.cmp tbody td { background: #fff; border-radius: 12px; color: var(--muted); }
.cmp tbody td.terra { background: var(--navy); color: #fff; font-weight: 500; }

/* execution */
.strip { width: 100%; height: 11rem; object-fit: cover; border-radius: 18px; margin-top: 2rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr)); gap: 1.25rem; }
.steps li { display: flex; flex-direction: column; gap: 0.8rem; border-top: 2px solid var(--line); padding-top: 1.1rem; font-weight: 500; line-height: 1.45; }

/* sites, market, next */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 2.5rem; align-items: center; margin-top: 2rem; }
.split img { border-radius: 18px; width: 100%; }
.prose p:last-child { margin-bottom: 0; }
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.25rem; margin-top: 2.25rem; }
.segments li { background: var(--soft); border-radius: 18px; padding: 1.75rem 1.25rem; text-align: center; font-size: 1.45rem; font-weight: 700; }
.cols3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem; margin-top: 2.25rem; }
.cols3 p { border-top: 1px solid var(--line); padding-top: 1rem; color: var(--muted); margin: 0; }
.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2rem; margin-top: 2rem; }
.sec.dark { background: var(--navy); color: #fff; }
.sec.dark .kicker { background: rgba(255, 255, 255, 0.16); color: #fff; }
.sec.dark a { color: #fff; }
.quote { font-size: clamp(1.3rem, 2.6vw, 1.8rem); font-weight: 600; line-height: 1.4; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 18px; padding: 1.5rem 1.75rem; margin-block: 2rem 0; }
.legal { background: var(--soft); }
.legal h2 { font-size: 1.4rem; margin-bottom: 1rem; }
.legal p { font-size: 0.95rem; color: var(--muted); max-width: 75ch; }

/* accessibility page */
.narrow h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-block: 1rem 0.5rem; }
.narrow h2 { font-size: 1.4rem; margin-block: 2rem 0.6rem; max-width: none; }
.bullets { list-style: disc; padding-inline-start: 1.4rem; display: grid; gap: 0.4rem; margin-bottom: 1rem; }

/* footer */
.site-footer { background: #091530; color: #E8EDF5; padding-block: 2.5rem; }
.foot-logo { width: 8.5rem; height: auto; margin-bottom: 1.25rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin-bottom: 1.25rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #fff; }
.site-footer .small { color: #C9D3E3; max-width: 75ch; }

/* small screens */
@media (max-width: 62rem) {
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; order: 5; flex-basis: 100%; margin: 0; padding-block: 0.25rem 0.5rem; border-top: 1px solid var(--line); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { width: 100%; }
  .header-in { position: relative; flex-wrap: wrap; }
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }
}
@media (max-width: 30rem) {
  body { font-size: 1.0625rem; }
  .header-in { gap: 0.5rem; }
  .brand img { width: 6.5rem; }
  .menu-btn, .lang { padding-inline: 0.6rem; }
  .person { align-items: flex-start; }
  .person img { width: 4.5rem; height: 4.5rem; }
}

/* comparison table becomes stacked cards on narrow screens (no sideways scrolling) */
@media (max-width: 44rem) {
  .cmp { min-width: 0; border-spacing: 0; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp tbody tr { display: block; margin-bottom: 1.5rem; }
  .cmp tbody th, .cmp tbody td { display: block; }
  .cmp tbody th { padding: 0 0 0.5rem; font-size: 1.2rem; white-space: normal; }
  .cmp tbody td { margin-bottom: 0.5rem; }
  .cmp tbody td::before { content: attr(data-label); display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 0.25rem; }
}

/* high contrast */
html.hc { --ink: #000; --navy: #000; --muted: #000; --blue: #00338D; --bg: #fff; --soft: #fff; --chip: #fff; --chip-ink: #000; --line: #000; --focus: #C2410C; }
html.hc .panel, html.hc .tile, html.hc .person, html.hc .segments li, html.hc .take, html.hc .kicker, html.hc .cmp tbody td { border: 2px solid #000; }
html.hc .hero-shade { background: rgba(0, 0, 0, 0.86); }
html.hc .bar-col:first-child .bar { background: #555; }
html.hc a { text-decoration: underline; }
html.hc .sec.dark .kicker { border-color: #fff; background: #000; }
html.hc .site-footer { background: #000; }
html.hc .site-footer .small { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .skip, .tools { display: none; }
}
