:root {
  --bg: #0c1410;
  --ink: #e7efe8;
  --muted: #9aafa0;
  --accent: #c8f082;
  --accent-deep: #6f9b3c;
  --panel: rgba(22, 36, 28, 0.72);
  --line: rgba(200, 240, 130, 0.18);
  --display: "Syne", sans-serif;
  --body: "Figtree", sans-serif;
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--body);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #e8ffb5;
}

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 15% 10%, rgba(111, 155, 60, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 45% at 90% 20%, rgba(40, 80, 60, 0.35), transparent 50%),
    linear-gradient(165deg, #0c1410 0%, #122018 45%, #0a100d 100%);
}

.mist {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
}

.mist-a {
  top: -10%;
  left: -8%;
  background: rgba(104, 140, 70, 0.35);
  animation: drift 18s ease-in-out infinite alternate;
}

.mist-b {
  right: -12%;
  bottom: 5%;
  background: rgba(45, 90, 70, 0.4);
  animation: drift 22s ease-in-out infinite alternate-reverse;
}

.glow {
  position: absolute;
  inset: auto 20% 18% 20%;
  height: 40%;
  background: radial-gradient(ellipse at center, rgba(200, 240, 130, 0.08), transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(4%, 6%) scale(1.08); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

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

.top,
.hero,
.work,
.about,
.foot {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 0;
  animation: rise 0.7s ease both;
}

.logo {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.top nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.hero {
  min-height: calc(100vh - 5.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0 4rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  animation: rise 0.8s 0.05s ease both;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3rem, 10vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 10ch;
  animation: rise 0.85s 0.12s ease both;
}

.lede {
  margin: 1.35rem 0 0;
  max-width: 28rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  animation: rise 0.9s 0.2s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
  animation: rise 0.95s 0.28s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #122016;
}

.btn-primary:hover {
  background: #e8ffb5;
  color: #122016;
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(200, 240, 130, 0.4);
}

.work,
.about {
  padding: 1rem 0 4.5rem;
}

.work h2,
.about h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 0;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--panel);
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.project:hover {
  border-color: rgba(200, 240, 130, 0.45);
  transform: translateY(-3px);
}

.project-visual {
  min-height: 220px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(104, 140, 70, 0.35), transparent 55%),
    linear-gradient(200deg, #1a3328, #0f1c16 70%);
}

.project-icon {
  width: min(68%, 180px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.project-mark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 4rem;
  letter-spacing: -0.04em;
  color: rgba(200, 240, 130, 0.85);
}

.project-copy {
  padding: 1.6rem 1.7rem;
}

.project-kind {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-copy h3 {
  margin: 0.45rem 0 0.7rem;
  font-family: var(--display);
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.project-copy p {
  margin: 0;
  color: var(--muted);
}

.project-link {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--accent);
  font-weight: 600;
}

.about p {
  margin: 0;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.foot {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.95rem;
}

.foot p {
  margin: 0.35rem 0;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
}

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

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

  .project-visual {
    min-height: 160px;
  }

  .top nav a:last-child {
    display: none;
  }
}
