/* Pixelated Coder: charcoal studio with a warm amber accent. */
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #121115;
  --bg-2: #18171C;
  --panel: #1F1E25;
  --panel-2: #29272F;
  --line: #34313B;
  --text: #F4EDE1;
  --text-soft: #B3AB9F;
  --text-dim: #8A8378;
  --amber: #F2B544;
  --amber-hover: #F7C566;
  --amber-ink: #241A06;
  --sage: #A9C47F;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, sans-serif;
  overflow-x: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
}
body > main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--amber); }
a:hover { color: var(--amber-hover); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
h1, h2, h3 { font-family: "Space Grotesk", "Inter", sans-serif; font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }

/* ---------------------------------------------------------- top bar */
.top {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: "Space Grotesk", sans-serif; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.brand b { color: var(--amber); font-weight: 600; }
.brand:hover { color: var(--text); }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a { color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--text); }
.top nav .nav-cta {
  color: var(--amber); border: 1.5px solid var(--amber); border-radius: 999px; padding: 7px 16px;
  font: 600 15px/1.2 "Space Grotesk", sans-serif;
}
.top nav .nav-cta:hover { background: var(--amber); color: var(--amber-ink); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--amber); color: var(--amber-ink);
  font: 600 17px/1 "Space Grotesk", sans-serif;
  border-radius: 999px;
  padding: 15px 26px; text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--amber-hover); color: var(--amber-ink); transform: translateY(-2px); }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.btn.ghost:hover { background: var(--line); color: var(--text); }
.btn.big { font-size: 19px; padding: 19px 34px; }

/* The blinking block cursor after headlines. */
.cursor {
  display: inline-block; width: 0.07em; height: 0.9em; margin-left: 0.1em;
  background: var(--amber); vertical-align: -0.08em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------- hero */
.hero { position: relative; padding: 56px 0 96px; overflow: hidden; }
.hero::before {
  /* faint grid that fades out towards the bottom */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--bg-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-2) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-soft); font-size: 15px; font-weight: 500;
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px 6px 14px; margin-bottom: 26px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(169, 196, 127, 0.18); }
.hero h1 { font-size: clamp(38px, 4.9vw, 60px); }
.lead { margin-top: 24px; font-size: 19px; color: var(--text-soft); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.stack { position: relative; aspect-ratio: 1 / 0.82; }
.shot {
  position: absolute; margin: 0; padding: 8px; background: var(--panel-2); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.shot img { width: 100%; height: auto; border-radius: 11px; }
.shot-a { top: 0; left: 0; width: 86%; }
.shot-b { right: 0; bottom: 0; width: 70%; background: var(--line); }

/* ---------------------------------------------------------- sections */
section { padding: 96px 0; }
.band { background: var(--bg-2); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2, .team h2, .contact h2 { font-size: clamp(30px, 3.8vw, 44px); }
.section-head p:not(.kicker) { margin-top: 16px; color: var(--text-soft); font-size: 18px; }
.kicker {
  color: var(--amber); font: 600 13px/1 "Space Grotesk", sans-serif;
  text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 14px;
}
.kicker::before { content: "> "; color: var(--text-dim); }

/* services */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { padding: 28px 24px 30px; transition: background .2s; }
.service:hover { background: var(--panel-2); }
.service .ic {
  width: 44px; height: 44px; padding: 9px; margin-bottom: 20px; border-radius: 12px;
  background: rgba(242, 181, 68, 0.12); stroke: var(--amber); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.service h3 { font-size: 23px; margin-bottom: 10px; }
.service p { color: var(--text-soft); font-size: 16px; }

/* small team */
.team { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: center; }
.team > div > p:not(.kicker) { margin-top: 18px; color: var(--text-soft); font-size: 18px; }
.name-note { font-size: 16px !important; padding-top: 18px; border-top: 1px solid var(--line); }
.name-note b { color: var(--text); font-weight: 600; }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.perks li {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text-soft); font-size: 16px;
}
.perks b { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.num { font: 600 15px/1.6 "Space Grotesk", sans-serif; color: var(--amber); }

/* projects */
.project {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  padding: 18px; margin-bottom: 28px; border-radius: 20px;
}
.project.flip .project-shot { order: 2; }
.project-shot { overflow: hidden; background: #000; border-radius: 10px; }
.project-shot img { width: 100%; height: auto; transition: transform .5s; }
.project:hover .project-shot img { transform: scale(1.03); }
.project-body { padding: 14px 22px 14px 4px; }
.project.flip .project-body { padding: 14px 4px 14px 22px; }
.project-title { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.project-title img { border-radius: 14px; }
.project-title h3 { font-size: 30px; }
.project-title p { color: var(--text-dim); font-size: 15px; }
.project-body > p { color: var(--text-soft); }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--panel-2); border-radius: 999px; color: var(--text); font-size: 13px; font-weight: 500; padding: 5px 12px; }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 24px; font-weight: 600; font-size: 15px; }
.links a { text-decoration: none; }
.status { color: var(--sage); font-weight: 500; display: inline-flex; align-items: center; gap: 8px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { padding: 26px 24px 28px; }
.steps .num { display: block; font-size: 30px; line-height: 1; margin-bottom: 18px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { color: var(--text-soft); font-size: 16px; }

/* contact */
.contact {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 52px 56px; border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(242, 181, 68, 0.16), rgba(242, 181, 68, 0) 60%),
    var(--panel);
}
.contact p:not(.kicker) { margin-top: 14px; color: var(--text-soft); max-width: 36em; }
.contact .btn { flex-shrink: 0; }

/* ---------------------------------------------------------- docs */
.doc { padding: 32px 0 88px; }
.doc .wrap { max-width: 820px; }
.doc article { padding: 44px 48px 48px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 8px; }
.doc h1 + p { color: var(--text-dim); }
.doc h2 { font-size: 24px; margin: 36px 0 10px; color: var(--amber); }
.doc p, .doc li { color: var(--text-soft); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc a { overflow-wrap: anywhere; }

/* 404 */
.lost { padding: 80px 0 120px; }
.lost h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.lost p:not(.kicker) { color: var(--text-soft); margin-bottom: 30px; }

/* ---------------------------------------------------------- footer */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--text-dim); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
footer nav { display: flex; gap: 22px; }
footer a { color: var(--text-soft); text-decoration: none; }
footer a:hover { color: var(--amber); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .services, .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .team { grid-template-columns: 1fr; gap: 48px; }
  .stack { max-width: 620px; }
  .project, .project.flip { grid-template-columns: 1fr; gap: 8px; }
  .project.flip .project-shot { order: 0; }
  .project-body, .project.flip .project-body { padding: 18px 10px 12px; }
}
@media (max-width: 720px) {
  .top nav a:not(.nav-cta) { display: none; }
  .brand span { font-size: 20px; }
  .hero { padding: 28px 0 64px; }
  .lead { font-size: 17px; }
  section { padding: 64px 0; }
  .services, .steps { grid-template-columns: 1fr; }
  .contact { flex-direction: column; align-items: flex-start; padding: 36px 26px; }
  .doc article { padding: 30px 22px 34px; }
}
@media (max-width: 400px) {
  .top nav .nav-cta { padding: 5px 10px; font-size: 14px; }
  .brand img { width: 30px; height: 30px; }
  .brand span { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .btn, .project-shot img { transition: none; }
}
