@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter+Tight:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ==========================================================================
   TRAVELER — UI REDESIGN 2026
   "An atlas in motion." Shared tokens, type, chrome and globe renderer.
   Design studies only. No application code is touched.
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --ink-1: #0e0e10;
  --ink-2: #141416;
  --ink-3: #1c1c1f;
  --bone: #f3efe5;
  --bone-2: #e9e3d6;
  --bone-3: #d8d1c1;
  --text: #f3efe5;
  --text-dim: rgba(243, 239, 229, 0.62);
  --text-faint: rgba(243, 239, 229, 0.36);
  --signal: #ff4d1c;
  --signal-hi: #ff7143;
  --signal-deep: #d83a0e;
  --acid: #d9ff57;
  --chrome: #b9b4a7;
  --line: rgba(243, 239, 229, 0.13);
  --line-soft: rgba(243, 239, 229, 0.07);
  --line-ink: rgba(10, 10, 11, 0.14);
  --line-ink-soft: rgba(10, 10, 11, 0.07);
  --font-display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
  --font-ui: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'PingFang SC',
    'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur: 240ms;
  --r-card: 20px;
  --r-pill: 999px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

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

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

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

ol,
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: var(--signal);
  color: #150a06;
}

/* film grain ------------------------------------------------------------- */

.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 900;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* typography ------------------------------------------------------------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.display em {
  font-style: italic;
}

.mono {
  font-family: var(--font-mono);
  font-variant-ligatures: none;
}

.label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.label--faint {
  color: var(--text-faint);
}

.label--signal {
  color: var(--signal);
}

.label--ink {
  color: rgba(10, 10, 11, 0.52);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.i {
  width: 16px;
  height: 16px;
  flex: none;
  vertical-align: middle;
}

.i--sm {
  width: 13px;
  height: 13px;
}

.i--lg {
  width: 20px;
  height: 20px;
}

/* buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:active {
  transform: scale(0.975);
}

.btn--signal {
  background: var(--signal);
  color: #180a05;
  box-shadow: 0 10px 30px -12px rgba(255, 77, 28, 0.75);
}

.btn--signal:hover {
  background: var(--signal-hi);
}

.btn--bone {
  background: var(--bone);
  color: var(--ink);
}

.btn--bone:hover {
  background: #fffdf6;
}

.btn--ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(243, 239, 229, 0.07);
  border-color: rgba(243, 239, 229, 0.25);
}

.btn--ink {
  background: var(--ink);
  color: var(--bone);
}

.btn--ink:hover {
  background: #242427;
}

.btn--sm {
  height: 32px;
  padding: 0 14px;
  font-size: 11.5px;
}

.btn--lg {
  height: 52px;
  padding: 0 25px;
  font-size: 14px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-dim);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

.icon-btn:hover {
  background: rgba(243, 239, 229, 0.08);
  color: var(--text);
}

.icon-btn--box {
  border-radius: 10px;
  border: 1px solid var(--line);
}

.icon-btn--ink {
  color: rgba(10, 10, 11, 0.55);
}

.icon-btn--ink:hover {
  background: rgba(10, 10, 11, 0.06);
  color: var(--ink);
}

/* chips, dots, misc ------------------------------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(243, 239, 229, 0.04);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.pill--solid {
  background: var(--bone);
  border-color: var(--bone);
  color: var(--ink);
}

.pill--signal {
  background: rgba(255, 77, 28, 0.13);
  border-color: rgba(255, 77, 28, 0.4);
  color: var(--signal-hi);
}

.dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.dot--signal {
  color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255, 77, 28, 0.16);
}

.dot--acid {
  color: var(--acid);
  box-shadow: 0 0 0 3px rgba(217, 255, 87, 0.14);
}

.dot--ink {
  color: var(--ink);
}

.rule {
  height: 1px;
  background: var(--line);
}

.vline {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.glass {
  background: rgba(15, 15, 17, 0.68);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  backdrop-filter: blur(24px) saturate(1.3);
}

.glass-soft {
  background: rgba(19, 19, 22, 0.55);
  border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
}

/* entrance ---------------------------------------------------------------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ping {
  0% {
    transform: scale(0.65);
    opacity: 0.75;
  }
  80%,
  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -240;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.reveal {
  animation: fade-up 0.9s var(--ease) both;
}

.reveal-1 {
  animation-delay: 0.06s;
}
.reveal-2 {
  animation-delay: 0.14s;
}
.reveal-3 {
  animation-delay: 0.22s;
}
.reveal-4 {
  animation-delay: 0.3s;
}
.reveal-5 {
  animation-delay: 0.38s;
}

/* ==========================================================================
   THE GLOBE — a CSS/SVG study using the app's own earth texture
   ========================================================================== */

.globe {
  position: relative;
  width: var(--gs, 620px);
  height: var(--gs, 620px);
  flex: none;
}

.globe__halo {
  position: absolute;
  inset: -24%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 52% 50%,
    rgba(255, 90, 40, 0.2),
    rgba(255, 77, 28, 0.06) 42%,
    transparent 68%
  );
  filter: blur(26px);
  pointer-events: none;
}

