/* Elijah Visser — personal portfolio stylesheet */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f3f5fc;
  --surface: #ffffff;
  --text: #111318;
  --text-muted: #5b5f6d;
  --border: #e5e7f0;
  --ink: #0d0d0d;
  --primary: #2547d0;
  --primary-dark: #1b358e;
  --accent: #4d6bff;
  --accent-contrast: #ffffff;
  --success-bg: #eaf3ec;
  --success-text: #1e6b34;
  --error-bg: #fbeaea;
  --error-text: #a5271c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(17, 19, 24, 0.04);
  --shadow-lift: 0 16px 40px rgba(17, 19, 24, 0.09);
  --max-width: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; color: var(--text); }
.text-muted { color: var(--text-muted); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-links a:hover { color: var(--text); }

.btn.nav-cta { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
}

@media (min-width: 720px) {
  .btn.nav-cta { display: inline-flex; }
}

@media (max-width: 719px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.06s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--bg-alt); }

.btn-block { width: 100%; border-radius: var(--radius-sm); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 128px 0 84px; }

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 480px; height: 480px;
  background: var(--accent);
  opacity: 0.16;
  top: -160px; right: -120px;
}

.hero::after {
  width: 380px; height: 380px;
  background: var(--primary);
  opacity: 0.12;
  bottom: -180px; left: -100px;
}

.hero-inner { position: relative; z-index: 1; max-width: 62ch; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 30px; max-width: 52ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Photo placeholder */
.photo-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 140% at 20% 15%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 60%),
    radial-gradient(120% 140% at 85% 85%, color-mix(in srgb, var(--primary) 25%, transparent) 0%, transparent 60%),
    var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-width: 280px;
}

.photo-placeholder .mark {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em;
  box-shadow: var(--shadow-lift);
}

.photo-caption { font-size: 0.82rem; color: var(--text-muted); margin-top: 12px; text-align: center; }

.about-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 780px) {
  .about-grid { grid-template-columns: 280px 1fr; }
}

/* Icon badge */
.icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }

/* Grids / cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}
.card h3 { margin-bottom: 8px; }

.card-meta {
  margin-top: 16px; margin-bottom: 0;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--primary);
}

/* Case study */
.case-study {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 22px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.case-study:hover { box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--primary) 25%, var(--border)); }
.case-study .eyebrow { margin-bottom: 8px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 20px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 0.88rem;
  margin-bottom: 14px;
}

/* CTA band */
.cta-band {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 160% at 12% 0%, var(--primary) 0%, var(--primary-dark) 65%);
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 44px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 52ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: var(--ink); }
.cta-band .btn-primary:hover { background: #000; }

/* Forms */
.form-field { margin-bottom: 18px; }
label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; }

input, textarea {
  width: 100%; padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text);
  font-family: inherit; font-size: 0.95rem;
}
input:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { resize: vertical; min-height: 120px; }

.honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  padding: 14px 16px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem; margin-bottom: 18px; display: none;
}
.form-status.visible { display: block; }
.form-status.success { background: var(--success-bg); color: var(--success-text); }
.form-status.error { background: var(--error-bg); color: var(--error-text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0; margin-top: 40px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--primary); }
.footer-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 20px; }

.text-center { text-align: center; }
