/* Self-hosted Noto Sans Light (Latin + Cyrillic subset): no font requests to Google. */
@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("assets/fonts/NotoSans-300.woff2") format("woff2");
}

:root {
  --bg: #0B0B0B;
  --text: #f4efe3;
  --text-soft: rgba(244, 239, 227, 0.72);
  --page-inset: 30px;
  --col-split: 36%;
  --font: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --reveal-y: 0.5em;
  --reveal-blur: 12px;
  --reveal-duration: 0.8s;
  --reveal-stagger: 0.03s;
  --reveal-ease: var(--ease);
  --stats-gap: 100px;
  --service-sticky-top: calc(env(safe-area-inset-top, 0px) + 4.5rem);
  --accent: #ff5a1f;
  --link-opacity-rest: 0.6;
  --link-opacity-hover: 1;
}

* {
  box-sizing: border-box;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus,
a:focus-visible,
button:focus,
button:focus-visible {
  outline: none;
}

button::-moz-focus-inner {
  border: 0;
}

html {
  background-color: var(--bg);
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

html,
body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  background-color: var(--bg);
  color: var(--text);
  color-scheme: dark;
  font-family: var(--font);
  font-weight: 300;
  cursor: none;
}

* {
  cursor: none !important;
}

body {
  position: relative;
}

.page-surface {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: -40vh 0;
  background: var(--bg);
  z-index: -1;
  pointer-events: none;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100svh;

}

.stair-reveal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  overflow: hidden;
}

.stair-reveal__layer {
  position: absolute;
  inset: 0;
  display: flex;
}

.stair-reveal__layer--front {
  z-index: 2;
  --layer-delay: 0s;
}

.stair-reveal__layer--back {
  z-index: 1;
  --layer-delay: 0.16s;
}

.stair-reveal__step {
  flex: 1 0 auto;
  /* +1px overlap between columns hides hairline seams on fractional widths */
  width: calc(100% / 8 + 1px);
  margin-left: -1px;
  height: 101%;
  background: #fff;
  transform: translateY(0);
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
  transition-delay: calc(var(--layer-delay, 0s) + var(--i) * 0.055s);
}

.stair-reveal.is-open .stair-reveal__step {
  transform: translateY(-102%);
}

/* Load percentage: big black digits, bottom-right, same on all viewports */
.stair-reveal__count {
  position: absolute;
  right: var(--page-inset);
  bottom: 1.2rem;
  z-index: 3;
  color: #0a0a0a;
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 5.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.stair-reveal__text {
  position: absolute;
  left: var(--page-inset);
  bottom: 1.2rem;
  z-index: 3;
  margin: 0;
  max-width: none;
  color: #0a0a0a;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease);
}

.stair-reveal.is-open .stair-reveal__count,
.stair-reveal.is-open .stair-reveal__text {
  opacity: 0;
  transform: translateY(-40px);
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

.page-transition__step {
  flex: 1 0 auto;
  width: calc(100% / 8 + 1px);
  height: 101%;
  margin-left: -1px;
  background: #fff;
  transform: translateY(102%);
  transition: transform 0.75s cubic-bezier(0.76, 0, 0.24, 1);
  transition-delay: calc(var(--i) * 0.055s);
}

.page-transition.is-closing,
.page-transition.is-covered,
.page-transition.is-opening {
  visibility: visible;
  pointer-events: auto;
}

.page-transition.is-closing .page-transition__step,
.page-transition.is-covered .page-transition__step {
  transform: translateY(0);
}

.page-transition.is-covered .page-transition__step {
  transition: none;
}

.page-transition.is-opening .page-transition__step {
  transform: translateY(-102%);
}

body.is-page-transitioning {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .page-transition__step {
    transition: none;
  }
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

@media (min-width: 801px) {
  #hero-canvas {
    will-change: transform;
  }
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem var(--page-inset);
  pointer-events: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: calc(1.4rem + env(safe-area-inset-top)) var(--page-inset) 0;
  pointer-events: none;
}

.site-header a,
.site-header .nav-toggle {
  pointer-events: auto;
}

.topbar,
.hero-content {
  width: 100%;
  margin: 0;
  max-width: none;
}

.overlay a {
  pointer-events: auto;
}

.top-blur {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Taller by the status bar (the safe area; 0 on desktop), so the page under the iPhone clock is blurred too. */
  height: calc(env(safe-area-inset-top, 0px) + 90px);
  z-index: 90;
  pointer-events: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  /* Progressive frosted glass: full blur through the status bar, none at the bottom edge */
  mask-image: linear-gradient(to bottom, #000 0, #000 calc(env(safe-area-inset-top, 0px) + 27px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 calc(env(safe-area-inset-top, 0px) + 27px), transparent 100%);
  /* Slight tint of the page bg so content dissolves rather than just blurs */
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.55) env(safe-area-inset-top, 0px), rgba(5, 5, 5, 0));
}

/* The grain layer only needs a margin for its jitter: at 120% instead of 200% of the screen
   it is 2.8 times less to keep on the GPU, with the same grain on screen. */
.noise {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.12;
  animation: grain 0.9s steps(1) infinite;
  /* Hidden box, visible grain (its ::before): Safari skips hidden pinned boxes when it picks the colour of its bars. */
  visibility: hidden;
}

.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  visibility: visible;
  background: url("assets/noise.png") repeat;
}

/* iOS 26 Safari bars. Safari colours its status bar and toolbar from the pinned (fixed or sticky) element it finds
   at the centre of each screen edge, 4px in, and never draws the page's own fixed layers under them.
   - Bottom: an invisible shield is the topmost thing there and has no colour, so Safari tints nothing and the page
     shows under the toolbar (no black from the stacked service cards, no orange from the sticky footer).
   - Top, on phones: a 12px strip in the page colour is the element found there, so the status bar is solid page
     colour at all times, loading screen included, and the page goes into the blur under the menu.
     Lighten blending makes the strip itself invisible over the white loader and over the dark page alike;
     Safari still reads its background colour. */
.edge-shield {
  position: fixed;
  bottom: 0;
  left: 40%;
  right: 40%;
  z-index: 2147483647;
  height: 8px;
  opacity: 0;
}

.status-tint {
  display: none;
}

