@import url("https://api.fontshare.com/v2/css?f[]=satoshi@300,400,700&f[]=cabinet-grotesk@500,700,800&display=swap");

:root {
  --dark-50: #f7f7f7;
  --dark-300: #737373;
  --dark-400: #383838;
  --dark-500: #171717;
  --dark-600: #141414;
  --dark-700: #111111;
  --dark-900: #0b0b0b;
  --primary: #e63946;
  --primary-rgb: 230 57 70;
  --primary-soft: rgb(var(--primary-rgb) / 0.16);
  --primary-glow: rgb(var(--primary-rgb) / 0.38);
  --font-heading: "Cabinet Grotesk", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, sans-serif;
}

body.yellow {
  --primary: #ffeb3b;
  --primary-rgb: 255 235 59;
}

body.blue {
  --primary: #2196f3;
  --primary-rgb: 33 150 243;
}

body.purple {
  --primary: #9c27b0;
  --primary-rgb: 156 39 176;
}

body.green {
  --primary: #66bb6a;
  --primary-rgb: 102 187 106;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--dark-700);
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  color: white;
  font-family: var(--font-body);
  background: var(--dark-700);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, var(--dark-400) 1px, transparent 1px) center / 80px 80px,
    linear-gradient(var(--dark-400) 1px, transparent 1px) center / 80px 80px;
  mask-image: linear-gradient(0deg, transparent 20%, black 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 10%, rgb(var(--primary-rgb) / 0.18), transparent 21rem),
    radial-gradient(circle at 82% 86%, rgb(var(--primary-rgb) / 0.13), transparent 24rem),
    radial-gradient(circle at 50% 0%, rgb(var(--primary-rgb) / 0.1), transparent 30rem);
}

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

button {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-heading);
}

p {
  margin: 0;
}

.dashboard {
  position: relative;
  z-index: 1;
  width: min(100%, 76rem);
  min-height: 100vh;
  margin: auto;
  padding: 0.5rem;
  display: grid;
  gap: 0.5rem;
}

.card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--dark-400);
  border-radius: 8px;
  background: var(--dark-500);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  border-color: var(--primary);
}

.intro-card,
.about-card,
.contact-card,
.time-card,
.now-card,
.theme-card,
.footer-card {
  padding: 1.5rem;
}

.intro-card {
  min-height: 23rem;
}

.intro-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: 40rem;
}

.eyebrow,
.time-card span,
address span,
.social-list span {
  color: var(--dark-300);
  font-size: 0.875rem;
  font-weight: 300;
}

.intro-copy p:not(.eyebrow) {
  max-width: 35rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.55;
}

.intro-copy p + p {
  margin-top: 0.55rem;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.icon-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--dark-900);
  color: var(--dark-50);
  box-shadow: 2px 2px 0 var(--primary);
  cursor: pointer;
  transition: color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.icon-button {
  width: 3.25rem;
}

.icon-button svg {
  width: 1.25rem;
  height: 1.25rem;
}

.text-button {
  padding: 0 1.2rem;
  font-weight: 700;
}

.icon-button:hover,
.text-button:hover {
  color: var(--primary);
}

.icon-button:active,
.text-button:active {
  transform: translate(3px, 3px);
  box-shadow: none;
}

.avatar {
  position: absolute;
  right: -4rem;
  bottom: -3.6rem;
  width: 17rem;
  height: 17rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.18), transparent 31%),
    linear-gradient(135deg, var(--primary-soft), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0.52;
}

.logo-mark {
  background: transparent;
  border: 0;
  opacity: 0.28;
}

.logo-mark img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(255, 255, 255, 0.12));
  user-select: none;
  pointer-events: none;
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.about-card h1,
.contact-card h2,
.now-head h2,
.link-card span {
  font-size: 1.25rem;
  font-weight: 700;
}

.about-card p,
.about-card li,
.contact-card p,
.contact-card a,
.now-body {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.45;
}

.about-card ul {
  margin: 0;
  padding-left: 1.15rem;
}

.about-note {
  border: 1px solid rgb(var(--primary-rgb) / 0.46);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgb(var(--primary-rgb) / 0.08);
  color: var(--dark-50);
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.45;
}

.contact-card address,
.social-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
  font-style: normal;
}

.contact-card a,
.social-list a,
.footer-card a {
  width: fit-content;
}

.contact-card a:hover,
.social-list a:hover,
.footer-card a:hover {
  color: var(--primary);
}

.time-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.time-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.time-row time {
  font-size: 2rem;
  line-height: 1.1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.time-row small {
  color: var(--dark-300);
  font-weight: 300;
}

.link-card {
  min-height: 5.8rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.link-card i {
  position: relative;
  z-index: 2;
  font-style: normal;
  font-size: 1.35rem;
  transition: transform 120ms ease, color 120ms ease;
}

.link-card:hover i {
  color: var(--primary);
  transform: translate(0.2rem, -0.2rem);
}

.link-card span {
  position: relative;
  z-index: 2;
}

.designs-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), rgb(var(--primary-rgb) / 0.12)),
    url("assets/designs-bg.png") center / cover;
  filter: saturate(1.08);
}

