﻿:root {
  --bg: #050505;
  --text: #e6edf3;
  --surface: #101010;
  --theme-accent: #8fb8ff;
  --theme-accent-strong: #76a7ff;
  --theme-accent-glow: rgba(143, 184, 255, 0.2);
  --theme-color-wash: rgba(143, 184, 255, 0.08);
  --brand: var(--theme-accent);
  --brand-dark: var(--theme-accent-strong);
  --accent: var(--theme-accent);
  --ring: rgba(247, 129, 102, 0.28);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: #050505;
  color: var(--text);
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms ease, transform 320ms ease;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
}

body::after {
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.9) 0.55px, transparent 0.8px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  animation: grainShift 10s steps(8) infinite;
}

body.page-ready {
  opacity: 1;
  transform: translateY(0);
}

body.page-exit {
  opacity: 0;
  transform: translateY(-8px);
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.bg-shape {
  display: none;
}

.bg-shape-1 {
  width: 320px;
  height: 320px;
  top: -90px;
  left: -70px;
  background: rgba(88, 166, 255, 0.2);
}

.bg-shape-2 {
  width: 380px;
  height: 380px;
  right: -130px;
  bottom: -120px;
  background: rgba(247, 129, 102, 0.18);
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 1.2rem 0;
}

.logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}

.theme-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 237, 243, 0.16);
  background: rgba(13, 17, 23, 0.76);
}

.theme-btn {
  border: 0;
  background: transparent;
  color: rgba(230, 237, 243, 0.82);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.theme-btn:hover {
  color: #ffffff;
}

.theme-btn.is-active {
  background: rgba(230, 237, 243, 0.16);
  color: #ffffff;
}

nav {
  display: flex;
}

.site-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(230, 237, 243, 0.06);
  border: 1px solid rgba(230, 237, 243, 0.14);
}

