:root {
  --bg: #0b0f1a;
  --bg-2: #10162a;
  --card: #141a2b;
  --line: #242d44;
  --text: #f3f5fa;
  --muted: #a3adc4;
  --orange: #ff7a1a;
  --orange-2: #ff9447;
  --blue: #4b74ff;
  --radius: 16px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--orange); color: #111; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(11, 15, 26, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; }
.mono { width: 34px; height: 34px; border-radius: 9px; background: var(--orange); color: #111; display: grid; place-items: center; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav nav a.btn { color: #111; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 12px; background: var(--orange); color: #111; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: var(--orange-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--card); }
.btn-small { min-height: 36px; padding: 0 14px; border-radius: 10px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Hero */
.hero { padding: 104px 0 80px;
  background: radial-gradient(800px 420px at 90% -10%, rgba(75, 116, 255, .22), transparent 60%),
              radial-gradient(640px 380px at -10% 0%, rgba(255, 122, 26, .16), transparent 60%); }
.eyebrow, .kicker { color: var(--orange); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 18px; }
h1 { font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: -0.035em; max-width: 14ch; }
h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: clamp(18px, 2.1vw, 21px); color: var(--muted); max-width: 62ch; margin: 28px 0 0; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 14px; }

/* Where */
.where { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 26px 0; }
.where-label { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.where-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 700; font-size: 18px; color: #d5dbea; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 800; }
.section-lead { color: var(--muted); font-size: 19px; max-width: 68ch; margin: 18px 0 0; }
.sub { font-size: 20px; margin: 56px 0 18px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.num { display: block; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; color: var(--orange); }
.lbl { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; margin-top: 4px; }

/* Flow */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; counter-reset: s; }
.flow li { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 14px 16px; counter-increment: s; }
.flow li::before { content: counter(s); position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 800; color: var(--muted); }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -9px; top: 50%; width: 8px; height: 2px; background: var(--orange); }
.step { display: block; font-weight: 800; font-size: 15px; padding-right: 16px; }
.tools { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 6px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot-wide { grid-column: 1 / -1; }
.shot-wide img { aspect-ratio: 1180 / 700; object-fit: contain; background: #000; }
figcaption { padding: 14px 18px; color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
figcaption b { color: var(--text); margin-right: 6px; }

/* Second project */
.project2 { margin-top: 72px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.project2 .kicker { margin-bottom: 10px; }
.project2 h3 { font-size: 30px; font-weight: 800; }
.project2 p { color: var(--muted); max-width: 68ch; margin: 14px 0 0; }
.ticks { margin: 18px 0 0; padding-left: 20px; color: var(--muted); max-width: 72ch; }
.ticks li { margin: 6px 0; }
.ticks li::marker { color: var(--orange); }
.project2 .cta { margin-top: 24px; }

/* Skills */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.skill { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.skill h3 { font-size: 19px; margin-bottom: 10px; }
.skill p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 40px 0 0; border-left: 2px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 0 0 34px 28px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--orange); }
.timeline li:first-child::before { background: var(--orange); }
.when { color: var(--muted); font-size: 15px; padding-top: 1px; }
.what h3 { font-size: 19px; }
.at { display: block; font-weight: 500; color: var(--orange); font-size: 15px; margin-top: 4px; letter-spacing: 0; }
.what p { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.edu { margin: 16px 0 0; color: var(--muted); font-size: 15.5px; }
.edu b { color: var(--text); margin-right: 6px; }

/* Contact */
.contact { background: radial-gradient(700px 360px at 50% 120%, rgba(255, 122, 26, .18), transparent 70%); border-top: 1px solid var(--line); }
.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 1000px) {
  .flow { grid-template-columns: repeat(4, 1fr); }
  .flow li:nth-child(4)::after { display: none; }
  .skills { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .mark-name { display: none; }
  .nav nav { gap: 16px; }
  .nav nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .num { font-size: 28px; }
  .flow { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .gallery, .skills { grid-template-columns: 1fr; }
  .project2 { padding: 24px; margin-top: 56px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 22px; }
  .where-list { font-size: 16px; gap: 6px 18px; }
}