@media (max-width: 800px) {
  .status-tint {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 12px;
    background-color: var(--bg);
    mix-blend-mode: lighten;
    /* Takes taps, so it is surely what Safari finds at the top edge; the menu buttons start below it. */
    pointer-events: auto;
  }
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  12.5% { transform: translate(-2%, -5%); }
  25% { transform: translate(-4%, 2%); }
  37.5% { transform: translate(2%, -4%); }
  50% { transform: translate(-2%, 5%); }
  62.5% { transform: translate(4%, -2%); }
  75% { transform: translate(1%, 4%); }
  87.5% { transform: translate(-3%, 1%); }
  100% { transform: translate(0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .noise {
    animation: none;
  }
}

.cursor-dot,
.cursor-ellipse {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: exclusion;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.2s var(--ease);
}

.cursor-ellipse {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  opacity: 0.95;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.2s var(--ease);
}

body.is-interactive .cursor-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

body.is-interactive .cursor-ellipse {
  width: 40px;
  height: 40px;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), opacity 0.2s var(--ease);
}

body.cursor-hide .cursor-dot,
body.cursor-hide .cursor-ellipse {
  opacity: 0;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.nav {
  display: grid;
  grid-template-columns: var(--col-split) minmax(0, 1fr);
  align-items: center;
  width: 100%;
  column-gap: 15px;
  margin-left: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  column-gap: 2rem;
  row-gap: 1rem;
  min-width: 0;
  width: 100%;
}

.nav-menu a {
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--text);
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: none;
  opacity: 0.95;
  display: inline-block;
  overflow: hidden;
  padding: 5px;
  margin: -5px;
  white-space: nowrap;
}

.nav-menu .book {
  display: inline-flex;
  align-items: center;
  align-self: center;
  text-decoration: none;
  margin: -5px;
  line-height: 1;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-menu .book:focus-visible {
  outline: none;
}

.language-switcher {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  white-space: nowrap;
  pointer-events: auto;
}

@media (min-width: 801px) and (max-width: 1100px) {
  .nav-menu {
    column-gap: clamp(0.75rem, 1.7vw, 1.2rem);
  }
}

.language-switcher button {
  display: inline-block;
  padding: 5px;
  margin: -5px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  letter-spacing: inherit;
  text-transform: none;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease);
}

.language-switcher button.is-active {
  opacity: 0.1;
}

.language-switcher button:not(.is-active):hover,
.language-switcher button:not(.is-active):focus-visible {
  opacity: 1;
}

.language-switcher button:not(.is-active):hover .nav-link-line,
.language-switcher button:not(.is-active):focus-visible .nav-link-line {
  transform: translateY(-105%);
}

.language-switcher button:not(.is-active):hover .nav-link-line:last-child,
.language-switcher button:not(.is-active):focus-visible .nav-link-line:last-child {
  transform: translateY(calc(-105% - 5px));
}

.language-switcher__separator {
  color: var(--text);
  opacity: 0.3;
}

.nav-toggle {
  display: none;
  padding: 5px;
  margin: -5px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  opacity: 0.95;
  overflow: hidden;
}

.mobile-menu-modal {
  display: none;
}

.nav-link-mask,
.social-link-mask {
  display: block;
  overflow: hidden;
  height: 1em;
  line-height: 1em;
  position: relative;
  isolation: isolate;
}

.nav-link-line,
.social-link-line {
  display: block;
  transition: transform 0.4s var(--ease);
}

/* Extra 5px keeps glyph edges of the duplicate hidden in the resting state */
.nav-link-line:last-child,
.social-link-line:last-child {
  margin-top: 5px;
}

.nav-menu a:hover .nav-link-line,
.nav-menu a:focus-visible .nav-link-line,
.nav-toggle:hover .nav-link-line,
.nav-toggle:focus-visible .nav-link-line,
.social-link:hover .social-link-line,
.social-link:focus-visible .social-link-line {
  transform: translateY(-105%);
}

.nav-menu a:hover .nav-link-line:last-child,
.nav-menu a:focus-visible .nav-link-line:last-child,
.nav-toggle:hover .nav-link-line:last-child,
.nav-toggle:focus-visible .nav-link-line:last-child,
.social-link:hover .social-link-line:last-child,
.social-link:focus-visible .social-link-line:last-child {
  transform: translateY(calc(-105% - 5px));
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  padding-bottom: 0.4rem;
  margin: 0;
}

.hero-top {
  display: grid;
  grid-template-columns: var(--col-split) minmax(0, 1fr);
  align-items: stretch;
  column-gap: 15px;
  width: 100%;
}

h1 {
  grid-column: 2;
  margin: 0;
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 300;
  max-width: none;
  min-width: 0;
  width: 100%;
}

.sp-box {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  margin: 10px;
  min-width: 0;
  overflow: hidden;
  border: 0;
  color: rgba(244, 239, 227, 0.45);
  background-color: transparent;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
  background-size:
    20px 1px, 1px 20px,
    20px 1px, 1px 20px,
    20px 1px, 1px 20px,
    20px 1px, 1px 20px;
  pointer-events: auto;
  transition: color 0.2s var(--ease), background-position 0.2s var(--ease);
}

.sp-box:hover,
.sp-box:focus-within {
  color: rgba(244, 239, 227, 1);
  background-position:
    left 2.5px top 2.5px, left 2.5px top 2.5px,
    right 2.5px top 2.5px, right 2.5px top 2.5px,
    left 2.5px bottom 2.5px, left 2.5px bottom 2.5px,
    right 2.5px bottom 2.5px, right 2.5px bottom 2.5px;
}

[data-reveal] .char {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, var(--reveal-y), 0);
  transition: opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

.about-sub[data-reveal] .char,
.works-intro[data-reveal] .char {
  filter: none;
  transform: none;
  transition: opacity 0.7s var(--reveal-ease);
}

.hero h1 .char,
.team-title .char {
  font-variant-numeric: tabular-nums;
}

.hero h1[data-reveal],
.team-title[data-reveal] {
  pointer-events: auto;
}

.hero h1[data-reveal],
.about-title[data-reveal],
.stats-title[data-reveal],
.team-title[data-reveal],
.works-title[data-reveal],
.contact-cta__title[data-reveal] {
  filter: blur(var(--reveal-blur));
  transition: filter var(--reveal-duration) var(--reveal-ease);
}

.hero h1[data-reveal].is-revealing,
.about-title[data-reveal].is-revealing,
.stats-title[data-reveal].is-revealing,
.team-title[data-reveal].is-revealing,
.works-title[data-reveal].is-revealing,
.contact-cta__title[data-reveal].is-revealing {
  will-change: filter;
}

.hero h1[data-reveal].is-visible,
.about-title[data-reveal].is-visible,
.stats-title[data-reveal].is-visible,
.team-title[data-reveal].is-visible,
.works-title[data-reveal].is-visible,
.contact-cta__title[data-reveal].is-visible {
  filter: blur(0);
}

.hero h1[data-reveal].is-visible.is-revealed,
.about-title[data-reveal].is-visible.is-revealed,
.stats-title[data-reveal].is-visible.is-revealed,
.team-title[data-reveal].is-visible.is-revealed,
.works-title[data-reveal].is-visible.is-revealed,
.contact-cta__title[data-reveal].is-visible.is-revealed {
  filter: none;
  transition: none;
  will-change: auto;
}

[data-reveal].is-revealed {
  filter: none;
  transform: none;
  transition: none;
  will-change: auto;
}

[data-reveal].is-revealed .char {
  opacity: 1;
  transform: none;
  transition: none;
}

.hero h1 .char.is-scrambling,
.team-title .char.is-scrambling {
  inline-size: var(--scramble-char-width);
  text-align: center;
}

[data-reveal] .word {
  display: inline-block;
  white-space: nowrap;
}

[data-reveal].is-visible .char {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-reveal].is-visible.is-revealed .char {
  transform: none;
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] .char {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  .hero h1[data-reveal],
  .about-title[data-reveal],
  .stats-title[data-reveal],
  .works-title[data-reveal],
  .contact-cta__title[data-reveal] {
    filter: none;
    transition: none;
    will-change: auto;
  }
}

.divider {
  width: 100%;
  margin-left: 0;
  transform: none;
  height: 1px;
  background: rgba(244, 239, 227, 0.25);
}

.btn {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: none;
  white-space: nowrap;
  padding: 0.35rem 0.45rem;
  flex: 0 0 auto;
  margin: 0;
  will-change: transform;
}

.btn__mask {
  display: block;
  overflow: hidden;
  height: 1em;
  line-height: 1em;
  opacity: 1;
  transition: opacity 0.2s var(--ease);
}

.sp-box:hover .btn__mask,
.sp-box:focus-within .btn__mask {
  opacity: 1;
}

.btn__line {
  display: block;
}

.btn__line:last-child {
  margin-top: 5px;
}

.social-links {
  display: grid;
  grid-template-columns: var(--col-split) repeat(5, minmax(0, 1fr));
  align-items: center;
  column-gap: 15px;
  width: 100%;
  padding-top: 1.6rem;
  margin-left: 0;
}

.social-link:nth-child(1),
.social-link:nth-child(2),
.social-link:nth-child(3),
.social-link:nth-child(4),
.social-link:nth-child(5) {
  justify-self: start;
}

.social-link:nth-child(6) {
  justify-self: end;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: none;
  flex: 0 0 auto;
  padding: 5px;
  margin: -5px;
}

@media (min-width: 801px) and (max-width: 960px) {
  .social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.9rem 1.25rem;
  }

  .social-links .social-link {
    justify-self: auto;
  }
}

