:root {
  --bg: #0D1013;
  --fg: #F2F4F5;
  --accent: #5EE6D6;
  --muted: #8b9296;
  --muted-dim: #5b6266;
  --texture: #3a4044;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --card-bg: rgba(255, 255, 255, 0.025);
  --card-bg-hover: rgba(255, 255, 255, 0.045);

  --container: 800px;
  --pad: 1.5rem;

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --r-md: 10px;
  --r-lg: 14px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --d-fast: 160ms;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-card-hover: 0 1px 2px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Film-grain texture — subtle depth, not flat black */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  transition: color var(--d-fast) var(--ease);
}

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

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Hero / brandmark ──────────────────────────────────── */

.hero {
  text-align: center;
  padding: var(--space-4) var(--pad) var(--space-4);
}

.brandmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
}

.mark-box {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.38;
}

.mark-bracket {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.38;
  stroke-linecap: square;
}

.mark-letter {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 30px;
  fill: var(--fg);
}

.wordmark-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
  color: var(--fg);
}

.wordmark-text .dot {
  color: var(--accent);
}

.subhead {
  margin-top: var(--space-1);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--muted);
}

/* ── 404 ───────────────────────────────────────────────── */

.not-found {
  text-align: center;
  padding: var(--space-6) 0 var(--space-7);
}

.not-found .eyebrow {
  justify-content: center;
}

.not-found h2 {
  margin-bottom: var(--space-2);
}

.not-found .muted-text {
  margin-bottom: var(--space-4);
}

/* ── Layout ────────────────────────────────────────────── */

main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: var(--space-6) 0;
}

.section:first-child {
  padding-top: 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--accent);
  opacity: 0.75;
}

.section h2 {
  font-size: 1.65rem;
  margin-bottom: var(--space-3);
}

.overview {
  font-size: 1.1rem;
  color: var(--fg);
  max-width: 640px;
}

.banner {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-3);
}

/* ── Divider — dashed connector motif ──────────────────── */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-image: repeating-linear-gradient(
    to right,
    rgba(94, 230, 214, 0.75) 0,
    rgba(94, 230, 214, 0.75) 2px,
    transparent 2px,
    transparent 4.5px
  );
}

.divider span {
  flex: none;
  width: 5px;
  height: 5px;
  margin: 0 var(--space-2);
  border-radius: 50%;
  background: var(--accent);
}

/* ── Portfolio ─────────────────────────────────────────── */

.portfolio {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-card);
  transition: background var(--d-fast) var(--ease),
              border-color var(--d-fast) var(--ease),
              box-shadow var(--d-fast) var(--ease),
              transform var(--d-fast) var(--ease);
}

.card:hover {
  background: var(--card-bg-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.card .mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: var(--space-2);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── Body copy ─────────────────────────────────────────── */

.muted-text {
  color: var(--muted);
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-card p {
  margin: 0;
}

.contact-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
}

.contact-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.contact-email {
  align-self: flex-start;
  margin-top: 0.4rem;
  color: var(--fg);
}

.contact-email:hover {
  color: var(--accent);
}

/* ── Footer ────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: var(--space-5) var(--pad) var(--space-6);
  margin-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--muted-dim);
}

.dot {
  color: var(--accent);
}

/* ── Responsive ────────────────────────────────────────── */

@media (min-width: 600px) {
  .portfolio {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: var(--space-6) var(--pad) var(--space-5);
  }
  .section h2 {
    font-size: 1.4rem;
  }
}
