/* hanken-grotesk-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Hanken Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(data:font/woff2;base64,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) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* hanken-grotesk-vietnamese-wght-normal */
@font-face {
  font-family: 'Hanken Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/hanken-grotesk-vietnamese-wght-normal.CHiFlh_0.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* hanken-grotesk-latin-ext-wght-normal */
@font-face {
  font-family: 'Hanken Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/hanken-grotesk-latin-ext-wght-normal.Dg-wlmqe.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* hanken-grotesk-latin-wght-normal */
@font-face {
  font-family: 'Hanken Grotesk Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/_astro/hanken-grotesk-latin-wght-normal.CaVRRdDk.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* ibm-plex-sans-hebrew-hebrew-300-normal */
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  font-style: normal;
  font-display: swap;
  font-weight: 300;
  src: url(/_astro/ibm-plex-sans-hebrew-hebrew-300-normal.ChbrQ7-v.woff2) format('woff2'), url(/_astro/ibm-plex-sans-hebrew-hebrew-300-normal.CxWdrGnx.woff) format('woff');
}/* ibm-plex-sans-hebrew-hebrew-400-normal */
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/_astro/ibm-plex-sans-hebrew-hebrew-400-normal.DtcEHBoE.woff2) format('woff2'), url(/_astro/ibm-plex-sans-hebrew-hebrew-400-normal.CPsCACZF.woff) format('woff');
}/* ibm-plex-sans-hebrew-hebrew-500-normal */
@font-face {
  font-family: 'IBM Plex Sans Hebrew';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/_astro/ibm-plex-sans-hebrew-hebrew-500-normal.BiCWpF8d.woff2) format('woff2'), url(/_astro/ibm-plex-sans-hebrew-hebrew-500-normal.Ddg_2VaK.woff) format('woff');
}:root {
  /* Brand palette: a concrete base and ink cover nearly everything; red is a mark only
     (a dot, a thin bar, a number, interaction feedback), never a surface, link or running text. */
  --bg: #ecedec; /* concrete: page background, table header fill */
  --ink: #000000; /* headings, logo, buttons, project tags, footer */
  --panel: #ffffff; /* panels, forms, text on ink */
  --text: #3f4347; /* body text */
  --muted: #5d6267; /* labels, captions, secondary text */
  --line: #c4c8c9; /* dividers, table rules */
  --silver: #c9cccf; /* secondary text on ink */
  --accent: #e61e28; /* signal red: marks only, large type or non-text */
  --line-on-ink: #333333; /* rules on ink */

  /* Supporting tones of the base (ghost logo, image backdrop). */
  --ghost: #e2e4e3;
  --sky: #dce1e2;

  /* The whole site's scale. Full-screen heights divide by this to stay full screen. */
  --page-scale: 0.9;

  --gutter: clamp(20px, 5vw, 72px);
  --section: clamp(88px, 13vw, 200px);
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.76, 0, 0.24, 1);

  /* Motion that travels along the reading direction reads these, so it mirrors in Hebrew.
     The slanted cuts follow the top edge of the logo. */
  --dir: 1;
  --cut-angle: 105deg;
  --cut-start: 0%;
  --cut-end: 16%;

  --font: 'Hanken Grotesk Variable', 'Helvetica Neue', Arial, sans-serif;
  --display-track: -0.035em;
  --display-leading: 1;
  --body-leading: 1.6;

  /* The pointer is the top of the logo's G (bar and tapering stem); it turns red over anything
     clickable. The hotspot is the top corner. Browsers that can't load it fall back to their own. */
  --cursor: url('/cursor/bar.svg') 1 1, auto;
  --cursor-link: url('/cursor/bar-link.svg') 1 1, pointer;
}

html {
  cursor: var(--cursor);
}

/* On the black footer the pointer turns white so it stays visible. */
.site-footer {
  cursor: url('/cursor/bar-light.svg') 1 1, auto;
}

a[href],
button,
label[for],
select,
summary {
  cursor: var(--cursor-link);
}

input:not([type='submit'], [type='button'], [type='checkbox'], [type='radio']),
textarea {
  cursor: text;
}

:root[lang='he'] {
  --font: 'IBM Plex Sans Hebrew', 'Hanken Grotesk Variable', Arial, sans-serif;
  /* Hebrew has no ascender/descender rhythm to tighten against, and tracking breaks its letterforms. */
  --display-track: 0;
  --display-leading: 1.08;
  --body-leading: 1.75;
}

:root[dir='rtl'] {
  --dir: -1;
  --cut-angle: 255deg;
  --cut-start: 16%;
  --cut-end: 0%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  zoom: var(--page-scale);
  -webkit-text-size-adjust: 100%;
  scroll-padding-block-start: 96px;
}

html.menu-open {
  overflow: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: var(--body-leading);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Keeps body text at a true 16px on phones after scaling. */
@media (max-width: 859.98px) {
  body {
    font-size: calc(1rem / var(--page-scale));
  }
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  font-weight: 300;
  letter-spacing: var(--display-track);
  line-height: var(--display-leading);
  text-wrap: balance;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

main:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  inset-block-start: 8px;
  inset-inline-start: 8px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--panel);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* The slanted black button: its cut follows the top edge of the logo. */
.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding-inline: 34px;
  color: var(--panel);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  touch-action: manipulation;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(var(--cut-angle), var(--accent) 50%, var(--ink) 50%) 100% 0 / 230% 100%;
  clip-path: polygon(0 0, 100% 9%, 100% 100%, 2.5% 91%);
}

[dir='rtl'] .cta::before {
  clip-path: polygon(100% 0, 0 9%, 0 100%, 97.5% 91%);
}

[dir='rtl'] .cta::before {
  background-position: 0 0;
}

.cta:hover::before {
  background-position: 0 0;
}

[dir='rtl'] .cta:hover::before {
  background-position: 100% 0;
}