.about {
  position: relative;
  z-index: 20;
  background: transparent;
  height: auto;
}

.about-sticky {
  position: relative;
  top: auto;
  padding: 250px 0 var(--stats-gap);
}

.about-inner {
  width: 100%;
  margin: 0;
  padding-inline: var(--page-inset);
}

.about-head {
  display: grid;
  grid-template-columns: var(--col-split) minmax(0, 1fr);
  align-items: start;
  column-gap: 15px;
  padding: 0;
}

.about-title {
  grid-column: 2;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 300;
  color: var(--text);
  max-width: 25ch;
}

.about-sub {
  grid-column: 1;
}

.about-sub,
.stats-intro,
.works-intro {
  margin: 0;
  width: 100%;
  max-width: 24rem;
  font-size: clamp(0.78rem, 0.9vw, 0.95rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  font-weight: 300;
  color: var(--text-soft);
}

.services {
  margin-top: 3rem;
}

.service {
  position: sticky;
  top: var(--service-sticky-top);
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.service:last-child {
  border-bottom: 1px solid rgba(244, 239, 227, 0.25);
}

.service:nth-child(1) {
  z-index: 1;
}

.service:nth-child(2) {
  z-index: 2;
}

.service:nth-child(3) {
  z-index: 3;
}

.service:nth-child(4) {
  z-index: 4;
}

.service.is-in {
  opacity: 1;
  transform: none;
}

.service-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(244, 239, 227, 0.35);
  pointer-events: none;
}

.service-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--col-split) minmax(0, 1fr);
  align-items: start;
  column-gap: 15px;
  padding: 1.3rem 10px 1.6rem;
}

.service-index {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  opacity: 0.6;
  padding-top: 0.3rem;
}

.service-title {
  margin: 0;
  font-size: clamp(1.15rem, 1.9vw, 1.7rem);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.service-body-wrap {
  overflow: visible;
}

.service-body {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2rem;
  padding-top: 1.2rem;
}

.service-desc p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  font-weight: 300;
  opacity: 0.75;
  max-width: 30rem;
}

.service-desc .service-tools {
  margin-top: 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  opacity: 0.55;
}

.service-tags {
  position: relative;
  height: 100%;
  min-height: 240px;
  overflow: visible;
  clip-path: inset(var(--tag-ceiling-y, 0px) 0 0 0);
}

.tag {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.25);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
  will-change: transform;
  user-select: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.service-tags.is-static {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.service-tags.is-static .tag {
  position: static;
  opacity: 1;
  transform: none !important;
  will-change: auto;
}

.stats {
  position: relative;
  z-index: 20;
  background: var(--bg);
}

.stats-inner {
  width: 100%;
  padding-inline: var(--page-inset);
}

.stats-grid {
  display: grid;
  grid-template-columns: var(--col-split) repeat(3, minmax(0, 1fr));
  align-items: center;
  column-gap: 15px;
  padding: 100px 0 2.4rem;
}

.stats-title {
  grid-column: 2 / -1;
  margin: 0 0 100px;
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 5.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 0;
}

.stat:first-of-type {
  justify-content: flex-start;
}

.stat:last-child {
  justify-content: flex-end;
}

.stat-num {
  flex: 0 0 auto;
  font-family: var(--font);
  font-size: clamp(2.4rem, 4vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.8rem;
  line-height: 1.25;
  font-weight: 300;
  opacity: 0.6;
}

.team {
  position: relative;
  z-index: 20;
  width: 100%;
  height: calc(100vh - 100px);
  height: calc(100svh - 100px);
  margin-top: 200px;
  padding-inline: var(--page-inset);
  background: var(--bg);
}

.team-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}

.team-media,
.team-ui {
  position: absolute;
  inset: 0;
}

.team-media {
  z-index: 1;
  overflow: hidden;
  background: var(--bg);
}

@media (min-width: 801px) {
  .team-stage,
  .team-media {
    overflow: visible;
  }
}

.team-media__image {
  position: absolute;
  inset: -24px;
  width: calc(100% + 48px);
  height: calc(100% + 48px);
  object-fit: contain;
  object-position: center;
  opacity: 0;
  filter: none;
  transform: translate3d(0, 0, 0);
  transition: opacity 1s var(--ease);
}

.team-media__image.is-active {
  opacity: 1;
  will-change: opacity, transform;
}

.team-media__image.is-missing {
  display: none;
}

.team-grid {
  position: absolute;
  inset: 0;
  display: grid;
  z-index: 2;
  justify-content: end;
  align-content: center;
  pointer-events: none;
}

.team-grid::before,
.team-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.team-grid::before {
  background-image:
    linear-gradient(
      to right,
      rgba(255, 255, 255, 0.1) 0 1px,
      transparent 1px 100%
    ),
    linear-gradient(
      to left,
      rgba(255, 255, 255, 0.1) 0 1px,
      transparent 1px 100%
    );
  background-position: left top, right top;
  background-size: 100% 100%, var(--team-cell-size, 125px) 100%;
  background-repeat: no-repeat, repeat-x;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 50%, transparent 100%);
}

