/* 2026-10-24 round: section heading, about layout, works hover. Motion in assets/js/israel-sections.js. */

/* ---------- section heading: modest size, letters rise in and an orange dot lands as the full stop ---------- */
.ism-head {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(52px, 5.2vw, 88px);
  line-height: 0.9;
  letter-spacing: 0;
  color: hsl(var(--black));
  margin: 0 0 clamp(40px, 5vw, 72px);
}
.ism-head--dark {
  color: #fff;
}
.ism-head--center {
  justify-content: center;
  margin-bottom: 0;
}
.ism-head__word {
  display: inline-flex;
  overflow: clip;
  padding-block: 0.12em 0.06em;
  margin-inline-end: 0.2em;
}
.ism-head__word:last-of-type {
  margin-inline-end: 0;
}
.ism-head__char {
  display: inline-block;
}
.ism-head__dot {
  display: inline-block;
  flex: none;
  width: 0.19em;
  height: 0.19em;
  border-radius: 50%;
  background: hsl(var(--main));
  margin-inline-start: 0.07em;
  margin-block-end: 0.2em;
  transform-origin: 50% 100%;
}

/* ---------- about: photo + ring + text as one centred unit ---------- */
.ism-about {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 620px);
  justify-content: center;
  align-items: center;
  gap: clamp(56px, 7vw, 120px);
}
.ism-about__photo {
  position: relative;
}
.ism-about .about-three-thumb {
  max-width: none;
  width: 100%;
  margin: 0;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px -34px rgba(0, 0, 0, 0.45);
}
/* the template forces this wrapper static under 1200px; here it always sits on the photo's inner corner */
.about-three-counter.ism-about__ring {
  position: absolute !important;
  inset-block-end: -38px;
  inset-inline-end: -52px;
  margin: 0 !important;
  z-index: 2;
}
.about-three-counter.ism-about__ring .tw-btn-circle {
  width: 140px;
  height: 140px;
  background: #fff;
  border: 0;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.about-three-counter.ism-about__ring .tw-btn-circle-icon {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 6px;
}
.about-three-counter.ism-about__ring .tw-btn-circle-icon i {
  font-size: 1em;
  margin: 0;
}
.ism-about__ring-label {
  font-size: 18px;
  line-height: 1.1;
}
.about-three-counter.ism-about__ring .tw-btn-circle-dot {
  width: 26px;
  height: 26px;
}
.about-three-counter.ism-about__ring:hover .tw-btn-circle-dot {
  width: 320px;
  height: 320px;
}
.ism-about__hi {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(46px, 4.2vw, 72px);
  line-height: 0.95;
  color: hsl(var(--black));
  margin-bottom: 24px;
}
.ism-about__p {
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.7;
  color: #3b3b3b;
  max-width: 54ch;
  margin-bottom: 14px;
}
.ism-about__sign {
  display: block;
  height: 58px;
  width: auto;
  margin-top: 22px;
}
@media (max-width: 991px) {
  .ism-about {
    grid-template-columns: minmax(0, 1fr);
    gap: 64px;
  }
  .ism-about__photo {
    width: min(100%, 340px);
    margin-inline: auto;
  }
  .about-three-counter.ism-about__ring {
    inset-block-end: -30px;
    inset-inline-end: -12px;
  }
  .about-three-counter.ism-about__ring .tw-btn-circle {
    width: 116px;
    height: 116px;
  }
  .about-three-counter.ism-about__ring .tw-btn-circle-icon {
    font-size: 28px;
  }
  .ism-about__ring-label {
    font-size: 16px;
  }
}

/* ---------- works: the card layer tilts under the pointer, the article layer fans with the scroll ---------- */
.ism-works__grid {
  perspective: 1400px;
}
.ism-work {
  will-change: transform;
}
.ism-work__card {
  display: block;
  position: relative;
  height: 100%;
  background: #f5f5f5;
  border-radius: 16px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25), -4px -4px 0 0 rgba(255, 255, 255, 0.25);
  padding: 14px;
  color: inherit;
  text-decoration: none;
  transform-style: preserve-3d;
  transition: box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), scale 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
