@font-face {
  font-family: "Helvetica Neue LT Pro Light Condensed";
  src:
    url("assets/fonts/HelveticaNeueLTPro-LtCn.otf")
    format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

:root {
  --home-background: #111211;
  --home-ink: #e8e4db;
  --home-wordmark-filter: none;
  --intro-background: #000000;

  --type-primary: #e8e4db;
  --type-focus: #ffffff;
  --type-receded: #696969;

  --font-ui:
    "Helvetica Neue LT Pro Light Condensed";

  --font-size-ui: 12px;
  --line-height-ui: 1.2;
  --tracking-ui: 0.19em;

  --card-width: 15.612em;

  --wordmark-width: 84px;
  --wordmark-height: 12px;
  --wordmark-scale: 1;

  --identity-height: 12px;

  --descriptor-gap: 7.2px;
  --nav-gap: 28.8px;

  --card-y-offset: -1px;

  --target-block-size: 44px;
  --target-inline-padding: 12px;

  --resolver-softness: 470ms;

  --info-arrow-width: 54px;
  --info-arrow-top: 38px;
  --info-arrow-right: 42px;
  --info-arrow-stroke: 0.8;
  --info-arrow-hover-travel: 4px;
  --info-arrow-hover-duration: 580ms;

  --ease-surface:
    cubic-bezier(0.16, 1, 0.3, 1);

  --ease-material:
    cubic-bezier(0.22, 1, 0.36, 1);

  --ease-text:
    cubic-bezier(0.19, 1, 0.22, 1);

  --ease-micro:
    cubic-bezier(0.33, 1, 0.68, 1);
}

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

html,
body {
  width: 100%;
  min-width: 100%;

  height: 100%;
  min-height: 100%;

  margin: 0;

  overflow: hidden;
  overscroll-behavior: none;

  background: var(--home-background);
}

html {
  min-height: 100%;
  min-height: 100dvh;

  color-scheme: dark;

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;

  color: var(--type-primary);

  font-family: var(--font-ui);
  font-size: var(--font-size-ui);
  font-style: normal;
  font-weight: 300;
  line-height: var(--line-height-ui);
  letter-spacing: var(--tracking-ui);

  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

.snippet-exclude {
  display: contents;
}

.home {
  position: relative;

  width: 100%;

  height: 100vh;
  height: 100svh;
  height: 100dvh;

  overflow: hidden;
  isolation: isolate;

  background: var(--home-background);
}

/* -------------------------------------------------------
   COMPOSITOR ENVIRONMENT LAYER
   ------------------------------------------------------- */

.environment-overlay {
  position: absolute;
  z-index: 0;

  inset: 0;

  background: var(--intro-background);
  opacity: 0;

  pointer-events: none;
  contain: strict;
}

.js.onload-motion-enabled .environment-overlay {
  opacity: 1;
}

.js.home-ready .environment-overlay {
  opacity: 0;
}

/* -------------------------------------------------------
   PROCEDURAL GRAIN
   ------------------------------------------------------- */

.grain-canvas {
  position: absolute;
  z-index: 1;

  inset: 0;

  display: block;

  width: 100%;
  height: 100%;

  opacity: 0;

  pointer-events: none;
  contain: strict;
}

/* -------------------------------------------------------
   HOME
   ------------------------------------------------------- */

.home-card {
  position: absolute;
  z-index: 2;

  color: var(--home-ink);

  top: calc(50% + var(--card-y-offset));
  left: 50%;

  width: var(--card-width);

  transform: translate(-50%, -50%);
}

.identity-row {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  width: 100%;
  height: var(--identity-height);
}

.wordmark {
  display: block;
  flex: 0 0 auto;

  width: var(--wordmark-width);
  height: var(--wordmark-height);

  transform: scale(var(--wordmark-scale));
  transform-origin: left center;

  filter: var(--home-wordmark-filter);
}

.identity-mark {
  display: block;
  flex: 0 0 auto;

  margin-top: 3.6px;

  font: inherit;

  line-height: 1;
  letter-spacing: 0;
}

.descriptor {
  margin:
    var(--descriptor-gap)
    0
    0;

  white-space: nowrap;
}

.home-nav {
  display: flex;

  align-items: baseline;
  justify-content: space-between;

  width: 100%;

  margin-top: var(--nav-gap);
}

.home-control {
  touch-action: manipulation;
  appearance: none;
  -webkit-appearance: none;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 0;
  min-height: var(--target-block-size);

  margin-block:
    calc(
      (
        var(--target-block-size) -
        1.2em
      ) / -2
    );

  margin-inline:
    calc(
      var(--target-inline-padding) * -1
    );

  padding-block:
    calc(
      (
        var(--target-block-size) -
        1.2em
      ) / 2
    );

  padding-inline:
    var(--target-inline-padding);

  border: 0;
  border-radius: 0;

  background: transparent;
  color: inherit;

  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;

  text-align: left;
  white-space: nowrap;

  cursor: pointer;

  -webkit-tap-highlight-color: transparent;
}


.home-control-label {
  display: inline-block;
  pointer-events: none;
}

/* Five tiny HOME elements are the complete motion surface. Keeping these on the
   compositor is inexpensive and avoids first-interaction promotion jank on mobile. */
.wordmark,
.identity-mark,
.descriptor,
.home-control {
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.home-control:focus {
  outline: none;
}

.home-control:focus-visible {
  outline:
    1px solid
    color-mix(in srgb, currentColor 55%, transparent);

  outline-offset: -4px;
}

.js.onload-motion-enabled .wordmark,
.js.onload-motion-enabled .identity-mark,
.js.onload-motion-enabled .descriptor,
.js.onload-motion-enabled .home-control {
  opacity: 0;
}

.js.home-ready .wordmark,
.js.home-ready .identity-mark,
.js.home-ready .descriptor,
.js.home-ready .home-control {
  opacity: 1;
}

/* -------------------------------------------------------
   DYNAMIC INFO VIEW
   ------------------------------------------------------- */

.view-mount {
  position: absolute;
  z-index: 4;

  inset: 0;

  pointer-events: none;
}

.info-view {
  position: absolute;

  inset: 0;

  color: var(--type-primary);

  pointer-events: none;
}

.info-view.is-active {
  pointer-events: auto;
}

.info-content {
  position: absolute;

  top: 50%;
  left: 50%;

  width: min(31rem, calc(100vw - 72px));

  transform: translate(-50%, -50%);
}

/*
 * Deliberate body-text exception.
 * Everything else on the site uses the global UI token.
 */
.info-statement {
  position: relative;

  max-width: 31rem;

  margin: 0;

  line-height: 1.42;
}

.info-line-list {
  display: block;
}

.info-line {
  display: block;

  width: max-content;
  max-width: 100%;

  white-space: pre;

  will-change: transform, opacity, filter;
}

.info-statement-measure {
  position: absolute !important;
  z-index: -1 !important;

  visibility: hidden !important;

  pointer-events: none !important;
}

.info-meta {
  display: flex;
  flex-wrap: wrap;

  align-items: baseline;

  gap: 10px 26px;

  margin-top: 34px;
}

.info-link,
.info-return {
  color: inherit;

  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
}

.info-link {
  display: inline-block;
  touch-action: manipulation;

  white-space: nowrap;
}

.info-return {
  appearance: none;
  touch-action: manipulation;
  -webkit-appearance: none;

  position: fixed;
  z-index: 2;

  top: max(
    var(--info-arrow-top),
    env(safe-area-inset-top)
  );

  right: max(
    var(--info-arrow-right),
    env(safe-area-inset-right)
  );

  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: calc(var(--info-arrow-width) + 24px);
  height: var(--target-block-size);

  margin: 0 -12px 0 0;
  padding: 0 12px;

  border: 0;
  border-radius: 0;

  background: transparent;
  color: var(--type-primary);

  opacity: 0;
  visibility: hidden;

  pointer-events: none;

  transform: translateX(-4px);

  cursor: pointer;

  transition:
    transform
    var(--info-arrow-hover-duration)
    var(--ease-text),
    opacity
    var(--info-arrow-hover-duration)
    var(--ease-text);

  -webkit-tap-highlight-color: transparent;
}

.info-return.is-revealed {
  opacity: 1;
  visibility: visible;

  pointer-events: auto;

  transform: translateX(0);
}

.info-return-svg {
  display: block;

  width: var(--info-arrow-width);
  height: auto;

  overflow: visible;

  fill: none;
  stroke: currentColor;
  stroke-width: var(--info-arrow-stroke);
  stroke-linecap: square;
  stroke-linejoin: miter;

  vector-effect: non-scaling-stroke;
}

@media (hover: hover) and (pointer: fine) {
  .info-return:hover {
    transform:
      translateX(
        var(--info-arrow-hover-travel)
      );
  }
}

.info-link:focus,
.info-return:focus {
  outline: none;
}

.info-link:focus-visible {
  outline:
    1px solid
    color-mix(in srgb, currentColor 55%, transparent);

  outline-offset: 4px;
}

.info-return:focus-visible {
  transform:
    translateX(
      var(--info-arrow-hover-travel)
    );
}

/* -------------------------------------------------------
   BISMILLAH INTRO
   ------------------------------------------------------- */

.intro-layer {
  position: fixed;
  z-index: 6;

  inset: 0;

  display: grid;

  place-items: center;

  visibility: hidden;

  pointer-events: none;
}

.bismillah {
  width: max-content;
  max-width: calc(100vw - 32px);

  margin: 0;

  color: var(--type-primary);

  font-family: var(--font-ui);
  font-size: var(--font-size-ui);
  font-style: normal;
  font-weight: 300;
  line-height: var(--line-height-ui);
  letter-spacing: var(--tracking-ui);

  text-align: center;
  white-space: nowrap;

  opacity: 0;
}

/* -------------------------------------------------------
   OFFICE EXIT
   ------------------------------------------------------- */

.office-exit-layer {
  position: fixed;
  z-index: 7;

  inset: 0;

  display: grid;

  place-items: center;

  visibility: hidden;

  pointer-events: none;
}

.office-exit-text,
.office-dots {
  position: absolute;

  width: max-content;
  max-width: calc(100vw - 32px);

  margin: 0;

  color: var(--type-primary);

  font-family: var(--font-ui);
  font-size: var(--font-size-ui);
  font-style: normal;
  font-weight: 300;
  line-height: var(--line-height-ui);
  letter-spacing: var(--tracking-ui);

  text-align: center;
  white-space: nowrap;

  opacity: 0;
}

/* -------------------------------------------------------
   CHARACTER RESOLUTION
   ------------------------------------------------------- */

/* The resolver never swaps back to a differently formatted text node.
   The correct glyph occupies layout space from frame one while a ghost glyph
   crossfades above it. This keeps the final frame geometrically identical and
   removes the old end-of-animation kerning/layout snap. */
.resolver-visual {
  white-space: inherit;
}

.resolver-cell {
  position: relative;
  display: inline-block;
  white-space: pre;
}

.resolver-space {
  white-space: pre;
}

.resolver-target {
  display: inline-block;
  will-change: opacity;
}

.resolver-ghost {
  position: absolute;
  inset: 0 auto auto 0;

  display: inline-block;

  opacity: 0;
  pointer-events: none;
  will-change: opacity;
}

/* -------------------------------------------------------
   ACCESSIBILITY
   ------------------------------------------------------- */

.sr-only {
  position: absolute;

  width: 1px;
  height: 1px;

  padding: 0;
  margin: -1px;

  overflow: hidden;

  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);

  white-space: nowrap;

  border: 0;
}

/* -------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------- */

@media (max-width: 680px) {
  .info-content {
    width: min(27rem, calc(100vw - 56px));
  }

  .info-return {
    top: max(
      clamp(22px, 7vw, var(--info-arrow-top)),
      env(safe-area-inset-top)
    );

    right: max(
      clamp(18px, 6vw, var(--info-arrow-right)),
      env(safe-area-inset-right)
    );
  }
}

@media (max-width: 480px) {
  :root {
    --target-inline-padding: 14px;
  }

  .info-content {
    width: calc(100vw - 48px);
  }

  .info-meta {
    gap: 9px 20px;
    margin-top: 30px;
  }
}

/* -------------------------------------------------------
   REDUCED TRANSPARENCY
   ------------------------------------------------------- */

@media (prefers-reduced-transparency: reduce) {
  .grain-canvas {
    display: none !important;
  }
}

/* -------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  /* Runtime JS owns the reduced-motion choreography so the experience remains
     soft and deliberate instead of collapsing into near-instant CSS transitions. */
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
