:root {
  --bg: #111210;
  --panel: #181916;
  --panel-2: #1d1d19;
  --line: #343229;
  --text: #f2efe7;
  --muted: #aaa598;
  --accent: #d9a24c;
  --accent-soft: #8e6835;
  --shadow: rgba(0,0,0,.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(165,110,45,.10), transparent 30%),
    linear-gradient(180deg, #111210 0%, #0d0e0c 100%);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(15,16,14,.88);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1240px;
  margin: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand span,
.hero h1 span {
  color: var(--text);
}

.brand,
.hero h1 {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 26px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--accent);
}

main {
  max-width: 1240px;
  margin: auto;
}

.hero {
  min-height: 470px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 72px 24px 48px;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -.04em;
}

.hero h2 {
  font-size: 24px;
  margin: 20px 0 14px;
  font-weight: 600;
}

.hero p {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.stat {
  border: 1px solid var(--line);
  background: rgba(28,28,24,.72);
  border-radius: 12px;
  padding: 16px 18px;
}

.stat strong {
  display: block;
  color: var(--accent);
  font-size: 28px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  background:
    radial-gradient(circle at 76% 45%, rgba(218,150,68,.20), transparent 34%),
    linear-gradient(135deg, #161712, #0b0c0a 70%);
}

.screen {
  position: absolute;
  width: 62%;
  height: 52%;
  right: 9%;
  top: 18%;
  background: #10130f;
  border: 1px solid #39382f;
  border-radius: 10px;
  box-shadow:
    0 24px 50px rgba(0,0,0,.55),
    0 0 45px rgba(216,155,73,.10);
  padding: 20px;
  transform: perspective(900px) rotateY(-7deg);
}

.screen-top {
  height: 14px;
  border-radius: 5px;
  background: #26271f;
  margin-bottom: 22px;
}

.code-line {
  height: 7px;
  margin: 12px 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #b37d39, #56634d);
  opacity: .8;
}

.w90 { width: 90%; }
.w80 { width: 80%; }
.w75 { width: 75%; }
.w70 { width: 70%; }
.w60 { width: 60%; }
.w50 { width: 50%; }

.lamp {
  position: absolute;
  left: 13%;
  top: 21%;
  width: 84px;
  height: 84px;
  background: radial-gradient(circle, #ffd38a 0%, rgba(227,150,59,.35) 38%, transparent 72%);
  filter: blur(2px);
}

.desk {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 8%;
  height: 17%;
  border-top: 1px solid #4a3824;
  background: linear-gradient(180deg, #2a2118, #15120f);
  border-radius: 4px;
}

.section {
  padding: 58px 24px 28px;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.about h2 {
  margin: 4px 0 0;
  font-size: 30px;
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(180deg, #1b1c18, #151613);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-soft);
  box-shadow: 0 18px 36px var(--shadow);
}

.project-media {
  aspect-ratio: 16/9;
  border-bottom: 1px solid var(--line);
}

.placeholder {
  display: grid;
  place-items: center;
  color: #776f62;
  background:
    radial-gradient(circle at 70% 30%, rgba(194,127,55,.16), transparent 24%),
    linear-gradient(135deg, #25251f, #151612);
  font-size: 13px;
}

.placeholder.warm {
  background:
    radial-gradient(circle at 75% 35%, rgba(220,151,67,.20), transparent 26%),
    linear-gradient(135deg, #28231b, #151612);
}

.project-body {
  padding: 18px;
}

.project-body h3 {
  margin: 0 0 9px;
  font-size: 21px;
}

.project-body p {
  min-height: 52px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

.project-link {
  color: var(--accent);
  font-size: 14px;
}

.status {
  display: inline-block;
  padding: 7px 10px;
  border: 1px solid #4a483f;
  color: #aaa598;
  border-radius: 8px;
  font-size: 12px;
}

.about {
  margin: 38px 24px 62px;
  padding: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 40px;
}

.about p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

footer {
  max-width: 1240px;
  margin: auto;
  padding: 25px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

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

  .hero-visual {
    min-height: 330px;
  }

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

@media (max-width: 640px) {
  .topbar-inner {
    padding: 12px 16px;
  }

  nav {
    gap: 14px;
  }

  nav a {
    font-size: 12px;
  }

  .hero-copy {
    padding: 48px 18px 32px;
  }

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

  .section {
    padding: 42px 18px 18px;
  }

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

  .about {
    grid-template-columns: 1fr;
    margin: 34px 18px 48px;
  }
}
