*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --blue: #4262ff;
  --lilac: #a78bfa;
}
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.page {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 45% at 92% 0%, rgba(167,139,250,0.14), transparent 55%),
    #faf9fc;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  max-width: 860px;
  margin: 0 auto;
}
.nav-brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.nav-links a:hover { color: var(--ink); }
.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 28px 100px;
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 32px;
}
.back:hover { color: var(--ink); }
.back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.num { color: var(--lilac); letter-spacing: 0.08em; }
.company { color: var(--blue); }
.role { font-weight: 500; }
h1 {
  font-family: "Syne", sans-serif;
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.headline {
  font-family: "Syne", sans-serif;
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 14px;
}
.summary {
  font-size: 17px;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 40px;
  line-height: 1.6;
}
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 48px;
}
.gallery.multi {
  grid-template-columns: repeat(2, 1fr);
}
.figure {
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(167,139,250,0.10), transparent 55%),
    #faf9fc;
  border: 1px solid rgba(0,0,0,0.06);
  position: relative;
  aspect-ratio: auto;
}
.figure.wide { grid-column: 1 / -1; }
.figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
/* Photos / UI captures — fill the frame */
.figure img[src$=".jpg"],
.figure img[src$=".jpeg"],
.figure img[src$=".webp"] {
  object-fit: cover;
  min-height: 280px;
  aspect-ratio: 16 / 10;
}
/* Charts — show full graphic */
.figure img[src$=".svg"],
.figure img[src$=".png"] {
  object-fit: contain;
  padding: 0;
  min-height: 0;
  aspect-ratio: auto;
}
.figure-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  background:
    radial-gradient(ellipse 70% 50% at 30% 20%, rgba(167,139,250,0.28), transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(66,98,255,0.14), transparent 50%),
    #e8e6f0;
  color: rgba(0,0,0,0.38);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.figure figcaption {
  display: none;
}
.section {
  margin-bottom: 36px;
}
.section h2 {
  font-family: "Syne", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section p {
  font-size: 16px;
  color: var(--ink);
  max-width: 68ch;
  margin-bottom: 14px;
}
.section p:last-child { margin-bottom: 0; }
.skills {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 14px;
  color: var(--muted);
}
.skills strong { color: var(--ink); font-weight: 600; }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 14px;
  font-weight: 600;
}
.pager a { color: var(--blue); }
.pager a:hover { text-decoration: underline; }
.pager .disabled { color: rgba(0,0,0,0.25); pointer-events: none; }
.footer {
  margin-top: 48px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .gallery.multi { grid-template-columns: 1fr; }
  .figure.wide { aspect-ratio: 16 / 10; }
}

.inline-visual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 28px 0 8px;
}
.inline-visual.multi {
  grid-template-columns: repeat(2, 1fr);
}
.inline-visual .figure.wide {
  grid-column: 1 / -1;
}
.cover-visual {
  margin: 0 0 40px;
}
.cover-visual .figure,
.inline-visual .figure {
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.05);
}
@media (max-width: 720px) {
  .inline-visual.multi { grid-template-columns: 1fr; }
  .figure.wide { aspect-ratio: auto; }
}