.nav-slider {
  position: absolute;
  left: 0;
  top: 0.25rem;
  height: calc(100% - 0.5rem);
  width: 0;
  border-radius: 999px;
  background: rgba(88, 166, 255, 0.22);
  border: 1px solid rgba(88, 166, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(230, 237, 243, 0.2);
  transition: transform 240ms ease, width 240ms ease, opacity 180ms ease;
  opacity: 0;
}

nav a {
  position: relative;
  z-index: 1;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  transition: color 180ms ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.site-nav .nav-link.is-active {
  color: #ffffff;
}

.site-nav .nav-link:focus-visible {
  outline: none;
}

.hero {
  padding: 4.5rem 0 3rem;
}

.page-hero {
  padding: 4rem 0 1.5rem;
}

.kicker {
  display: inline-block;
  margin: 0 0 1rem;
  background: rgba(230, 237, 243, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  line-height: 1.15;
  margin: 0;
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}

.subtitle {
  margin: 1.2rem 0 0;
  max-width: 58ch;
  font-size: 1.07rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--brand);
  color: #000000;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-outline {
  color: var(--text);
  border: 2px solid rgba(230, 237, 243, 0.26);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem auto 3rem;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(230, 237, 243, 0.09);
  text-align: center;
}

.card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

.about {
  background: rgba(22, 27, 34, 0.78);
  border-radius: var(--radius);
  border: 1px solid rgba(230, 237, 243, 0.1);
  padding: 2rem;
  margin-bottom: 3rem;
}

.page-content {
  margin-top: 1rem;
}

.about h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.about p + p {
  margin-top: 0.7rem;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.message-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}

.message-card {
  background: rgba(22, 27, 34, 0.78);
  border-radius: var(--radius);
  border: 1px solid rgba(230, 237, 243, 0.1);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}

.message-card h2 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 0.35rem;
}

.message-helper {
  margin: 0;
  color: rgba(230, 237, 243, 0.74);
}

.message-form,
.owner-unlock {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.message-form label,
.owner-unlock label {
  font-weight: 700;
  font-size: 0.88rem;
}

.message-form input,
.message-form textarea,
.owner-unlock input {
  width: 100%;
  background: rgba(13, 17, 23, 0.78);
  color: var(--text);
  border: 1px solid rgba(230, 237, 243, 0.2);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  font: inherit;
}

.message-form textarea {
  resize: vertical;
  min-height: 140px;
}

.message-form input:focus,
.message-form textarea:focus,
.owner-unlock input:focus {
  outline: 2px solid var(--theme-accent-glow);
  border-color: var(--accent);
}

.form-status {
  min-height: 1.15rem;
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: rgba(230, 237, 243, 0.78);
}

.owner-card {
  display: flex;
  flex-direction: column;
}

.owner-inline {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.owner-inline .btn {
  white-space: nowrap;
}

.owner-inbox {
  margin-top: 0.75rem;
}

.owner-inbox-area {
  margin-bottom: 3rem;
}

.owner-inbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.owner-inbox-header h2 {
  margin: 0;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
}

.owner-count {
  margin: 0;
  font-weight: 700;
  color: var(--accent);
}

.clear-btn {
  padding: 0.45rem 0.72rem;
  font-size: 0.84rem;
}

.owner-message-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  max-height: 360px;
  overflow: auto;
}

.owner-message-item {
  border: 1px solid rgba(230, 237, 243, 0.14);
  background: rgba(13, 17, 23, 0.65);
  border-radius: 12px;
  padding: 0.8rem;
}

.owner-message-item h3 {
  margin: 0;
  font-size: 1rem;
}

.owner-meta {
  margin: 0.25rem 0 0.55rem;
  color: rgba(230, 237, 243, 0.66);
  font-size: 0.82rem;
}

.owner-body {
  margin: 0;
  white-space: pre-wrap;
}

.owner-empty {
  color: rgba(230, 237, 243, 0.76);
  padding: 0.8rem;
  border: 1px dashed rgba(230, 237, 243, 0.24);
  border-radius: 12px;
  text-align: center;
}

body.theme-light .message-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(22, 26, 32, 0.1);
}

body.theme-light .message-helper,
body.theme-light .form-status,
body.theme-light .owner-meta,
body.theme-light .owner-empty {
  color: rgba(22, 26, 32, 0.72);
}

body.theme-light .message-form input,
body.theme-light .message-form textarea,
body.theme-light .owner-unlock input,
body.theme-light .owner-message-item {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(22, 26, 32, 0.16);
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem auto 3rem;
}

.photo-card {
  min-height: 180px;
  background:
    linear-gradient(140deg, rgba(88, 166, 255, 0.2), rgba(247, 129, 102, 0.16)),
    var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(230, 237, 243, 0.12);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.photo-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.site-footer {
  border-top: 1px solid rgba(230, 237, 243, 0.2);
  padding: 1.5rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-rail {
  --rail-thumb-size: 22px;
  --rail-track-size: 8px;
  position: relative;
  width: 100%;
  background: rgba(13, 17, 23, 0.92);
  border: 1px solid rgba(230, 237, 243, 0.16);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 0.9rem 1rem 0.8rem;
}

.page-rail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
  color: rgba(230, 237, 243, 0.82);
}

.page-rail-status strong {
  color: #ffffff;
}

.page-rail-value {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 700;
}

.page-rail-track {
  position: relative;
  margin: 0;
  padding: 0;
  overscroll-behavior-x: contain;
}

.page-rail-track::before {
  content: "";
  position: absolute;
  left: calc(var(--rail-thumb-size) / 2);
  right: calc(var(--rail-thumb-size) / 2);
  top: 50%;
  transform: translateY(-50%);
  height: var(--rail-track-size);
  border-radius: 999px;
  background: rgba(230, 237, 243, 0.26);
  border: 1px solid rgba(230, 237, 243, 0.2);
  pointer-events: none;
}

.page-rail-input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: var(--rail-thumb-size);
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-x;
}

.page-rail-input::-webkit-slider-runnable-track {
  height: var(--rail-track-size);
  background: transparent;
  border: 0;
}

.page-rail-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: var(--rail-thumb-size);
  height: var(--rail-thumb-size);
  margin-top: calc((var(--rail-track-size) - var(--rail-thumb-size)) / 2);
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--theme-accent-glow);
}

