:root {
  --navy: #1b1f33;
  --navy-2: #252a42;
  --yellow: #fdc80a;
  --ink: #23263a;
  --muted: #5d6275;
  --line: #e4e6ec;
  --bg: #f6f7f9;
  --card: #ffffff;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px;
  background: var(--yellow); opacity: .08; border-radius: 50%;
}
.hero .wrap { display: flex; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 1; }
.avatar {
  flex: none; width: 168px; height: 168px; border-radius: 50%;
  border: 6px solid var(--yellow); object-fit: cover; background: var(--navy-2);
}
.hero h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: .04em; font-weight: 800; text-transform: uppercase; }
.hero h1 span { font-weight: 400; }
.roles { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #c9ccd8; }
.roles li:first-child { color: var(--yellow); font-weight: 600; }
.meta { margin: 18px 0 0; color: #c9ccd8; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; text-decoration: none; border: 2px solid var(--yellow); transition: .15s;
}
.btn-primary { background: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: #ffd83d; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

/* ---------- sections ---------- */
section { padding: 56px 0; }
section + section { padding-top: 8px; }
h2 {
  font-size: 20px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 24px;
  display: flex; align-items: center; gap: 12px;
}
h2::before { content: ""; width: 8px; height: 26px; background: var(--yellow); border-radius: 2px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

.summary { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.summary p { margin: 0 0 12px; }
.summary p:last-child { margin-bottom: 0; }
.stats { display: grid; gap: 12px; }
.stat { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px 22px; }
.stat b { display: block; font-size: 26px; color: var(--yellow); line-height: 1.2; }
.stat span { font-size: 14px; color: #c9ccd8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 500; }
.chips li.key { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.service h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.35; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--yellow); font-size: 22px; line-height: 1; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* ---------- AI projects ---------- */
.ai-intro { margin: -8px 0 20px; max-width: 760px; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.project { background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.project h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.project .what { margin: 0; color: var(--muted); }
.project ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.project li::marker { color: var(--yellow); }
.status { align-self: flex-start; padding: 2px 10px; border-radius: 999px; background: #e7f6ec; color: #1d6b3a; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.status::before { content: "● "; }
.project .tech { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 6px 0 0; list-style: none; }
.tech li { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #fff; }

/* ---------- experience ---------- */
.timeline { display: grid; gap: 14px; }
.job { display: grid; grid-template-columns: 190px 1fr; gap: 24px; }
.job .when { color: var(--muted); font-size: 14px; font-weight: 600; padding-top: 2px; }
.job h3 { margin: 0; font-size: 17px; text-transform: uppercase; letter-spacing: .03em; }
.job .org { margin: 2px 0 10px; font-weight: 600; color: var(--muted); font-size: 14px; }
.job p { margin: 0; }
.now { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: .08em; vertical-align: 2px; }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.site { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.site:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(27,31,51,.12); }
.site .shot { aspect-ratio: 377 / 453; background: var(--navy-2); overflow: hidden; }
.site .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.site .info { padding: 14px 18px 16px; border-top: 1px solid var(--line); }
.site .domain { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.site .domain::after { content: "\00a0↗"; color: var(--muted); font-weight: 400; }
.site .kind { font-size: 13px; color: var(--muted); }
.note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
blockquote { margin: 0; background: var(--navy); color: #e8e9ef; border-radius: var(--radius); padding: 26px; position: relative; display: flex; flex-direction: column; gap: 14px; }
blockquote::before { content: "“"; font-size: 64px; line-height: .6; color: var(--yellow); font-family: Georgia, serif; }
blockquote p { margin: 0; font-size: 15px; }
blockquote footer { margin-top: auto; font-weight: 700; color: var(--yellow); font-size: 14px; }
blockquote footer span { color: #9ea3b5; font-weight: 500; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two h3 { margin: 0 0 4px; font-size: 16px; text-transform: uppercase; letter-spacing: .03em; }
.two p { margin: 0; }
.two .service h3 { text-transform: none; letter-spacing: 0; margin-bottom: 8px; }

/* ---------- footer ---------- */
.contact { background: var(--navy); color: #fff; }
.contact .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.contact h2 { margin: 0 0 6px; }
.contact p { margin: 0; color: #c9ccd8; }
.contact a.plain { color: var(--yellow); text-decoration: none; font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) { .work { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .work, .quotes { grid-template-columns: repeat(2, 1fr); }
  .summary { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero .wrap { flex-direction: column; text-align: center; gap: 22px; padding-top: 44px; padding-bottom: 44px; }
  .roles, .actions { justify-content: center; }
  .avatar { width: 136px; height: 136px; }
  .quotes, .two, .stats, .projects, .services { grid-template-columns: 1fr; }
  .project { padding: 22px; }
  .work { gap: 12px; }
  .site .info { padding: 10px 12px 12px; }
  .site .domain { font-size: 11.5px; letter-spacing: -.01em; }
  .site .domain::after { content: ""; }
  .site .kind { font-size: 12px; }
  .job { grid-template-columns: 1fr; gap: 4px; }
  .card { padding: 22px; }
  section { padding: 40px 0; }
}

/* ---------- print: a clean 2-page CV ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 11pt; }
  .hero, .stat, blockquote, .chips li.key { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .hero .wrap { padding: 24px; }
  .hero::after, .actions, .note { display: none; }
  section { padding: 18px 0; break-inside: avoid-page; }
  .card { border: 0; padding: 0; }
  .site { break-inside: avoid; }
  .site .shot { display: none; }
  .project, .service { break-inside: avoid; }
  .faq details { border: 0; padding: 4px 0; }
  .faq summary::after { content: ""; }
  .tech li { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .work { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .site .domain::after { content: ""; }
  .contact { margin-top: 12px; }
}

/* ---------- help pages ---------- */
.topbar { background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .04em; }
.brand img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--yellow); }
.topbar .btn { padding: 8px 14px; font-size: 13px; }

.page-hero { background: var(--navy); color: #fff; }
.page-hero .wrap { padding-top: 36px; padding-bottom: 48px; max-width: 860px; }
.crumbs { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: #9ea3b5; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: #c9ccd8; }
.page-hero h1 { margin: 0; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.15; font-weight: 800; }
.page-hero .lede { margin: 16px 0 0; font-size: 18px; color: #d7d9e2; max-width: 700px; }
.page-hero .actions { margin-top: 26px; }

.prose { max-width: 860px; }
.prose h2 { margin-top: 8px; }
.prose p, .prose li { font-size: 16.5px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 6px; }
.prose li::marker { color: var(--yellow); }
.prose a { color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 64px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.steps strong { display: block; margin-bottom: 2px; }

.callout { background: #fff8db; border: 1px solid #f3dc7c; border-left: 6px solid var(--yellow); border-radius: var(--radius); padding: 18px 22px; }
.callout p:last-child { margin-bottom: 0; }

.help-links { background: var(--navy-2); color: #c9ccd8; margin-top: 56px; }
.help-links .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; font-size: 14px; }
.help-links strong { color: #fff; }
.help-links a { color: var(--yellow); text-decoration: none; font-weight: 600; }
.help-links a:hover { text-decoration: underline; }

.service a.more { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 14px; color: var(--ink); text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }

@media (max-width: 640px) {
  .topbar .btn { display: none; }
  .page-hero .wrap { padding-top: 26px; padding-bottom: 36px; }
  .page-hero .lede { font-size: 16.5px; }
  .steps li { padding: 16px 16px 16px 58px; }
  .steps li::before { left: 14px; }
}
@media print {
  .topbar, .help-links { display: none; }
}

/* ---------- contact form ---------- */
.contact .wrap.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; padding-top: 56px; padding-bottom: 56px; }
.contact-intro p { margin: 0 0 12px; color: #c9ccd8; }
.contact-intro ul { margin: 14px 0 0; padding-left: 18px; color: #c9ccd8; display: grid; gap: 6px; }
.contact-intro li::marker { color: var(--yellow); }
.contact-form { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; font-size: 14px; font-weight: 600; }
.contact-form label > input, .contact-form label > select, .contact-form label > textarea { display: block; margin-top: 6px; }
.contact-form label span.opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
  border: 1px solid #cfd3dc; border-radius: 10px; padding: 11px 12px; width: 100%;
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(253,200,10,.45); border-color: var(--yellow); }
.contact-form button { justify-self: start; cursor: pointer; font-family: inherit; }
.contact-form .form-note { margin: 0; font-size: 13px; color: var(--muted); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 860px) {
  .contact .wrap.contact-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 520px) {
  .contact-form { padding: 20px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-form button { justify-self: stretch; justify-content: center; }
}
@media print { .contact-form { display: none; } }
