/* SDP, Sagi Doron Projects. One stylesheet for every page; English pages add ltr.css on top. */

:root {
  --ink: #111C2C;
  --text: #2B3646;
  --muted: #5D6878;
  --white: #FFFFFF;
  --soft: #F2F4F7;
  --soft-2: #E7EBF1;
  --line: #DDE2EA;
  --blue: #1F5BC0;
  --blue-deep: #17479B;
  --blue-light: #8FB4F2;
  --navy: #0B1A33;
  --navy-2: #12264A;

  --font-display: 'Karantina', 'Heebo', sans-serif;
  --font-text: 'Heebo', Arial, sans-serif;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --margin: clamp(20px, 4vw, 64px);
  --header-h: 88px;
  --section: clamp(88px, 10vw, 150px);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --shadow: 0 24px 60px -24px rgba(11, 26, 51, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--white); color: var(--text);
  font-family: var(--font-text); font-size: clamp(1.0625rem, 1rem + .2vw, 1.1875rem); line-height: 1.7; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
::selection { background: var(--blue); color: var(--white); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .site-header:not(.is-scrolled) :focus-visible, .cta :focus-visible { outline-color: var(--white); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: .92; letter-spacing: 0; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(4.25rem, 2.6rem + 7vw, 10rem); }
h2 { font-size: clamp(3.25rem, 2.2rem + 4vw, 6rem); }
h3 { font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.dot { color: var(--blue); }
.on-dark .dot { color: var(--blue-light); }

.skip-link { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 2000; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--margin); }
.section { padding-block: var(--section); }
.section-soft { background: var(--soft); }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--blue); font-size: .9375rem; font-weight: 500; letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: currentColor; }
.on-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow, .cta .eyebrow { color: var(--blue-light); }
.cta .eyebrow { justify-content: center; }
.hero h1, .page-hero h1 { color: var(--white); }
.lead { font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.4375rem); line-height: 1.6; font-weight: 300; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head-row .section-head { margin-bottom: 0; }
.section-note { margin-top: 18px; max-width: 62ch; color: var(--muted); font-size: 1.0625rem; line-height: 1.6; }

