/* Milos Jokic — Swiss / Night */

:root {
  --bg: #0c0e12;
  --ink: #ececee;
  --body: #b9bcc4;
  --mute: #8b8f99;
  --line: #1e222a;
  --line-strong: #2a2f3a;
  --raise: #13161c;
  --blue: #7aa2ff;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 960px;
  --gutter: 32px;

  /* spacing scale (8px grid) */
  --col: 120px;        /* label / portrait column */
  --col-gap: 48px;
  --section: 112px;    /* between sections */
  --section-pad: 32px; /* from a section's rule to its content */
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 32px; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: var(--bg); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.blue { color: var(--blue); }
.nowrap { white-space: nowrap; }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--mute);
}

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header / footer ---------- */

.site-header { border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.brand { font-weight: 600; font-size: 15px; text-decoration: none; }
.brand i { font-style: normal; color: var(--blue); }
.site-nav { display: flex; gap: 24px; }
.site-nav a { text-decoration: none; transition: color .15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }

main { flex: 1; padding: 96px 0 var(--section); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 32px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font: 500 14px var(--sans);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--mute); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-primary:hover { background: #fff; border-color: #fff; }
.btn-icon { width: 42px; height: 42px; padding: 0; display: inline-grid; place-items: center; color: var(--mute); transition: color .15s, border-color .15s; }
.btn-icon:hover { color: var(--ink); }
.btn-icon svg { width: 16px; height: 16px; fill: currentColor; }
.btn-icon svg.line { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.socials { display: flex; gap: 8px; }

/* ---------- home ---------- */

.hero { display: grid; grid-template-columns: var(--col) 1fr; gap: var(--col-gap); align-items: start; }
.portrait {
  width: var(--col); height: var(--col);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--raise);
  object-fit: cover;
}

h1 { font-weight: 500; font-size: 48px; line-height: 1.05; letter-spacing: -.03em; margin: 10px 0 24px; }
.lede { font-size: 18px; line-height: 1.65; color: var(--body); max-width: 34em; }
.hero h1:first-child { margin-top: 0; }
.role { margin: -10px 0 24px; font-size: 20px; letter-spacing: -.01em; color: var(--mute); }
.role-dot { display: inline-block; width: 5px; height: 5px; margin: 0 12px 3px; border-radius: 50%; background: var(--blue); vertical-align: middle; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lede + .lede { margin-top: 16px; }
.lede strong { color: var(--ink); font-weight: 500; }
.actions { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; }

/* sections below the hero share its label column */
.block { display: grid; grid-template-columns: var(--col) 1fr; gap: var(--col-gap); margin-top: var(--section); }
/* +5px drops the 12px label onto the baseline of the 16–17px first line beside it */
.block-label { padding-top: calc(var(--section-pad) + 5px); border-top: 1px solid var(--line); }
.block > :last-child { padding-top: var(--section-pad); border-top: 1px solid var(--line); }

.player { position: relative; }
.player video { display: block; cursor: pointer; }
.play {
  position: absolute; inset: 0; margin: auto;
  width: 64px; height: 64px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  color: #fff; background: rgba(12, 14, 18, .55);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .15s, background .15s, opacity .2s;
}
.play:hover { transform: scale(1.06); background: rgba(12, 14, 18, .7); }
/* The path already sits right of its box; -1px leaves it just right of centre, which reads as centred. */
.play svg { width: 24px; height: 24px; margin-left: -1px; fill: currentColor; }
.player.playing .play { opacity: 0; pointer-events: none; }
.testimonial .play { width: 52px; height: 52px; }
.testimonial .play svg { width: 20px; height: 20px; }

.testimonial { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.testimonial-video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--raise); }
.testimonial blockquote { font-size: 20px; line-height: 1.5; letter-spacing: -.01em; color: var(--ink); margin-bottom: 20px; }

.timeline { list-style: none; }
.timeline li { display: grid; grid-template-columns: 48px 1fr; gap: 24px; font-size: 16px; line-height: 1.55; color: var(--body); }
.timeline li + li { margin-top: 14px; }
.timeline .year { color: var(--blue); font-variant-numeric: tabular-nums; }
/* a second entry in the same year keeps its year for screen readers but hides it visually */
.timeline .year.same { color: transparent; user-select: none; }
.timeline strong { color: var(--ink); font-weight: 500; }

.rows { list-style: none; }
.rows li { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; align-items: baseline; }
.rows li + li { margin-top: 24px; }
.row-name { font-weight: 500; font-size: 17px; color: var(--ink); text-decoration: none; }
.row-desc { color: var(--mute); font-size: 15px; }
.metric { grid-column: -2; font-size: 16px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.metric span:not([data-github-stars]) { color: var(--mute); font-weight: 400; }
.row-links { grid-column: 1 / -1; grid-row: 3; display: flex; gap: 20px; margin-top: 6px; font-size: 14px; }
.row-links a { color: var(--blue); text-decoration: none; }
.row-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* sentence-length descriptions go under the name instead of beside it */
.rows-stacked li { grid-template-columns: 1fr auto; gap: 6px 16px; }
.rows-stacked li + li { margin-top: 32px; }
.rows-stacked .row-desc { grid-column: 1 / -1; grid-row: 2; max-width: 34em; line-height: 1.6; }
.rows + .testimonial { margin-top: 56px; }

.feature { display: block; text-decoration: none; color: var(--mute); font-size: 15px; }
.feature-image { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); transition: border-color .15s; }
.feature:hover .feature-image { border-color: var(--line-strong); }
.feature-meta { display: block; margin-top: 20px; line-height: 1.6; }
.feature-title { display: block; color: var(--body); font-size: 16px; max-width: 34em; }

/* ---------- work with me ---------- */

h2 { font-weight: 500; font-size: 40px; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 12px; }
.sub { color: var(--mute); font-size: 17px; line-height: 1.6; max-width: 560px; margin-bottom: 48px; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; }
.plan-featured { background: var(--raise); border-color: var(--line-strong); }
.plan h3 { font-weight: 500; font-size: 20px; margin: 12px 0 4px; }
.plan p { color: var(--mute); font-size: 15px; line-height: 1.55; }
.price { font-weight: 500; font-size: 36px; letter-spacing: -.03em; margin: 18px 0 4px; }
.price span { font-size: 15px; color: var(--mute); letter-spacing: 0; font-weight: 400; }
.plan ul { list-style: none; margin: 24px 0 32px; }
.plan li { position: relative; font-size: 15px; line-height: 1.5; padding-left: 22px; color: var(--body); }
.plan li + li { margin-top: 10px; }
.plan li::before { content: "+"; position: absolute; left: 0; font-family: var(--mono); color: var(--blue); }
.plan .btn { margin-top: auto; }
.plans-note { list-style: none; margin-top: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--mute); }
.plans-note li::before { content: "+"; font-family: var(--mono); color: var(--blue); margin-right: 8px; }

/* client proof: the video leads, results sit underneath as three stats */
.proof { margin-top: var(--section); }
.proof-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; margin-top: 40px; }
.proof-video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); background: var(--raise); }
.proof-feature blockquote { font-size: 26px; line-height: 1.4; letter-spacing: -.015em; color: var(--ink); }
.proof-feature figcaption { margin-top: 24px; }
.proof-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
.proof-stats li { display: flex; flex-direction: column; }
.stat { font-weight: 500; font-size: 32px; letter-spacing: -.03em; color: var(--ink); }
.stat span { font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--mute); }
.stat-name { margin-top: 10px; font-weight: 500; font-size: 16px; color: var(--ink); }
.stat-desc { margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--mute); }

