@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-variable-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ink: #0b0c0e;
  --paper: #eeece7;
  --muted: #8e8c87;
  --quiet: #7e7c77;
  --brass: #caa86d;
  --brass-bright: #e0c38b;
  --grid-minor: rgba(238, 236, 231, .032);
  --grid-major: rgba(238, 236, 231, .065);
  --guide: rgba(238, 236, 231, .12);
  --rule: rgba(238, 236, 231, .27);
  --frame: rgba(238, 236, 231, .1);
  --gutter: clamp(1.35rem, 4.2vw, 4.6rem);
  --offset: clamp(0rem, calc(16vw - 7.2rem), 7.75rem);
  --datum-x: 50vw;
  --datum-y: 43vh;
  --pointer-x: 50%;
  --pointer-y: 43%;
  --ease-draw: cubic-bezier(.55, .06, .16, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html {
  min-width: 280px;
  background: var(--ink);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  user-select: none;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--paper);
  background: var(--ink);
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  font-weight: 430;
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

a { color: inherit; }
::selection { color: var(--ink); background: var(--brass-bright); }

.canvas,
.canvas::before,
.canvas::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.canvas {
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(90% 74% at 21% 8%, rgba(255, 247, 231, .045), transparent 62%),
    linear-gradient(145deg, #0d0e10 0%, var(--ink) 48%, #090a0b 100%);
}

.canvas::before {
  content: "";
  inset: -12px;
  background-image:
    linear-gradient(to right, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-major) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-minor) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: center;
  transform: translate3d(var(--drift-x, 0), var(--drift-y, 0), 0);
  will-change: transform;
}

.canvas::after {
  content: "";
  background:
    radial-gradient(420px circle at var(--pointer-x) var(--pointer-y), rgba(202, 168, 109, .045), transparent 68%),
    radial-gradient(120% 105% at 50% 45%, transparent 48%, rgba(11, 12, 14, .48) 100%);
}

.datum {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  background: rgba(238, 236, 231, .18);
  opacity: 0;
  animation: datum-in .8s 1.05s ease forwards;
  transition: opacity .24s ease;
}

.cursor-active .datum { opacity: 0 !important; }

.datum--vertical {
  top: 0;
  bottom: 0;
  left: var(--datum-x);
  width: 1px;
}

.datum--horizontal {
  left: 0;
  right: 0;
  top: var(--datum-y);
  height: 1px;
}

.frame {
  position: fixed;
  z-index: 4;
  inset: clamp(.55rem, 1.15vw, 1.1rem);
  border: 1px solid var(--frame);
  pointer-events: none;
}

.frame i {
  position: absolute;
  width: .48rem;
  height: .48rem;
  border: 0 solid var(--brass);
  opacity: .7;
}

.frame i:nth-child(1) { top: -1px; left: -1px; border-top-width: 1px; border-left-width: 1px; }
.frame i:nth-child(2) { top: -1px; right: -1px; border-top-width: 1px; border-right-width: 1px; }
.frame i:nth-child(3) { right: -1px; bottom: -1px; border-right-width: 1px; border-bottom-width: 1px; }
.frame i:nth-child(4) { bottom: -1px; left: -1px; border-bottom-width: 1px; border-left-width: 1px; }

.sheet {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 1760px;
  margin-inline: auto;
  padding:
    max(var(--gutter), env(safe-area-inset-top))
    max(var(--gutter), env(safe-area-inset-right))
    max(var(--gutter), env(safe-area-inset-bottom))
    max(var(--gutter), env(safe-area-inset-left));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vh, 3rem);
}

.micro {
  font-size: .66rem;
  font-weight: 540;
  line-height: 1.3;
  letter-spacing: .17em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.bar,
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  color: var(--quiet);
}

.bar p,
.foot p { margin: 0; }

.bar strong,
.foot strong { color: var(--muted); font-weight: 570; }

.bar__mode {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  color: var(--muted);
  transition: color .3s ease;
}