.text-link {
  color: var(--ink);
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 16px var(--gutter);
  background: var(--bg);
}

.site-header__logo {
  display: block;
  padding: 2px;
  color: var(--ink);
}

.site-header__logo svg {
  width: auto;
  height: 44px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px clamp(18px, 2.6vw, 36px);
}

.site-nav a,
.lang-toggle,
.menu-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.975rem;
  text-decoration: none;
}

.site-nav a[aria-current='page'],
.site-nav a:hover,
.lang-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* The menu's underline is a red mark: the current page, and the line drawn on hover. */
.site-nav a[aria-current='page'],
.site-nav a:hover {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
}

.lang-toggle {
  margin-inline-start: auto;
  font-weight: 500;
}

.menu-btn {
  display: none;
  position: relative;
  justify-content: center;
  min-width: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font-family: inherit;
  font-weight: 500;
  cursor: var(--cursor-link);
  /* The phone's tap flash would cover the X as it draws; keyboard focus keeps its outline. */
  -webkit-tap-highlight-color: transparent;
}

/* Open, the word "Menu" gives way to a thin X drawn over the same spot. */
.menu-btn__x {
  position: absolute;
  inset: 0;
  width: 26px;
  height: 26px;
  margin: auto;
  pointer-events: none;
}

.menu-btn__x i {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  /* The X is a red mark, like the menu's underline. */
  background: var(--accent);
  transform: rotate(45deg) scaleX(0);
}

.menu-btn__x i + i {
  transform: rotate(-45deg) scaleX(0);
}

.menu-btn[aria-expanded='true'] .menu-btn__text {
  opacity: 0;
}

.menu-btn[aria-expanded='true'] .menu-btn__x i {
  transform: rotate(45deg) scaleX(1);
}

.menu-btn[aria-expanded='true'] .menu-btn__x i + i {
  transform: rotate(-45deg) scaleX(1);
}

/* Vertical rail: a mullion that fills with reading progress. */
.rail {
  display: none;
}

@media (min-width: 1180px) {
  :root {
    --gutter: 112px;
  }

  .rail {
    position: fixed;
    inset-block: 120px 40px;
    inset-inline-start: 40px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 20px;
    color: var(--muted);
    font-size: 0.8125rem;
  }

  .rail__text {
    writing-mode: vertical-rl;
    white-space: nowrap;
  }

  [dir='ltr'] .rail__text {
    transform: rotate(180deg);
  }

  .rail__track {
    position: relative;
    flex: 1;
    width: 1px;
    background: var(--line);
    overflow: hidden;
  }

  .rail__fill {
    position: absolute;
    inset: 0;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: top;
  }

  @supports (animation-timeline: scroll()) {
    .rail__fill {
      animation: rail-fill linear both;
      animation-timeline: scroll(root);
    }
  }
}

@keyframes rail-fill {
  to {
    transform: scaleY(1);
  }
}

/* Glazing */
.glaze {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--c), 1fr);
  grid-template-rows: repeat(var(--r), 1fr);
  pointer-events: none;
}

.glaze span {
  background: var(--bg);
  outline: 1px solid var(--line);
  outline-offset: -0.5px;
  animation: glaze 750ms var(--ease) both;
  animation-delay: calc(var(--d) * 1ms + 200ms);
}

@keyframes glaze {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  gap: 32px;
  padding-inline: var(--gutter);
  overflow: clip;
}

/* Dissolves the hero's lower edge into the page as its layers move. */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 110px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero__ghost {
  position: absolute;
  inset-block-start: -2%;
  inset-inline-end: -4%;
  width: auto;
  height: 112%;
  color: var(--ghost);
}

.hero__copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-block-start: clamp(32px, 7vw, 64px);
}

.hero__name {
  display: block;
  font-size: clamp(5rem, 15.5vw, 15rem);
  line-height: 0.95;
}

:root[lang='he'] .hero__name {
  font-size: clamp(5rem, 16vw, 15.5rem);
  line-height: 1;
}

.hero__letters {
  display: block;
  white-space: nowrap;
}

.hero__ch {
  display: inline-block;
}

.hero__line {
  display: block;
  margin-block-start: clamp(16px, 2vw, 28px);
  font-size: clamp(1.5rem, 2.8vw, 2.75rem);
  line-height: 1.2;
}

.hero__slogan {
  margin-block-start: 14px;
  font-size: clamp(1.0625rem, 1.4vw, 1.375rem);
}

.hero__tower {
  position: relative;
  z-index: 1;
  align-self: end;
  justify-self: center;
  width: min(100%, 720px);
}

.hero__tower img {
  width: 100%;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    min-height: calc(100dvh / var(--page-scale) - 80px);
  }

  .hero__copy {
    padding-block: 32px 96px;
  }

  .hero__tower {
    width: min(100%, calc((100dvh / var(--page-scale) - 80px) * 0.733));
  }
}