.closer { margin-top: var(--section); text-align: center; }
.closer-avatar { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; border: 1px solid var(--line-strong); object-fit: cover; }
.closer h3 { font-weight: 500; font-size: 40px; line-height: 1.1; letter-spacing: -.03em; text-wrap: balance; }
.closer p { margin: 12px auto 36px; max-width: 30em; font-size: 17px; line-height: 1.6; color: var(--body); }
.cal-embed { width: 100%; min-height: 560px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; text-align: left; }
.btn-lg { font-size: 16px; padding: 14px 24px; border-radius: 10px; }

/* ---------- 404 ---------- */

.not-found h1 { margin-bottom: 12px; }
.not-found p { color: var(--mute); margin-bottom: 28px; }

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  :root { --gutter: 20px; --section: 80px; --section-pad: 24px; }
  main { padding: 56px 0 var(--section); }
  .site-header .container { height: 64px; }
  .site-nav { gap: 16px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .block { grid-template-columns: 1fr; gap: 20px; }
  .block-label { padding-top: var(--section-pad); }
  .block > :last-child { padding-top: 0; border-top: 0; }
  .timeline li { gap: 16px; }
  .rows li { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .row-desc { grid-column: 1 / -1; grid-row: 2; }
  .testimonial { grid-template-columns: 1fr; gap: 20px; }
  .testimonial blockquote { font-size: 18px; }
  .portrait { width: 96px; height: 96px; }
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  .lede { font-size: 17px; }
  .plans { grid-template-columns: 1fr; }
  .proof-feature { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .proof-feature blockquote { font-size: 21px; }
  .proof-stats { grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
  .closer h3 { font-size: 30px; }
  .closer .btn-lg { display: block; }
  .cal-embed { min-height: 640px; }
}