/* Buttons: pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 30px;
  border: 1.5px solid transparent; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1.0625rem; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0); }
.pill-blue { background: var(--blue); color: var(--white); }
.pill-blue:hover { background: var(--blue-deep); box-shadow: 0 14px 30px -12px rgba(31, 91, 192, .6); }
.pill-white { background: var(--white); color: var(--ink); }
.pill-white:hover { background: var(--soft); }
.pill-dark { background: var(--ink); color: var(--white); }
.pill-dark:hover { background: var(--navy-2); }
.pill-outline { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.pill-outline:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.pill-glass { min-height: 46px; padding: 0 22px; background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .35); color: var(--white); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 1rem; }
.arrow { width: 16px; height: 12px; flex: none; transition: transform .35s var(--ease); }
[dir="ltr"] .arrow { transform: scaleX(-1); }
.pill:hover .arrow, .text-link:hover .arrow, .project-card:hover .arrow { transform: translateX(-5px); }
[dir="ltr"] .pill:hover .arrow, [dir="ltr"] .text-link:hover .arrow, [dir="ltr"] .project-card:hover .arrow { transform: scaleX(-1) translateX(-5px); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 500; text-decoration: none; }
.text-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .35s var(--ease); }
.text-link:hover span { background-size: 0 1.5px; background-position: 100% 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

/* Header: transparent over the dark top of every page, white glass once the page moves */
.site-header { position: fixed; inset: 0 0 auto; z-index: 1000; color: var(--white); transition: background-color .35s, box-shadow .35s, color .35s, transform .45s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; background: linear-gradient(rgba(6, 13, 26, .45), rgba(6, 13, 26, 0)); pointer-events: none; transition: opacity .35s; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .9); color: var(--ink); box-shadow: 0 1px 0 rgba(17, 28, 44, .06), 0 10px 30px -18px rgba(17, 28, 44, .25); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(-100%); }
.bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); max-width: 1440px; margin-inline: auto; padding-inline: var(--margin); transition: height .35s var(--ease); }
.is-scrolled .bar { height: 76px; }
.brand { position: relative; display: block; flex: none; }
.brand img { height: 50px; width: auto; transition: opacity .35s; }
.brand .logo-dark { position: absolute; inset: 0; opacity: 0; }
.is-scrolled .brand .logo-dark { opacity: 1; }
.is-scrolled .brand .logo-light { opacity: 0; }
.nav { margin-inline: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav-list > li > a, .sub-toggle { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; background: none; border: 0; text-decoration: none; font-weight: 500; font-size: 1.0625rem; white-space: nowrap; }
.nav-list > li > a::after, .sub-toggle::after { content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 2px; border-radius: 2px; background: currentColor; transform: scaleX(0); transition: transform .35s var(--ease); }
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after, .sub-toggle:hover::after, .has-sub.is-current .sub-toggle::after { transform: scaleX(1); }
.chev { width: 12px; height: 8px; transition: transform .3s var(--ease); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -18px; min-width: 210px; padding: 10px; background: var(--white); color: var(--ink);
  border-radius: var(--r-md); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s;
}
.sub::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-sub:hover .sub, .has-sub.is-open .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.has-sub:hover .chev, .has-sub.is-open .chev { transform: rotate(180deg); }
.sub a { display: block; padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; white-space: nowrap; transition: background-color .2s, color .2s; }
.sub a:hover, .sub a[aria-current="page"] { background: var(--soft); color: var(--blue); }
.nav-foot { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration: none; font-weight: 500; }
.lang-switch svg { width: 18px; height: 18px; }
.pill-header { min-height: 46px; padding: 0 22px; border-color: currentColor; font-size: 1rem; }
.pill-header:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.is-scrolled .pill-header { background: var(--blue); border-color: var(--blue); color: var(--white); }
.is-scrolled .pill-header:hover { background: var(--blue-deep); }
.menu-toggle { display: none; position: relative; width: 44px; height: 44px; padding: 0; background: none; border: 0; color: inherit; }
.menu-toggle span { position: absolute; inset-inline-start: 10px; width: 24px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 25px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* Home hero: the full photograph */
.hero { position: relative; display: flex; align-items: flex-end; min-height: max(100svh, 640px); overflow: hidden; background: var(--navy); color: var(--white); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 112%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 13, 26, .55) 0%, rgba(6, 13, 26, .1) 32%, rgba(6, 13, 26, .35) 60%, rgba(6, 13, 26, .86) 100%); }
.hero-content { position: relative; z-index: 1; width: 100%; padding-top: calc(var(--header-h) + 32px); padding-bottom: clamp(40px, 5vw, 64px); }
.hero h1 { max-width: 14ch; margin-bottom: 20px; font-size: clamp(4.25rem, 2.2rem + 6.4vw, 9rem); }
.hero .lead { max-width: 40ch; margin-bottom: 32px; color: rgba(255, 255, 255, .88); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px 0; margin-top: clamp(36px, 4.5vw, 56px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .22); }
.hero-stats div { display: flex; flex-direction: column; padding-inline-end: clamp(28px, 4vw, 64px); margin-inline-end: clamp(28px, 4vw, 64px); border-inline-end: 1px solid rgba(255, 255, 255, .22); }
.hero-stats div:last-child { border: 0; margin: 0; padding: 0; }
.hero-stats dd { order: -1; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.75rem, 2.2rem + 1.6vw, 3.75rem); line-height: .9; color: var(--white); }
.hero-stats dt { margin-top: 6px; font-size: .9375rem; color: rgba(255, 255, 255, .78); }

/* Words of the big headings rise out of a mask (set up by site.js) */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; }