/* Sections */
.section {
  padding: var(--section) var(--gutter) 0;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

/* A smaller second line inside a section heading, for the words people search for. */
.section-title__sub {
  display: block;
  margin-block-start: 0.6em;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.8vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: normal;
}

.statement {
  display: grid;
  gap: clamp(32px, 6vw, 72px);
}

.statement__lead {
  max-width: 24em;
  color: var(--ink);
  font-size: clamp(1.625rem, 3.3vw, 3.125rem);
  font-weight: 300;
  line-height: 1.24;
  letter-spacing: calc(var(--display-track) / 2);
}

:root[lang='he'] .statement__lead {
  line-height: 1.38;
}

.statement__rest {
  display: grid;
  gap: 20px;
  max-width: 34em;
}

@media (min-width: 900px) {
  .statement__rest {
    grid-template-columns: repeat(auto-fit, minmax(16em, 1fr));
    gap: 40px;
    max-width: 44em;
  }
}

/* Stages, used on home and services */
.steps {
  counter-reset: step;
  margin-block-start: clamp(40px, 6vw, 80px);
}

.step {
  counter-increment: step;
  display: grid;
  gap: 8px 32px;
  padding-block: clamp(28px, 4vw, 48px);
  border-block-start: 1px solid var(--line);
}

.step::before {
  content: counter(step);
  color: var(--ink);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.step--items {
  row-gap: 24px;
}

.step__name {
  font-size: clamp(1.5rem, 2.6vw, 2.375rem);
  line-height: 1.2;
}

.step__body {
  max-width: 36em;
}

.step__name + .step__body {
  margin-block-start: 14px;
}

/* A stage with its own heading: on a phone the heading sits beside the number and the text runs
   under both; on a wide screen the number keeps its column and the heading tops the text. */
.step--titled {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 20px;
}

.step--titled .step__body {
  grid-column: 1 / -1;
}

.step__items {
  display: grid;
  gap: 8px;
  color: var(--ink);
}

.step__items li {
  padding-block-end: 8px;
  border-block-end: 1px solid var(--line);
}

/* On a phone a stage shows its first items and a 'show more' button, so the page reads as three
   stages rather than 33 lines. Without script, or on a wide screen, every item shows. */
.step__toggle {
  display: none;
}

@media (max-width: 899px) {
  .js .step:not(.is-open) .step__extra {
    display: none;
  }

  .js .step__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    cursor: pointer;
  }

  .js .step__toggle::after {
    content: '+';
    color: var(--accent);
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
  }

  .js .step__toggle[aria-expanded='true']::after {
    content: '\2212';
  }
}

@media (min-width: 900px) {
  .step {
    grid-template-columns: minmax(90px, 2fr) 7fr;
  }

  .step--items {
    grid-template-columns: minmax(90px, 1fr) 4fr 6fr;
  }

  .step--titled {
    grid-template-columns: minmax(90px, 2fr) 7fr;
    align-items: start;
  }

  .step--titled::before {
    grid-row: span 2;
  }

  .step--titled .step__body {
    grid-column: 2;
  }

  /* A stage's number and summary stay in view while its long list scrolls past. */
  .step--items::before,
  .step__lead {
    position: sticky;
    inset-block-start: 112px;
    align-self: start;
  }
}

.section-more {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  margin-block-start: 32px;
}

/* Project bands: image with a white panel laid over its edge. */
.bands {
  display: grid;
  gap: clamp(64px, 9vw, 128px);
  margin-block-start: clamp(40px, 6vw, 80px);
}

.band {
  position: relative;
}

.band__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 3 / 2;
  background: var(--sky);
  overflow: hidden;
}

.band__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}

/* Project tag: a black band with a slanted end that crosses the middle of the image on hover.
   It holds only the project name and the developer. */
.tag {
  --slant: clamp(19px, 2.04vw, 32px);
  --tag-pad: clamp(17px, 2.55vw, 41px);
  --tag-open: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  --tag-shut: polygon(0 0, 0 0, calc(0% - var(--slant)) 100%, 0 100%);
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  translate: 0 -50%;
  max-width: min(88%, 820px);
  padding-block: clamp(12px, 1.36vw, 20px);
  padding-inline: var(--tag-pad) calc(var(--tag-pad) + var(--slant));
  background: var(--ink);
  color: var(--panel);
  clip-path: var(--tag-shut);
  pointer-events: none;
}

[dir='rtl'] .tag {
  --tag-open: polygon(100% 0, 0 0, var(--slant) 100%, 100% 100%);
  --tag-shut: polygon(100% 0, 100% 0, calc(100% + var(--slant)) 100%, 100% 100%);
}

.tag__name {
  color: var(--panel);
  font-size: clamp(1.38rem, 2.42vw, 2.23rem);
  line-height: 1.1;
}

.tag__client {
  margin-block-start: 5px;
  color: var(--silver);
  font-size: 0.8rem;
  line-height: 1.4;
}

/* The whole image opens the project. */
.band__link {
  position: absolute;
  inset: 0;
}

.band__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.band:hover .tag,
.band:focus-within .tag {
  clip-path: var(--tag-open);
}

/* Without a cursor the tag stays open, low on the image so the building is still seen. */
@media (hover: none) {
  .tag {
    top: auto;
    bottom: 0;
    translate: none;
    clip-path: var(--tag-open);
  }
}

@media (min-width: 900px) {
  .band__media {
    aspect-ratio: 16 / 9;
  }
}

/* Home page projects: the images stay pinned while the projects go by. It needs its script, so
   without one the bands show. */
.pinned {
  display: none;
}

.js .bands--narrow {
  display: none;
}

/* Phones: a stage of image above text holds still under the header for the whole section, which
   is as tall as the scroll it takes to go through the projects. The images change with straight
   seams and the texts fade from one to the next in the same place. */
.js .pinned {
  --pin-top: 84px;
  --stage: calc(100svh / var(--page-scale) - var(--pin-top) - 16px);
  --step: calc(70svh / var(--page-scale));
  display: block;
  height: calc(var(--stage) + (var(--n) - 1) * var(--step));
  margin-block-start: clamp(40px, 6vw, 80px);
}

.pinned__stage {
  position: sticky;
  inset-block-start: var(--pin-top);
  display: flex;
  flex-direction: column;
  height: var(--stage);
}

.pinned__media {
  position: relative;
  flex: 0 0 66%;
  order: -1;
}

