:root {
  --ink: #14304a;
  --tower: #1b72b8;
  --tower-deep: #155d97;
  --paper: #ffffff;
  --stone: #eef2f5;
  --soft: #4a5a68;
  --pale: #b9d3e8;
  --field: #d5dde4;
  --line: #7f8e9b; /* form borders: 3.4:1 on paper */
  /* Headings and text: Noto Sans Hebrew at its normal width (client, round 4) */
  --display: "Noto Sans Hebrew", "Arial Hebrew", sans-serif;
  --body: "Noto Sans Hebrew", "Arial Hebrew", sans-serif;

  /* five sizes: display, section, heading, lead, body; small is for notes only.
     --big is the accessibility menu's large-text factor; display and section are big already */
  --big: 1;
  --t-display: clamp(96px, 16vw, 220px);
  --t-section: clamp(48px, 5.6vw, 84px);
  --t-heading: calc(clamp(28px, 2.4vw, 36px) * var(--big));
  --t-lead: calc(clamp(19px, 1.5vw, 22px) * var(--big));
  --t-body: calc(18px * var(--big));
  --t-small: calc(16px * var(--big));

  --gutter: clamp(16px, 2.5vw, 32px);
  --header: 68px;
  --gap-section: clamp(88px, 10vw, 144px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--tower-deep); }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1; font-weight: 700; }
p { margin: 0 0 1em; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--tower); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
}
.skip:focus { top: 12px; }

.section-title {
  font-family: var(--display); font-size: var(--t-section);
  line-height: .95; color: var(--ink);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 10px 28px; border: 0; border-radius: 0;
  background: var(--tower-deep); color: var(--paper);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--ink); }
