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

:root {
  --bg:      #0d0f13;
  --surface: #13161d;
  --border:  #222631;
  --muted:   #3d4460;
  --body:    #9aa0bc;
  --bright:  #dde1f0;
  --green:   #3ddc84;
  --mono: 'Martian Mono', monospace;
  --sans: 'Sono', sans-serif;
  --max: 1200px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.75;
  /* svg noise inline so no extra http request */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- header ---- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 15, 19, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wordmark {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--bright);
  text-decoration: none;
}

.nav-cta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--green) !important;
  border: 1px solid var(--green);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  transition: background 0.15s, color 0.15s !important;
}
.nav-cta:hover {
  background: var(--green);
  color: var(--bg) !important;
  text-decoration: none !important;
}

/* ---- layout ---- */

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 3rem;
}

section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
}
section:last-child {
  border-bottom: none;
}

h2 {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

/* ---- hero ---- */

.hero {
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero h1 {
  font-family: var(--mono);
  font-size: clamp(2rem, 3.2vw, 4rem);
  font-weight: 300;
  color: var(--bright);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 480px;
}

.hero-body p {
  font-size: 1.05rem;
  line-height: 1.85;
  font-family: var(--sans);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.7rem 1.4rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  letter-spacing: 0.03em;
}

.btn-solid {
  background: var(--green);
  color: var(--bg);
  border: 1px solid var(--green);
}
.btn-solid:hover {
  opacity: 0.88;
  text-decoration: none;
}

.btn-ghost {
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--muted);
  color: var(--bright);
  text-decoration: none;
}

.clock-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.clock-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#counter {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

/* ---- what ---- */

.what-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
}

.what-inner h2 {
  margin-bottom: 0;
  padding-top: 0.2rem;
}

.what-body p {
  margin-bottom: 1.3rem;
  font-size: 1rem;
  max-width: 600px;
}
.what-body p:last-of-type {
  margin-bottom: 0;
}

.nudge {
  color: var(--muted);
  font-size: 0.92rem !important;
  font-style: italic;
  margin-top: 1.5rem !important;
}

/* ---- how ---- */

.how-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
}

.how-inner h2 {
  margin-bottom: 0;
  padding-top: 0.2rem;
}

.how ol {
  list-style: none;
}

.how li {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.how li:first-child {
  border-top: 1px solid var(--border);
}
.how li:last-child {
  border-bottom: none;
}

.n {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--muted);
  padding-top: 0.15rem;
  letter-spacing: 0.05em;
}

.how strong {
  color: var(--bright);
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.how div {
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ---- work ---- */

.work-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
}

.work-inner h2 {
  margin-bottom: 0;
  padding-top: 0.2rem;
}

.work-body p {
  font-size: 1rem;
  max-width: 520px;
}

.project {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.project h3 {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--bright);
  margin-bottom: 0.6rem;
}
.project p {
  margin-bottom: 1rem;
}

/* ---- contact ---- */

.contact-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-inner h2 {
  margin-bottom: 0;
  padding-top: 0.2rem;
}

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2.5rem;
  max-width: 560px;
  position: relative;
  overflow: hidden;
}

.contact-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
}

.contact-box p {
  font-size: 1rem;
  margin-bottom: 1.8rem;
  max-width: 400px;
}

.mailto {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--bright);
  border-bottom: 1px solid var(--green);
  padding-bottom: 2px;
  transition: color 0.15s;
}
.mailto:hover {
  color: var(--green);
  text-decoration: none;
}

/* ---- footer ---- */

footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.8rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

footer nav {
  display: flex;
  gap: 1.5rem;
}

footer a {
  color: var(--muted);
}
footer a:hover {
  color: var(--body);
  text-decoration: none;
}

/* ---- responsive ---- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: unset;
    padding-top: 5rem;
  }
  .what-inner,
  .how-inner,
  .work-inner,
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  main { padding: 0 1.4rem; }
  .header-inner { padding: 1.1rem 1.4rem; }
  .footer-inner { padding: 1.4rem; }
  .nav-links { display: none; }
  .nav-cta { display: block; }
  .hero h1 { font-size: 1.8rem; }
  .hero-body p { font-size: 0.92rem; }
  section { padding: 4rem 0; }
  .contact-box { padding: 1.6rem; }
}