.pinned__list {
  position: relative;
  flex: 1;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pinned__item {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pinned__count {
  color: var(--accent);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.pinned__count span {
  color: var(--muted);
}

.pinned__name {
  margin-block-start: 6px;
  font-size: clamp(1.9rem, 3.6vw, 3.6rem);
  line-height: var(--display-leading);
  letter-spacing: var(--display-track);
}

.pinned__name a {
  color: var(--ink);
  text-decoration: none;
}

.pinned__client {
  margin-block-start: 8px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 500;
}

.pinned__meta {
  margin-block-start: 2px;
  color: var(--muted);
}

.pinned__more {
  margin-block-start: 16px;
}

/* Wide screens: the image is pinned beside the names, which scroll past in full-height rows. */
@media (min-width: 992px) {
  .js .pinned {
    --pin-top: 112px;
    --pin-height: calc(100dvh / var(--page-scale) - var(--pin-top) - 48px);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 8fr);
    gap: clamp(40px, 5vw, 96px);
    height: auto;
  }

  .pinned__stage {
    display: contents;
  }

  .pinned__media {
    position: sticky;
    inset-block-start: var(--pin-top);
    align-self: start;
    order: 0;
    height: var(--pin-height);
  }

  .pinned__list {
    margin: 0;
  }

  .pinned__item {
    position: static;
    min-height: var(--pin-height);
    opacity: 1 !important;
    visibility: visible !important;
  }

  .pinned__name,
  .pinned__client {
    margin-block-start: 16px;
  }

  .pinned__meta {
    margin-block-start: 6px;
  }

  .pinned__more {
    margin-block-start: 32px;
  }
}

.pinned__frame {
  position: absolute;
  inset: 0;
  background: var(--sky);
  border-radius: 0.5rem;
  overflow: hidden;
}

.pinned__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}

/* Projects page: a catalog of equal images for the standout projects, then an index of the rest.
   The images stay still. A card's whole area opens the project through its heading link. */
.card-link {
  color: inherit;
  text-decoration: none;
}

.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.card-link:focus-visible {
  outline: none;
}

.card-link:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.catalog__item:hover .card-link,
.project-index__row:hover .card-link,
.card-link:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 14px;
  margin: clamp(40px, 6vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}

.catalog__item {
  position: relative;
  display: grid;
  align-content: start;
}

.catalog__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--sky);
}

.catalog__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog__name {
  margin-block-start: 14px;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--ink);
  color: var(--ink);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.25;
}

.catalog__meta {
  margin-block-start: 4px;
  color: var(--muted);
  font-size: clamp(0.78rem, 1vw, 0.875rem);
  line-height: 1.45;
}

.project-index {
  margin-block-start: var(--section);
}

.project-index__title {
  margin-block-end: clamp(24px, 3vw, 40px);
  color: var(--ink);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: var(--display-track);
}

.project-index__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--ink);
}

.project-index__row {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: center;
  padding-block: 12px;
  border-block-end: 1px solid var(--line);
}

.project-index__media {
  grid-row: span 2;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sky);
}

.project-index__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-index__name {
  align-self: end;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.25;
}

.project-index__meta {
  align-self: start;
  color: var(--muted);
  font-size: 0.875rem;
}

.project-index__client {
  display: none;
}

@media (min-width: 900px) {
  .catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px 24px;
  }

  .project-index__row {
    grid-template-columns: 200px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    padding-block: 16px;
  }

  .project-index__media {
    grid-row: auto;
  }

  .project-index__name {
    align-self: center;
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    font-weight: 300;
  }

  .project-index__meta {
    align-self: center;
  }

  .project-index__client {
    display: block;
  }
}

/* The opening description on each project page */
.project-description {
  display: grid;
  gap: 16px;
  max-width: 40em;
  margin-block-end: clamp(40px, 5vw, 64px);
  color: var(--ink);
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem);
  font-weight: 300;
  line-height: 1.55;
}

:root[lang='he'] .project-description {
  line-height: 1.75;
}

/* The one-line note above the contact form. */
.form__note {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Inner page heading */
.page-head {
  padding: clamp(48px, 9vw, 128px) var(--gutter) 0;
}

.page-title {
  font-size: clamp(3.25rem, 9.5vw, 9.5rem);
}

.page-intro {
  max-width: 30em;
  margin-block-start: 28px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
  line-height: 1.4;
}

.page-body {
  padding: clamp(48px, 7vw, 96px) var(--gutter) 0;
}

/* Text pages (the accessibility statement): a smaller title and one readable column. */
.page-title--text {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
}

.statement-page {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
  max-width: 44em;
}

.statement-page__intro {
  color: var(--ink);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  font-weight: 300;
  line-height: 1.55;
}

.statement-page__section {
  display: grid;
  gap: 12px;
  padding-block-start: 20px;
  border-block-start: 1px solid var(--line);
}

.statement-page__title {
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  line-height: 1.25;
}

.statement-page__list {
  display: grid;
  gap: 8px;
  padding-inline-start: 1.1em;
  list-style: disc;
}

.statement-page__contact {
  display: grid;
  gap: 4px;
  color: var(--ink);
}

.statement-page__contact a {
  justify-self: start;
  color: var(--ink);
  font-weight: 500;
}

.statement-page__updated {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* A glossary term in running text, linked to its entry: quiet until hovered. */
.term-link {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.term-link:hover {
  text-decoration-style: solid;
}

/* Glossary: topic chips, then each topic as a grid of term cards with their own
   #anchors. */
.gl {
  display: grid;
  gap: clamp(48px, 6vw, 80px);
}

.gl-tools {
  display: grid;
  gap: 20px;
}

.gl-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gl-topics__chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 200ms var(--ease);
}

.gl-topics__chip:hover {
  border-color: var(--ink);
}

.gl-group {
  display: grid;
  gap: 24px;
}

.gl-group__title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block-end: 14px;
  border-block-end: 1px solid var(--ink);
  color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2.375rem);
  line-height: 1.2;
}

.gl-grid {
  display: grid;
  gap: 16px;
}

.gl-term {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  border-block-start: 3px solid transparent;
  background: var(--panel);
  scroll-margin-block-start: 96px;
}