.btn:active { transform: scale(.97); }
.btn-quiet { background: var(--stone); color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: var(--paper); }
.btn-wide { width: 100%; }
/* On the dark fields */
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--pale); }
.btn-line { background: none; color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.btn-line:hover { background: var(--paper); color: var(--ink); }

/* ---------- Header: a plain bar ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--header);
  display: flex; align-items: center; gap: 40px;
  padding-inline: var(--gutter);
  background: var(--ink); color: var(--paper);
}
.header-logo img { width: 58px; height: auto; }
.header-nav { display: flex; gap: 28px; margin-inline-end: auto; }
.header-nav a, .header-phone { color: var(--paper); text-decoration: none; }
.header-nav a { position: relative; font-size: var(--t-small); font-weight: 600; padding-block: 8px; }
.header-nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 2px; height: 2px;
  background: var(--pale); transform: scaleX(0); transform-origin: right; transition: transform .25s var(--ease);
}
.header-nav a:hover::after, .header-nav a:focus-visible::after { transform: scaleX(1); }
.header-phone { font-family: var(--display); font-weight: 700; font-size: var(--t-heading); line-height: 1; padding-block: 5px; transition: color .2s; }
.header-phone:hover { color: var(--pale); }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; padding: 0;
  place-items: center; color: var(--paper);
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 28px; height: 3px; background: currentColor; transition: transform .25s, opacity .25s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-toggle-bars::before { top: -9px; }
.menu-toggle-bars::after { top: 9px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(9px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-9px) rotate(-45deg); }

.site-menu {
  position: fixed; inset: 0; z-index: 35; background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: 120px var(--gutter) 48px;
}
.site-menu[hidden] { display: none; }
.site-menu ul { list-style: none; margin: 0; padding: 0; }
.site-menu li a {
  display: inline-block; color: var(--paper); text-decoration: none;
  font-family: var(--display); font-size: var(--t-section); line-height: 1.05;
}
.site-menu li a:hover { color: var(--pale); }
.site-menu-contact { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 40px; }
.site-menu-contact a { color: var(--pale); }

/* ---------- Hero: the logo set in type beside rotating photos ---------- */
.hero {
  /* grows past the window when its text needs more room, so the blue band always reaches the photo's bottom */
  min-height: max(680px, 100svh);
  display: grid; grid-template-columns: 1fr 50%;
  padding-top: var(--header);
  background: var(--ink); color: var(--paper);
}
.hero-photo { position: relative; grid-column: 2; grid-row: 1; overflow: hidden; background: var(--field); }
.hero-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-photo img.is-on { opacity: 1; animation: drift 9s ease-out both; }
@keyframes drift { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-photo-bar {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 16px;
}
.hero-caption {
  min-height: 44px; padding: 10px 16px; border: 0; cursor: pointer; text-align: start;
  background: var(--ink); color: var(--paper); font: 600 var(--t-small)/1.3 var(--body);
}
.hero-caption:hover { background: var(--tower-deep); }
.hero-pause {
  flex: none; width: 44px; height: 44px; border: 0; padding: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--ink); color: var(--paper);
}
.hero-pause[hidden] { display: none; }
.hero-pause svg { width: 18px; height: 18px; }
.hero-pause .i-play, .hero-pause.is-paused .i-pause { display: none; }
.hero-pause.is-paused .i-play { display: inline; }

.hero-band {
  grid-column: 1; grid-row: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: clamp(28px, 5vh, 56px);
  padding: 40px var(--gutter);
}
/* Mark, name and tagline stack and centre like the logo does */
.hero-mark { display: grid; justify-items: center; }
/* The towers cut out of the logo file: they sit at 157-435 x 80-302 of its 591px square */
.hero-towers {
  display: block; width: clamp(110px, 12vw, 170px); aspect-ratio: 280 / 220; margin-bottom: 14px;
  background: url("assets/img/logo.png") no-repeat 50.5% 21.6% / 211% auto;
}
.hero-name { font-family: var(--display); font-size: min(var(--t-display), 22vh); line-height: .8; }
.hero-tagline { margin: .35em 0 0; font-family: var(--display); font-weight: 400; font-size: min(var(--t-heading), 5vh * var(--big)); line-height: 1; }
.hero-side { max-width: 34rem; }
.hero-statement { font-size: calc(clamp(22px, 2vw, 30px) * var(--big)); font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.hero-side p:not(.hero-statement) { font-size: var(--t-lead); line-height: 1.5; color: var(--pale); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- About: text beside a photo of an occupied building; air above and below ---------- */
.about {
  display: grid; grid-template-columns: 7fr 5fr; grid-template-areas: "head photo" "body photo";
  column-gap: clamp(32px, 5vw, 88px); align-items: start;
  padding: var(--gap-section) var(--gutter);
}
.about-head { grid-area: head; margin-bottom: 36px; }
.about-sub { margin: 18px 0 0; font-family: var(--display); font-weight: 600; font-size: var(--t-heading); line-height: 1.1; color: var(--tower-deep); }
.about-body { grid-area: body; max-width: 62ch; }
.about-body p:last-child { margin-bottom: 0; }
.about-body .lead { font-size: var(--t-lead); line-height: 1.5; }
.about-body strong { color: var(--tower-deep); }
.about-photo { grid-area: photo; position: sticky; top: calc(var(--header) + 24px); }
.about-photo img { width: 100%; height: auto; max-height: calc(100svh - var(--header) - 96px); object-fit: cover; object-position: 50% 30%; }
.about-photo figcaption { margin-top: 10px; font-size: var(--t-small); color: var(--soft); }

/* ---------- Beliefs: heading and the handover photo beside the five statements ---------- */
.beliefs {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; row-gap: 48px; align-items: start;
  padding: clamp(64px, 7vw, 104px) var(--gutter);
  background: var(--stone);
}
.beliefs-head { grid-column: 1 / 6; }
.beliefs-photo { margin-top: 40px; }
.beliefs-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 72% 50%; } /* keeps the couple, the key and the agent's face in the 4:3 crop */
.belief-list { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
/* Each statement is marked with the logo's three towers */
.belief-list li { position: relative; padding-inline-start: 52px; }
.belief-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 2px; width: 30px; height: 30px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Crect x='2' y='11' width='7' height='19' fill='%2314304a'/%3E%3Crect x='11.5' y='1' width='7' height='29' fill='%231b72b8'/%3E%3Crect x='21' y='11' width='7' height='19' fill='%2314304a'/%3E%3C/svg%3E") no-repeat center / contain;
}
.belief-list h3 { font-family: var(--display); font-size: var(--t-heading); line-height: 1; margin-bottom: 10px; }
.belief-list p { margin: 0; max-width: 56ch; }

/* ---------- Work: two buildings to a row, staggered ---------- */
.work { padding: var(--gap-section) var(--gutter); }
.work-list {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 112px 16px; align-items: start;
}
.work-item.is-wide { grid-column: span 7; }
.work-item.is-narrow { grid-column: span 5; }
.work-item.is-low { margin-top: 8vw; } /* tracks the height gap, which grows with width */
.work-piece h3 { font-family: var(--display); font-size: var(--t-heading); line-height: 1; margin-bottom: 12px; }
.work-open {
  padding: 0; border: 0; background: none; cursor: pointer; text-align: start;
  font: inherit; letter-spacing: inherit;
}
.work-open:hover { color: var(--tower-deep); }
.work-pic {
  position: relative;
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer; overflow: hidden; background: var(--field);
}
/* Every project opens a gallery with a drone video; say so on the photo, not only on hover */
.work-pic::after {
  content: "תמונות וסרטון רחפן ←";
  position: absolute; inset-inline-start: 0; bottom: 0;
  padding: 10px 16px; background: var(--ink); color: var(--paper);
  font: 600 var(--t-small)/1.2 var(--body);
  transition: background-color .2s;
}
.work-pic:hover::after, .work-pic:focus-visible::after { background: var(--tower-deep); }
.work-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .7s var(--ease); }
.is-narrow .work-pic img { aspect-ratio: 4 / 3; }
.is-tall .work-pic img { aspect-ratio: 4 / 5; }
.work-pic:hover img, .work-pic:focus-visible img { transform: scale(1.04); }
.work-where { margin: 12px 0 0; font-weight: 600; }
.work-status { display: inline-block; margin-inline-end: 8px; padding: 1px 10px; background: var(--stone); color: var(--ink); font-size: var(--t-small); font-weight: 600; }
.work-meta { margin: 4px 0 0; color: var(--soft); }

/* Three sections that open in place */
.work-head .lead { margin: 16px 0 0; font-size: var(--t-lead); color: var(--soft); }
.phase { border-top: 2px solid var(--ink); }
.phase:first-of-type { margin-top: 56px; }
.phase:last-of-type { border-bottom: 2px solid var(--ink); }
.phase summary {
  display: flex; align-items: center; gap: 16px; padding: 28px 0; cursor: pointer; list-style: none;
}
.phase summary::-webkit-details-marker { display: none; }
.phase-title { font-family: var(--display); font-weight: 700; font-size: var(--t-heading); line-height: 1; }
.phase-note { color: var(--soft); font-size: var(--t-small); }
/* plus that turns into a minus */
.phase summary::after {
  content: ""; flex: none; width: 22px; height: 22px; margin-inline-start: auto;
  background: linear-gradient(currentColor 0 0) center / 100% 3px no-repeat, linear-gradient(currentColor 0 0) center / 3px 100% no-repeat;
  transition: background-size .25s var(--ease);
}
.phase[open] summary::after { background-size: 100% 3px, 3px 0; }
.phase summary:hover .phase-title { color: var(--tower-deep); }
.phase .work-list { margin: 8px 0 0; padding-bottom: 72px; }
.phase-body { display: grid; grid-template-columns: 5fr 7fr; gap: 32px clamp(32px, 5vw, 80px); align-items: start; padding: 8px 0 56px; }
.phase-text .lead { font-size: var(--t-lead); line-height: 1.5; font-weight: 600; max-width: 34ch; }
.phase-text .btn { margin-top: 8px; }
.phase-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.phase-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
/* addresses sit below the phase title in weight; the city is shared, so it stays quiet */
.plan-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.plan-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.plan-street { font-family: var(--display); font-weight: 700; font-size: calc(clamp(22px, 1.9vw, 28px) * var(--big)); line-height: 1.2; }
.plan-city { color: var(--soft); font-size: var(--t-small); }

/* ---------- Urban renewal: for owners in older buildings, the photo runs to the edge ---------- */
.renewal {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  background: var(--ink); color: var(--paper);
}
.renewal-photo { grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 560px; max-height: 90svh; object-fit: cover; object-position: 55% 50%; } /* the balconies stay in the tall crop */
.renewal-text { grid-column: 1; grid-row: 1; padding: clamp(64px, 7vw, 104px) var(--gutter); max-width: 40rem; }
.renewal .section-title { color: var(--paper); margin-bottom: 28px; }
.renewal .lead { font-size: var(--t-lead); line-height: 1.55; color: var(--pale); margin-bottom: 36px; }

/* ---------- Contact: a card on the city ---------- */
.contact { position: relative; min-height: 100svh; padding: 60px 0 120px; }
.contact-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-card {
  position: relative; z-index: 1; width: 440px; margin-inline: auto 60px;
  padding: 32px; background: var(--paper);
}
.contact-card h2 { font-family: var(--display); font-size: var(--t-section); line-height: .9; margin-bottom: 12px; }
.contact-form { display: grid; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--soft); }
.field input, .field textarea, .field select {
  color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 0; padding: 10px 12px; width: 100%;
}
.field input[dir="ltr"] { text-align: right; }
.field select { appearance: none; padding-inline-end: 40px; cursor: pointer;
  background: var(--paper) no-repeat left 14px center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314304a' stroke-width='2'/%3E%3C/svg%3E"); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--tower); outline-offset: 0; border-color: var(--tower); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { margin: 0; color: #b3261e; font-size: var(--t-small); }
.form-status { margin: 0; padding: 12px 14px; border-inline-start: 4px solid; font-weight: 600; }
.form-status.is-sent { border-color: var(--tower); background: #e8f1f9; color: var(--ink); }
.form-status.is-failed { border-color: #b3261e; background: #fbeceb; color: #b3261e; }
.form-status a { color: inherit; }
.btn:disabled { opacity: .6; cursor: progress; }

/* ---------- Footer: the number is the headline ---------- */
.site-footer {
  display: grid; grid-template-rows: auto auto auto;
  padding: 40px var(--gutter) 28px; background: var(--tower-deep); color: var(--paper);
}
.site-footer a { color: var(--paper); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; align-items: start; }
.footer-top p { margin: 0; }
.footer-up { text-decoration: none; }
.footer-up:hover { text-decoration: underline; }
.footer-phone {
  grid-row: 2; justify-self: start; margin: clamp(32px, 4vw, 56px) 0 0;
  font-family: var(--display); font-weight: 700; font-size: var(--t-section); line-height: .8;
  text-decoration: none; transition: color .2s;
}
.footer-phone:hover { color: var(--pale); }
.footer-meta {
  grid-row: 3; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px;
  margin-top: 32px; font-size: var(--t-small);
}
.footer-meta nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-meta a { text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }
.footer-meta p { margin: 0; }

/* ---------- Project dialog ---------- */
.project-dialog {
  width: min(1100px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0;
  color: var(--ink); background: var(--paper);
}
.project-dialog::backdrop { background: rgba(20, 48, 74, .8); }
.project-dialog[open] { display: grid; grid-template-columns: 1.3fr 1fr; }
.pd-close {
  position: absolute; z-index: 2; inset-inline-end: 12px; top: 12px; width: 44px; height: 44px;
  border: 0; background: var(--paper); color: var(--ink); cursor: pointer; display: grid; place-items: center;
}
.pd-close:hover { background: var(--stone); }
.pd-close svg { width: 20px; height: 20px; }
.pd-gallery { background: var(--ink); display: flex; flex-direction: column; min-height: 0; }
.pd-main { width: 100%; flex: 1; min-height: 0; max-height: 70vh; object-fit: contain; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pd-thumbs button { flex: none; padding: 0; border: 0; cursor: pointer; background: none; opacity: .5; transition: opacity .2s; }
.pd-thumbs button:hover, .pd-thumbs button[aria-current="true"] { opacity: 1; }
.pd-thumbs img { width: 72px; height: 54px; object-fit: cover; }
.pd-body { padding: 48px 36px 32px; overflow-y: auto; display: flex; flex-direction: column; }
.pd-body h2 { font-family: var(--display); font-size: var(--t-section); line-height: .9; margin-bottom: 18px; }
.pd-facts { list-style: none; padding: 0; margin: 8px 0 24px; display: grid; gap: 6px; }
.pd-facts li { padding: 8px 12px; background: var(--stone); }
.pd-nav { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.pd-nav .btn { flex: 1; padding-inline: 16px; }

/* ---------- Floating buttons: back to top (left), accessibility (right) ---------- */
.to-top, .a11y-toggle {
  position: fixed; bottom: 16px; z-index: 30; width: 52px; height: 52px; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--paper); box-shadow: 0 0 0 2px var(--paper);
}
.to-top { inset-inline-end: 16px; }
.to-top[hidden] { display: none; }
.to-top svg { width: 52px; height: 52px; }
.to-top circle { fill: none; stroke-width: 3; }
.to-top-track { stroke: rgba(255, 255, 255, .2); }
.to-top-ring { stroke: var(--pale); stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: center; }
.to-top:hover, .a11y-toggle:hover { background: var(--tower-deep); }
.a11y { position: fixed; z-index: 31; inset-inline-start: 16px; bottom: 16px; }
.a11y-toggle { position: static; }
.a11y-toggle svg { width: 28px; height: 28px; }
.a11y-panel {
  position: absolute; inset-inline-start: 0; bottom: 64px; width: min(320px, calc(100vw - 32px));
  padding: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 12px 32px rgba(20, 48, 74, .3);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel:focus { outline: none; }
.a11y-panel h2 { font-size: var(--t-lead); margin-bottom: 14px; }
.a11y-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-options button {
  min-height: 48px; padding: 8px; border: 2px solid var(--stone); background: var(--stone); color: var(--ink);
  font-weight: 600; font-size: var(--t-small); line-height: 1.2; cursor: pointer;
}
.a11y-options button:hover { border-color: var(--ink); }
.a11y-options button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 0; font-size: var(--t-small); }
.a11y-reset { padding: 10px 0; border: 0; background: none; color: var(--tower-deep); text-decoration: underline; cursor: pointer; }

/* What each accessibility option does */
:root.a11y-big { --big: 1.25; }
.a11y-contrast { --ink: #000; --soft: #000; --line: #000; --tower: #003b80; --tower-deep: #003b80; --pale: #fff; --stone: #fff; --field: #fff; }
.a11y-contrast .beliefs { box-shadow: inset 0 2px 0 #000, inset 0 -2px 0 #000; }
.a11y-contrast .a11y-options button { border-color: #000; }
.a11y-gray :is(.site-header, main, .site-footer, .project-dialog) { filter: grayscale(1); }
.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; }
.a11y-links a:not(.btn, .header-logo) { background: #ffef9e; color: #000 !important; }
.a11y-plain { --display: Arial, "Arial Hebrew", sans-serif; --body: Arial, "Arial Hebrew", sans-serif; }
.a11y-still *, .a11y-still *::before, .a11y-still *::after { animation: none !important; transition: none !important; }
.a11y-still { scroll-behavior: auto; }
.a11y-still.js .reveal { opacity: 1; transform: none; }

/* ---------- Entrances (only when script runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; grid-template-areas: "head" "photo" "body"; }
  .about-photo { position: static; margin-bottom: 36px; }
  .about-photo img { aspect-ratio: 4 / 3; max-height: none; }
  .work-item.is-wide, .work-item.is-narrow { grid-column: 1 / -1; }
  .work-item.is-narrow { grid-column: 4 / 13; }
  .work-item.is-low { margin-top: 0; }
  .beliefs-head, .belief-list { grid-column: 1 / -1; }
  .beliefs-photo img { aspect-ratio: 16 / 9; }
  .phase-body { grid-template-columns: 1fr; }
  .renewal { grid-template-columns: 1fr; }
  .renewal-photo { grid-column: 1; grid-row: 1; min-height: 0; height: 44svh; }
  .renewal-text { grid-column: 1; grid-row: 2; }
  .project-dialog[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .pd-main { max-height: 50vh; }
  .pd-body { overflow: visible; padding-top: 28px; }
}

/* Tablet and phone: photos on top, the text below. The five menu labels
   don't fit in one row under 960px, so the menu goes behind the button */
@media (max-width: 960px) {
  .header-nav { display: none; }
  .header-phone { margin-inline-start: auto; }
  .menu-toggle { display: grid; }
  .site-header { gap: 16px; }
  .hero { height: auto; min-height: 0; grid-template-columns: none; grid-template-rows: 52svh auto; }
  .hero-photo { grid-column: 1; grid-row: 1; }
  .hero-band { grid-column: 1; grid-row: 2; padding: 40px var(--gutter) 56px; }
  .hero-name { font-size: var(--t-display); }
  .hero-tagline { font-size: var(--t-heading); }
}

/* ---------- Phone: its own composition ---------- */
@media (max-width: 720px) {
  :root { --header: 60px; --t-body: calc(17px * var(--big)); }
  .header-logo img { width: 48px; }

  /* the statement has to show on the first screen, so the photo and the mark give up height */
  .hero { grid-template-rows: 30svh auto; }
  .hero-band { align-items: stretch; gap: 20px; padding: 20px var(--gutter) 40px; }
  .hero-towers { width: 64px; margin-bottom: 8px; }
  .hero-name { font-size: 76px; }
  .hero-tagline { font-size: calc(26px * var(--big)); }
  .hero-statement { font-size: calc(21px * var(--big)); }
  .hero-actions .btn { flex: 1 1 100%; }

  .belief-list { gap: 32px; }
  .belief-list li { padding-inline-start: 42px; }
  .belief-list li::before { width: 26px; height: 26px; }
  .phase summary { padding: 22px 0; }
  /* one photo above the list, so the addresses and the button end the section together */
  .phase-photos { order: -1; grid-template-columns: 1fr; }
  .phase-photos img + img { display: none; }

  .work-list { row-gap: 72px; }
  .work-item.is-narrow { grid-column: 1 / -1; }

  .renewal-photo { height: 36svh; }

  /* the jump to contact lands on the heading and the form; the photo follows them */
  .contact { display: flex; flex-direction: column; min-height: 0; padding: 0; }
  .contact-photo { position: static; order: 1; height: 32svh; }
  .contact-card { width: auto; margin: 0; padding: 40px var(--gutter) 48px; }
  .contact-card .btn { min-height: 56px; }

  .to-top, .a11y-toggle, .to-top svg { width: 44px; height: 44px; }
  .a11y-toggle svg { width: 24px; height: 24px; }
  .a11y-panel { bottom: 56px; }

  .footer-phone { font-size: 18vw; }
  .footer-top { flex-direction: column; gap: 16px; }
  .footer-meta { flex-direction: column; gap: 8px; }

  /* thumb-sized targets for the small text links */
  .footer-meta nav a, .footer-up, .footer-top p a { display: inline-block; padding-block: 11px; }
  .footer-meta nav { gap: 4px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Dialog: drone video and location ---------- */
.pd-main[hidden] { display: none; }
.pd-video { flex: none; aspect-ratio: 16 / 9; height: auto; margin-block: auto; }
.pd-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.pd-thumb-video { position: relative; }
.pd-thumb-video span {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(20, 48, 74, .75); color: var(--paper); /* 6:1 for the white label even over a white photo */
  font: 600 var(--t-small)/1 var(--body);
}
.pd-where { display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 28px; }
.pd-where a { color: var(--tower-deep); font-weight: 600; text-underline-offset: 4px; }
.pd-where a:hover { color: var(--ink); }

/* ---------- Accessibility statement page ---------- */
.statement { max-width: 46rem; padding: calc(var(--header) + 56px) var(--gutter) 96px; }
.statement .section-title { margin-bottom: 32px; }
.statement h2 { font-size: var(--t-lead); margin: 40px 0 12px; }
.statement ul { padding-inline-start: 1.2em; }
.statement li + li { margin-top: 6px; }
.statement-date { margin-top: 40px; color: var(--soft); }
.header-phone-end { margin-inline-start: auto; }