.page-rail-input::-moz-range-track {
  height: var(--rail-track-size);
  background: transparent;
  border: 0;
}

.page-rail-input::-moz-range-thumb {
  width: var(--rail-thumb-size);
  height: var(--rail-thumb-size);
  border-radius: 50%;
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--theme-accent-glow);
}

.page-rail-steps {
  margin-top: 0.38rem;
  position: relative;
  height: 1.9rem;
  margin-left: 0;
  margin-right: 0;
}

.page-step {
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(230, 237, 243, 0.62);
  font-size: 0.78rem;
  transition: color 180ms ease, opacity 180ms ease;
}

.page-step::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin: 0 auto 0.28rem;
  background: rgba(230, 237, 243, 0.34);
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.page-step.is-active {
  color: #ffffff;
}

.page-step.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--theme-accent-glow);
  transform: scale(1.1);
}

.page-preview {
  margin-top: 0.45rem;
  min-height: 1.15rem;
  position: relative;
}

.page-preview-current,
.page-preview-next {
  display: block;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 120ms linear;
}

.page-preview-current {
  color: rgba(230, 237, 243, 0.88);
}

.page-preview-next {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  opacity: 0;
}

body.theme-light {
  --bg: #f3f5f8;
  --text: #161a20;
  --surface: #ffffff;
  --shadow: 0 18px 40px rgba(17, 24, 33, 0.12);
  --theme-accent: #4b6ea8;
  --theme-accent-strong: #3f6199;
  --theme-accent-glow: rgba(75, 110, 168, 0.18);
  --theme-color-wash: rgba(75, 110, 168, 0.1);
}

body.theme-light::before {
}

body.theme-light::after {
  opacity: 0.04;
  mix-blend-mode: multiply;
}

body.theme-light .kicker {
  background: rgba(15, 19, 24, 0.08);
}

body.theme-light .card,
body.theme-light .about {
  border: 1px solid rgba(22, 26, 32, 0.1);
}

body.theme-light .about {
  background: rgba(255, 255, 255, 0.76);
}

body.theme-light .theme-controls,
body.theme-light .page-rail {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(22, 26, 32, 0.18);
}

body.theme-light .theme-btn {
  color: rgba(22, 26, 32, 0.78);
}

body.theme-light .theme-btn.is-active {
  background: rgba(22, 26, 32, 0.12);
  color: #11151a;
}

body.theme-light .site-footer {
  border-top: 1px solid rgba(22, 26, 32, 0.18);
}

body.theme-light .btn-outline {
  border: 2px solid rgba(22, 26, 32, 0.2);
}

body.theme-light .page-rail-header {
  color: rgba(22, 26, 32, 0.8);
}

body.theme-light .page-rail-status strong {
  color: #14181f;
}

body.theme-light .page-rail-value {
  color: rgba(51, 78, 122, 0.9);
}

body.theme-light .page-rail-track::before {
  background: rgba(22, 26, 32, 0.18);
  border: 1px solid rgba(22, 26, 32, 0.16);
}

body.theme-light .page-step {
  color: rgba(22, 26, 32, 0.56);
}

body.theme-light .page-step::before {
  background: rgba(22, 26, 32, 0.32);
}

body.theme-light .page-step.is-active {
  color: #14181f;
}

body.theme-light .page-preview-current {
  color: rgba(22, 26, 32, 0.9);
}

body.theme-light .page-preview-next {
  color: rgba(51, 78, 122, 0.92);
}

.desk {
  margin: 0 auto 3rem;
}

.desk h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  margin-bottom: 0.5rem;
}

.desk-subtitle {
  color: rgba(230, 237, 243, 0.74);
  margin-bottom: 1rem;
}