.gl-term:target {
  border-block-start-color: var(--accent);
}

.gl-term__name {
  color: var(--ink);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.3;
}

.gl-term__alias {
  color: var(--muted);
  font-size: 0.875rem;
}

.gl-term__text {
  font-size: 0.9375rem;
  line-height: 1.6;
}

.gl-term__text strong {
  color: var(--ink);
  font-weight: 500;
}

.gl-term__see {
  color: var(--muted);
  font-size: 0.875rem;
}

.gl-term__see a {
  color: var(--ink);
}

@media (min-width: 700px) {
  .gl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .gl-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Aluminum consulting page, laid out after Gataleo's one-page brochure: title and intro, three
   stage cards and the expertise list. */

.al {
  display: grid;
  gap: clamp(56px, 7vw, 96px);
}

.al__title {
  color: var(--ink);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
}

.al-stages {
  display: grid;
  gap: 16px;
  margin-block-start: 24px;
}

.al-stage {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 28px 24px 32px;
  background: var(--panel);
}

.al-stage__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block-end: 16px;
  border-block-end: 1px solid var(--ink);
  color: var(--ink);
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.25;
}

.al-stage__num {
  font-size: clamp(2.25rem, 3.2vw, 2.75rem);
  font-weight: 300;
  line-height: 1;
}

.al-stage__items {
  display: grid;
  gap: 10px;
  padding-inline-start: 1.1em;
  list-style: disc;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.al-expertise__list {
  margin-block-start: 20px;
  border-block-end: 1px solid var(--line);
  color: var(--ink);
}

.al-expertise__list li {
  border-block-start: 1px solid var(--line);
}

/* Each expertise links to its glossary term; the whole row is the target. */
.al-expertise__list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding-block: 12px;
  color: var(--ink);
  text-decoration: none;
}

.al-expertise__list a::after {
  content: '\2190';
  color: var(--accent);
  transition: transform 200ms var(--ease);
}

:root[dir='ltr'] .al-expertise__list a::after {
  content: '\2192';
}

.al-expertise__list a:hover::after {
  transform: translateX(calc(4px * var(--dir)));
}

@media (min-width: 900px) {
  .al-stages {
    grid-template-columns: repeat(3, 1fr);
  }

  .al-expertise {
    max-width: 50%;
  }

}

/* About */
.prose {
  display: grid;
  gap: 20px;
  max-width: 40em;
}

.founders {
  display: grid;
  gap: 8px;
  margin-block-end: clamp(40px, 6vw, 72px);
}

.founders__label {
  color: var(--muted);
}

.founders__names {
  color: var(--ink);
  font-size: clamp(2rem, 4.4vw, 4rem);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: var(--display-track);
}

.quote {
  padding-block-start: var(--section);
}

.quote__title {
  max-width: 14em;
  font-size: clamp(2.5rem, 7vw, 7rem);
}

.quote__text {
  max-width: 40em;
  margin-block-start: 32px;
}

.dedication {
  padding: var(--section) var(--gutter) 0;
  color: var(--ink);
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
}

/* Project detail */
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px clamp(40px, 6vw, 96px);
  margin-block-start: 32px;
}

.project-meta dt {
  color: var(--muted);
}

.project-meta dd {
  color: var(--ink);
  font-size: 1.25rem;
}

.project-visual {
  margin-block-start: clamp(40px, 6vw, 72px);
  padding-inline: var(--gutter);
}

/* On a project's own page the pictures hold still: no scroll pan. */
.project-visual .band__media img,
.proof .proof__item {
  animation: none;
}

.project-detail {
  display: grid;
  gap: 48px;
  padding: clamp(64px, 8vw, 112px) var(--gutter) 0;
}

.project-detail__title {
  font-size: clamp(2rem, 3.6vw, 3.25rem);
}

.scope {
  margin-block-start: 28px;
}

.scope li {
  padding-block: 14px;
  border-block-start: 1px solid var(--line);
  color: var(--ink);
}

.project-figure {
  color: var(--ink);
}

.project-figure .drawing {
  width: 100%;
  height: min(70vh, 640px);
}

.project-figure img {
  margin-inline: auto;
}

.project-figure figcaption {
  margin-block-start: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

@media (min-width: 900px) {
  .project-detail:not(.project-detail--solo) {
    grid-template-columns: 7fr 4fr;
    gap: clamp(48px, 8vw, 128px);
  }

  .project-detail--solo {
    max-width: calc(64% + var(--gutter));
  }
}

/* Render gallery: the first view runs full width, the rest sit side by side. */
.views {
  display: grid;
  gap: clamp(12px, 2vw, 28px);
  padding: var(--section) var(--gutter) 0;
}

.views__clip {
  overflow: hidden;
}

.views__item img {
  width: 100%;
}

/* Two columns that each flow on their own, so tall and wide pictures pack without gaps.
   The first picture spans both. */
@media (min-width: 900px) {
  .views {
    display: block;
    columns: 2;
    column-gap: clamp(12px, 2vw, 28px);
  }

  .views__item {
    break-inside: avoid;
    margin-block-end: clamp(12px, 2vw, 28px);
  }

  .views__item:first-child {
    column-span: all;
  }
}

/* Work samples from the deck */
.proof {
  padding: var(--section) var(--gutter) 0;
}

.proof__grid {
  display: grid;
  align-items: start;
  gap: clamp(40px, 5vw, 72px);
  margin-block-start: clamp(32px, 5vw, 64px);
}

.proof__frame {
  padding: clamp(12px, 2vw, 28px);
  background: var(--panel);
}

.proof__frame img {
  width: 100%;
}

.proof__item figcaption {
  max-width: 34em;
  margin-block-start: 16px;
}

@media (min-width: 900px) {
  .proof__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof__item--wide {
    grid-column: 1 / -1;
  }
}

/* Contact */
.contact {
  display: grid;
  gap: 48px;
  padding: clamp(48px, 7vw, 96px) var(--gutter) 0;
}

.contact__details {
  display: grid;
  align-content: start;
  gap: 12px;
  color: var(--ink);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 300;
}

.contact__details a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  /* A long address may break, so enlarged text never pushes the page sideways. */
  overflow-wrap: anywhere;
}