.designs-card::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background:
    linear-gradient(90deg, transparent 0 88%, rgba(255, 255, 255, 0.22) 89% 90%, transparent 91%),
    linear-gradient(0deg, transparent 0 86%, rgba(255, 255, 255, 0.16) 87% 88%, transparent 89%);
  background-size: 36px 36px;
}

.countries-card {
  background:
    radial-gradient(circle at 72% 50%, rgba(255, 255, 255, 0.1), transparent 30%),
    linear-gradient(135deg, var(--dark-500), var(--dark-600));
}

.countries-card::before {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: -1.9rem;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  opacity: 0.5;
  background:
    radial-gradient(circle at 39% 30%, rgba(255, 255, 255, 0.48), transparent 13%),
    radial-gradient(ellipse at 48% 45%, rgba(213, 216, 186, 0.9) 0 12%, transparent 13%),
    radial-gradient(ellipse at 58% 61%, rgba(91, 152, 93, 0.72) 0 13%, transparent 14%),
    radial-gradient(ellipse at 33% 62%, rgba(216, 208, 176, 0.84) 0 10%, transparent 11%),
    radial-gradient(circle at 42% 38%, #5fb3ef, #256da8 52%, #102d50 76%);
  box-shadow:
    inset -20px -18px 34px rgba(0, 0, 0, 0.7),
    inset 10px 9px 18px rgba(255, 255, 255, 0.16),
    0 0 32px rgba(100, 183, 255, 0.13);
}

.countries-card::after {
  content: "";
  position: absolute;
  right: 0.85rem;
  bottom: -1.9rem;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  opacity: 0.28;
  background:
    repeating-linear-gradient(90deg, transparent 0 17px, rgba(255, 255, 255, 0.3) 18px, transparent 19px),
    repeating-linear-gradient(0deg, transparent 0 17px, rgba(255, 255, 255, 0.24) 18px, transparent 19px);
  mask-image: radial-gradient(circle, black 58%, transparent 62%);
}

.agency-card {
  background:
    linear-gradient(110deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12)),
    radial-gradient(circle at 18% 26%, var(--primary-glow), transparent 28%),
    radial-gradient(circle at 78% 34%, rgb(var(--primary-rgb) / 0.22), transparent 24%),
    linear-gradient(135deg, #101018, #151515 50%, #0b0b0b);
}

.agency-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.45;
  background:
    linear-gradient(120deg, transparent 0 34%, rgba(255, 255, 255, 0.24) 35% 36%, transparent 37% 100%),
    linear-gradient(90deg, transparent 0 84%, rgba(255, 255, 255, 0.16) 85% 86%, transparent 87% 100%);
  background-size: 52px 52px;
}

.agency-card::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  bottom: -1.6rem;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-glow), transparent 62%);
}

.now-card {
  outline: 1px solid transparent;
  outline-offset: -5px;
}

.now-card:hover {
  outline-color: var(--primary);
}

.now-head,
.now-body {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.now-head {
  align-items: flex-start;
  margin-bottom: 0.35rem;
}

.now-body {
  align-items: center;
}

.now-body time {
  color: var(--dark-300);
  white-space: nowrap;
}

.status-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #66bb6a;
  box-shadow: 0 0 0 4px rgba(102, 187, 106, 0.18), 0 0 18px rgba(102, 187, 106, 0.46);
}

.theme-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.swatch {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
}

.swatch.active {
  border-color: white;
}

.red {
  background: #e63946;
}

.yellow {
  background: #ffeb3b;
}

.blue {
  background: #2196f3;
}

.purple {
  background: #9c27b0;
}

.green {
  background: #66bb6a;
}

.footer-card {
  min-height: 5.8rem;
  display: flex;
  align-items: center;
  padding: 1.5rem;
}

.footer-card p {
  font-size: 0.78rem;
  line-height: 1.35;
}

.footer-card a {
  color: inherit;
}

.footer-card a:hover {
  color: var(--primary);
}

.quote-popover {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 20;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--dark-400);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: rgba(11, 11, 11, 0.92);
  color: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
  transition: transform 180ms ease, opacity 180ms ease;
}

.quote-popover.visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.subpage {
  width: min(100%, 58rem);
  margin: auto;
  padding: 1rem;
}

.travel-page {
  min-height: 100vh;
  overflow: hidden;
}

.travel-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.travel-shell .back-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 3;
}

.travel-globe-wrap {
  width: min(78vmin, 720px);
  min-height: min(78vmin, 720px);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1rem;
}

.travel-globe-wrap canvas {
  display: block;
  width: min(78vmin, 720px);
  height: min(78vmin, 720px);
  touch-action: none;
}

.travel-globe-wrap p {
  color: var(--dark-300);
  font-size: 0.875rem;
  font-weight: 300;
}

.back-link {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--dark-400);
  border-radius: 8px;
  background: var(--dark-900);
}

.page-card {
  padding: 1.5rem;
}

.page-card h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.guest-form {
  display: grid;
  gap: 0.75rem;
}