.bar__mode-mobile { display: none; }

.object-focus .bar__mode { color: var(--brass-bright); }

.bar__mode::before {
  content: "";
  width: .34rem;
  height: .34rem;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 0 rgba(202, 168, 109, .32);
  animation: signal 3.2s 2.4s ease-out infinite;
}

.stage {
  align-self: center;
  width: min(76rem, calc(100vw - (2 * var(--gutter)) - var(--offset)));
  min-width: 0;
  margin-left: var(--offset);
  padding-block: clamp(.5rem, 2vh, 1.5rem);
  container-type: inline-size;
}

.mark {
  position: relative;
  display: inline-block;
  max-width: 100%;
  isolation: isolate;
}

.wordmark {
  position: relative;
  z-index: 2;
  margin: 0;
  width: var(--word-ink-width, max-content);
  max-width: 100%;
  color: var(--paper);
  font-size: min(17.4vw, 14.75rem, 38vh);
  font-size: min(calc(100cqi / 3.9), 14.75rem, 38vh);
  font-weight: 640;
  font-stretch: 95%;
  line-height: .84;
  letter-spacing: -.044em;
  white-space: nowrap;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
}

.wordmark__clip {
  display: block;
  width: 100%;
  overflow: hidden;
}

.wordmark__text {
  display: block;
  width: 100%;
  transform: translateY(112%);
  animation: word-in 1.05s .48s var(--ease-out) forwards;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.construction {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.guide {
  position: absolute;
  display: block;
  background: var(--guide);
  opacity: 0;
}

.guide--h {
  left: clamp(-1rem, -1.8vw, -.5rem);
  right: clamp(-1rem, -1.8vw, -.5rem);
  top: var(--y);
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  animation: guide-h 1.25s calc(.22s + (var(--i) * .08s)) var(--ease-draw) forwards;
}

.guide--cap { --y: 7%; --i: 0; }
.guide--mean { --y: 31.5%; --i: 1; }
.guide--base { --y: 91%; --i: 2; }

.guide--v {
  top: -.65rem;
  bottom: -.65rem;
  left: var(--x, 0px);
  width: 1px;
  transform: scaleY(0);
  transform-origin: top;
  animation: guide-v 1.3s calc(.3s + (var(--i) * .045s)) var(--ease-draw) forwards;
}

.dimension {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: calc(-1 * clamp(1.75rem, 3.2vw, 2.7rem));
  height: 1px;
  color: var(--muted);
  pointer-events: none;
}

.dimension__line {
  position: absolute;
  inset: 0;
  height: 1px;
  background: var(--rule);
  transform: scaleX(0);
  transform-origin: left;
  animation: guide-h .9s 1.18s var(--ease-draw) forwards;
}

.dimension__ext {
  position: absolute;
  top: 0;
  width: 1px;
  height: clamp(1.25rem, 2.7vw, 2.2rem);
  background: var(--rule);
  transform: scaleY(0);
  transform-origin: top;
  animation: guide-v .52s 1.25s var(--ease-draw) forwards;
}

.dimension__ext--a { left: 0; }
.dimension__ext--b { right: 0; }

.dimension__tick {
  position: absolute;
  top: 0;
  width: .72rem;
  height: 1px;
  background: var(--rule);
  opacity: 0;
  transform: rotate(-45deg);
  animation: fade-in .3s 1.68s ease forwards;
}

.dimension__tick--a { left: -.36rem; }
.dimension__tick--b { right: -.36rem; }

.dimension__value {
  position: absolute;
  left: 50%;
  bottom: .55rem;
  padding-inline: .65rem;
  color: var(--muted);
  background: var(--ink);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
  animation: fade-in .45s 1.7s ease forwards;
}

.dimension__value b { color: var(--brass-bright); font-weight: 570; }

.selection {
  position: absolute;
  z-index: 3;
  left: var(--sel-x, 0px);
  top: var(--sel-y, 0px);
  width: var(--sel-w, 0px);
  height: var(--sel-h, 0px);
  border: 1px solid var(--brass);
  opacity: 0;
  transform: translate3d(0, 0, 0) scale(.975);
  transform-origin: center;
  pointer-events: none;
  transition:
    left .32s var(--ease-out),
    top .32s var(--ease-out),
    width .32s var(--ease-out),
    height .32s var(--ease-out),
    opacity .26s ease,
    transform .42s var(--ease-out);
}

.geometry-ready.selection-visible .selection { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

.selection::before {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(202, 168, 109, .22);
}

.selection__handle {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--ink);
  border: 1px solid var(--brass-bright);
  transform: translate(-50%, -50%);
}

.selection__handle:nth-child(1) { left: 0; top: 0; }
.selection__handle:nth-child(2) { left: 50%; top: 0; }
.selection__handle:nth-child(3) { left: 100%; top: 0; }
.selection__handle:nth-child(4) { left: 100%; top: 50%; }
.selection__handle:nth-child(5) { left: 100%; top: 100%; }
.selection__handle:nth-child(6) { left: 50%; top: 100%; }
.selection__handle:nth-child(7) { left: 0; top: 100%; }
.selection__handle:nth-child(8) { left: 0; top: 50%; }

.selection__label {
  position: absolute;
  left: var(--label-x, 0px);
  top: calc(100% + .55rem);
  bottom: auto;
  padding: .26rem .42rem;
  color: var(--brass-bright);
  background: rgba(11, 12, 14, .9);
  border: 1px solid rgba(202, 168, 109, .24);
  line-height: 1;
  white-space: nowrap;
}

.touch-inspector {
  position: absolute;
  z-index: 4;
  top: calc(100% + .7rem);
  left: 0;
  right: 0;
  display: none;
  align-items: center;
  min-height: 1.45rem;
  padding-top: .35rem;
  color: var(--quiet);
  border-top: 1px solid rgba(238, 236, 231, .1);
  pointer-events: none;
}

.touch-inspector__value {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: .4rem;
  color: var(--brass-bright);
  white-space: nowrap;
}

.touch-inspector__value::before {
  content: "";
  width: .28rem;
  height: .28rem;
  border-radius: 50%;
  background: var(--brass);
}

.touch-inspector__hint {
  margin-left: auto;
  color: var(--quiet);
}

.copy {
  margin-top: clamp(2.2rem, 5.2vh, 3.6rem);
}

.lead {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -.015em;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(.75rem);
  animation: rise-in .78s 1.34s var(--ease-out) forwards;
}

.lead strong {
  display: block;
  color: var(--paper);
  font-weight: 550;
}

.mail {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  margin-top: clamp(1.45rem, 3.5vh, 2.25rem);
  padding: .15rem 0;
  color: var(--brass-bright);
  font-size: clamp(1.18rem, 1.5vw, 1.55rem);
  font-weight: 550;
  letter-spacing: -.025em;
  line-height: 1.15;
  text-decoration: none;
  opacity: 0;
  transform: translateY(.75rem);
  animation: rise-in .78s 1.48s var(--ease-out) forwards;
}

.mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .08rem;
  height: 1px;
  background: currentColor;
  opacity: .32;
  transform-origin: left;
  transition: opacity .3s ease, transform .55s var(--ease-out);
}

.mail__tag {
  position: absolute;
  left: calc(100% + 1.1rem);
  top: 50%;
  padding: .25rem .4rem;
  border: 1px solid rgba(202, 168, 109, .24);
  color: var(--brass-bright);
  background: rgba(11, 12, 14, .92);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-.45rem, -50%);
  transition: opacity .3s ease, transform .4s var(--ease-out);
}