/* a white veil for the cards that step back (kept opaque so the outline word behind never shows through) */
.ism-work__card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(60px);
}
.ism-work__card:hover {
  color: inherit;
}
.ism-work__card.is-hot {
  box-shadow: 0 34px 50px -26px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
/* the other cards step back while one is under the pointer */
.ism-works__grid.has-hot .ism-work__card:not(.is-hot) {
  scale: 0.95;
  filter: grayscale(1);
}
.ism-works__grid.has-hot .ism-work__card:not(.is-hot)::after {
  opacity: 0.45;
}
.ism-work__media {
  display: block;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  background: #e9e9e9;
  transform: translateZ(26px);
}
.ism-work__body {
  padding: 16px 6px 6px;
  transform: translateZ(40px);
}
.ism-work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ism-tag {
  position: relative;
  display: inline-block;
  border: 1px solid rgba(2, 9, 15, 0.12);
  border-radius: 90px;
  padding-block: 6px;
  padding-inline: 34px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: hsl(var(--black));
  background: #fff;
}
.ism-tag::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  inset-block-start: 50%;
  inset-inline-start: 16px;
  border-radius: 50%;
  background: hsl(var(--black));
  transform: translateY(-50%);
}
.ism-work__card.is-hot .ism-tag:last-child::before {
  background: hsl(var(--main));
}
@media (min-width: 992px) and (max-width: 1399px) {
  .ism-work__card {
    padding: 10px;
  }
}
@media (max-width: 767px) {
  .ism-work__card:active {
    transform: scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ism-work__media,
  .ism-work__body {
    transform: none;
  }
  .ism-works__grid.has-hot .ism-work__card:not(.is-hot) {
    scale: 1;
    filter: none;
  }
}

/* ---------- services: each service is its icon on a white disc, with the things it handles orbiting it.
   The capsule keeps the template's shape; the orbit turns with the scroll (israel-sections.js). ---------- */
.ism-svc-art {
  position: relative;
  display: block;
  width: 100%;
  max-width: 552px;
  aspect-ratio: 552 / 257;
  border-radius: 999px;
  background: radial-gradient(120% 140% at 50% 120%, #1c1c1c 0%, #0e0e0e 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  color: #fff;
}
.ism-svc-art__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 76%;
  height: 64%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  transform: translate(-50%, -50%);
  z-index: 0;
}
.ism-svc-art__core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 27%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: hsl(var(--black));
  font-size: 13cqw;
  overflow: hidden;
  transform: translate(-50%, -50%);
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.9);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ism-svc-art__core i {
  position: relative;
  z-index: 1;
  /* Phosphor duotone overlaps its two layers with a left margin, which only lines up left to right */
  direction: ltr;
  white-space: nowrap;
  line-height: 1;
}
/* the template's orange dot; under the pointer it floods the disc */
.ism-svc-art__dot {
  position: absolute;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: hsl(var(--main-two));
  inset-block-end: 9%;
  inset-inline-end: 9%;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-three-single:hover .ism-svc-art__dot,
.ism-svc-art:focus-visible .ism-svc-art__dot {
  transform: scale(9);
}
.service-three-single:hover .ism-svc-art__core {
  transform: translate(-50%, -50%) scale(1.06);
}
.ism-svc-art__sat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13cqw;
  aspect-ratio: 1;
  margin: -6.5cqw 0 0 -6.5cqw;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f1f1f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 24px -12px rgba(0, 0, 0, 0.9);
  font-size: 6.2cqw;
  color: #fff;
  z-index: 1;
  will-change: transform;
}
/* resting positions when the orbit does not move (no script, reduced motion) */
.ism-svc-art__sat:nth-child(2) { transform: translate(-30cqw, 4cqw); }
.ism-svc-art__sat:nth-child(3) { transform: translate(-17cqw, -12cqw) scale(0.8); }
.ism-svc-art__sat:nth-child(4) { transform: translate(17cqw, -12cqw) scale(0.8); }
.ism-svc-art__sat:nth-child(5) { transform: translate(30cqw, 4cqw); }
/* without an image the thumb column has no width of its own: it takes what the text leaves, up to the template's 552px */
.service-three-thumb {
  flex: 1 1 0;
  min-width: 0;
  max-width: 552px;
}
@media (max-width: 767px) {
  .service-three-thumb {
    flex: none;
    width: 100%;
    max-width: none;
  }
  .ism-svc-art {
    margin-top: 28px;
  }
}