.team-grid::after {
  background-image: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0 1px,
    transparent 1px 100%
  );
  background-position: left var(--team-grid-offset-y, 0px);
  background-size: 100% var(--team-cell-size, 125px);
  background-repeat: repeat-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 50%, transparent 100%);
}

.team-cell {
  position: relative;
  z-index: 1;
  width: var(--team-cell-size, 125px);
  height: var(--team-cell-size, 125px);
  background: transparent;
  pointer-events: auto;
  transition: background-color 1s var(--ease);
}

.team-cell:hover {
  background: rgba(255, 255, 255, 0.05);
  transition-duration: 0.15s;
}

.team-roles {
  position: absolute;
  top: 50%;
  right: 0;
  display: grid;
  z-index: 3;
  transform: translateY(-50%);
  pointer-events: none;
}

.team-role {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--team-cell-size, 125px);
  height: var(--team-cell-size, 125px);
  padding: 1rem;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  line-height: 1.25;
  text-align: center;
  pointer-events: auto;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

.team-role.is-active {
  background: var(--accent);
  color: #fff;
}

.team-ui {
  z-index: 4;
  padding-block: var(--page-inset);
  pointer-events: none;
}

.team-title {
  width: calc(var(--col-split) - 15px);
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 5.4rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
  pointer-events: auto;
}

.team-caption {
  position: absolute;
  left: 0;
  bottom: var(--page-inset);
  width: calc(var(--col-split) - 15px);
  max-width: 30rem;
  pointer-events: none;
}

.team-caption__copy {
  min-height: 7.5rem;
  overflow: hidden;
}

.team-caption__name {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.3;
}

.team-caption__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.55rem;
  color: #fff;
  font-size: 0.82rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  pointer-events: auto;
}

.team-caption__icon {
  flex: none;
}