.mail:hover::after,
.mail:focus-visible::after { opacity: 1; transform: scaleX(.72); }

.mail:hover .mail__tag,
.mail:focus-visible .mail__tag { opacity: 1; transform: translate(0, -50%); }

.visir {
  position: fixed;
  z-index: 7;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.cursor-active .visir { opacity: 1; }

.visir__v,
.visir__h {
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(238, 236, 231, .3);
  will-change: transform;
}

.visir__v { width: 1px; height: 100%; }
.visir__h { width: 100%; height: 1px; }

.visir__readout {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  gap: 1rem;
  padding: .28rem .42rem;
  color: var(--muted);
  background: rgba(11, 12, 14, .86);
  border: 1px solid rgba(238, 236, 231, .09);
  white-space: nowrap;
  will-change: transform;
  transition: color .25s ease, border-color .25s ease;
}

.visir__readout b { color: var(--brass-bright); font-weight: 560; }

.visir__state {
  position: relative;
  padding-left: 1rem;
  color: var(--quiet);
  transition: color .25s ease;
}

.visir__state::before {
  content: "";
  position: absolute;
  left: 0;
  top: .12em;
  bottom: .12em;
  width: 1px;
  background: rgba(238, 236, 231, .13);
}

.object-focus .visir__v,
.object-focus .visir__h { background: rgba(202, 168, 109, .62); }

.object-focus .visir__readout {
  color: var(--brass-bright);
  border-color: rgba(202, 168, 109, .28);
}

.object-focus .visir__state { color: var(--brass-bright); }

.cursor-active,
.cursor-active * { cursor: none !important; }

:focus-visible {
  outline: 1px solid var(--brass-bright);
  outline-offset: 6px;
  border-radius: 2px;
}

@keyframes word-in { to { transform: none; } }
@keyframes guide-h { to { opacity: 1; transform: scaleX(1); } }
@keyframes guide-v { to { opacity: 1; transform: scaleY(1); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes datum-in { to { opacity: 1; } }
@keyframes rise-in { to { opacity: 1; transform: none; } }
@keyframes signal {
  0% { box-shadow: 0 0 0 0 rgba(202, 168, 109, .28); }
  52%, 100% { box-shadow: 0 0 0 .58rem rgba(202, 168, 109, 0); }
}

@media (max-width: 720px) {
  :root {
    --gutter: clamp(1.35rem, 6vw, 2.15rem);
    --offset: 0rem;
  }

  .sheet {
    grid-template-rows: 2.25rem minmax(0, 1fr) 2.25rem;
    gap: clamp(.7rem, 2vh, 1rem);
  }

  .bar,
  .foot {
    min-width: 0;
    min-height: 2.25rem;
    align-items: flex-start;
  }

  .bar {
    position: relative;
    align-items: center;
    gap: .75rem;
  }

  .bar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.55rem;
    height: 1px;
    background: rgba(238, 236, 231, .1);
  }

  .bar > p:first-child span { display: none; }
  .bar__mode {
    flex: 0 0 auto;
    max-width: none;
    min-height: 1.4rem;
    gap: .5rem;
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
  }

  .bar__mode-desktop { display: none; }
  .bar__mode-mobile { display: inline; }

  .stage {
    width: 100%;
    padding-block: clamp(.5rem, 2vh, 1rem);
  }

  .mark {
    display: block;
    width: 100%;
    max-width: none;
    container-type: inline-size;
    touch-action: pan-y;
  }

  .wordmark {
    width: 100%;
    max-width: none;
    font-size: calc((100vw - (2 * var(--gutter))) / 3.9);
    font-size: calc(100cqi / 3.9);
    letter-spacing: -.046em;
  }

  .wordmark__clip,
  .wordmark__text { width: 100%; }

  .selection__label { display: none; }
  .selection {
    transition:
      left .26s var(--ease-out),
      top .26s var(--ease-out),
      width .26s var(--ease-out),
      height .26s var(--ease-out),
      opacity .2s ease,
      transform .3s var(--ease-out);
  }

  .selection::before { inset: -4px; }

  .touch-inspector { display: flex; }

  .copy { margin-top: clamp(3.75rem, 7vh, 4.4rem); }
  .lead {
    max-width: 32ch;
    font-size: clamp(.94rem, 4.15vw, 1rem);
    line-height: 1.5;
    text-wrap: pretty;
  }

  .lead br { display: none; }
  .mail {
    min-height: 3rem;
    font-size: clamp(1.04rem, 4.8vw, 1.15rem);
  }

  .mail__tag { display: none; }
  .foot p:nth-child(2) { text-align: right; }

  .visir { display: none !important; }
  .cursor-active,
  .cursor-active * { cursor: auto !important; }
}

@media (max-height: 620px) {
  .sheet { gap: 1.15rem; }
  .stage { padding-block: .25rem; }
  .copy { margin-top: 1.55rem; }
  .lead { line-height: 1.42; }
  .mail { margin-top: .9rem; }
}

@media (max-width: 720px) and (max-height: 620px) {
  .copy { margin-top: 2.75rem; }
}

@media (max-height: 520px) and (min-width: 560px) {
  :root {
    --gutter: clamp(1.15rem, 3.3vw, 2rem);
    --offset: 0rem;
  }

  .sheet {
    padding-top: max(var(--gutter), env(safe-area-inset-top));
    padding-bottom: max(var(--gutter), env(safe-area-inset-bottom));
    gap: .8rem;
  }

  .stage {
    width: 100%;
    margin-left: 0;
    padding-block: .25rem;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(12.5rem, .75fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
  }

  .mark { width: 100%; max-width: 100%; container-type: inline-size; justify-self: stretch; }
  .wordmark {
    font-size: min(11.5vw, 24vh);
    font-size: min(calc(100cqi / 3.9), 24vh);
  }
  .dimension { top: -1.45rem; }
  .selection__label { display: none; }
  .copy { margin-top: 0; }
  .lead { max-width: 30ch; font-size: .88rem; line-height: 1.42; }
  .lead br { display: none; }
  .mail { min-height: 2.45rem; margin-top: .65rem; font-size: 1rem; }
  .mail__tag { display: none; }
  .foot span { display: none; }
}

@media (max-height: 520px) and (max-width: 559px) {
  :root { --gutter: 1rem; }
  .sheet {
    grid-template-rows: 1.75rem minmax(0, 1fr);
    padding-top: max(.75rem, env(safe-area-inset-top));
    padding-bottom: max(.75rem, env(safe-area-inset-bottom));
    gap: .55rem;
  }

  .bar { min-height: 1.75rem; }
  .stage { padding-block: 0; }
  .touch-inspector {
    top: calc(100% + .38rem);
    min-height: 1.15rem;
    padding-top: .2rem;
  }

  .touch-inspector__hint { display: none; }
  .copy { margin-top: 2.6rem; }
  .lead { font-size: .88rem; line-height: 1.38; }
  .lead br { display: none; }
  .mail { min-height: 2.4rem; margin-top: .55rem; font-size: 1rem; }
  .foot { display: none; }
  .selection__label { display: none; }
}

@media (max-height: 300px) and (min-width: 560px) {
  .sheet {
    grid-template-rows: auto minmax(0, 1fr);
    padding-top: max(.75rem, env(safe-area-inset-top));
    padding-bottom: max(.75rem, env(safe-area-inset-bottom));
    gap: .5rem;
  }

  .foot { display: none; }
}

@media (max-width: 430px) {
  .foot { font-size: .59rem; letter-spacing: .13em; }
  .foot span { display: none; }
  .dimension__value { font-size: .59rem; }
}

@media (max-width: 319px) {
  .touch-inspector__hint { display: none; }
}

@media (hover: none), (pointer: coarse) {
  .bar__mode-desktop { display: none; }
  .bar__mode-mobile { display: inline; }

  .mark { touch-action: pan-y; }

  .touch-inspector { display: flex; }

  .visir { display: none; }
  .cursor-active,
  .cursor-active * { cursor: auto !important; }
  .canvas::after { opacity: .76; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .visir { display: none !important; }
  .cursor-active,
  .cursor-active * { cursor: auto !important; }
}