.contact > * {
  min-width: 0;
}

.form {
  display: grid;
  gap: 24px;
  padding: clamp(28px, 4vw, 56px);
  background: var(--panel);
}

.field {
  display: grid;
  gap: 4px;
}

.field label {
  color: var(--ink);
  font-weight: 500;
}

.field__optional {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 2px;
  border: 0;
  border-block-end: 1px solid var(--muted);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  resize: vertical;
}

.form__trap {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.form__status {
  margin: 0;
  color: var(--ink);
}

.form .cta:disabled {
  opacity: 0.6;
  cursor: progress;
}

.form .cta {
  justify-self: start;
  border: 0;
  background: none;
  font-family: inherit;
  cursor: var(--cursor-link);
}

@media (min-width: 900px) {
  .contact {
    grid-template-columns: 4fr 7fr;
    gap: clamp(48px, 8vw, 128px);
  }
}

/* Footer: the ink end of every page, kept short. The logo and line, contact and office side by
   side, then a thin bar with the rights and the design credit. White for content, silver for labels. */
.site-footer {
  margin-block-start: var(--section);
  padding: clamp(32px, 4.5vw, 64px) var(--gutter) 0;
  border-block-start: 1px solid var(--line-on-ink);
  background: var(--ink);
  color: var(--panel);
}

/* Everything lines up on one edge, the reading side: right in Hebrew, left in English.
   On a phone it is one column; wider, the blocks sit side by side from that edge. */
.site-footer__main {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding-block-end: clamp(24px, 3.5vw, 48px);
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-footer__home {
  flex: none;
  color: var(--panel);
}

.site-footer__logo {
  width: auto;
  height: 36px;
}

.site-footer__line {
  max-width: 18em;
  color: var(--silver);
  font-size: 0.875rem;
  line-height: 1.45;
}

.site-footer__label {
  margin-block-end: 4px;
  color: var(--silver);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

:root[lang='he'] .site-footer__label {
  letter-spacing: 0.02em;
}

.site-footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  color: var(--panel);
  font-size: 0.9375rem;
  text-decoration: none;
}

.site-footer__col a:hover {
  text-decoration: underline;
}

.site-footer__bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-block: 16px 20px;
  border-block-start: 1px solid var(--line-on-ink);
  color: var(--silver);
  font-size: 0.8125rem;
}

.site-footer__bar a {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  color: var(--silver);
}

/* The studio's illustration stands beside its credit. */
.site-footer__credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.site-footer__credit img {
  width: auto;
  height: 44px;
}

@media (min-width: 700px) {
  .site-footer__main {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    align-items: start;
    column-gap: clamp(48px, 7vw, 120px);
  }

  .site-footer__bar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px clamp(24px, 3vw, 48px);
  }
}

/* Brand marks. Red only marks: the name's period, the tag's edge bar, the stage numbers,
   the focus ring and the buttons' hover sweep. Everything else is ink on concrete. */
.hero__dot {
  color: var(--accent);
}

.tag {
  border-inline-start: 4px solid var(--accent);
}

/* A tag moved to the far edge, for an image whose building stands on the reading side.
   It mirrors everything: anchored edge, slant, red bar and padding. */
.tag--far {
  --tag-open: polygon(100% 0, 0 0, var(--slant) 100%, 100% 100%);
  --tag-shut: polygon(100% 0, 100% 0, calc(100% + var(--slant)) 100%, 100% 100%);
  inset-inline-start: auto;
  inset-inline-end: 0;
  padding-inline: calc(var(--tag-pad) + var(--slant)) var(--tag-pad);
  border-inline-start: 0;
  border-inline-end: 4px solid var(--accent);
}

[dir='rtl'] .tag--far {
  --tag-open: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
  --tag-shut: polygon(0 0, 0 0, calc(0% - var(--slant)) 100%, 0 100%);
}

.step::before {
  color: var(--accent);
}

/* A link drawn as a project tag at 60% of its size: red bar on the reading edge, slanted far edge.
   The black shape is on ::before, so the clip never cuts the focus outline. */
.tag-link {
  --slant: clamp(11.4px, 1.224vw, 19.2px);
  --tag-pad: clamp(10.2px, 1.53vw, 24.6px);
  position: relative;
  isolation: isolate;
  display: inline-block;
  padding-block: clamp(7.2px, 0.816vw, 12px);
  padding-inline: var(--tag-pad) calc(var(--tag-pad) + var(--slant));
  border-inline-start: 2.4px solid var(--accent);
  color: var(--panel);
  font-size: clamp(0.83rem, 1.452vw, 1.34rem);
  line-height: 1.1;
  text-decoration: none;
  touch-action: manipulation;
}

.tag-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
}

[dir='rtl'] .tag-link::before {
  clip-path: polygon(100% 0, 0 0, var(--slant) 100%, 100% 100%);
}

.tag-link:hover {
  border-inline-start-width: 8px;
}

.tag-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .tag-link {
    transition: border-inline-start-width 260ms var(--ease-out);
  }
}

