:root {
  color-scheme: dark;
  --bg: #0d0f0e;
  --ink: #f5f0e8;
  --muted: #b9b2a6;
  --line: rgba(245, 240, 232, 0.14);
  --panel: rgba(245, 240, 232, 0.055);
  --panel-strong: rgba(245, 240, 232, 0.1);
  --green: #7ae2a4;
  --gold: #f2c15f;
  --coral: #ff7b6e;
  --cyan: #69cfe8;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 25% 0%, rgba(122, 226, 164, 0.11), transparent 28rem),
    radial-gradient(circle at 90% 20%, rgba(105, 207, 232, 0.1), transparent 24rem),
    linear-gradient(135deg, #0d0f0e 0%, #151411 54%, #101412 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(245, 240, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 240, 232, 0.03) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

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

.cursor-light {
  position: fixed;
  width: 24rem;
  height: 24rem;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 193, 95, 0.13), transparent 68%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 14, 0.72);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 2.3rem;
  height: 2.3rem;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.5vw, 1.6rem);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.section-band {
  padding-inline: clamp(1rem, 4vw, 4rem);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.42fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
  min-height: calc(100svh - 4.5rem);
  padding-top: clamp(4rem, 12vh, 9rem);
  padding-bottom: clamp(2.4rem, 8vh, 5rem);
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: 8.8rem;
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 13ch;
  margin: 0;
  font-size: 5rem;
  line-height: 0.95;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.8rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-text {
  max-width: 42rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.28rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  background: var(--ink);
  color: var(--bg);
}

.button.ghost:hover {
  border-color: rgba(245, 240, 232, 0.34);
  background: var(--panel);
}

.identity-panel {
  display: grid;
  gap: 1.2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--panel), rgba(122, 226, 164, 0.05));
  box-shadow: var(--shadow);
}

.identity-mark {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.panel-kicker {
  margin: 0 0 0.3rem;
  color: var(--gold);
  font-weight: 800;
}

.panel-title {
  margin: 0;
  color: var(--muted);
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(245, 240, 232, 0.035);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: slide 28s linear infinite;
}

.ticker span {
  display: inline-flex;
  padding: 0.95rem 1.6rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.projects,
.craft,
.stack,
.contact {
  padding-top: clamp(4.5rem, 10vw, 8rem);
  padding-bottom: clamp(4.5rem, 10vw, 8rem);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(1.6rem, 4vw, 3rem);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.project-card {
  position: relative;
  min-height: 27rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  isolation: isolate;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease, border-color 180ms ease;
}

.project-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 35rem;
}

.project-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.04);
  transform: scale(1.01);
  transition: transform 500ms ease, filter 500ms ease;
}

.project-card::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(to top, rgba(7, 8, 8, 0.95), rgba(7, 8, 8, 0.24) 55%, rgba(7, 8, 8, 0.08));
}

.project-card:hover img {
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.05);
}

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

.project-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 1.2rem;
}

.project-content p {
  max-width: 34rem;
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  margin-bottom: 0.7rem;
  color: var(--cyan);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.craft-item {
  min-height: 17rem;
  padding: 1.4rem;
  border-right: 1px solid var(--line);
}

.craft-item:last-child {
  border-right: 0;
}

.craft-item span {
  display: block;
  margin-bottom: 4rem;
  color: var(--coral);
  font-weight: 900;
}

.craft-item p {
  color: var(--muted);
}

.language-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  max-width: 58rem;
}

.language-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.language-cloud span:hover {
  transform: translateY(-2px);
  border-color: rgba(122, 226, 164, 0.5);
  background: rgba(122, 226, 164, 0.08);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.45fr);
  gap: 2rem;
  align-items: start;
  border-top: 1px solid var(--line);
}

.contact h2 {
  max-width: 16ch;
}

.social-list {
  display: grid;
  gap: 0.7rem;
}

.social-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-weight: 800;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease;
}

.social-list a::after {
  content: ">";
  color: var(--gold);
}

.social-list a[href^="mailto"]::after {
  content: "@";
}

.social-list a:hover {
  color: var(--ink);
  border-color: rgba(245, 240, 232, 0.3);
  transform: translateX(4px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem clamp(1rem, 4vw, 4rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 980px) {
  h1 {
    font-size: 5.8rem;
  }

  h2 {
    font-size: 3.5rem;
  }

  h3 {
    font-size: 1.45rem;
  }

  .hero-text {
    font-size: 1.12rem;
  }

  .hero,
  .contact {
    grid-template-columns: 1fr;
  }

  .identity-panel {
    grid-template-columns: 8rem minmax(0, 1fr);
    align-items: center;
  }

  .project-grid,
  .craft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card.featured {
    grid-column: span 2;
  }

  .craft-item {
    border-bottom: 1px solid var(--line);
  }

  .craft-item:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 0.4rem;
    font-size: 0.82rem;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .identity-panel,
  .project-grid,
  .craft-grid {
    grid-template-columns: 1fr;
  }

  .project-card,
  .project-card.featured {
    grid-column: auto;
    min-height: 25rem;
  }

  .section-heading {
    display: block;
  }

  .craft-item,
  .craft-item:nth-child(2n) {
    border-right: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}
