@font-face {
  font-family: Inter;
  src: url("assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  /* Matches the Latin glyphs rendered by Figma for the Hebrew subset style. */
  font-family: "Noto Sans";
  src: url("assets/noto-sans-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: #111619;
  font-family: Inter, Arial, sans-serif;
}
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
h1, h2, h3 { font: inherit; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:not(.video-play) { padding: 0; border: 0; background-color: transparent; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #4b6475; outline-offset: 3px; }

.page {
  container-type: inline-size;
  width: 100%;
}
.hero-frame, .design-section {
  --u: calc(100cqw / 1440);
  position: relative;
  width: 100%;
  overflow: clip;
  isolation: isolate;
}
.hero-frame { height: calc(900 * var(--u)); }
/* Why us: three short reasons under the hero image, where the design had
   its list of domains. They sit in the hero's flow, so it grows to fit them. */
@media (min-width: 768px) {
  #home:has(.hero-why) { height: auto; padding: calc(716 * var(--u)) 0 calc(70 * var(--u)); }
  #home > .d2 { height: 100%; }
}
.hero-why {
  position: relative;
  margin: 0 calc(60 * var(--u)) 0 calc(320 * var(--u));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: calc(56 * var(--u));
}
.hero-why > .phone-story { display: block; }
.hero-why .phone-story > * {
  position: static;
  translate: none;
  width: auto;
  height: auto;
}
.hero-why .phone-story > :first-child {
  margin-bottom: calc(12 * var(--u));
  color: #111619;
  font-size: max(17px, calc(24 * var(--u)));
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.hero-why .phone-story > :last-child {
  color: #636363;
  font-size: max(14px, calc(16 * var(--u)));
  line-height: 1.55;
}
.design-section { height: calc(var(--section-height) * var(--u)); }
.headline-line, .label-line { display: block; }
.phone-service, .phone-story, .phone-project,
.contact-socials, .contact-socials-art { display: contents; }
.contact-symbol, .action-caption { pointer-events: none; }
.action-surface[type="submit"] { background: #4a4a4a; }
.email-link { pointer-events: auto; }
.email-link:hover { text-decoration: underline; }
.inline-link { text-decoration: underline; text-underline-offset: .15em; }
.inline-link:hover { text-decoration-thickness: 2px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 10px 16px;
  background: white;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* The menu button stays in the top-right corner while the page scrolls. It
   sits outside .page, whose container query layout would otherwise pin it
   to the page instead of the screen. It starts where the design put it. */
.menu-toggle, .site-menu {
  --u: calc(100vw / 1440);
  --toggle-size: 48px;
  --toggle-top: max(10px, calc(50.5 * var(--u)) - var(--toggle-size) / 2);
  --toggle-right: max(10px, calc(61.5 * var(--u)) - var(--toggle-size) / 2);
}
.menu-toggle {
  position: fixed;
  z-index: 20;
  top: var(--toggle-top);
  right: var(--toggle-right);
  left: auto;
  display: grid;
  place-items: center;
  width: var(--toggle-size);
  height: var(--toggle-size);
  border-radius: 50%;
  background-color: rgb(255 255 255 / .88) !important;
  box-shadow: 0 1px 3px rgb(17 22 25 / .12), 0 4px 14px rgb(17 22 25 / .08);
  backdrop-filter: blur(6px);
}
.menu-toggle > div { position: static; width: 26px; }
.site-menu {
  position: fixed;
  z-index: 20;
  top: calc(var(--toggle-top) + var(--toggle-size) + 8px);
  right: var(--toggle-right);
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid #d7d7d7;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(17 22 25 / .1);
  font-size: 16px;
}
.site-menu a { padding: 7px 10px; }
.site-menu a:hover, .site-menu a:focus-visible { background: #f2f2f2; }

#use-cases {
  height: auto;
  padding: calc(156 * var(--u)) calc(80 * var(--u)) calc(140 * var(--u));
}
#use-cases > h2 {
  position: static;
  width: auto;
  height: auto;
  margin: 0 0 calc(56 * var(--u)) calc(98 * var(--u));
}
.use-cases {
  display: grid;
  gap: calc(128 * var(--u));
  list-style: none;
}
/* Rows alternate sides so the long list reads as a sequence, not a column. */
.use-case {
  display: grid;
  grid-template-columns: 7fr 5fr;
  column-gap: calc(88 * var(--u));
  align-items: center;
}
.use-case:nth-child(even) { grid-template-columns: 5fr 7fr; }
.use-case:nth-child(even) .use-case-photo { grid-column: 2; grid-row: 1; }
.use-case:nth-child(even) .use-case-copy { grid-column: 1; grid-row: 1; }
.use-case:not(:has(.use-case-photo)) .use-case-copy { grid-column: 1 / -1; }
.use-case-photo {
  overflow: hidden;
  border: 1px solid #e3e5e6;
  background: #f5f5f5;
}
.use-case-photo :is(img, video) {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}
.use-case-index {
  margin-bottom: calc(8 * var(--u));
  color: #e3e5e6;
  font-family: "Noto Sans", Arial, sans-serif;
  font-size: max(56px, calc(144 * var(--u)));
  line-height: .9;
  letter-spacing: -.05em;
}
.use-case-domain, .team-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: max(10px, calc(14 * var(--u)));
  color: #636363;
  font-size: max(12px, calc(13 * var(--u)));
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.use-case-domain::before, .team-area::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}
.use-case-title {
  margin-bottom: max(10px, calc(16 * var(--u)));
  color: #111619;
  font-size: max(22px, calc(36 * var(--u)));
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.use-case-text {
  max-width: 32em;
  color: #636363;
  font-size: max(15px, calc(18 * var(--u)));
  line-height: 1.55;
}
.use-case-text p + p { margin-top: .6em; }

/* Section titles: the design set them at 96 units, nearly the size of the
   hero headline. Each keeps its position; only the type is smaller. */
@media (min-width: 768px) {
  .design-section > h2 { font-size: calc(56 * var(--u)); letter-spacing: -.03em; }
  :is(#use-cases, #projects) > h2 { line-height: 1.1; }
}

/* All section titles share one style; the design file mixed two. */
.design-section > h2 { font-family: "Noto Sans", Arial, sans-serif; font-weight: 400; letter-spacing: -.03em; }
/* Services: the presentation video runs full width directly under the three
   cards and ends the section, with no gap either side. */
#services .d108 { top: calc(767 * var(--u)); left: 0; width: 100%; }

/* Team: the design's checkerboard (each portrait beside or above its text)
   at a smaller tile size. */
@media (min-width: 768px) {
  #team {
    --tile: clamp(240px, 26vw, 340px);
    --t: calc(var(--tile) / 443);  /* one unit of the design's 443px portraits */
    display: grid;
    grid-template-columns: repeat(3, var(--tile));
    gap: calc(11 * var(--t)) calc(9 * var(--t));
    justify-content: center;
    align-items: start;
    height: auto;
    padding: clamp(48px, 5vw, 80px) 0 clamp(56px, 6vw, 96px);
  }
  #team > h2 { grid-area: 1 / 1 / 2 / -1; position: static; translate: none; width: auto; height: auto; margin-bottom: clamp(24px, 3vw, 48px); text-align: center; }
  #team > :is(.d177, .d179, .d182) { display: none; }
  #team article { display: contents; }
  #team article > div:first-child {
    position: relative;
    inset: auto;
    width: var(--tile);
    height: var(--tile);
    overflow: hidden;
    background: #ececee;
  }
  #team article img { object-position: center 30%; }
  #team article:nth-of-type(1) > div:first-child { grid-area: 2 / 1; }
  #team article:nth-of-type(1) .team-text { grid-area: 2 / 2; padding-block: 0; }
  #team article:nth-of-type(2) > div:first-child { grid-area: 3 / 1; }
  #team article:nth-of-type(2) .team-text { grid-area: 4 / 1; }
  #team article:nth-of-type(3) > div:first-child { grid-area: 3 / 2; }
  #team article:nth-of-type(3) .team-text { grid-area: 4 / 2; }
  /* Arpi's and David's texts share a row: stretch both to the row's height
     and keep the bio row flexible, so their LinkedIn/email lines align. */
  #team article:is(:nth-of-type(2), :nth-of-type(3)) .team-text { align-self: stretch; grid-template-rows: auto auto 1fr auto; }
  #team article:nth-of-type(4) > div:first-child { grid-area: 4 / 3; }
  #team article:nth-of-type(4) .team-text { grid-area: 5 / 3; }
  #team article:nth-of-type(5) > div:first-child { grid-area: 5 / 1; }
  #team article:nth-of-type(5) .team-text { grid-area: 5 / 2; padding-block: 0; }
  #team .team-text {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: .7em;
    align-self: start;
    /* Text is sized in em from the tile, so it keeps the same proportion to
       the portraits at every width (14px at a 274px tile). */
    font-size: calc(var(--tile) * 14 / 274);
    padding: 1.6em 1.4em 2em;
  }
  #team .team-text > * {
    grid-column: 1 / -1;
    position: static;
    inset: auto;
    translate: none;
    width: auto;
    height: auto;
    letter-spacing: normal;
    white-space: normal;
  }
  #team .team-text .team-area { margin-bottom: .45em; font-size: .857em; }
  #team .team-text h3 { color: #111619; font-size: 1.43em; font-weight: 600; line-height: 1.25; }
  #team .team-text > :is(div, h3 + p) { margin-top: .7em; color: #636363; font-size: 1em; line-height: 1.5; }
  #team .team-text > div > p { line-height: inherit; }
  #team .team-text > div > p:not(:first-child) { display: none; }
  #team .team-text > a:not(.email-link) { grid-column: 1; position: relative; width: 2.57em; height: 2.57em; margin-top: .86em; }
  #team .team-text .email-link { grid-column: 2; align-self: start; margin-top: .92em; padding-top: .69em; font-size: .93em; line-height: 1.38; color: #383838; }
}

/* Top menu: links evenly spaced, right-aligned so they end just before the
   menu button. */
#home .d11 { display: flex; gap: calc(30 * var(--u)); left: auto; right: max(72px, calc(125 * var(--u))); width: auto; white-space: nowrap; }

/* Projects: the four project tiles sit in one row under the heading. */
#projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: calc(24 * var(--u));
  align-content: start;
}
#projects > :is(h2, .d145, .d147) { grid-column: 1 / -1; }
#projects > h2 { order: -3; }
#projects > .d145 { order: -2; }
#projects > .d147 { order: 2; }
#projects > :is(.d148, .d149, .d150, .d151) { display: none; }
@media (min-width: 768px) {
  #projects {
    height: auto;
    padding: calc(51 * var(--u)) calc(163 * var(--u)) calc(80 * var(--u));
  }
  #projects > :is(h2, .d145, .d147),
  .phone-project > *,
  #projects .d147 > p {
    position: static;
    translate: none;
    width: auto;
    height: auto;
  }
  #projects > .d145 { margin: calc(16 * var(--u)) 0 calc(56 * var(--u)) calc(15 * var(--u)); }
  #projects > h2 { margin-left: calc(15 * var(--u)); }
  #projects > .d147 { max-width: 40em; margin-top: calc(56 * var(--u)); line-height: normal; white-space: normal; }
  #projects .d147 > p:not(:first-child) { display: none; }
  .phone-project {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: calc(12 * var(--u)) calc(8 * var(--u));
  }
  .phone-project > p:first-child { grid-area: 1 / 2; font-size: calc(40 * var(--u)); line-height: 1; }
  .phone-project > p:nth-child(2) { grid-area: 1 / 1; font-size: max(14px, calc(20 * var(--u))); line-height: 1.2; }
  .phone-project > div {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    border: 1px solid #b3b3b3;
  }
}

