﻿:root {
  --bg: #050505;
  --surface: #0f0f0f;
  --surface-2: #171717;
  --white: #f6f6f6;
  --cyan: #38bdf8;
  --text: #f6f6f6;
  --muted: #b8c2cc;
  --accent: var(--cyan);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(90deg, transparent 0 97%, rgba(56, 189, 248, 0.08) 97% 100%);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
}

img,
svg {
  max-width: 100%;
}

.container {
  width: min(1110px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 5, 0.95);
  border-bottom: 4px solid var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border: 2px solid var(--white);
  background: var(--surface);
  padding: 2px;
}

.site-nav {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-nav a {
  background: var(--surface);
  border: 3px solid var(--white);
  color: var(--text);
  padding: 8px 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  box-shadow: 4px 4px 0 0 var(--accent);
}

.site-nav a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--white);
}

.hero-section {
  padding: 5rem 0 3rem;
  margin: 1.25rem 0 0;
  background: linear-gradient(135deg, #060606 0%, #111111 100%);
  border: 4px solid var(--white);
  box-shadow: 10px 10px 0 0 var(--accent);
}

.hero-content {
  max-width: 760px;
  padding: 1rem;
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1rem;
  border: 2px solid var(--accent);
  padding: 0.25rem 0.6rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  line-height: 1.05;
  max-width: 12ch;
}

.hero-copy {
  margin: 1.25rem 0 1.75rem;
  color: var(--muted);
  max-width: 45rem;
  font-size: 1.05rem;
}

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

.button {
  display: inline-block;
  background: var(--surface);
  color: var(--white);
  border: 3px solid var(--white);
  padding: 14px 24px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 4px 4px 0 0 var(--accent);
}

.button:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--white);
}

.button.secondary {
  background: transparent;
  color: var(--text);
}

.button.secondary:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 0 var(--white);
}

.section {
  padding: 4rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border: 3px solid var(--white);
  background: var(--surface);
}

.section-header p {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 60ch;
}

.about-grid,
.projects-grid,
.toolbox-grid {
  display: grid;
  gap: 1.5rem;
}

.about-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.toolbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.about-card,
.project-card,
.toolbox-card,
.contact-card {
  background: var(--surface);
  border: 4px solid var(--white);
  padding: 1.75rem;
  box-shadow: 8px 8px 0 0 var(--accent);
}

.about-card h3,
.project-card h3,
.toolbox-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text);
}

.about-card p,
.project-card p,
.toolbox-card p,
.contact-card p {
  margin: 0;
  color: var(--muted);
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  align-items: stretch;
}

.project-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.project-link {
  display: inline-block;
  margin-top: auto;
  background: var(--surface-2);
  border: 3px solid var(--white);
  color: var(--accent);
  padding: 8px 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  align-self: flex-start;
  margin-top: 1.25rem;
}

.project-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.contact-card {
  max-width: 540px;
}

.contact-card a {
  color: var(--accent);
  text-decoration: none;
}

.site-footer {
  padding: 1.5rem 0 2rem;
  border-top: 3px solid var(--white);
}

.footer-inner {
  display: flex;
  justify-content: center;
  color: var(--muted);
}

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

  .hero-section {
    margin-top: 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