.globe__sphere {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(
    circle at 33% 27%,
    #3a484e 0%,
    #1b262a 34%,
    #0c1113 66%,
    #050607 100%
  );
  box-shadow: inset -1px -1px 1px rgba(255, 255, 255, 0.16),
    inset -28px -36px 84px rgba(0, 0, 0, 0.92),
    inset 18px 18px 54px rgba(255, 190, 150, 0.1),
    0 90px 150px -60px rgba(0, 0, 0, 0.98);
}

.globe__map {
  position: absolute;
  inset: -2%;
  background: url('../public/textures/earth-land.png') 76% 46% / 190% auto
    no-repeat;
  mix-blend-mode: screen;
  filter: grayscale(1) brightness(2.9) contrast(1.55) sepia(1) saturate(4.4)
    hue-rotate(-26deg);
  opacity: 0.5;
}

.globe__grid {
  position: absolute;
  inset: 0;
  transform: rotate(-13deg) scale(1.015);
  opacity: 0.55;
}

.globe__grid svg {
  width: 100%;
  height: 100%;
}

.globe__shade {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
      circle at 31% 24%,
      rgba(255, 242, 228, 0.17),
      transparent 31%
    ),
    radial-gradient(
      circle at 71% 77%,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.42) 42%,
      transparent 68%
    ),
    linear-gradient(
      112deg,
      transparent 36%,
      rgba(0, 0, 0, 0.4) 66%,
      rgba(0, 0, 0, 0.9) 100%
    );
}

.globe__rim {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(255, 196, 160, 0.2),
    inset -22px -30px 74px rgba(255, 84, 26, 0.16);
}

.globe__arcs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.globe__arcs .arc {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.4;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
  animation: dash 14s linear infinite;
}

.globe__arcs .arc--soft {
  stroke: rgba(243, 239, 229, 0.55);
  stroke-dasharray: 2 9;
  animation-duration: 22s;
}

.globe__arcs .port {
  fill: var(--signal);
}

.globe__arcs .port-ring {
  fill: none;
  stroke: var(--signal);
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: ping 3.6s var(--ease) infinite;
}

.globe__orbit {
  position: absolute;
  inset: -8%;
  border: 1px solid rgba(243, 239, 229, 0.11);
  border-radius: 50%;
  transform: rotate(-22deg) scaleY(0.42);
  pointer-events: none;
}

.globe__orbit::before,
.globe__orbit::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(255, 77, 28, 0.9);
}

.globe__orbit::before {
  left: -4px;
}

.globe__orbit::after {
  right: -4px;
  width: 4px;
  height: 4px;
  background: var(--bone);
  box-shadow: 0 0 12px rgba(243, 239, 229, 0.7);
}

.globe__orbit--2 {
  inset: -15%;
  transform: rotate(18deg) scaleY(0.3);
  opacity: 0.5;
}

.globe__orbit--2::before,
.globe__orbit--2::after {
  display: none;
}

/* photo pins that float around the globe ---------------------------------- */

.pin {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 13px 6px 6px;
  border-radius: 12px;
  background: var(--bone);
  color: var(--ink);
  box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.8);
  animation: drift 9s ease-in-out infinite;
}

.pin img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.pin__n {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  color: rgba(10, 10, 11, 0.48);
}

.pin__name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.pin__meta {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  color: rgba(10, 10, 11, 0.48);
}

.pin::after {
  content: '';
  position: absolute;
  left: 22px;
  top: 100%;
  width: 1px;
  height: 34px;
  background: linear-gradient(rgba(243, 239, 229, 0.86), transparent);
}

.pin::before {
  content: '';
  position: absolute;
  left: 18px;
  top: calc(100% + 38px);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid var(--bone);
  background: rgba(243, 239, 229, 0.15);
}

/* scrollbars ------------------------------------------------------------- */

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(243, 239, 229, 0.25) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 8px;
  background: rgba(243, 239, 229, 0.25);
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* custom cursor ---------------------------------------------------------- */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--signal);
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(243, 239, 229, 0.45);
}

.cursor-ring.is-hot {
  border-color: var(--signal);
  background: rgba(255, 77, 28, 0.1);
}

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

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