/* ---------- header logo: the signature fills orange from where the pen starts when the pointer touches it ---------- */
.ism-logo {
  position: relative;
  display: block;
  height: 46px;
  aspect-ratio: 550 / 139;
}
.ism-logo::before,
.ism-logo::after {
  content: "";
  position: absolute;
  inset: 0;
  -webkit-mask: url("../images/israel/logo.svg") center / contain no-repeat;
  mask: url("../images/israel/logo.svg") center / contain no-repeat;
}
.ism-logo::before {
  background: hsl(var(--black));
}
.ism-logo::after {
  background: hsl(var(--main-two));
  /* Latin signature, written left to right */
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}
.header-three-logo a:hover .ism-logo::after,
.header-three-logo a:focus-visible .ism-logo::after {
  clip-path: inset(0 0 0 0);
}
.header-three-logo a {
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-three-logo a:hover {
  transform: translateY(-1px);
}

/* ---------- footer: the signature in orange, written stroke by stroke when it comes into view ---------- */
.ism-foot-sign {
  padding-top: clamp(24px, 3vw, 48px);
  line-height: 0;
}
.ism-foot-sign__svg {
  display: block;
  width: min(100%, 1320px);
  height: auto;
  margin-inline: auto;
  overflow: visible;
}
.ism-foot-sign__svg path {
  fill: hsl(var(--main-two));
  stroke: hsl(var(--main-two));
  stroke-width: 0.8;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: reduce) {
  .ism-logo::after,
  .ism-svc-art__dot,
  .ism-svc-art__core {
    transition: none;
  }
}

/* ---------- the parts the browser draws: selection, keyboard focus and the scrollbar carry the site's colours ---------- */
::selection {
  background: hsl(var(--main));
  color: hsl(var(--black));
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid hsl(var(--main));
  outline-offset: 3px;
}
html {
  scrollbar-color: hsl(var(--main)) #0d0d0d;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #0d0d0d;
}
::-webkit-scrollbar-thumb {
  background: hsl(var(--main));
  border-radius: 10px;
  border: 2px solid #0d0d0d;
}

/* ---------- works: the whole card opens its dialog (israel-sections.js forwards card clicks to the title link) ---------- */
.ism-work__open {
  color: inherit;
  text-decoration: none;
}
.ism-work__card {
  cursor: pointer;
}
/* the personal assistant has no screen to show: its two daily moments are the picture */
.ism-work__type {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6%;
  padding: 0 10%;
  background: #0f0f0f;
  color: #fff;
  container-type: inline-size;
}
.ism-work__type-row {
  display: flex;
  align-items: baseline;
  gap: 0.6em;
}
.ism-work__type-row b {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: 22cqw;
  line-height: 0.9;
  direction: ltr;
}
.ism-work__type-row:first-child b {
  color: hsl(var(--main));
}
.ism-work__type-row small {
  font-size: max(13px, 6.4cqw);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- work dialog ---------- */
.ism-dialog {
  /* centred in the viewport (the template's reset zeroes dialog margins) */
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  width: min(1120px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #f5f5f5;
  color: hsl(var(--black));
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
}
.ism-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.ism-dialog__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
}
.ism-dialog__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--black));
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s;
}
.ism-dialog__close:hover {
  transform: rotate(90deg);
  background: hsl(var(--main));
  color: hsl(var(--black));
}
.ism-dialog__title {
  font-family: var(--heading-font);
  font-weight: 700;
  font-size: clamp(40px, 4vw, 64px);
  line-height: 0.95;
  margin: 18px 0 14px;
}
.ism-dialog__lead {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.6;
  color: #333;
  margin-bottom: 18px;
}
.ism-dialog__list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}
.ism-dialog__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
  line-height: 1.5;
}
.ism-dialog__list i {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: hsl(var(--main));
  color: hsl(var(--black));
}
.ism-dialog__note {
  font-size: 14px;
  color: #5c5c5c;
  margin-bottom: 22px;
}
.ism-dialog__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}
.ism-dialog__link {
  font-weight: 700;
  color: hsl(var(--black));
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: hsl(var(--main));
}
.ism-dialog__link:hover {
  color: hsl(var(--main-two));
}
/* the screens: a computer screen with two phones standing in front of it */
.ism-dialog__shots {
  position: relative;
  min-height: 380px;
}
.ism-shot {
  position: absolute;
  display: block;
  background: #e9e9e9;
  box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.55);
}
.ism-shot--wide {
  top: 4%;
  inset-inline-start: 0;
  width: 88%;
  height: auto;
  border-radius: 14px;
}
.ism-shot--phone {
  width: 27%;
  height: auto;
  border-radius: 18px;
  border: 5px solid #111;
}
.ism-shot--phone:nth-of-type(2) {
  bottom: 0;
  inset-inline-end: 22%;
  rotate: -4deg;
}
.ism-shot--phone:nth-of-type(3) {
  bottom: 6%;
  inset-inline-end: 0;
  rotate: 5deg;
}
.ism-shot--type {
  position: relative;
  inset: auto;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: #0f0f0f;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8%;
  padding: 0 9%;
  container-type: inline-size;
}
.ism-shot--type .ism-work__type-row b {
  font-size: 19cqw;
}
.ism-shot--type .ism-work__type-row small {
  font-size: max(14px, 4.4cqw);
}
.ism-dialog__shots:has(.ism-shot--type) {
  min-height: 0;
}
@media (max-width: 767px) {
  .ism-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }
  .ism-dialog__panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px 20px 28px;
  }
  .ism-dialog__close {
    top: 12px;
    inset-inline-end: 12px;
  }
  .ism-dialog__title {
    margin-top: 14px;
    padding-inline-end: 52px;
  }
  /* phones: the screens become a swipeable row */
  .ism-dialog__shots {
    order: -1;
    min-height: 0;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -20px;
    padding: 4px 20px 10px;
    scrollbar-width: none;
  }
  .ism-shot {
    position: relative;
    inset: auto;
    rotate: none !important;
    flex: none;
    scroll-snap-align: center;
  }
  .ism-shot--wide {
    width: 82%;
    align-self: center;
  }
  .ism-shot--phone {
    width: 38%;
  }
  .ism-shot--type {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ism-dialog__close {
    transition: none;
  }
}

/* ---------- skip link (keyboard) and the legal links under the copyright ---------- */
.ism-skip {
  position: fixed;
  top: -80px;
  inset-inline-start: 16px;
  z-index: 10000;
  padding: 12px 18px;
  border-radius: 10px;
  background: hsl(var(--black));
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.ism-skip:focus {
  top: 16px;
  color: #fff;
}
#top:focus {
  outline: none;
}
.ism-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 10px;
  justify-content: flex-end;
}
.ism-legal-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  text-decoration: underline;
  text-decoration-color: hsl(var(--main));
  text-underline-offset: 4px;
}
.ism-legal-links a:hover {
  color: #fff;
}
@media (max-width: 991px) {
  .ism-legal-links {
    justify-content: flex-start;
  }
}