.desk-surface {
  position: relative;
  min-height: 340px;
  padding: 1.4rem;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(
      90deg,
      rgba(149, 106, 70, 0.12) 0,
      rgba(149, 106, 70, 0.12) 3px,
      rgba(120, 81, 51, 0.08) 3px,
      rgba(120, 81, 51, 0.08) 12px
    ),
    linear-gradient(180deg, rgba(36, 24, 16, 0.76), rgba(24, 17, 12, 0.72));
  border: 1px solid rgba(230, 237, 243, 0.14);
  box-shadow: var(--shadow);
}

.desk-item {
  position: absolute;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  box-shadow: none;
  transform-origin: center;
}

.desk-item:hover {
  filter: brightness(1.06);
}

.desk-item.is-active {
  filter: drop-shadow(0 0 12px var(--theme-accent-glow));
}

.desk-art {
  width: 165px;
  height: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.42));
}

.desk-label {
  margin-top: -0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 237, 243, 0.2);
}

.desk-item-notebook {
  left: 6%;
  top: 16%;
  transform: rotate(-8deg);
}

.desk-item-headphones {
  left: 36%;
  top: 24%;
  transform: rotate(5deg);
}

.desk-item-camera {
  left: 58%;
  top: 14%;
  transform: rotate(-2deg);
}

.desk-item-book {
  right: 7%;
  top: 26%;
  transform: rotate(7deg);
}

.desk-item-notebook:hover {
  transform: rotate(-8deg) translateY(-3px);
}

.desk-item-headphones:hover {
  transform: rotate(5deg) translateY(-3px);
}

.desk-item-camera:hover {
  transform: rotate(-2deg) translateY(-3px);
}

.desk-item-book:hover {
  transform: rotate(7deg) translateY(-3px);
}

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

.desk-panel {
  margin-top: 0.9rem;
  padding: 1.1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(230, 237, 243, 0.14);
  background: rgba(13, 17, 23, 0.55);
}

.desk-panel h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.desk-panel p {
  margin: 0;
  color: rgba(230, 237, 243, 0.84);
}

body.theme-light .desk-subtitle {
  color: rgba(22, 26, 32, 0.72);
}

body.theme-light .desk-surface {
  background:
    repeating-linear-gradient(
      90deg,
      rgba(170, 129, 92, 0.18) 0,
      rgba(170, 129, 92, 0.18) 3px,
      rgba(141, 103, 70, 0.12) 3px,
      rgba(141, 103, 70, 0.12) 12px
    ),
    linear-gradient(180deg, rgba(244, 234, 221, 0.95), rgba(230, 214, 193, 0.92));
  border: 1px solid rgba(22, 26, 32, 0.14);
}

body.theme-light .desk-item {
  background: transparent;
  box-shadow: none;
}

body.theme-light .desk-item.is-active {
  filter: drop-shadow(0 0 10px rgba(75, 110, 168, 0.2));
}

body.theme-light .desk-panel {
  border: 1px solid rgba(22, 26, 32, 0.15);
  background: rgba(255, 255, 255, 0.9);
}

body.theme-light .desk-panel p {
  color: rgba(22, 26, 32, 0.82);
}

body.theme-light .desk-label {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(22, 26, 32, 0.2);
}

@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .message-layout {
    grid-template-columns: 1fr;
  }

  .owner-inline {
    flex-direction: column;
    align-items: stretch;
  }

  .owner-inline .btn {
    width: 100%;
  }

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    gap: 0.7rem;
  }

  .page-rail {
    padding: 0.8rem 0.8rem 0.72rem;
  }

  .page-step {
    font-size: 0.7rem;
  }

  .desk-surface {
    min-height: 540px;
  }

  .desk-item-notebook {
    left: 8%;
    top: 8%;
  }

  .desk-item-headphones {
    left: 52%;
    top: 18%;
  }

  .desk-item-camera {
    left: 10%;
    top: 50%;
  }

  .desk-item-book {
    right: 10%;
    top: 62%;
  }
}

@keyframes grainShift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-1%, 1%); }
  40% { transform: translate(1%, -1%); }
  60% { transform: translate(-0.6%, 0.6%); }
  80% { transform: translate(0.8%, -0.7%); }
  100% { transform: translate(0, 0); }
}
