/* IYKYK: the public weareshur.com as one cryptic viewport. Layers, back to front: the
   shader canvas (.stage), grain, live type and the SVG wordmark, the gate, the veil.
   Type never carries filter, backdrop-filter, will-change or scale(). Desktop only. */

:root {
  --sans: var(--base-sans);
  --serif: var(--base-serif);
  --ground: #0a0a0a;
  --ink: #f2f1ec;
  --mute: #85847f;
  --cols: 12;
  --g: 24px;
  --m: 40px;
  --b: 8px;
  --col: calc((100vw - 2 * var(--m) - (var(--cols) - 1) * var(--g)) / var(--cols));
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.55, 0, 0.75, 0.2);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

[data-palette='carbon'] { --ground: #0a0a0a; --ink: #f2f1ec; --mute: #85847f; }
[data-palette='ink-field'] { --ground: #050505; --ink: #f3eee4; --mute: #8d877c; }
[data-palette='plaster-ink'] { --ground: #ece9e2; --ink: #121212; --mute: #6e6a62; color-scheme: light; }
[data-palette='gunmetal'] { --ground: #16181b; --ink: #d9dbde; --mute: #7a7f86; }

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.label {
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.page { position: fixed; inset: 0; overflow: hidden; }
.stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain-url, none);
  background-size: 160px 160px;
  image-rendering: pixelated;
  opacity: var(--grain-opacity, 0.14);
}

.wordmark { display: block; color: var(--ink); }
.wordmark svg { display: block; width: 100%; height: auto; }

/* The only contact, bottom left on the margin. */
.foot {
  position: absolute;
  left: var(--m);
  right: var(--m);
  bottom: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
}
.foot .contact-email { text-transform: none; }
.foot .review { color: var(--mute); }
.foot .review a:hover { color: var(--ink); }

/* Inversion on hover: the inverted copy is clipped open over the label. */
[data-inv] { position: relative; display: inline-flex; align-items: center; }
.inv {
  position: absolute;
  inset: -4px -8px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: var(--ground);
  background: var(--ink);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 360ms var(--ease-out);
  pointer-events: none;
  white-space: nowrap;
}
[data-inv]:hover > .inv,
[data-inv]:focus-visible > .inv,
[data-inv].is-hot > .inv { clip-path: inset(0 0 0 0); }

/* The gate field: one crisp line. Focus inverts it (ink ground, ground text). The field's
   value is never shown in clear: it is a password-type input. */
.gate { position: absolute; z-index: 5; display: flex; align-items: center; gap: 16px; }
.gate input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0.2em;
  color: var(--ink);
  border-bottom: 1px solid currentColor;
  outline: none;
  caret-color: currentColor;
  transition: color 240ms var(--ease-out), background-color 240ms var(--ease-out);
}
/* focus: the type and caret only, no plate (owner: no box inversion anywhere) */
.gate input:focus { color: var(--ink); caret-color: var(--ink); }
.gate input:focus::placeholder { opacity: 0.28; }
.gate input::placeholder { color: inherit; opacity: 0.5; letter-spacing: 0.04em; }
.gate button { flex: none; }

/* The veil that carries you inside. */
.veil { position: fixed; inset: 0; z-index: 20; background: var(--ground); opacity: 0; pointer-events: none; transition: opacity 640ms var(--ease-in); }
.is-entering .veil { opacity: 1; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* IYKYK: the word itself (owner, 8:55 PM PT: "it literally needs to say IYKYK"). Live text
   on the grid in the house type, Geist 800 uppercase, crisp and still; the shaders and motion
   play around and behind it. It inverts on hover by swapping colour tokens. Real copy, not a
   placeholder. */
.iykyk {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: default;
  transition: background-color 280ms var(--ease-out), color 280ms var(--ease-out);
}
.iykyk:hover { background: var(--ink); color: var(--ground); }
