:root {
  /* M3Labs brand: navy #171638→#211F49, amber #F6A204→#E88D03, graphite #66666A */
  --bg: #f7f7fa;
  --fg: #171638;
  --muted: #55566a;
  --line: #e1e0ea;
  --card: #ffffff;
  --accent: #F6A204;          /* fills: buttons, borders */
  --accent-ink: #171638;      /* text on amber */
  --accent-text: #9a5a00;     /* amber dark enough for text on light */
  --hero-bg: linear-gradient(135deg, #171638, #211F49);
  --hero-fg: #f3f2fa;
  --hero-muted: #b9b8d6;
  --hero-accent: #F6A204;
  --ok: #2f7a4d;
  --err: #b3402e;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0e26;
    --fg: #e9e8f4;
    --muted: #a3a2c2;
    --line: #2a2852;
    --card: #17163a;
    --accent-text: #F6A204;
    --hero-bg: linear-gradient(135deg, #0b0a1e, #171638);
    --ok: #6fd39a;
    --err: #f08a76;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 64rem; margin-left: auto; margin-right: auto; padding-left: 1rem; padding-right: 1rem; }

.top { background: #171638; border-bottom: 1px solid rgba(255,255,255,.06); color: var(--hero-fg); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; height: 4rem; }
.logo { display: flex; align-items: center; }
.logo img { height: 2rem; width: auto; display: block; }
.top nav { display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 30rem) { .top nav a[href="#about"] { display: none; } }
.navlink { color: var(--hero-muted); text-decoration: none; font-size: .9rem; }
.navlink:hover { color: var(--hero-fg); }

.hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  padding: 4.5rem 0 3.75rem;
  margin-bottom: 3.5rem;
}

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--hero-accent);
  font: 600 .75rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 48rem;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}
.lede { margin: 1.25rem 0 0; max-width: 42rem; font-size: 1.125rem; color: var(--hero-muted); }
.lede strong { color: var(--hero-fg); font-weight: 600; }

main > section { margin-top: 0; margin-bottom: 4.5rem; }

h2 { font-size: 1.5rem; letter-spacing: -.01em; margin: 0 0 1.25rem; }
h3 { font-size: 1.05rem; margin: 0 0 .4rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 60rem) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 38rem) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1.25rem 1.25rem 1rem;
}
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.how { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.how p { margin: 0; color: var(--muted); }
.fine { margin-top: 1.5rem; font-size: .9rem; color: var(--muted); }

.about-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  max-width: 52rem;
}
.about-card h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.about-card p { margin: 0 0 .9rem; color: var(--muted); }
.about-card .role { margin: 0 0 .9rem; color: var(--accent-text); font-weight: 600; font-size: .9rem; }
.about-card .fine { margin-top: 0; font-size: .85rem; }
.links { display: flex; flex-wrap: wrap; gap: .6rem; }
.photo {
  flex: none;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--line);
}
@media (max-width: 34rem) {
  .about-card { flex-direction: column; }
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--hero-bg);
  color: var(--hero-accent);
  font: 700 1.1rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.linkedin {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
}
.linkedin:hover { border-color: var(--accent); color: var(--accent-text); }
footer a { color: inherit; }

.contact > p, .contact form { max-width: 44rem; }
.contact > p { color: var(--muted); margin-top: -.5rem; }

form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .875rem; }
.hint { font-weight: 400; color: var(--muted); }

input, textarea, select {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

button {
  justify-self: start;
  padding: .7rem 1.75rem;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
button:disabled { opacity: .6; cursor: default; }

.status { margin: 0; min-height: 1.4em; font-size: .95rem; color: var(--muted); }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .85rem; }