.guest-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--dark-300);
  font-size: 0.875rem;
}

.guest-form input,
.guest-form textarea {
  width: 100%;
  border: 1px solid var(--dark-400);
  border-radius: 8px;
  padding: 0.75rem;
  background: var(--dark-900);
  color: white;
}

.guest-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.empty-messages {
  display: none;
}

.country-list,
.websites-list {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.country-list li,
.websites-list li {
  border: 1px solid var(--dark-400);
  border-radius: 8px;
  padding: 1rem;
  background: var(--dark-600);
}

.work-shell {
  width: min(100%, 68rem);
}

.work-page-card {
  padding: 1.5rem;
}

.work-header {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1rem;
}

.work-header h1 {
  font-size: 2rem;
}

.work-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.work-category {
  min-height: 3rem;
  border: 1px solid var(--dark-400);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.work-category:hover,
.work-category.is-active {
  border-color: var(--primary);
  background: rgb(var(--primary-rgb) / 0.12);
  box-shadow: 0 0 0 1px rgb(var(--primary-rgb) / 0.18), 0 16px 34px rgba(0, 0, 0, 0.24);
}

.work-category:hover {
  transform: translateY(-1px);
}

.work-panel[hidden] {
  display: none;
}

.work-panel.is-animating {
  animation: work-panel-in 340ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes work-panel-in {
  from {
    opacity: 0;
    transform: translateY(0.7rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
}

.work-item {
  display: flex;
  min-height: 21rem;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(15, 15, 15, 0.72);
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.work-item h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.work-item p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.5;
}

.work-media {
  min-height: 9rem;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 24%, rgb(var(--primary-rgb) / 0.24), transparent 36%),
    linear-gradient(135deg, #151515, #0b0b0b);
}

.work-media span {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 800;
}

.image-media {
  min-height: 9rem;
  background: #15191f;
}

.image-media img {
  width: 100%;
  height: 100%;
  min-height: 9rem;
  object-fit: cover;
}

.preview-media {
  position: relative;
  cursor: pointer;
}

.preview-media::after {
  content: "Click to preview";
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  background: rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  backdrop-filter: blur(8px);
}

.website-media {
  background:
    linear-gradient(120deg, rgb(var(--primary-rgb) / 0.2), transparent 40%),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.08) 29px, transparent 30px),
    #101010;
}

.portfolio-media {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.14), transparent 28%),
    radial-gradient(circle at 70% 70%, rgb(var(--primary-rgb) / 0.18), transparent 30%),
    #101010;
}

.plugin-media {
  background:
    linear-gradient(135deg, rgba(80, 180, 110, 0.14), transparent 38%),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(255, 255, 255, 0.08) 19px, transparent 20px),
    #11171d;
}

.work-action {
  width: fit-content;
  margin-top: auto;
  border: 1px solid var(--primary);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  background: rgb(var(--primary-rgb) / 0.12);
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 12px 28px -16px rgb(var(--primary-rgb) / 0.72);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.work-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
}

.work-actions .work-action {
  margin-top: 0;
}

.secondary-action {
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
}

.work-action:hover {
  transform: translateY(-1px);
  background: rgb(var(--primary-rgb) / 0.2);
  box-shadow: 0 18px 34px -18px rgb(var(--primary-rgb) / 0.9);
}

.work-action.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.work-item-muted {
  opacity: 0.78;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(9px);
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox img {
  max-width: min(92vw, 72rem);
  max-height: 84vh;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: #111;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.72);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: white;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-open .work-shell {
  filter: blur(1.5px);
}

.design-page-art {
  min-height: 24rem;
  border-radius: 8px;
  border: 1px solid var(--dark-400);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.22)),
    url("assets/designs-bg.png") center / cover;
}

@media (min-width: 640px) {
  .dashboard {
    padding: 1rem;
  }
}

@media (min-width: 768px) {
  .dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1.5rem;
  }

  .intro-card {
    grid-column: span 2;
  }

  .about-card {
    grid-row: span 3;
  }
}

@media (min-width: 1024px) {
  .dashboard {
    min-height: 100vh;
    height: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.18fr);
    grid-template-rows: repeat(8, minmax(4.6rem, 5.7rem));
    align-content: center;
    gap: 1rem;
  }

  .intro-card {
    grid-column: span 3;
    grid-row: span 4;
  }

  .about-card {
    grid-column: span 1;
    grid-row: span 6;
  }

  .contact-card {
    grid-row: span 4;
  }

  .time-card {
    grid-row: span 2;
  }

  .link-card,
  .now-card,
  .theme-card,
  .footer-card {
    min-height: 0;
  }

  .websites-card {
    grid-column: 3;
    grid-row: 7;
  }

  .agency-card {
    grid-column: 3;
    grid-row: 8;
  }

  .countries-card {
    grid-column: 4;
    grid-row: 7;
  }

  .footer-card {
    grid-column: 4;
    grid-row: 8;
  }

  .avatar {
    right: 1.5rem;
    bottom: 1.25rem;
    opacity: 0.42;
  }
}