/* Intro: two columns, then the three foundations */
.intro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 7vw, 110px); align-items: end; }
.intro-grid .lead { color: var(--text); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: clamp(56px, 6vw, 88px); }
.pillar { position: relative; padding: clamp(32px, 3vw, 44px); background: var(--soft); border-radius: var(--r-lg); transition: transform .45s var(--ease), background-color .3s, box-shadow .45s var(--ease); }
.pillar:hover { transform: translateY(-6px); background: var(--white); box-shadow: var(--shadow); }
.pillar-num { display: block; margin-bottom: 28px; font-family: var(--font-display); font-size: 1.75rem; line-height: 1; color: var(--blue); }
.pillar h3 { margin-bottom: 14px; }
.pillar p { color: var(--muted); }

/* Project cards: rounded photographs with the words over them */
.project-card { position: relative; display: block; overflow: hidden; border-radius: var(--r-lg); background: var(--navy); color: var(--white); text-decoration: none; isolation: isolate; }
.card-media { position: absolute; inset: 0; overflow: hidden; }
.card-media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transition: scale 1.1s var(--ease); }
.project-card:hover .card-media img { scale: 1.05; }
.project-card::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(6, 13, 26, 0) 35%, rgba(6, 13, 26, .82) 100%); }
.card-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; height: 100%; padding: clamp(24px, 3vw, 44px); }
.card-place { margin: 0 0 6px; font-size: .9375rem; color: rgba(255, 255, 255, .8); }
.project-card h3 { color: var(--white); font-size: clamp(2.75rem, 2rem + 2.6vw, 4.5rem); }
.card-desc { margin: 10px 0 22px; max-width: 34ch; color: rgba(255, 255, 255, .88); }
.project-card .pill-glass { transition: background-color .3s, color .3s; }
.project-card:hover .pill-glass { background: var(--white); color: var(--ink); }
.cards-main { display: grid; gap: clamp(16px, 2vw, 24px); }
.cards-main .card-xl { aspect-ratio: 21 / 9; min-height: 460px; }
.cards-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.cards-2 .project-card { aspect-ratio: 5 / 4; }

/* Cyprus */
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.split-grid h2 { margin-bottom: 26px; }
.split-grid .prose { max-width: 50ch; }
.split-grid .actions { margin-top: 36px; }
.round-img { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--soft-2); }
.round-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.round-img.ratio-43 { aspect-ratio: 4 / 3; }
.round-img.ratio-45 { aspect-ratio: 4 / 5; }
.img-caption { margin-top: 12px; font-size: .875rem; color: var(--muted); }

/* About the company (home) */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.about-grid .prose { max-width: 58ch; }
.about-grid .actions { margin-top: 32px; }

/* Call to action: a navy panel with rounded corners */
.cta-wrap { padding-bottom: var(--section); }
.cta { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 120px) clamp(24px, 6vw, 96px); border-radius: var(--r-lg); background: var(--navy); color: var(--white); text-align: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1; background: radial-gradient(closest-side, rgba(31, 91, 192, .55), rgba(31, 91, 192, 0)); }
.cta h2 { max-width: 16ch; margin: 0 auto 20px; color: var(--white); }
.cta p { margin: 0 auto 36px; max-width: 40ch; font-size: 1.1875rem; color: rgba(255, 255, 255, .8); }

