@font-face {
  font-family: Italiana;
  src: url('/assets/italiana-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('/assets/inter-tight-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Inter Tight';
  src: url('/assets/inter-tight-medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: 'Inter Tight', Arial, sans-serif;
  color: #090a08;
  background: #e8e8e5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  width: 100%;
  height: 100vh;
  height: 100svh;
  padding: 0;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }

a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

.canvas {
  position: relative;
  isolation: isolate;
  container-type: size;
  width: 100%;
  height: 100%;
  background: #e8e8e5;
  overflow: hidden;
}

.header { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.header > *, .navigation > * { pointer-events: auto; }

.wordmark {
  position: absolute;
  left: 6.5%;
  top: 5.1%;
  font-size: min(1.65cqw, 2.3cqh);
  font-weight: 500;
  letter-spacing: -.065em;
}

.navigation { position: absolute; inset: 0; pointer-events: none; }
.nav-link { position: absolute; top: 5.3%; font-size: min(1.15cqw, 1.6cqh); }
.nav-x { left: 42%; }
.nav-dex { left: 51%; cursor: default; }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.nav-buy {
  position: absolute;
  right: 6.4%;
  top: 2.8%;
  width: 10.7%;
  height: 6.4%;
  display: grid;
  place-items: center;
  background: #030402;
  color: #f3f3ef;
  font-size: min(1.07cqw, 1.5cqh);
  transition: background .2s ease;
}

.nav-buy:hover { background: #34362f; }
.nav-buy:focus-visible { outline-color: #090a08; }

.coming-soon {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: max-content;
  transform: translate(-50%, -3px);
  background: #090a08;
  color: #e8e8e5;
  padding: 8px 11px;
  font-size: 11px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s, transform .18s, visibility .18s;
}

.nav-dex:hover .coming-soon, .nav-dex:focus .coming-soon, .nav-dex.is-active .coming-soon { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.title { margin: 0; font: 400 1em/1 Italiana, 'Bodoni MT', Didot, serif; letter-spacing: -.065em; }
.title-stoic, .title-cat { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 1; font-weight: 400; }
.title-stoic { top: 9.3%; font-size: min(21.2cqw, 29.4cqh); line-height: .95; }
.title-cat { bottom: 2.2%; font-size: min(30cqw, 38.2cqh); line-height: .86; }

.portrait {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 24.3%;
  transform: translateX(-50%);
  width: 34%;
  height: 59.2%;
  margin: 0;
  pointer-events: none;
}

.portrait img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: grayscale(1) contrast(.94); }

.connectors { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.connector-paths { stroke: #6e6f67; stroke-width: .9; stroke-dasharray: 1.3 4.4; stroke-linecap: round; }
.connector-dots { fill: #080907; }

.callout { position: absolute; z-index: 4; width: 15.7%; }
.callout h2 { margin: 0 0 .4em; font-size: min(2.17cqw, 3.04cqh); font-weight: 500; letter-spacing: -.055em; line-height: 1.02; }
.callout p { margin: 0; max-width: 95%; font-size: min(1.15cqw, 1.61cqh); line-height: 1.28; letter-spacing: -.017em; text-wrap: pretty; }
.callout-one { left: 6.5%; top: 18.7%; }
.callout-two { left: 79.4%; top: 25.1%; width: 15.2%; }
.callout-three { left: 7%; top: 54.4%; width: 14.8%; }
.callout-four { left: 77.5%; top: 53.3%; width: 17%; }
.copy-short { display: none; }

.footer { position: absolute; left: 6.8%; bottom: 2.6%; z-index: 4; font-size: min(2.25cqw, 3.05cqh); letter-spacing: -.07em; font-weight: 500; }
.corner-link { position: absolute; z-index: 5; right: 0; bottom: 0; width: 9.3cqw; aspect-ratio: 1; display: grid; place-items: center; background: #030402; color: #fff; transition: background .2s; }
.corner-link svg { width: 54%; height: 54%; stroke: currentColor; stroke-width: 1.2; transition: transform .25s ease; }
.corner-link:hover { background: #34362f; }
.corner-link:hover svg { transform: translate(3px,3px); }
.corner-link:focus-visible { outline-offset: -6px; }

@media (prefers-reduced-motion: no-preference) {
  .canvas { animation: appear .8s ease both; }
  .portrait { animation: portrait-appear 1.1s cubic-bezier(.2,.65,.3,1) both; }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }
  @keyframes portrait-appear { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
}

@media (max-width: 640px) and (max-aspect-ratio: 4/5) {
  body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .wordmark { left: 6%; top: 3.7%; font-size: 15px; }
  .nav-link { top: 4.2%; font-size: 10px; }
  .nav-x { left: 36%; }
  .nav-dex { left: 45%; }
  .nav-buy { right: 5.4%; top: 2.5%; width: 21%; height: 4.7%; min-height: 30px; font-size: 10px; }
  .title-stoic { top: 19%; font-size: min(30cqw, 18cqh); }
  .title-cat { top: calc(30cqh + min(53.2cqw, 33cqh) - 4cqh); bottom: auto; font-size: min(30cqw, 24cqh); }
  .portrait { top: 30%; width: auto; height: min(53.2cqw, 33cqh); aspect-ratio: 993 / 1200; }
  .connectors { display: none; }
  .callout { width: 25%; }
  .callout-one, .callout-three { left: 3%; }
  .callout-two, .callout-four { left: 72%; }
  .callout-one { top: 31%; }
  .callout-two { top: 37%; }
  .callout-three, .callout-four { top: 57%; }
  .callout h2 { font-size: clamp(11px, 3.15cqw, 14px); margin-bottom: .5em; }
  .callout h2 br { display: none; }
  .callout p { width: 100%; max-width: 100%; font-size: clamp(10px, 2.65cqw, 12px); line-height: 1.4; text-wrap: wrap; }
  .copy-full { display: none; }
  .callout .copy-short { display: block; }
  .footer { left: 7%; bottom: 2.4%; font-size: 15px; }
  .corner-link { width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
