:root {
  --bg: #0e0f12;
  --bg-2: #15171c;
  --card: #1a1d23;
  --line: #2a2e36;
  --text: #ecedef;
  --muted: #9aa0aa;
  --red: #e0323c;
  --red-2: #ff5a5f;
  --radius: 14px;
  --max: 1320px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14,15,18,.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 800; font-size: 28px; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.brand img, .brand svg { width: 48px; height: 48px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); font-size: 16px; }
.nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 110px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; left: 50%; bottom: -420px; transform: translateX(-50%);
  width: 900px; height: 600px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(224,50,60,.35), rgba(224,50,60,0));
  pointer-events: none;
}
.eyebrow { color: var(--red-2); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; }
.hero h1 { font-size: clamp(36px, 5.2vw, 80px); line-height: 1.08; margin: 14px 0 18px; font-weight: 800; }
.hero h1 span { color: var(--red); }
.hero p.lead { font-size: 20px; color: var(--muted); max-width: 760px; margin: 0 0 32px; }
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 10px; font-weight: 700;
  background: var(--red); color: #fff; border: 1px solid var(--red);
}
.btn:hover { background: var(--red-2); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); margin-left: 10px; }
.btn.ghost:hover { border-color: var(--muted); }

/* Sections */
section { padding: 80px 0; border-top: 1px solid var(--line); }
section h2 { font-size: 32px; margin: 8px 0 12px; }
section .sub { color: var(--muted); max-width: 640px; margin: 0 0 40px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { margin: 12px 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(224,50,60,.12); color: var(--red-2); }
.icon svg { width: 22px; height: 22px; }

/* Projects */
.project { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.project .shot {
  aspect-ratio: 16 / 9; background: var(--bg-2); border-bottom: 1px solid var(--line);
  display: grid; place-items: center; color: #555b66; font-size: 13px;
}
.project .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.project .shot.contain { background: #161920; }
.project .shot.contain img { object-fit: contain; object-position: center; }
.grid.projects { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.project .body { padding: 20px 22px 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 12px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.project .links { margin-top: 14px; font-size: 14px; font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about p { color: var(--muted); }
.about p strong { color: var(--text); }
.values { list-style: none; padding: 0; margin: 0; }
.values li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.values li b { display: block; }
.values li span { color: var(--muted); font-size: 15px; }

/* Contact */
.contact { text-align: center; }
.contact .sub { margin: 0 auto 30px; }
.mail { font-size: 22px; font-weight: 700; display: inline-block; margin-bottom: 10px; }
.note { color: var(--muted); font-size: 14px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); }

@media (min-width: 1800px) {
  :root { --max: 1520px; }
  body { font-size: 17px; }
  section .sub, .hero p.lead { max-width: 820px; }
}
@media (min-width: 2200px) {
  :root { --max: 1760px; }
  body { font-size: 18px; }
}
@media (max-width: 760px) {
  .brand { font-size: 22px; }
  .brand img { width: 38px; height: 38px; }
  .site-header .wrap { height: 66px; }
  .nav { display: none; }
  .hero { padding: 70px 0 60px; }
  .about { grid-template-columns: 1fr; }
  .btn.ghost { margin: 10px 0 0; }
  section { padding: 60px 0; }
}