/* Inner pages: navy top with the title */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + clamp(56px, 7vw, 104px)) 0 clamp(120px, 12vw, 180px); background: var(--navy); color: var(--white); isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 70vw; height: 70vw; top: -35vw; inset-inline-start: -20vw; background: radial-gradient(closest-side, rgba(31, 91, 192, .42), rgba(31, 91, 192, 0)); }
.page-hero .lead { max-width: 40ch; margin: 24px 0 0; color: rgba(255, 255, 255, .85); }
.page-hero .actions { margin-top: 36px; }
.page-hero.is-short { padding-bottom: clamp(64px, 7vw, 104px); }
.page-hero.is-short h1 { font-size: clamp(3.5rem, 2.4rem + 4.4vw, 7rem); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 28px; font-size: .9375rem; color: rgba(255, 255, 255, .65); }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 10px; opacity: .6; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.feature-img { margin-top: calc(-1 * clamp(80px, 9vw, 130px)); position: relative; z-index: 1; }
.feature-img .round-img { aspect-ratio: 16 / 8; box-shadow: var(--shadow); }
.feature-img .round-img img { position: absolute; inset: -8% 0; height: 116%; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.overview-head { position: sticky; top: calc(var(--header-h) + 40px); }
.overview-grid .prose p { max-width: 62ch; }
.facts { margin-top: 48px; padding: 8px clamp(20px, 3vw, 36px); background: var(--soft); border-radius: var(--r-lg); }
.facts > div { display: grid; grid-template-columns: minmax(0, 10rem) minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font-weight: 500; }
.facts dd { color: var(--ink); }
.ext-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.inline-figure { margin-top: 48px; }
.inline-figure .round-img { aspect-ratio: 4 / 5; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 22vw, 300px); gap: clamp(12px, 1.6vw, 20px); }
.gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid figure:nth-child(6) { grid-column: span 2; }
.gallery-grid figure { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--soft-2); }
.gallery-grid button { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.gallery-grid figure:hover img { scale: 1.05; }
.gallery-grid figcaption { position: absolute; bottom: 14px; inset-inline-start: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(6, 13, 26, .6); color: var(--white); font-size: .875rem; pointer-events: none; backdrop-filter: blur(8px); }
.lightbox { width: min(1200px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; background: transparent; color: var(--white); overflow: visible; }
.lightbox::backdrop { background: rgba(6, 13, 26, .9); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; max-height: calc(100svh - 110px); object-fit: contain; border-radius: var(--r-md); }
.lightbox p { margin: 12px 0 0; text-align: center; }
.lightbox-close { position: absolute; top: -56px; inset-inline-end: 0; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--white); color: var(--ink); font-size: 1.5rem; line-height: 1; }

/* About page */
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.story-card { padding: clamp(32px, 3.5vw, 52px); background: var(--soft); border-radius: var(--r-lg); }
.story-card h3 { margin-bottom: 18px; }
.story-card .ext-links { margin-top: 24px; }
.story-card.is-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.mini-pillars { display: grid; gap: 12px; }
.mini-pillars div { padding: 20px 24px; background: var(--white); border-radius: var(--r-sm); }
.mini-pillars dt { font-family: var(--font-display); font-weight: 700; font-size: 1.875rem; line-height: 1; color: var(--ink); margin-bottom: 6px; }
.mini-pillars dd { color: var(--muted); }

.milestones { background: var(--navy); color: rgba(255, 255, 255, .85); overflow: hidden; }
.timeline-wrap { position: relative; padding-top: 48px; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.timeline-track { position: absolute; top: 9px; inset-inline: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .16); }
.timeline-line { position: absolute; inset: 0; border-radius: 2px; background: var(--blue-light); transform-origin: right center; }
[dir="ltr"] .timeline-line { transform-origin: left center; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; top: -46px; inset-inline-start: 0; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 2px solid var(--blue-light); }
.timeline .year { display: block; margin-bottom: 12px; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 2.4rem + 1.6vw, 4rem); line-height: .9; color: var(--white); }
.timeline p { font-size: 1rem; line-height: 1.6; }

.areas-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.area { display: flex; flex-direction: column; justify-content: space-between; min-height: 240px; padding: 32px; background: var(--soft); border-radius: var(--r-lg); transition: background-color .35s, transform .45s var(--ease); }
.area:hover { background: var(--blue); transform: translateY(-6px); }
.area span { font-family: var(--font-display); font-size: 1.75rem; color: var(--blue); line-height: 1; transition: color .35s; }
.area h3 { font-size: clamp(2.25rem, 1.9rem + 1vw, 2.875rem); transition: color .35s; }
.area:hover span, .area:hover h3 { color: var(--white); }
.press-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); }
.press-card { padding: clamp(24px, 3vw, 40px); background: var(--white); border-radius: var(--r-lg); box-shadow: 0 1px 0 var(--line), var(--shadow); }
.press-card img { width: 100%; border-radius: var(--r-sm); }
.press-card figcaption { margin-top: 20px; color: var(--muted); }
.press-card strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 600; }