.team-caption__handle {
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.team-caption__social:hover .team-caption__handle,
.team-caption__social:focus-visible .team-caption__handle {
  border-color: currentColor;
}

.team-caption__desc {
  max-width: 25rem;
  margin: 0.8rem 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.works {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 100vh;
  min-height: 100svh;
  padding: 200px 0 100px;
  row-gap: 0;
  background: transparent;
}

.works-inner {
  width: 100%;
  padding-inline: var(--page-inset);
}

.works-head {
  display: grid;
  grid-template-columns: var(--col-split) minmax(0, 1fr);
  align-items: start;
  column-gap: 15px;
}

.works-intro {
  grid-column: 1;
  max-width: 26rem;
  padding-top: 0.4em;
}

.works-title {
  grid-column: 2;
  margin: 0;
  max-width: 25ch;
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(2rem, 4.2vw, 4.6rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.works-viewport {
  width: 100%;
  margin-top: 3rem;
  overflow-x: auto;
  overflow-y: hidden;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  user-select: none;
  -webkit-user-select: none;
}

.works-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.works-track {
  box-sizing: content-box;
  display: flex;
  width: max-content;
  gap: 15px;
  padding: 0 30px 0 var(--works-start-offset, var(--page-inset));
}

.work-card {
  position: relative;
  /* As wide as the cover's own 735:881 proportion at its height. */
  flex: none;
  aspect-ratio: 735 / 881;
  /* 400px tall up to 14-inch laptops; on big monitors up to 1.5x (600px), never taller than the screen allows. */
  height: clamp(400px, min(40vw - 205px, 100vh - 330px), 600px);
  height: clamp(400px, min(40vw - 205px, 100svh - 330px), 600px);
  overflow: hidden;
  border: 0;
  outline: 0;
  background: rgba(244, 239, 227, 0.06);
  opacity: 0;
  transform: translateX(110px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.work-card__link {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.work-card:nth-child(2) {
  transition-delay: 0.09s;
}

.work-card:nth-child(3) {
  transition-delay: 0.18s;
}

.work-card:nth-child(4) {
  transition-delay: 0.27s;
}

.work-card:nth-child(5) {
  transition-delay: 0.36s;
}

.work-card:nth-child(6) {
  transition-delay: 0.45s;
}

.work-card:nth-child(7) {
  transition-delay: 0.54s;
}

.work-card:nth-child(8) {
  transition-delay: 0.63s;
}

.work-card.is-in {
  opacity: 1;
  transform: none;
}

.work-card img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 0.55s var(--ease);
  -webkit-user-drag: none;
}

.works-viewport a {
  -webkit-user-drag: none;
}

.work-card:hover img {
  transform: scale(1.06);
}

.work-card--cta {
  display: grid;
  place-items: center;
  color: rgba(244, 239, 227, 0.45);
  background: transparent;
}

.work-card--cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
  background-size:
    20px 1px, 1px 20px,
    20px 1px, 1px 20px,
    20px 1px, 1px 20px,
    20px 1px, 1px 20px;
  pointer-events: none;
  transition: color 0.2s var(--ease), background-position 0.2s var(--ease);
}

.work-card--cta:hover::before,
.work-card--cta:focus-within::before {
  color: rgba(244, 239, 227, 1);
  background-position:
    left 2.5px top 2.5px, left 2.5px top 2.5px,
    right 2.5px top 2.5px, right 2.5px top 2.5px,
    left 2.5px bottom 2.5px, left 2.5px bottom 2.5px,
    right 2.5px bottom 2.5px, right 2.5px bottom 2.5px;
}

.work-card__cta {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-align: center;
  text-decoration: none;
}

.work-card__cta span {
  max-width: 13rem;
}

.work-card--cta:hover .work-card__cta,
.work-card--cta:focus-within .work-card__cta {
  opacity: 1;
}

.works-nav {
  grid-column: 2;
  display: flex;
  gap: 12px;
}

.works-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: rgba(244, 239, 227, 0.45);
  background-color: transparent;
  font: inherit;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.works-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  color: rgba(244, 239, 227, 1);
  background-image:
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
  background-size:
    20px 1px, 1px 20px,
    20px 1px, 1px 20px,
    20px 1px, 1px 20px,
    20px 1px, 1px 20px;
  pointer-events: none;
  opacity: 0.45;
  transform: scale(1);
  transform-origin: center;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.works-arrow:hover:not(:disabled) {
  color: rgba(244, 239, 227, 1);
}

.works-arrow__icon {
  display: block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("assets/caret-right.svg") center / contain no-repeat;
  mask: url("assets/caret-right.svg") center / contain no-repeat;
}

.works-arrow--prev .works-arrow__icon {
  transform: scaleX(-1);
}

.works-arrow:hover:not(:disabled)::before {
  opacity: 1;
  transform: scale(0.9);
}

.works-arrow:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.works-bottom {
  display: grid;
  grid-template-columns: var(--col-split) 350px minmax(0, 1fr);
  align-items: start;
  column-gap: 15px;
  margin-top: 4.5rem;
}

.works-process {
  grid-column: 3;
  justify-self: end;
  width: 100%;
}

.works-process-lead {
  margin: 0;
}

.works-process-lead {
  width: 350px;
  max-width: 100%;
  margin-left: auto;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 300;
  line-height: 1.35;
}

.pixels {
  position: relative;
  z-index: 20;
  width: 100%;
  height: 500px;
  padding: var(--page-inset);
  overflow: hidden;
  background: var(--bg);
}

.pixels-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-cta {
  position: sticky;
  bottom: 0;
  z-index: 0;
  width: 100%;
}

.contact-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  width: 100%;
  padding: 30px;
  background: var(--accent);
  color: #fff;
}

.contact-cta__title {
  margin: 0;
  font-family: var(--font);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.contact-cta__button.sp-box {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 64px;
  margin: 0;
  padding: 0;
  color: #fff;
  opacity: 1;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-decoration: none;
  transition:
    opacity 0.3s ease-in-out,
    color 0.3s ease-in-out,
    background-position 0.3s ease-in-out;
}

.contact-cta__button.sp-box:hover,
.contact-cta__button.sp-box:focus-visible {
  color: #fff;
}

.contact-cta__button .btn__line {
  transition: transform 0.3s ease-in-out;
}

.contact-cta__button:hover .btn__line,
.contact-cta__button:focus-visible .btn__line {
  transform: translateY(calc(-100% - 5px));
}

/* Pointer interaction must never leave a browser focus ring on controls. */
:where(a, button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]):focus,
:where(a, button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"]):focus-visible {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

button::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner {
  border: 0;
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  visibility: hidden;
  pointer-events: none;
  color: #0a0a0a;
}

.form-modal.is-mounted {
  visibility: visible;
}

.form-modal.is-open {
  pointer-events: auto;
}

.form-modal__panel {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.75s cubic-bezier(0.76, 0, 0.24, 1);
}

.form-modal.is-open .form-modal__panel {
  clip-path: inset(0);
}

.form-modal__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: calc(1.4rem + env(safe-area-inset-top)) var(--page-inset) 0;
  color: #0a0a0a;
}

.form-modal__header .brand,
.form-modal__header .nav-menu a,
.form-modal__header .nav-toggle {
  color: #0a0a0a;
}

.form-modal__header .language-switcher button,
.form-modal__header .language-switcher__separator {
  color: #0a0a0a;
}

.form-modal__contact-spacer {
  flex: 0 0 auto;
  padding: 5px;
  margin: -5px;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.16em;
  white-space: nowrap;
  visibility: hidden;
}

.form-modal__header .nav {
  position: relative;
}

.form-modal__close {
  position: absolute;
  top: 50%;
  right: calc(30px - var(--page-inset));
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0a0a0a;
  opacity: 0;
  transform: translateY(-50%) rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}

.form-modal.is-open .form-modal__close {
  opacity: 1;
}

.form-modal__close:hover,
.form-modal__close:focus-visible {
  transform: translateY(-50%) rotate(180deg);
}

.form-modal__close img {
  display: block;
  width: 32px;
  height: 32px;
}

.form-modal__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: visible;
  background: #fff;
}

.form-modal__media .float {
  position: absolute;
  z-index: 1;
  display: block;
  width: auto;
  height: auto;
  max-width: 28%;
  max-height: 28%;
  object-fit: contain;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.form-modal__media .float:nth-of-type(2) { top: 7%; left: 5%; max-width: 22%; }
.form-modal__media .float:nth-of-type(3) { top: 5%; right: 9%; max-width: 25%; }
.form-modal__media .float:nth-of-type(4) { top: 40%; left: 2%; max-width: 20%; }
.form-modal__media .float:nth-of-type(5) { top: 34%; right: 2%; max-width: 26%; }
.form-modal__media .float:nth-of-type(6) { bottom: 6%; left: 12%; max-width: 27%; }
.form-modal__media .float:nth-of-type(7) { right: 9%; bottom: 5%; max-width: 22%; }

.form-modal__side {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 0;
  padding: clamp(7rem, 14vh, 10rem) var(--page-inset) 2rem;
  overflow: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: #0a0a0a;
}

.request-form {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3.5vh, 2.5rem);
  width: 100%;
  max-width: 42rem;
}

.request-field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  color: rgba(10, 10, 10, 0.58);
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.request-field input,
.request-field textarea {
  width: 100%;
  padding: 0.2rem 0 0.7rem;
  border: 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.24);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: #0a0a0a;
  font: 300 clamp(1.1rem, 1.8vw, 1.5rem)/1.35 var(--font);
  transition: border-color 0.3s var(--ease);
}

.request-field textarea {
  min-height: 6rem;
  resize: vertical;
}

.request-field input:focus,
.request-field textarea:focus {
  border-color: #0a0a0a;
}

.request-form__submit {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 4rem;
}

.request-btn.sp-box {
  position: relative;
  inset: auto;
  grid-column: auto;
  grid-row: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12rem;
  height: 4rem;
  min-width: 0;
  margin: 0.5rem 0 0;
  padding: 0;
  border: 0;
  appearance: none;
  color: rgba(10, 10, 10, 0.45);
  font: 300 0.82rem/1 var(--font);
  letter-spacing: 0.18em;
}

.request-btn.sp-box:not(:disabled):hover,
.request-btn.sp-box:not(:disabled):focus-visible {
  color: #0a0a0a;
}

.request-btn.sp-box:disabled {
  opacity: 0.48;
}

.request-btn .btn__mask {
  height: 1em;
}

.request-btn .btn__line {
  transition: transform 0.35s var(--ease);
}

.request-btn:not(:disabled):hover .btn__line,
.request-btn:not(:disabled):focus-visible .btn__line {
  transform: translateY(calc(-100% - 5px));
}

.request-form__status {
  max-width: 20rem;
  margin: 0;
  color: rgba(10, 10, 10, 0.58);
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.06em;
}

.request-form__status:empty {
  visibility: hidden;
}

.request-form__status.is-success {
  color: #0a0a0a;
}

.social-link__icon {
  display: block;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

body.form-open {
  overscroll-behavior: none;
}

[data-fade] {
  opacity: 0;
  filter: blur(12px);
  transition: opacity 0.7s var(--ease), filter 0.7s var(--ease);
}

/* "none", not blur(0): a zero blur still keeps a filter layer on every faded-in element. */
[data-fade].is-in {
  opacity: 1;
  filter: none;
}

a:not([data-fade]):not(.contact-cta__button):not(.work-card__link),
a[data-fade].is-in {
  opacity: var(--link-opacity-rest);
}

a:not([data-fade]) {
  transition: opacity 0.3s var(--ease);
}

a:not([data-fade]):hover,
a:not([data-fade]):focus-visible,
a[data-fade].is-in:hover,
a[data-fade].is-in:focus-visible {
  opacity: var(--link-opacity-hover);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] .char {
    transition: none;
    opacity: 1;
    transform: none;
    filter: none;
  }

  [data-fade] {
    transition: none;
    opacity: 1;
    filter: none;
  }

  .service {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .team-media__image,
  .team-role,
  .team-cell {
    transition: none;
  }

  .work-card {
    transition: none;
  }

  .work-card {
    opacity: 1;
    transform: none;
  }

  .form-modal__panel {
    -webkit-mask-image: none;
    mask-image: none;
    clip-path: none;
    opacity: 0;
    transition: opacity 0.2s linear;
  }

  .form-modal.is-open .form-modal__panel {
    clip-path: none;
    opacity: 1;
  }

  .form-modal__media .float {
    will-change: auto;
  }

}

@media (max-width: 800px) {
  :root {
    --page-inset: 1rem;
    --service-sticky-top: calc(env(safe-area-inset-top, 0px) + 4rem);
  }

  body.mobile-menu-open {
    overscroll-behavior: none;
  }

  .mobile-menu-modal {
    position: fixed;
    inset: 0;
    z-index: 10002;
    display: block;
    visibility: hidden;
    pointer-events: none;
    color: #0b0b0b;
  }

  .mobile-menu-modal.is-mounted {
    visibility: visible;
  }

  .mobile-menu-modal.is-open {
    pointer-events: auto;
  }

  .mobile-menu-modal__panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    padding:
      calc(1rem + env(safe-area-inset-top, 0px))
      var(--page-inset)
      calc(1rem + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    background: #fff;
    clip-path: inset(0 0 100% 0);
    touch-action: none;
    transition: clip-path 0.75s cubic-bezier(0.76, 0, 0.24, 1);
  }

  .mobile-menu-modal.is-open .mobile-menu-modal__panel {
    clip-path: inset(0);
  }

  .mobile-menu-modal__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .mobile-menu-modal .brand,
  .mobile-menu-modal__links a,
  .mobile-menu-modal__socials a {
    color: #0b0b0b;
    text-decoration: none;
  }

  .mobile-menu-modal .brand {
    opacity: 1;
  }

  .mobile-menu-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .mobile-menu-modal__close img {
    display: block;
    width: 32px;
    height: 32px;
  }

  .mobile-menu-modal__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    justify-self: stretch;
    gap: clamp(0.4rem, 1.8vh, 1.5rem);
    min-width: 0;
    text-align: center;
  }

  .mobile-menu-modal__links a {
    display: block;
    max-width: 100%;
    color: #0b0b0b;
    font-size: clamp(1.75rem, min(10vw, 7vh), 4.5rem);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.04em;
    opacity: 1;
  }

  .mobile-menu-modal__bottom {
    display: grid;
    gap: 1.25rem;
    min-width: 0;
  }

  .mobile-menu-modal .language-switcher {
    margin: 0;
  }

  .mobile-menu-modal .language-switcher button,
  .mobile-menu-modal .language-switcher__separator {
    color: #0b0b0b;
  }

  .mobile-menu-modal__socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    width: 100%;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
  }

  .mobile-menu-modal__socials a {
    opacity: 0.6;
  }

  .stair-reveal__count {
    top: calc(1rem + env(safe-area-inset-top, 0px));
    right: var(--page-inset);
    bottom: auto;
  }

  .stair-reveal__text {
    right: var(--page-inset);
    width: auto;
    max-width: none;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .social-links {
    column-gap: 15px;
  }
}

a[href]:is(:hover, :focus-visible):not(:active) {
  opacity: var(--link-opacity-hover);
}

@media (max-width: 800px) {
  .overlay {
    padding: 1rem var(--page-inset);
  }

  #hero-canvas {
    inset: 0 auto auto 0;
    height: 70vh;
    height: 70svh;
  }

  .hero {
    overflow: visible;
  }

  html,
  body,
  * {
    cursor: auto !important;
  }

  body {
    overflow-y: visible;
  }

  .cursor-dot,
  .cursor-ellipse {
    display: none;
  }

  .top-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: linear-gradient(to bottom, rgba(11, 11, 11, 0.68) env(safe-area-inset-top, 0px), rgba(11, 11, 11, 0));
  }

  .site-header {
    padding: calc(1rem + env(safe-area-inset-top)) var(--page-inset) 0;
  }

  .about-sticky {
    padding: 100px 0 var(--stats-gap);
  }

  .about-head {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1rem;
    padding: 0;
  }

  .about-sub,
  .about-title {
    grid-column: 1;
    width: 100%;
    max-width: none;
  }

  .about-title {
    order: 1;
    font-size: clamp(1.5rem, 6vw, 2.4rem);
  }

  .about-sub {
    order: 2;
  }

  .service-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.8rem;
    column-gap: 0;
  }

  .service {
    opacity: 1;
    transform: none;
    transition: none;
    -webkit-tap-highlight-color: transparent;
  }

  .service-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "title description"
      "tools description"
      "tags tags";
    align-items: start;
    column-gap: 15px;
    row-gap: 1rem;
    min-width: 0;
  }

  .service-title {
    grid-area: title;
  }

  .service-body-wrap,
  .service-body,
  .service-desc {
    display: contents;
  }

  .service-desc > p:not(.service-tools) {
    grid-area: description;
  }

  .service-desc .service-tools {
    grid-area: tools;
    margin: 0;
  }

  .service-body {
    padding-top: 0;
  }

  .service-tags {
    grid-area: tags;
    width: 100%;
    height: 240px;
    min-height: 240px;
    margin-top: 0.4rem;
  }

  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    column-gap: 15px;
    row-gap: 0;
  }

  .stats-title {
    grid-column: 1 / -1;
    font-size: clamp(1.85rem, 8vw, 3.3rem);
  }

  .stats-intro {
    grid-column: 1 / -1;
    margin-bottom: 1.6rem;
  }

  .stats-grid .stat {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .stat-num {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .team {
    height: auto;
    min-height: calc(100vh - 100px);
    min-height: calc(100svh - 100px);
    overflow: visible;
  }

  .team-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    height: auto;
    min-height: calc(100vh - 100px);
    min-height: calc(100svh - 100px);
    overflow: visible;
  }

  .team-ui {
    display: contents;
  }

  .team-title {
    position: relative;
    z-index: 4;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    max-width: none;
    margin-bottom: 30px;
    font-size: clamp(1.5rem, 6vw, 2.4rem);
  }

  .team-grid {
    display: none;
  }

  .team-roles {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    grid-column: 1;
    grid-row: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 8px;
    width: 100% !important;
    height: auto !important;
    padding: 0;
    overflow: visible;
    transform: none;
    pointer-events: auto;
  }

  .team-role {
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100%;
    height: auto;
    min-height: 84px;
    padding: 0.75rem 0.5rem;
    transition: none;
  }

  .team-media {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    justify-self: center;
    width: 200vw;
    height: auto;
    min-height: 0;
    margin-top: 30px;
    aspect-ratio: 1742 / 980;
    overflow: visible;
  }

  .team-media__image {
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center;
  }

  .team-caption {
    position: absolute;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 4;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .team-caption__copy {
    min-height: 6.5rem;
  }

  .team-caption__desc {
    max-width: 32rem;
    font-size: 0.82rem;
  }

  .works {
    row-gap: 0;
  }

  .works-head,
  .works-bottom {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1rem;
    column-gap: 0;
  }

  .works-title,
  .works-intro,
  .works-nav,
  .works-process {
    grid-column: 1;
  }

  .works-title {
    order: 1;
    max-width: none;
    font-size: clamp(1.5rem, 6vw, 2.4rem);
  }

  .works-intro {
    order: 2;
    max-width: none;
    padding-top: 0;
  }

  .work-card {
    height: max(400px, calc((100vh - 360px) / 2));
    height: max(400px, calc((100svh - 360px) / 2));
  }

  .works-bottom {
    row-gap: 1.6rem;
  }

  .works-process {
    justify-self: stretch;
  }

  .works-process-lead {
    margin-left: 0;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 0;
  }

  .nav-menu {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-content {
    gap: 1.6rem;
  }

  .hero-top {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    row-gap: 15px;
    column-gap: 0;
  }

  .sp-box {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    height: 100px;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
  }

  /* No tap/press interaction on mobile: corners and button stay in the resting state */
  .sp-box:hover,
  .sp-box:focus-within {
    color: rgba(244, 239, 227, 0.45);
    background-position:
      left top, left top,
      right top, right top,
      left bottom, left bottom,
      right bottom, right bottom;
  }

  .sp-box:hover .btn__mask,
  .sp-box:focus-within .btn__mask {
    opacity: 1;
  }

  h1 {
    grid-column: 1;
    grid-row: 1;
    font-size: clamp(1.85rem, 8vw, 3.3rem);
    width: 100%;
    max-width: none;
  }

  .social-links {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem 1rem;
  }

  .btn {
    font-size: 16px;
    letter-spacing: 0.1em;
  }

  .contact-cta__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    padding: 30px;
  }

  .contact-cta__title {
    font-size: 32px;
  }

  .contact-cta__button.sp-box {
    grid-column: 1;
    grid-row: auto;
    align-self: end;
    width: 100%;
    height: 64px;
    margin: 0;
    color: var(--text);
  }

  .form-modal__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .form-modal__header {
    padding: calc(1rem + env(safe-area-inset-top)) var(--page-inset) 0;
  }

  .form-modal__media {
    display: none;
  }

  .form-modal__media .float {
    will-change: auto;
  }

  .form-modal__side {
    grid-row: 1;
    width: 100%;
    min-height: 100%;
    padding: 4.8rem var(--page-inset) calc(1.5rem + env(safe-area-inset-bottom, 0px));
    overflow: visible;
  }

  .request-form {
    width: 100%;
    max-width: none;
  }

  .request-field,
  .request-field input,
  .request-field textarea {
    width: 100%;
  }

  .form-modal__close {
    position: absolute;
    top: 50%;
    right: calc(30px - var(--page-inset));
  }

  .form-modal__header .nav-toggle {
    display: none;
  }

  .request-btn.sp-box {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    height: 4rem;
    margin-top: 0.25rem;
    color: rgba(10, 10, 10, 0.45);
  }

  .request-form__submit {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .request-form__status {
    max-width: none;
    min-height: 2.2em;
  }

  .request-btn.sp-box:not(:disabled):hover,
  .request-btn.sp-box:not(:disabled):focus-within,
  .request-btn.sp-box:not(:disabled):focus-visible {
    color: rgba(10, 10, 10, 0.45);
  }
}

@media (max-width: 800px) {
  a,
  a * {
    animation: none !important;
    transition: none !important;
  }

  a:hover .nav-link-line,
  a:focus-visible .nav-link-line,
  a:hover .social-link-line,
  a:focus-visible .social-link-line,
  a:hover .btn__line,
  a:focus-visible .btn__line {
    transform: none !important;
  }

  .work-card--cta::before {
    transition: none;
  }

  .work-card--cta:hover::before,
  .work-card--cta:focus-within::before {
    color: rgba(244, 239, 227, 0.45);
    background-position:
      left top, left top,
      right top, right top,
      left bottom, left bottom,
      right bottom, right bottom;
  }
}

/* ---------------------------------------------------------------------------
   Project request modal: contact tiles on the left, form on the menu line.
   --------------------------------------------------------------------------- */
.form-modal__panel {
  /* The first column ends where the header brand column ends, so the form starts on the menu line. */
  grid-template-columns: calc(var(--page-inset) + (100% - 2 * var(--page-inset)) * 0.36) minmax(0, 1fr);
  column-gap: 15px;
}

.form-modal__side {
  padding-left: 0;
}

.request-form {
  max-width: 56rem;
}

.request-form__row {
  display: grid;
  gap: inherit;
}

@media (min-width: 1101px) {
  .request-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.5rem;
  }
}

.request-form__aside {
  display: grid;
  gap: 0.6rem;
  max-width: 30rem;
}

.request-form__notice {
  margin: 0;
  color: rgba(10, 10, 10, 0.58);
  font-size: 0.76rem;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.request-form__notice a {
  color: #0a0a0a;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.form-modal__media {
  container-type: size;
}

.form-modal__contacts {
  /* Space between the tile grid and the form. */
  --contacts-gap: clamp(45px, 5vw, 90px);
  /* Four columns fit between the page inset and the gap. */
  --contact-cell: min(125px, calc((100cqw - var(--contacts-gap) - var(--page-inset)) / 4), 15cqh);
  position: absolute;
  inset: 0 var(--contacts-gap) 0 0;
}

/* Grid lines like the team section: columns counted from the right edge, rows centred. */
.form-modal__contacts::before,
.form-modal__contacts::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.form-modal__contacts::before {
  background-image: linear-gradient(to left, rgba(10, 10, 10, 0.1) 0 1px, transparent 1px 100%);
  background-position: right top;
  background-size: var(--contact-cell) 100%;
  background-repeat: repeat-x;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 50%, transparent 100%);
}

.form-modal__contacts::after {
  background-image: linear-gradient(to bottom, rgba(10, 10, 10, 0.1) 0 1px, transparent 1px 100%);
  background-position: left center;
  background-size: 100% var(--contact-cell);
  background-repeat: repeat-y;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 50%, transparent 100%);
}