/* Small screens: menu behind a button when scripting is available. */
@media (max-width: 859.98px) {
  .site-header {
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .js .menu-btn {
    display: inline-flex;
    order: 3;
  }

  .js .lang-toggle {
    margin-inline-start: auto;
  }

  html:not(.js) .site-nav {
    order: 4;
    width: 100%;
  }

  .js .site-nav {
    display: none;
    position: fixed;
    inset: 76px 0 0;
    padding: 24px var(--gutter);
    background: var(--bg);
    overflow-y: auto;
  }

  .js [data-menu-open] .site-nav {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .js .site-nav a {
    min-height: 60px;
    color: var(--ink);
    font-size: 2.25rem;
    font-weight: 300;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glaze {
    display: none;
  }

  .rail__fill {
    animation: none;
    transform: scaleY(1);
  }
}

/* All motion below is opt-in: without this query the page is complete and still. */
@media (prefers-reduced-motion: no-preference) {
  /* Page transitions: the old page clears first, so two layouts never collide. */
  @view-transition {
    navigation: auto;
  }

  .site-header {
    view-transition-name: site-header;
  }

  .rail {
    view-transition-name: rail;
  }

  .vt-media {
    view-transition-name: project-media;
  }

  ::view-transition {
    background: var(--bg);
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    mix-blend-mode: normal;
  }

  ::view-transition-old(root) {
    animation: page-out 170ms ease both;
  }

  ::view-transition-new(root) {
    animation: page-in 560ms var(--ease-out) 170ms both;
  }

  /* The header and rail hold still: they swap without blending. */
  ::view-transition-old(site-header),
  ::view-transition-old(rail) {
    display: none;
  }

  ::view-transition-new(site-header),
  ::view-transition-new(rail) {
    animation: none;
    mix-blend-mode: normal;
  }

  ::view-transition-group(project-media) {
    animation-duration: 680ms;
    animation-timing-function: var(--ease-io);
  }

  @keyframes page-out {
    to {
      opacity: 0;
      transform: translateY(-12px);
    }
  }

  @keyframes page-in {
    from {
      opacity: 0;
      transform: translateY(22px);
    }
  }

  /* Changing language: a black panel at the logo's angle crosses from the new language's
     reading side. The panel is the backdrop showing between the old page's leading edge
     and the new page's trailing edge, so the two layouts never appear together. */
  :root:active-view-transition-type(language)::view-transition {
    background: var(--ink);
  }

  :root:active-view-transition-type(language)::view-transition-old(root) {
    animation: sweep-old-ltr 480ms var(--ease-io) both;
  }

  :root:active-view-transition-type(language)::view-transition-new(root) {
    animation: sweep-new-ltr 480ms var(--ease-io) 240ms both;
  }

  :root[dir='rtl']:active-view-transition-type(language)::view-transition-old(root) {
    animation-name: sweep-old-rtl;
  }

  :root[dir='rtl']:active-view-transition-type(language)::view-transition-new(root) {
    animation-name: sweep-new-rtl;
  }

  @keyframes sweep-old-ltr {
    from {
      clip-path: polygon(0% 0, 120% 0, 120% 100%, -16% 100%);
    }
    to {
      clip-path: polygon(116% 0, 120% 0, 120% 100%, 100% 100%);
    }
  }

  @keyframes sweep-new-ltr {
    from {
      clip-path: polygon(-20% 0, 0% 0, -16% 100%, -20% 100%);
    }
    to {
      clip-path: polygon(-20% 0, 116% 0, 100% 100%, -20% 100%);
    }
  }

  @keyframes sweep-old-rtl {
    from {
      clip-path: polygon(100% 0, -20% 0, -20% 100%, 116% 100%);
    }
    to {
      clip-path: polygon(-16% 0, -20% 0, -20% 100%, 0% 100%);
    }
  }

  @keyframes sweep-new-rtl {
    from {
      clip-path: polygon(120% 0, 100% 0, 116% 100%, 120% 100%);
    }
    to {
      clip-path: polygon(120% 0, -16% 0, 0% 100%, 120% 100%);
    }
  }

  /* Hero entrance */
  .hero__letters {
    overflow-y: clip;
    padding-block: 0.18em;
    margin-block: -0.18em;
  }

  .hero__ch {
    transform-origin: 0 100%;
    animation: letter-rise 1050ms var(--ease-out) both;
    animation-delay: calc(var(--i) * 48ms + 120ms);
  }

  .hero__line {
    animation: mask-rise 900ms var(--ease-out) 620ms both;
  }

  .hero__slogan {
    animation: settle 800ms var(--ease-out) 780ms both;
  }

  .page-head .page-title {
    animation: mask-rise 950ms var(--ease-out) 120ms both;
  }

  .page-intro {
    animation: settle 800ms var(--ease-out) 380ms both;
  }

  @keyframes letter-rise {
    from {
      transform: translateY(118%) rotate(calc(var(--dir) * 6deg));
    }
  }

  @keyframes mask-rise {
    from {
      clip-path: inset(0 -5% 100% -5%);
      transform: translateY(42%);
    }
    to {
      clip-path: inset(-25% -5% -25% -5%);
      transform: none;
    }
  }

  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
  }

  /* Where scroll-linked animation isn't available, the image wipe plays once on arrival.
     The clip sits on the inner frame: a fully clipped element would never register as in view. */
  @supports not (animation-timeline: view()) {
    [data-reveal] > :first-child {
      clip-path: polygon(0 -25%, 100% -25%, 100% calc(104% + var(--cut-end)), 0 calc(104% + var(--cut-start)));
      transition: clip-path 1100ms var(--ease-io);
    }

    .js [data-reveal]:not(.is-in) > :first-child {
      clip-path: polygon(0 -25%, 100% -25%, 100% calc(-20% + var(--cut-end)), 0 calc(-20% + var(--cut-start)));
    }
  }

  /* Response to the pointer */
  .cta::before {
    transition: background-position 520ms var(--ease-out);
  }

  .cta {
    transition: transform 160ms ease;
  }

  .cta:active {
    transform: scale(0.97);
  }

  .tag {
    transition: clip-path 420ms var(--ease-out);
  }

  .band:hover .tag,
  .band:focus-within .tag {
    transition-duration: 680ms;
  }

  /* The menu button: the word lifts away while the X turns in from a quarter turn and its two
     strokes draw out from the centre, one just after the other. Closing plays it backwards. */
  .menu-btn__text {
    transition: opacity 260ms ease, transform 420ms var(--ease-out);
  }

  .menu-btn[aria-expanded='true'] .menu-btn__text {
    transform: translateY(-60%);
  }

  .menu-btn__x {
    transform: rotate(-90deg);
    transition: transform 620ms var(--ease-out);
  }

  .menu-btn[aria-expanded='true'] .menu-btn__x {
    transform: none;
  }

  .menu-btn__x i {
    transition: transform 460ms var(--ease-out);
  }

  .menu-btn[aria-expanded='true'] .menu-btn__x i {
    transition-delay: 120ms;
  }

  .menu-btn[aria-expanded='true'] .menu-btn__x i + i {
    transition-delay: 220ms;
  }

  @media (hover: hover) {
    .menu-btn[aria-expanded='true']:hover .menu-btn__x {
      transform: rotate(90deg);
    }
  }

  /* Mobile menu */
  .js [data-menu-open] .site-nav {
    animation: menu-open 460ms var(--ease-out) both;
  }

  .js [data-menu-open] .site-nav li {
    animation: settle 620ms var(--ease-out) both;
    animation-delay: calc(60ms * var(--n, 0) + 80ms);
  }

  .site-nav li:nth-child(2) {
    --n: 1;
  }

  .site-nav li:nth-child(3) {
    --n: 2;
  }

  .site-nav li:nth-child(4) {
    --n: 3;
  }

  .site-nav li:nth-child(5) {
    --n: 4;
  }

  @keyframes menu-open {
    from {
      clip-path: polygon(0 var(--cut-start), 100% var(--cut-end), 100% var(--cut-end), 0 var(--cut-start));
    }
    to {
      clip-path: polygon(0 0, 100% 0, 100% 125%, 0 125%);
    }
  }

  @media (hover: hover) {
    .site-nav a,
    .lang-toggle {
      position: relative;
    }

    .site-nav a:not([aria-current='page']):hover,
    .lang-toggle:hover {
      text-decoration: none;
    }

    .site-nav a:not([aria-current='page'])::after,
    .lang-toggle::after {
      content: '';
      position: absolute;
      inset-inline: 0;
      inset-block-end: 9px;
      height: 1px;
      background: currentColor;
      transform: scaleX(0);
      transform-origin: calc(50% - var(--dir) * 50%) 0;
      transition: transform 420ms var(--ease-out);
    }

    .site-nav a:hover::after,
    .lang-toggle:hover::after {
      transform: scaleX(1);
    }

    .site-nav a:not([aria-current='page'])::after {
      height: 1.5px;
      background: var(--accent);
    }
  }

  /* Scroll-linked motion, where the browser supports it natively */
  @supports (animation-timeline: view()) {
    .hero__tower img {
      animation: tower-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 100vh;
    }

    .hero__ghost {
      animation: ghost-drift linear both;
      animation-timeline: scroll(root);
      animation-range: 0 110vh;
    }

    /* The opening statement comes into ink word by word. */
    .statement__lead {
      view-timeline: --lead block;
    }

    .word {
      animation: word-ink linear both;
      animation-timeline: --lead;
      animation-range: cover calc(16% + var(--p) * 36%) cover calc(22% + var(--p) * 36%);
    }

    .section-title,
    .quote__title {
      animation: mask-rise linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }

    /* Each stage's dividing line is drawn across the page like a mullion. */
    .step {
      position: relative;
      border-block-start-color: transparent;
    }

    .step::after {
      content: '';
      position: absolute;
      inset-inline: 0;
      inset-block-start: -1px;
      height: 1px;
      background: var(--ink);
      transform-origin: calc(50% - var(--dir) * 50%) 0;
      animation: line-draw linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 28%;
    }

    .step:not(.step--items)::before,
    .step:not(.step--items) > * {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 60%;
    }

    @media (min-width: 900px) {
      .step__items li {
        animation: settle linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 100%;
      }
    }

    /* One edge at the logo's angle travels down each image in step with the scroll, staying
       behind the bottom of the screen so it is always seen. */
    [data-reveal] > :first-child {
      animation: image-wipe linear both;
      animation-timeline: view();
      animation-range: entry 30% entry calc(100% + 120px);
    }

    .proof__item {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }

    .band__media img {
      animation: image-pan linear both;
      animation-timeline: view();
      animation-range: cover;
    }

    /* Full renders have no spare sky to move in, so they pan inside a slight enlargement. */
    .band__media--photo img {
      animation-name: photo-pan;
    }

    @keyframes tower-drift {
      to {
        transform: translateY(9%) scale(1.04);
      }
    }

    @keyframes ghost-drift {
      to {
        transform: translate3d(calc(var(--dir) * 5%), 12%, 0) rotate(calc(var(--dir) * -3deg));
      }
    }

    @keyframes word-ink {
      from {
        opacity: 0.16;
      }
    }

    @keyframes line-draw {
      from {
        transform: scaleX(0);
      }
    }

    /* The renders have open sky above them, so they only ever move within it and never lose a crown. */
    @keyframes image-pan {
      from {
        transform: translateY(7%);
      }
    }

    @keyframes image-wipe {
      from {
        clip-path: polygon(0 -25%, 100% -25%, 100% calc(-20% + var(--cut-end)), 0 calc(-20% + var(--cut-start)));
      }
      to {
        clip-path: polygon(0 -25%, 100% -25%, 100% calc(104% + var(--cut-end)), 0 calc(104% + var(--cut-start)));
      }
    }

    @keyframes photo-pan {
      from {
        transform: scale(1.08) translateY(-3%);
      }
      to {
        transform: scale(1.08) translateY(3%);
      }
    }
  }
}