/* Contact page: the form sits in the navy top */
.contact-hero { padding-bottom: clamp(72px, 8vw, 120px); }
.contact-hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-direct { margin-top: 36px; color: rgba(255, 255, 255, .8); }
.contact-direct a { color: var(--white); font-weight: 500; text-underline-offset: 5px; }
.form-card { padding: clamp(28px, 3.5vw, 48px); background: var(--white); color: var(--text); border-radius: var(--r-lg); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); }
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 1rem; color: var(--ink); }
.field .req { color: var(--blue); }
.field input, .field textarea { width: 100%; min-height: 54px; padding: 14px 18px; background: var(--soft); border: 1.5px solid transparent; border-radius: var(--r-sm); font-size: 1.0625rem; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--line); }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 91, 192, .14); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; }
[dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="email"] { text-align: right; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-size: .9875rem; line-height: 1.55; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.consent a { color: var(--blue); text-underline-offset: 3px; }
.form .pill { justify-self: start; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-message { min-height: 1.6em; margin: 0; font-weight: 500; color: var(--ink); }
.form-message.is-error { color: #B3261E; }
.form-message a { color: inherit; }

/* Legal pages and 404 */
.legal { padding-block: clamp(64px, 7vw, 104px) var(--section); }
.legal .container { max-width: 900px; }
.legal h2 { font-size: clamp(2.5rem, 2rem + 1.6vw, 3.5rem); margin: 56px 0 16px; }
.legal p, .legal li { max-width: 70ch; }
.legal ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--blue); text-underline-offset: 3px; }
.updated { color: rgba(255, 255, 255, .7); margin: 20px 0 0; }
.page-hero.notfound { min-height: 100svh; display: flex; align-items: center; padding-bottom: 80px; }

/* Footer */
.site-footer { padding-top: clamp(64px, 7vw, 104px); background: var(--soft); color: var(--muted); font-size: 1rem; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; padding-bottom: 56px; }
.footer-brand img { height: 58px; width: auto; }
.footer-brand p { max-width: 32ch; margin: 22px 0 18px; }
.footer-mail { color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 2rem; text-decoration: none; }
.footer-mail:hover { color: var(--blue); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-cols h2 { margin-bottom: 18px; font-family: var(--font-text); font-size: 1rem; font-weight: 600; color: var(--ink); }
.footer-cols li { margin-bottom: 10px; }
.footer-cols a, .cookie-settings { color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-cols a:hover, .cookie-settings:hover { color: var(--blue); }
.cookie-settings { padding: 0; background: none; border: 0; font-size: 1rem; }
.footer-bottom { padding-block: 26px 30px; border-top: 1px solid var(--line); font-size: .9375rem; }

/* Cookie banner (assets/consent.js) */
.consent-banner { position: fixed; z-index: 1500; bottom: 16px; inset-inline: 16px; max-width: 560px; margin-inline: auto; padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; background: var(--white); color: var(--ink); border-radius: var(--r-md); box-shadow: var(--shadow); }
.consent-text { flex: 1 1 280px; margin: 0; font-size: .95rem; line-height: 1.55; }
.consent-text a { color: var(--blue); }
.consent-actions { display: flex; gap: 8px; }
.consent-btn { min-height: 44px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; font-weight: 500; }
.consent-btn-accept { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Before GSAP takes over, what it animates in starts hidden (only when motion is allowed; the head script
   removes the class again if GSAP has not loaded after 2.5s, so nothing can stay hidden). */
.anim [data-a], .anim [data-hero] { opacity: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  :root { --header-h: 74px; }
  .is-scrolled .bar { height: 68px; }
  .brand img { height: 42px; }
  .nav { position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--header-h) + 24px) var(--margin) 40px; background: var(--white); color: var(--ink); visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; overflow-y: auto; }
  .nav.is-open { visibility: visible; opacity: 1; transition: opacity .35s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .sub-toggle { width: 100%; padding: 8px 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(2.75rem, 9vw, 3.5rem); line-height: 1.05; justify-content: flex-start; }
  .nav-list > li > a::after, .sub-toggle::after { display: none; }
  .nav-list > li > a[aria-current="page"] { color: var(--blue); }
  .sub-toggle { pointer-events: none; }
  .sub-toggle .chev { display: none; }
  .sub { position: static; min-width: 0; padding: 0 0 8px; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .sub a { padding: 6px 0; font-size: 1.25rem; color: var(--muted); }
  .sub a:hover, .sub a[aria-current="page"] { background: none; }
  .nav-foot { display: block; margin-top: 32px; color: var(--muted); }
  .nav-foot a { color: var(--blue); font-weight: 500; }
  .menu-toggle { display: block; }
  .header-actions { margin-inline-start: auto; gap: 10px; }
  .pill-header { display: none; }
  .menu-open .site-header { color: var(--ink); background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .menu-open .site-header::before { opacity: 0; }
  .menu-open .brand .logo-dark { opacity: 1; }
  .menu-open .brand .logo-light { opacity: 0; }

  .intro-grid, .split-grid, .about-grid, .overview-grid, .contact-hero-grid { grid-template-columns: 1fr; align-items: start; }
  .overview-head { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .cards-main .card-xl { aspect-ratio: 4 / 3; min-height: 0; }
  .story-card.is-wide { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 72px; }
  .timeline-track { display: none; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (max-width: 720px) {
  :root { --header-h: 70px; --r-lg: 22px; }
  .brand img { height: 38px; }
  .hero-content { padding-bottom: 40px; }
  .hero-stats div { padding-inline-end: 18px; margin-inline-end: 18px; }
  .hero-stats dt { font-size: .8125rem; max-width: 12ch; line-height: 1.35; }
  .hero .actions .pill { flex: 1 1 auto; }
  .cards-2, .story-grid, .press-grid { grid-template-columns: 1fr; }
  .cards-2 .project-card, .cards-main .card-xl { aspect-ratio: 4 / 5; }
  .feature-img .round-img { aspect-ratio: 4 / 3; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-grid figure:first-child, .gallery-grid figure:nth-child(6) { grid-column: 1 / -1; grid-row: span 2; }
  .timeline-wrap { padding-top: 0; }
  .timeline { grid-template-columns: 1fr; row-gap: 0; padding-inline-start: 36px; }
  .timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 7px; width: 2px; background: rgba(255, 255, 255, .2); }
  .timeline li { padding-bottom: 36px; }
  .timeline li::before { top: 4px; inset-inline-start: -36px; }
  .areas-grid { grid-template-columns: 1fr; }
  .area { min-height: 150px; }
  .facts > div { grid-template-columns: 1fr; gap: 4px; }
  .form-row { grid-template-columns: 1fr; }
  .form .pill { justify-self: stretch; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols nav:last-child { grid-column: 1 / -1; }
  .cta .pill { width: 100%; }
}

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

/* Doron Media credit: bottom bar, opposite the copyright; own centred line on tablets and phones */
.footer-bottom { display: flex; justify-content: space-between; align-items: center; column-gap: 48px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.dm-credit { display: inline-flex; align-items: center; gap: 8px; color: inherit; font-size: 13px;
  text-decoration: none; opacity: .75; transition: opacity .2s; white-space: nowrap; }
.dm-credit:hover, .dm-credit:focus-visible { opacity: 1; }
.dm-credit img { display: block; height: 20px; width: auto; }
/* Optical centring: the logo is mostly lowercase, so the eye centres on its lowercase letters, which sit lower than the box middle. */
.dm-credit span { position: relative; top: 1px; }

@media (max-width: 900px) {
  .footer-bottom { flex-direction: column; align-items: stretch; row-gap: 0; }
  .dm-credit { align-self: center; margin-top: 32px; }
}
@media (max-width: 560px) {
  .footer-legal { flex-direction: column; gap: 6px; }
}
