/* SLIMY.LT - coming soon */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-a.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00AB, U+00B0, U+00BB, U+00D7, U+2013-2014, U+2018-201A, U+201C-201E, U+2022, U+2026, U+20AC;
}
/* Lithuanian letters only */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-lt.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  unicode-range: U+0104-0105, U+010C-010D, U+0116-0119, U+012E-012F, U+0160-0161, U+016A-016B, U+0172-0173, U+017D-017E;
}

:root {
  --bg: #141416;
  --red: #E5132E;
  --ink: #EDEDEF;
  --ink-2: #A3A3AB;
  --ink-3: #8E8E96;
  --cell: 64px;
  --gx: 0px;
  --gy: 0px;
  --gutter: clamp(16px, 3.2vw, 44px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

/* ---------- the wall ---------- */

.wall {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.wall > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* graphite wall, lit softly from the front */
.wash {
  background:
    radial-gradient(72% 64% at 50% 46%, #2B2B30, rgb(43 43 48 / 0) 100%),
    linear-gradient(180deg, #1A1A1D, #121214);
  background:
    radial-gradient(72% 64% at 50% 46% in oklab, #2B2B30, rgb(43 43 48 / 0) 100%),
    linear-gradient(180deg in oklab, #1A1A1D, #121214);
}

.glow, .lit { display: block; }

.lines {
  background-image:
    linear-gradient(to right, rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: var(--gx) var(--gy);
}

/* light that only lands on the grid lines */
.lit {
  -webkit-mask-image:
    linear-gradient(to right, #000 1px, transparent 1px),
    linear-gradient(to bottom, #000 1px, transparent 1px);
  mask-image:
    linear-gradient(to right, #000 1px, transparent 1px),
    linear-gradient(to bottom, #000 1px, transparent 1px);
  -webkit-mask-size: var(--cell) var(--cell);
  mask-size: var(--cell) var(--cell);
  -webkit-mask-position: var(--gx) var(--gy);
  mask-position: var(--gx) var(--gy);
}

.cells > .cell {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--cell);
  height: var(--cell);
  opacity: 0;
  background: rgb(255 255 255 / .035);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .13);
}
.cells > .cell--warm {
  background: rgb(229 19 46 / .1);
  box-shadow: inset 0 0 0 1px rgb(255 110 125 / .32);
}
.cells > .cell--hover {
  background: rgb(255 255 255 / .045);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .24);
  transition: transform .14s var(--ease-out), opacity .4s ease;
}
.cells > .cell--hover.on { opacity: 1; }

.wall > .corner {
  inset: auto;
  width: 18px;
  height: 18px;
  border: 0 solid rgb(255 255 255 / .38);
}
.wall > .corner--tl { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.wall > .corner--tr { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.wall > .corner--br { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.wall > .corner--bl { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; }

.grain {
  background: url("/grain.png") repeat;
  background-size: 160px 160px;
  opacity: .06;
  mix-blend-mode: overlay;
}

/* ---------- top and bottom bars ---------- */

.bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 18px calc(var(--gutter) + 8px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(14px, .95vw, 17px);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: .04em;
  line-height: 1;
}
.brand__name span { color: var(--red); }

.bar--top { z-index: 3; } /* the contact menu drops over the stage */

/* ---------- contact picker (top right) ---------- */

.contact { position: relative; }

.contact__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px 0 7px;
  border-radius: 2px;
  border: 1px solid rgb(255 255 255 / .16);
  background: rgb(20 20 22 / .6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  font-stretch: 115%;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s var(--ease-out);
}
.contact__btn:hover,
.contact__btn[aria-expanded="true"] { border-color: rgb(255 255 255 / .32); background: rgb(30 30 33 / .75); }
.contact__btn:active { transform: translateY(1px); }
.contact__btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.contact__faces { display: inline-flex; }
.contact__faces img {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 2px #1C1C1F;
}
.contact__faces img + img { margin-left: -7px; }

.contact__caret { width: 12px; height: 12px; color: var(--ink-3); flex: none; transition: transform .25s var(--ease-out); }
.contact__btn[aria-expanded="true"] .contact__caret { transform: rotate(180deg); }

.contact__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  padding: 6px;
  border-radius: 2px;
  border: 1px solid rgb(255 255 255 / .12);
  background: rgb(24 24 27 / .95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .05), 0 28px 70px -24px rgb(0 0 0 / .9);
  transform-origin: top right;
}
/* thin red light along the top edge */
.contact__menu::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 12px;
  right: 12px;
  height: 1px;
  background: linear-gradient(90deg, rgb(229 19 46 / 0), rgb(229 19 46 / .95) 30%, rgb(229 19 46 / .95) 70%, rgb(229 19 46 / 0));
}

.contact__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px 8px;
  font-size: 11px;
  font-weight: 650;
  font-stretch: 112%;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact__dc { width: 14px; height: 14px; color: var(--red); flex: none; }

.contact__item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s ease;
}
.contact__item:hover { background: rgb(255 255 255 / .05); }
.contact__item:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* avatar framed by red corner brackets, like the corners of the page */
.contact__avatar {
  position: relative;
  width: 48px;
  height: 48px;
  margin: 4px;
}
.contact__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
}
.contact__avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
  pointer-events: none;
}
.contact__avatar::after {
  content: "";
  position: absolute;
  inset: -5px;
  pointer-events: none;
  background:
    linear-gradient(var(--red) 0 0) top left / 9px 1.5px,
    linear-gradient(var(--red) 0 0) top left / 1.5px 9px,
    linear-gradient(var(--red) 0 0) top right / 9px 1.5px,
    linear-gradient(var(--red) 0 0) top right / 1.5px 9px,
    linear-gradient(var(--red) 0 0) bottom left / 9px 1.5px,
    linear-gradient(var(--red) 0 0) bottom left / 1.5px 9px,
    linear-gradient(var(--red) 0 0) bottom right / 9px 1.5px,
    linear-gradient(var(--red) 0 0) bottom right / 1.5px 9px;
  background-repeat: no-repeat;
  opacity: .6;
  transform: scale(1.06);
  transition: transform .3s var(--ease-out), opacity .3s ease;
}
.contact__item:hover .contact__avatar::after { opacity: 1; transform: scale(1); }

.contact__name { display: grid; gap: 6px; line-height: 1.1; text-align: left; }
.contact__name b {
  font-size: 15px;
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.contact__name small {
  font-size: 10.5px;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #FF4D5E;
}

.contact__go {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  color: var(--ink-3);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
  transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}
.contact__go svg { width: 14px; height: 14px; transition: transform .25s var(--ease-out); }
.contact__item:hover .contact__go { color: #fff; background: var(--red); box-shadow: none; }
.contact__item:hover .contact__go svg { transform: translate(1px, -1px); }

.bar--bottom {
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--ink-3);
}

.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: color .2s ease;
}
.social:hover { color: var(--ink); }
.social svg { width: 18px; height: 18px; }

/* ---------- stage ---------- */

.stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 16px 40px;
  text-align: center;
}

/* the mark is a tiny version of the room: four lit corners */
.emblem {
  width: clamp(38px, 3.3vw, 54px);
  height: auto;
  margin-bottom: clamp(24px, 2.6vw, 38px);
  color: var(--ink);
  overflow: visible;
}
.emblem .mark__lit { fill: var(--red); filter: drop-shadow(0 0 4px rgb(229 19 46 / .75)); }

.title {
  margin: 0;
  font-size: clamp(54px, 8.2vw, 136px);
  font-weight: 900;
  font-stretch: 125%;
  line-height: .9;
  letter-spacing: -.012em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 0 .03em 0 rgb(0 0 0 / .28), 0 .2em .5em rgb(8 8 10 / .45);
}
.title .w { display: inline-block; white-space: nowrap; }
.title .ch { display: inline-block; }

/* all-caps tagline, tracked out; the left pad balances the trailing letter-space */
.sub {
  margin: 28px 0 0;
  padding-left: .22em;
  font-size: clamp(12px, 1.05vw, 17px);
  font-weight: 650;
  font-stretch: 115%;
  letter-spacing: .22em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ---------- call to action ---------- */

.cta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 24px 0 20px;
  border-radius: 2px;
  background: linear-gradient(180deg, #F4F4F6, #DCDCE0);
  color: #141416;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  font-stretch: 106%;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .9),
    0 1px 0 rgb(0 0 0 / .4),
    0 18px 40px -16px rgb(0 0 0 / .7);
  transition: transform .25s var(--ease-out), box-shadow .25s ease, background .25s ease;
}
.cta svg { width: 20px; height: 20px; flex: none; color: var(--red); }
.cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #FFFFFF, #E6E6EA);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .9),
    0 1px 0 rgb(0 0 0 / .4),
    0 22px 46px -16px rgb(229 19 46 / .45);
}
.cta:active { transform: translateY(1px) scale(.98); }

.brand:focus-visible,
.cta:focus-visible,
.social:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* ---------- phones ---------- */

@media (max-width: 767px) {
  .bar { min-height: 60px; padding: 16px calc(var(--gutter) + 6px); }
  .brand { font-size: 14px; }
  .title { font-size: min(15.6vw, 96px); line-height: .92; }
  .title .w { display: block; }
  .sub { margin-top: 22px; font-size: 11.5px; letter-spacing: .15em; padding-left: .15em; }
  .wall > .corner { display: none; }
}

/* ---------- intro (motion allowed only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js:not(.is-ready) .stage > *,
  .js:not(.is-ready) .bar > * { opacity: 0; }

  .is-ready .bar > * { animation: fade 1s var(--ease-out) both .95s; }
  .is-ready .emblem { animation: fade .6s ease both; }
  /* each corner square flickers on with its corner of the page */
  .is-ready .emblem .mark__lit rect { animation: flick .17s step-end both; }
  .is-ready .emblem .mark__lit rect:nth-child(1) { animation-delay: .15s; }
  .is-ready .emblem .mark__lit rect:nth-child(2) { animation-delay: .32s; }
  .is-ready .emblem .mark__lit rect:nth-child(3) { animation-delay: .49s; }
  .is-ready .emblem .mark__lit rect:nth-child(4) { animation-delay: .66s; }
  .is-ready .title .ch { animation: ch 1.1s var(--ease-out) both; animation-delay: calc(.8s + var(--i) * 42ms); }
  .is-ready .sub { animation: rise .9s var(--ease-out) both 1.25s; }
  .is-ready .cta { animation: rise .9s var(--ease-out) both 1.45s; }
}

@keyframes fade { from { opacity: 0; } }
@keyframes flick {
  0% { opacity: .18; }
  1% { opacity: 1; }
  27% { opacity: .12; }
  50% { opacity: .85; }
  74% { opacity: .25; }
  100% { opacity: 1; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes ch { from { opacity: 0; transform: translateY(.28em); filter: blur(10px); } }

@media (prefers-reduced-motion: reduce) {
  .cells > .cell--hover { transition: none; }
  .cta { transition: none; }
  .contact__btn, .contact__caret, .contact__item, .contact__go, .contact__go svg, .contact__avatar::after { transition: none; }
}

/* ---------- share-image mode (/?og) ---------- */

.og .contact,
.og .bar--bottom,
.og .cta { display: none !important; }
.og .title { font-size: 134px; }
.og .sub { font-size: 20px; margin-top: 34px; }
