/* Janev Consulting - site styles. Plain CSS, no framework.
   Colours live in the variables below. The dark theme follows the
   visitor's system setting, or the switch in the header. */

:root {
  --petrol: #0e4a55;
  --deep: #072d34;
  --lime: #c8f169;

  --bg: #ffffff;
  --alt: #eef3f2;
  --card: #ffffff;
  --ink: #0b2a30;
  --muted: #4d6266;
  --line: #d5e0de;
  --accent: #0e4a55;
  --dot: #9ccc2e;
  --btn-bg: #0e4a55;
  --btn-ink: #ffffff;
  --btn-hover: #072d34;
  --band: #072d34;
  --band-line: #1d4a52;
  --band-muted: #b9cbc8;
  --cta: #0e4a55;
  --logo-light: block;
  --logo-dark: none;

  --head: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --body: "Public Sans", "Segoe UI", sans-serif;
  --wrap: 1160px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #061e23;
  --alt: #0a2a31;
  --card: #0e3640;
  --ink: #e6efed;
  --muted: #a3b8b5;
  --line: #1d4a52;
  --accent: #c8f169;
  --dot: #c8f169;
  --btn-bg: #c8f169;
  --btn-ink: #072d34;
  --btn-hover: #e2f8a8;
  --band: #0a2a31;
  --cta: #0e4a55;
  --logo-light: none;
  --logo-dark: block;
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #061e23;
    --alt: #0a2a31;
    --card: #0e3640;
    --ink: #e6efed;
    --muted: #a3b8b5;
    --line: #1d4a52;
    --accent: #c8f169;
    --dot: #c8f169;
    --btn-bg: #c8f169;
    --btn-ink: #072d34;
    --btn-hover: #e2f8a8;
    --band: #0a2a31;
    --cta: #0e4a55;
    --logo-light: none;
    --logo-dark: block;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { opacity: 0.85; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; }
h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; }

.logo-light { display: var(--logo-light); }
.logo-dark { display: var(--logo-dark); }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--muted);
}
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }

/* Header */
.site-head { border-bottom: 1px solid #16444c; background: var(--deep); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.site-head img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: #e6efed; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--lime); opacity: 1; }
.theme-switch {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #2a5a62;
  background: transparent; color: #e6efed; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-switch:hover { border-color: var(--lime); }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; line-height: 1;
}
.btn-main { background: var(--btn-bg); color: var(--btn-ink); }
.nav .btn-main, .hero .btn-main { background: var(--lime); color: var(--deep); }
.nav .btn-main:hover, .hero .btn-main:hover { background: #e2f8a8; }
.btn-main:hover { background: var(--btn-hover); opacity: 1; }
.btn-line { border: 1.5px solid var(--accent); color: var(--accent); }
.btn-line:hover { background: var(--alt); opacity: 1; }

/* Hero */
.hero { padding: 80px 0 96px; background: var(--deep); color: #e6efed; }
.hero h1 { color: #ffffff; }
.hero .kicker { color: #b9cbc8; }
.hero .kicker::before { background: var(--lime); }
.hero .btn-line { border-color: #2a5a62; color: #e6efed; }
.hero .btn-line:hover { border-color: var(--lime); background: transparent; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { margin: 22px 0 26px; max-width: 14ch; }
.hero .lead { font-size: 20px; line-height: 1.55; color: #b9cbc8; max-width: 34em; }
.hero .actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 16px; background: var(--alt);
  border: 1px dashed var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 15px;
}

/* Proof strip */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.proof .wrap > div { padding: 26px 24px 26px 0; }
.proof .wrap > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.proof strong { display: block; font-family: var(--head); font-size: 26px; color: var(--accent); line-height: 1.2; }
.proof span { font-size: 15px; color: var(--muted); }

/* Client names */
.names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 40px; margin-bottom: 48px; }
.names .label { font-size: 14px; color: var(--muted); }
.names ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 36px; }
.names li { font-family: var(--head); font-weight: 700; font-size: 22px; color: var(--ink); opacity: 0.8; letter-spacing: -0.01em; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--alt); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 64px; margin-bottom: 56px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* Services */
.services { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.services li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px;
  padding: 28px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.services p { color: var(--muted); }

/* Engagement formats */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.format { background: var(--card); border-radius: 16px; padding: 28px; }
.format h3 { margin-bottom: 10px; }
.format p { color: var(--muted); font-size: 16px; }

/* Client record */
.record { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.record > li {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.record .when { font-size: 15px; color: var(--muted); white-space: nowrap; }
.record .when b { display: block; color: var(--accent); font-weight: 600; }
.record .who { font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1.2; }
.record .where { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.record .role { font-weight: 600; margin-bottom: 6px; }
.record .what { color: var(--muted); font-size: 16px; }
.record .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.record .tags li { font-size: 13px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.record a { font-size: 15px; display: inline-block; margin-top: 10px; }

/* Speaking band */
.band { background: var(--band); color: #e6efed; }
.band h2, .band h3 { color: #ffffff; }
.band .kicker { color: var(--band-muted); }
.band .kicker::before { background: var(--lime); }
.band .section-head p { color: var(--band-muted); }
.talks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--band-line); }
.talks li {
  display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 32px;
  padding: 22px 0; border-bottom: 1px solid var(--band-line);
}
.talks .when { color: var(--lime); font-weight: 500; font-size: 15px; }
.talks .title { font-family: var(--head); font-size: 20px; font-weight: 500; color: #ffffff; line-height: 1.3; }
.talks .note { display: block; font-family: var(--body); color: var(--band-muted); font-size: 15px; margin-top: 4px; }
.community { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.community h3 { font-size: 18px; margin-bottom: 8px; }
.community p { color: var(--band-muted); font-size: 15px; }
.band a { color: var(--lime); }

/* About */
.about .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.about .body h2 + p { margin-top: 28px; }
.about .body p + p { margin-top: 18px; }
.about .body { font-size: 18px; }
.facts { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-size: 15px; color: var(--muted); }
.facts strong { color: var(--ink); font-weight: 600; }

/* Contact */
.contact { background: var(--cta); color: #ffffff; padding: 96px 0; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: end; }
.contact h2 { color: #ffffff; max-width: 16ch; }
.contact p { color: #cfe0dd; font-size: 18px; margin-top: 20px; max-width: 32em; }
.contact .links { display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
.contact a { color: #ffffff; }
.contact .btn { background: var(--lime); color: var(--deep); align-self: flex-start; margin-bottom: 8px; }
.contact .btn:hover { background: #ffffff; opacity: 1; }

/* Footer */
.site-foot { background: var(--deep); color: #b9cbc8; font-size: 14px; padding: 28px 0; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-foot img { height: 24px; width: auto; }

/* Small screens */
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .nav { gap: 12px; }
  .hero { padding: 56px 0; }
  .hero .wrap, .section-head, .about .wrap, .contact .wrap { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 320px; }
  .about .photo { justify-self: start; max-width: 360px; }
  .proof .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof .wrap > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof .wrap > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .names li { font-size: 20px; }
  .services li { grid-template-columns: 1fr; gap: 6px; }
  .record > li { grid-template-columns: 1fr; gap: 10px; }
  .formats, .community { grid-template-columns: 1fr; }
  .talks li { grid-template-columns: 1fr; gap: 6px; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .site-head .btn-main { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Speaking by year */
.year { margin-top: 48px; }
.year:first-of-type { margin-top: 0; }
.year h3 { font-size: 15px; font-family: var(--body); font-weight: 600; color: var(--lime); margin-bottom: 12px; letter-spacing: 0; }
.talks .with { display: block; font-family: var(--body); font-size: 15px; color: var(--band-muted); margin-top: 4px; }
.talk-count { display: flex; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.talk-count div strong { display: block; font-family: var(--head); font-size: 40px; color: #ffffff; line-height: 1; }
.talk-count div span { font-size: 14px; color: var(--band-muted); }

/* More clients, compact rows */
.more-title { font-size: 18px; margin: 48px 0 8px; }
.record-more { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.record-more li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--muted); align-items: baseline;
}
.record-more .who { font-family: var(--head); font-weight: 700; font-size: 18px; color: var(--ink); }
@media (max-width: 900px) {
  .record-more li { grid-template-columns: 1fr; gap: 2px; }
}

/* Expertise: the stack */
.stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stack > div { padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); }
.stack > div:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.stack h3 { font-size: 19px; margin-bottom: 10px; }
.stack h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); margin-right: 10px; vertical-align: 3px; }
.stack p { color: var(--muted); font-size: 16px; }
.gov { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 32px; }
.gov h3 { font-size: 19px; }
.gov ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.gov li { color: var(--muted); padding-left: 22px; position: relative; }
.gov li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 2px; background: var(--accent); }
@media (max-width: 900px) {
  .stack { grid-template-columns: 1fr; }
  .stack > div, .stack > div:not(:nth-child(3n+1)) { padding: 22px 0; border-left: 0; }
  .gov { grid-template-columns: 1fr; gap: 14px; }
}

/* Hero picture: the stack map */
.stackmap { width: 100%; height: auto; display: block; }
.stackmap .edge { stroke: #2a6470; stroke-width: 1.5; }
.stackmap .ring { fill: none; stroke: #1f5560; stroke-width: 1.5; stroke-dasharray: 3 7; }
.stackmap .pill { fill: #0e4a55; stroke: #2a6470; stroke-width: 1; }
.stackmap text { font-family: var(--head); font-weight: 500; font-size: 17px; fill: #eef3f2; }
.stackmap .core { fill: var(--lime); }
.stackmap .pulse { fill: none; stroke: var(--lime); stroke-width: 1.5; transform-origin: 260px 220px; animation: pulse 1.5s ease-out infinite; }
.stackmap .signal { fill: var(--lime); }
.stackmap .caption { font-family: var(--body); font-size: 13px; fill: #8fb0ac; font-weight: 400; }
@keyframes pulse { from { transform: scale(0.6); opacity: 0.9; } to { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .stackmap .pulse { animation: none; opacity: 0.4; } }

/* About photo */
.about .photo { display: block; justify-self: end; width: 100%; max-width: 420px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 16px; }
@media (max-width: 900px) { .site-head img { height: 36px; } .hero { padding: 48px 0 64px; } }