/* Research: the papers panel from the pitch deck, right of the intro text.
   "read more" moves under the text to make room for it. */
#research .d171 { left: calc(159 * var(--u)); top: calc(530 * var(--u)); }
#research .d172 { left: calc(182 * var(--u)); top: calc(543 * var(--u)); }
.research-papers {
  position: absolute;
  top: calc(202 * var(--u));
  left: calc(600 * var(--u));
  width: calc(690 * var(--u));
}
.research-papers-count {
  color: #383838;
  font-size: max(16px, calc(24 * var(--u)));
  line-height: 1.3;
}
.research-papers ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(28 * var(--u)) calc(40 * var(--u));
  margin-top: calc(36 * var(--u));
  padding-top: calc(32 * var(--u));
  border-top: 1px solid #d9dcdd;
  list-style: none;
}
.paper-venue {
  color: #111619;
  font-size: max(16px, calc(24 * var(--u)));
  line-height: 1.3;
}
.paper-oral { color: #ff6a2b; }
.paper-title {
  margin-top: calc(6 * var(--u));
  color: #636363;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: max(13px, calc(18 * var(--u)));
  line-height: 1.45;
}

.video-slot { background-color: #151c22; }
.video-player, .video-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-player { display: block; background-color: #151c22; }
.video-slot .d110 { object-fit: cover; }
.video-slot--uncropped {
  right: 0;
  aspect-ratio: 16 / 9;
}
.video-slot--uncropped > img,
.video-slot--uncropped > video { object-fit: contain; }


.video-play {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: white;
}
.video-play span {
  display: grid;
  place-items: center;
  padding-inline-start: .14em;
  width: max(30px, calc(64 * var(--u)));
  aspect-ratio: 1;
  border-radius: 50%;
  background: #151c22da;
  font-size: max(15px, calc(24 * var(--u)));
  opacity: 0;
  transition: opacity 160ms ease;
}
.video-play:hover span, .video-play:focus-visible span { opacity: 1; }
.video-play:focus-visible { outline-offset: -4px; }
@media (hover: none) {
  .video-play span { opacity: 1; }
}

#contact-form input, #contact-form textarea {
  padding: calc(15 * var(--u)) calc(24 * var(--u));
  background: transparent;
  color: #111619;
  font-size: calc(20 * var(--u));
  resize: none;
}
#contact {
  --contact-scale: 1.3;
  --contact-content-start: 294;
  height: calc((var(--contact-content-start) + (var(--section-height) - var(--contact-content-start)) / var(--contact-scale)) * var(--u));
}
.contact-content {
  --u: calc(100cqw / 1440 / var(--contact-scale));
  position: absolute;
  top: calc(var(--contact-content-start) * (var(--contact-scale) - 1) * var(--u));
  left: 50%;
  width: calc(1440 * var(--u));
  translate: -50% 0;
}
.form-status {
  position: absolute;
  top: calc(1135 * var(--u));
  left: calc(271 * var(--u));
  font-size: calc(16 * var(--u));
}
.form-status:empty { display: none; }

/* Desktop contact: form on the left, details on the right, sized so the
   whole section, Submit included, fits on one laptop screen. */
@media (min-width: 768px) {
  #contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    padding: clamp(28px, 5vh, 72px) 0 clamp(32px, 6vh, 88px);
  }
  #contact > h2 {
    position: static;
    width: auto;
    height: auto;
    margin-bottom: clamp(20px, 4.5vh, 56px);
    font-size: clamp(34px, min(3.9vw, 7vh), 60px);
    line-height: 1;
  }
  #contact .contact-content {
    position: static;
    translate: none;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    grid-template-rows: repeat(8, auto) 1fr;
    column-gap: clamp(40px, 6vw, 120px);
    width: min(1240px, 100% - 2 * clamp(32px, 7vw, 160px));
    font-size: clamp(16px, 2.1vh, 20px);
  }
  #contact-form {
    grid-area: 1 / 1 / -1 / 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(6px, 1vh, 12px) clamp(16px, 1.6vw, 24px);
    align-content: start;
  }
  #contact-form > *,
  #contact .contact-content > :is(.d215, .d216, .d218, .d229, .d225),
  #contact :is(.d225, .d258) > * {
    position: static;
    inset: auto;
    translate: none;
    width: auto;
    height: auto;
    text-align: left;
    white-space: normal;
  }
  #contact-form label { align-self: end; color: #111619; font-size: clamp(14px, 1.9vh, 18px); font-weight: 600; line-height: 1.3; }
  #contact-form .label-line { font: inherit; color: inherit; }
  #contact-form :is(.d249, .d250) { display: none; }
  #contact-form :is(#contact-name, label[for="contact-name"]) { grid-column: 1; }
  #contact-form :is(#contact-email, label[for="contact-email"]) { grid-column: 2; }
  #contact-form label[for="contact-name"], #contact-form label[for="contact-email"] { grid-row: 1; }
  #contact-form :is(#contact-name, #contact-email) { grid-row: 2; }
  #contact-form > :is(label[for="contact-company"], #contact-company, label[for="contact-message"], #contact-message, .d258, .form-status) { grid-column: 1 / -1; }
  #contact-form > :is(label[for="contact-company"], label[for="contact-message"]) { margin-top: clamp(8px, 1.6vh, 18px); }
  #contact-form :is(input, textarea) {
    height: clamp(46px, 6.4vh, 64px);
    padding: 10px 16px;
    border-width: 1px;
    border-radius: 12px;
    font-size: clamp(16px, 2.1vh, 20px);
  }
  #contact-form textarea { height: clamp(110px, 22vh, 280px); resize: vertical; }
  #contact :is(.d225, .d258) {
    display: grid;
    justify-self: start;
    min-width: clamp(150px, 20vh, 220px);
    min-height: clamp(44px, 6vh, 60px);
    margin-top: clamp(14px, 2.4vh, 28px);
  }
  #contact :is(.d225, .d258) > * { grid-area: 1 / 1; }
  #contact .action-surface { border-radius: 999px; }
  #contact .action-caption { place-self: center; padding: 0 20px; font-size: clamp(15px, 2vh, 19px); line-height: 1.2; }
  #contact .contact-content > :is(.d214, .d219, .d222, .d231, .d232) { display: none; }
  #contact .contact-content > :is(.d215, .d216, .d218, .d229, .d225, .contact-socials) { grid-column: 2; }
  #contact .d215 { grid-row: 1; margin-top: clamp(22px, 3.4vh, 36px); }
  #contact .d216 { grid-row: 2; margin-top: clamp(18px, 3vh, 32px); }
  #contact .d229 { grid-row: 3; }
  #contact .d218 { grid-row: 6; margin-top: clamp(18px, 3vh, 32px); justify-content: flex-start; }
  #contact .d225 { grid-row: 7; }
  #contact .contact-content > :is(.d215, .d216, .d218) { display: block; font-size: clamp(17px, 2.3vh, 22px); font-weight: 600; line-height: 1.35; }
  #contact .contact-content > :is(.d215, .d216, .d218) p { line-height: inherit; }
  #contact .contact-content > .d229 { font-size: clamp(16px, 2.1vh, 20px); line-height: 1.5; color: #383838; }
  #contact .d229 br { display: none; }
  #contact .contact-socials {
    --u: clamp(.68px, .1vh, .9px);
    position: relative;
    display: block;
    grid-row: 8;
    width: calc(382.17 * var(--u));
    height: calc(51 * var(--u));
    margin-top: clamp(22px, 3.4vh, 36px);
  }
  #contact .contact-socials-art {
    position: absolute;
    display: block;
    top: calc(-1626 * var(--u));
    left: calc(-758 * var(--u));
  }
  #contact .form-status { margin-top: 8px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .video-play span { transition: none; }
}
