:root {
  --bg: #050505;
  --bg-alt: #121212;
  --text: #f5f5f5;
  --muted: #bcbcbc;
  --glass: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.25);
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

html[data-theme='light'] {
  --bg: #ececec;
  --bg-alt: #f9f9f9;
  --text: #111111;
  --muted: #3f3f3f;
  --glass: rgba(255, 255, 255, 0.52);
  --line: rgba(0, 0, 0, 0.2);
  --shadow: 0 20px 65px rgba(50, 50, 50, 0.2);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 20%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.08) 0%, transparent 25%),
    linear-gradient(145deg, var(--bg), var(--bg-alt));
  min-height: 100vh;
  overflow-x: hidden;
  cursor: none;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.7px, transparent 0.7px);
  background-size: 3px 3px;
  opacity: 0.25;
}

.container { width: min(1150px, 92%); margin-inline: auto; }
.section { padding: 5rem 0 1rem; }

.glass {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  background: var(--glass);
  box-shadow: var(--shadow);
}

.nav-wrap {
  position: sticky;
  top: 0.7rem;
  z-index: 50;
  border-radius: 16px;
  margin: 0.7rem auto;
  width: min(1160px, 95%);
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  opacity: 0.86;
  transition: transform .28s ease, opacity .28s ease;
}

.nav-links a:hover { transform: translateY(-2px); opacity: 1; }

.theme-toggle {
  width: 80px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .8rem;
  color: var(--text);
}

.toggle-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--text);
  transition: transform .45s cubic-bezier(.22, .82, .31, 1.2), background .25s ease;
}

html[data-theme='light'] .toggle-knob {
  transform: translateX(38px);
  background: #101010;
}

.hero {
  min-height: 90vh;
  display: grid;
  place-items: center;
  padding-top: 3.5rem;
}

.hero-card {
  border-radius: 28px;
  padding: clamp(1.2rem, 4vw, 3rem);
  width: 100%;
  animation: floatUp 1s ease;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.7rem;
  align-items: center;
}

.hero-kicker {
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--muted);
  margin: 0;
}

h1, h2, h3 { font-family: 'Sora', sans-serif; margin: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3.8rem); line-height: 1.1; margin: .5rem 0; }

.typing-wrap {
  margin-top: .4rem;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  color: var(--muted);
}

.typing-text { color: var(--text); }
.cursor { animation: blink 1s step-end infinite; }

.hero-description {
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.7;
}

.hero-stack {
  font-size: .95rem;
  color: var(--muted);
  margin-top: .9rem;
}

.hero-cta {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.hero-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.05rem;
}

.hero-social a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: var(--glass);
  transition: transform .28s ease, opacity .28s ease;
}

.hero-social a:hover { transform: translateY(-4px); opacity: 1; }

.hero-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-image-ring {
  position: absolute;
  width: min(320px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed var(--line);
  animation: spin 22s linear infinite;
}

.hero-image {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--line);
}

.btn {
  padding: .85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform .3s ease, background .3s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--text); color: var(--bg); font-weight: 700; }
.btn-ghost { background: transparent; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.3rem;
}
.section-head p { color: var(--muted); margin: 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.cards article {
  grid-column: span 4;
  border-radius: 18px;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .4s ease, border .4s ease;
}

.cards article:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.5);
}

.card-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #111;
}

.card-body { padding: 1rem; }
.card-body p { color: var(--muted); font-size: .95rem; }
.card-body a { color: var(--text); }


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

.delete-project-btn {
  border: 1px solid rgba(255, 84, 84, 0.5);
  background: rgba(255, 84, 84, 0.12);
  color: #ff9e9e;
  border-radius: 999px;
  padding: .38rem .75rem;
  font-size: .82rem;
  cursor: none;
}

.motion-cursor,
.motion-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

.motion-cursor {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: transform .16s ease, background .2s ease, border-color .2s ease;
}

.motion-cursor.active {
  border-color: rgba(103, 201, 255, 0.9);
  background: rgba(103, 201, 255, 0.17);
  transform: scale(1.25);
}

.motion-cursor-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7fd4ff;
}

.contact {
  border-radius: 24px;
  padding: 1.4rem;
  text-align: center;
}

.owner-access {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  z-index: 60;
}

.owner-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.6rem;
  width: min(380px, 94vw);
  border-radius: 18px;
  padding: 1rem;
  display: none;
  z-index: 60;
}
.owner-panel.open { display: block; animation: pop .35s ease; }
.owner-form { display: grid; gap: .7rem; }
.owner-form label { font-size: .9rem; color: var(--muted); display: grid; gap: .35rem; }
.owner-form input, .owner-form textarea {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: .68rem;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatUp {
  from { transform: translateY(35px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pop {
  from { transform: translateY(8px) scale(.96); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}


@media (max-width: 768px) {
  body { cursor: auto; }
  .motion-cursor,
  .motion-cursor-dot { display: none; }
}

@media (max-width: 960px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-content { order: 2; }
  .hero-image-wrap { order: 1; }
  .cards article { grid-column: span 6; }
  .nav-links { display: none; }
}

@media (max-width: 620px) {
  .cards article { grid-column: span 12; }
  .section-head { flex-direction: column; align-items: start; }
}