.contact-tile {
  position: absolute;
  top: calc(50% - var(--contact-cell) / 2 + var(--r) * var(--contact-cell));
  right: calc(var(--k) * var(--contact-cell));
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: var(--contact-cell);
  height: var(--contact-cell);
  background: rgba(10, 10, 10, 0.1);
  color: #0a0a0a;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}

/* Beats the site-wide resting opacity for links. */
.form-modal__contacts > a.contact-tile:not([data-fade]) {
  opacity: 1;
}

.contact-tile:hover,
.contact-tile:focus-visible {
  background: #0a0a0a;
  color: #fff;
  transition-duration: 0.15s;
}

.contact-tile:focus-visible {
  outline: 2px solid #0a0a0a !important;
  outline-offset: 3px;
}

.contact-tile__icon {
  display: block;
  width: 24px;
  height: 24px;
}

/* Legal links at the bottom of the closing call to action. */
.contact-cta__legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.contact-cta__legal a {
  color: #fff;
  text-decoration: none;
}

@media (max-width: 800px) {
  .form-modal__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0;
  }

  .form-modal__side {
    min-height: auto;
    padding-left: var(--page-inset);
  }

  .form-modal__media {
    display: block;
    grid-row: 2;
    container-type: normal;
    padding: 0 var(--page-inset) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }

  .form-modal__contacts {
    position: static;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-modal__contacts::before,
  .form-modal__contacts::after {
    display: none;
  }

  .contact-tile {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }

  /* Staggered like the desktop grid: a checkerboard of three columns. */
  .contact-tile:nth-child(1) { grid-area: 1 / 1; }
  .contact-tile:nth-child(2) { grid-area: 1 / 3; }
  .contact-tile:nth-child(3) { grid-area: 2 / 2; }
  .contact-tile:nth-child(4) { grid-area: 3 / 1; }
  .contact-tile:nth-child(5) { grid-area: 3 / 3; }
  .contact-tile:nth-child(6) { grid-area: 4 / 2; }
  .contact-tile:nth-child(7) { grid-area: 5 / 1; }
}

/* WD Awards nominee badge: a white tab on the right edge, 50px under the menu; on hover it slides out and back. */
@font-face {
  font-family: 'WD Oswald';
  src: url('assets/fonts/wd-oswald.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

.wd-badge {
  position: fixed;
  right: 0;
  /* The menu bar ends 44px from the top (38px on phones). */
  top: calc(env(safe-area-inset-top, 0px) + 94px);
  /* Above the page, under the header, the request form and the intro overlays. */
  z-index: 95;
  display: flex;
  width: 220px;
  height: 150px;
  color: #59394a;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  /* Only the 70px tab shows until hover; the text panel waits off the right edge. */
  transform: translateX(150px);
  /* The same gentle ease both ways: it slides out on hover and glides back when the cursor leaves.
     Important, like the opacity: the site-wide link rule would otherwise replace the slide with its opacity fade. */
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) !important;
  /* Links rest dimmed site-wide; the badge stays solid. */
  opacity: 1 !important;
}

/* Mouse: open on hover. Touch screens open and close it with taps instead (the site script adds is-open),
   so a sticky touch "hover" never keeps it out. */
@media (hover: hover) {
  .wd-badge:hover {
    transform: none;
  }
}

.wd-badge:focus-visible,
.wd-badge.is-open {
  transform: none;
}

.wd-badge:focus-visible {
  outline: 2px solid #59394a;
  outline-offset: -4px;
}

.wd-badge__tab {
  flex: 0 0 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 14px;
}

.wd-badge__logo {
  display: block;
  width: 38px;
  height: auto;
  fill: currentColor;
}

.wd-badge__vertical {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 600 17px/1 'WD Oswald', 'Oswald', 'Arial Narrow', sans-serif;
  letter-spacing: 0.14em;
}

.wd-badge__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 16px 0 6px;
}

.wd-badge__title {
  font: 600 29px/0.98 'WD Oswald', 'Oswald', 'Arial Narrow', sans-serif;
  text-transform: uppercase;
}

.wd-badge__title span {
  display: block;
}

.wd-badge__date {
  font: 600 11px/1 'WD Oswald', 'Oswald', 'Arial Narrow', sans-serif;
  letter-spacing: 0.06em;
}

@media (max-width: 800px) {
  /* Phones: 30% smaller, still pinned to the right edge under the menu. */
  .wd-badge {
    top: calc(env(safe-area-inset-top, 0px) + 88px);
    transform-origin: 100% 0;
    scale: 0.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wd-badge {
    transition: none !important;
  }
}
