:root {
  color-scheme: dark;
  --bg: #030711;
  --paper: #081221;
  --panel: #0b1728;
  --panel-2: #0f2034;
  --ink: #edfaff;
  --muted: #a4b7ca;
  --soft: rgba(15, 32, 52, .72);
  --line: rgba(91, 220, 255, .24);
  --blue: #3db8ff;
  --teal: #00d2e6;
  --green: #36d399;
  --clay: #f2b544;
  --gold: #d7a338;
  --focus: #ffd166;
  --shadow: 0 28px 90px rgba(0, 0, 0, .36);
  --glow: 0 0 34px rgba(0, 210, 230, .18);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% -10%, rgba(0, 210, 230, .20), transparent 26rem),
    radial-gradient(circle at 84% 8%, rgba(215, 163, 56, .14), transparent 24rem),
    linear-gradient(180deg, #02050d 0, var(--bg) 42rem, #050b16 100%);
  color: var(--ink);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(91, 220, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 220, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.85), transparent 78%);
}

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: var(--radius);
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--ink);
  color: #06101c;
  padding: 10px 14px;
  border-radius: var(--radius);
}
.skip:focus { top: 16px; }

.wrap { width: min(1160px, calc(100% - 36px)); margin: 0 auto; }
.site-header { padding: 24px 0 18px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  box-shadow: var(--glow);
}
.brand strong { display: block; font-size: 18px; letter-spacing: -.01em; }
.brand span { color: var(--muted); font-size: 13px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 14px;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(61, 184, 255, .12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(380px, 1.05fr);
  gap: 36px;
  align-items: center;
  padding: 52px 0 42px;
}
.hero-visual,
.wide-visual {
  margin: 0;
  border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(12, 30, 50, .82), rgba(3, 7, 17, .92));
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow), var(--glow);
  overflow: hidden;
}
.hero-showcase {
  position: relative;
  padding: 0 0 108px;
}
.hero-visual img,
.wide-visual img {
  display: block;
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}
.hero-visual img { aspect-ratio: 16 / 10; }
.wide-visual { margin: 12px 0 30px; }
.wide-visual img { aspect-ratio: 1128 / 191; }
.hero-person {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(91, 220, 255, .28);
  border-radius: 14px;
  background: rgba(8, 18, 33, .86);
  box-shadow: var(--shadow), 0 0 24px rgba(0, 210, 230, .14);
  backdrop-filter: blur(10px);
}
.hero-person img {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(237, 250, 255, .16);
}
.hero-person figcaption {
  color: var(--muted);
  line-height: 1.35;
}
.hero-person strong {
  display: block;
  font-size: 19px;
}
.hero-person span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(42px, 7.2vw, 80px);
  line-height: .98;
  letter-spacing: -.04em;
}
.lede {
  margin: 22px 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 780;
  border: 1px solid rgba(91, 220, 255, .54);
  background: linear-gradient(135deg, rgba(0, 210, 230, .24), rgba(61, 184, 255, .20));
  color: var(--ink);
  box-shadow: 0 0 18px rgba(0, 210, 230, .12);
}
.button.secondary {
  background: transparent;
  border-color: rgba(237, 250, 255, .30);
  color: var(--ink);
}

.portrait {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.portrait img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}

main { padding: 12px 0 72px; }
.page-head { padding: 42px 0 24px; max-width: 880px; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); }
.page-head .lede { max-width: 780px; }
.page-head-visual {
  position: relative;
  width: 100vw;
  max-width: none;
  margin: 4px calc(50% - 50vw) 34px;
  padding: 92px 0 76px;
  overflow: hidden;
}
.page-head-visual:before,
.page-head-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.page-head-visual:before {
  background:
    linear-gradient(90deg, rgba(3, 7, 17, .98) 0%, rgba(3, 7, 17, .86) 38%, rgba(3, 7, 17, .48) 100%),
    linear-gradient(180deg, rgba(3, 7, 17, .18) 0%, rgba(3, 7, 17, .86) 100%),
    var(--page-head-bg, none) center right / cover no-repeat;
}
.page-head-visual:after {
  background:
    radial-gradient(circle at 78% 22%, rgba(215, 163, 56, .18), transparent 20rem),
    linear-gradient(180deg, transparent 62%, var(--bg) 100%);
}
.page-head-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}
.work-head {
  --page-head-bg: url("/assets/markos-work-header-bg.webp");
}

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: 1 / -1; }

.panel, .card, .case, .feature {
  background: linear-gradient(180deg, rgba(15, 32, 52, .92), rgba(8, 18, 33, .92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .18);
}
.panel { padding: 24px; }
.card, .feature { padding: 20px; }
.case { overflow: hidden; }
.case-body { padding: 22px; }
.case-media {
  background: #050b16;
  border-bottom: 1px solid var(--line);
}
.case-media img,
.screenshot-button img {
  display: block;
  width: 100%;
  height: auto;
}
.screenshot-button {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}
.screenshot-button span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: var(--radius);
  background: rgba(6, 16, 28, .86);
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
}
.screenshot-button:hover span,
.screenshot-button:focus-visible span {
  opacity: 1;
  transform: translateY(0);
}
.lightbox {
  width: min(96vw, 1480px);
  max-height: 94vh;
  padding: 48px 16px 16px;
  border: 0;
  border-radius: 10px;
  background: #050b16;
  box-shadow: 0 30px 100px rgba(0, 0, 0, .55);
}
.lightbox::backdrop {
  background: rgba(1, 4, 10, .80);
  backdrop-filter: blur(3px);
}
.lightbox img {
  display: block;
  max-width: 100%;
  max-height: calc(94vh - 70px);
  margin: 0 auto;
  border-radius: 6px;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .10);
  color: #fff;
  padding: 8px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .18); }

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -.02em;
}
h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
}
p { margin: 0; color: var(--muted); }
p + p { margin-top: 12px; }
ul.clean { margin: 0; padding: 0; list-style: none; }
ul.clean li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
ul.clean li:first-child { border-top: 0; padding-top: 0; }
strong { color: var(--ink); }

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}
.metric {
  padding: 16px;
  background: rgba(3, 7, 17, .44);
  border: 1px solid rgba(91, 220, 255, .20);
  border-radius: var(--radius);
}
.metric strong { display: block; font-size: 24px; line-height: 1.1; }
.metric span { display: block; color: var(--muted); font-size: 13px; margin-top: 5px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 210, 230, .12);
  color: #a8f8ff;
  border: 1px solid rgba(91, 220, 255, .22);
  font-size: 13px;
  font-weight: 740;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
}
.contact-list a:first-child { border-top: 0; padding-top: 0; }
.contact-list span { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .site-header { padding-top: 20px; }
  .nav { align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .hero-showcase { order: -1; padding-bottom: 96px; }
  .hero-person {
    left: 18px;
    right: 18px;
    grid-template-columns: 82px 1fr;
  }
  .hero-person img {
    width: 82px;
    height: 82px;
  }
  .grid { grid-template-columns: 1fr; }
  .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: 1; }
  .metric-row { grid-template-columns: 1fr; }
  .screenshot-button span {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 24px, 1160px); }
  .brand img { width: 38px; height: 38px; }
  .nav-links a { padding: 7px 8px; }
  h1 { font-size: clamp(38px, 15vw, 52px); }
  .hero-visual img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
