/* =========================================================
   vuldzhev.com — stylesheet
   palette : warm near-black + honey amber + one sage pulse
   type    : Instrument Serif (display) · system sans (body)
           · IBM Plex Mono (utility)
   ========================================================= */

/* ---------- design tokens ---------- */
:root {
  /* surfaces — warm dark with a quiet green undertone, derived from #355E3B */
  --bg:            #0c130e;
  --bg-elev:      #131a15;
  --bg-elev-2:    #1a221c;
  --border:       #283228;
  --border-soft:  #1c241e;

  /* text */
  --text:          #ebebe8;
  --text-dim:      #95938d;
  --text-muted:    #5f5d57;

  /* accents */
  --accent:        #e8b266;  /* honey amber — the one bold colour, autumn against forest */
  --accent-soft:   #f4c98a;
  --accent-dim:    #8c6a3d;

  --forest:        #355E3B;  /* hunter green — used for atmospheric tinting */
  --forest-bright: #6ba76f;  /* lifted forest, for status pulse + highlights */
  --signal:        #6ba76f;  /* alias — pulse colour, derived from forest */

  /* type families */
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans:    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  /* rhythm */
  --container: 1080px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-pad: clamp(4.5rem, 10vw, 7.5rem);
  --radius: 6px;
  --radius-lg: 10px;

  color-scheme: dark;
}

/* ---------- reset-ish ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;     /* 17px */
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--accent);
  color: var(--bg);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.8125rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; }

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

/* =========================================================
   site header / navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border-soft);
}

.nav {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}
.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 0.8125rem;
  transform: translateY(2px);
}
.brand__dot { color: var(--text-muted); }
.brand__name { color: var(--text-dim); }
.brand:hover { color: inherit; }
.brand:hover .brand__name { color: var(--text); }

.nav__links {
  display: flex;
  gap: clamp(0.75rem, 3vw, 1.75rem);
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.nav__links a {
  position: relative;
  padding: 0.25rem 0;
  transition: color 120ms ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); }

@media (max-width: 540px) {
  .nav__links li:nth-child(3) { display: none; } /* hide "Expertise" on smallest viewports */
  .brand__name { display: none; }
}

/* =========================================================
   hero
   ========================================================= */
.hero {
  padding-top: clamp(4rem, 10vh, 7rem);
  padding-bottom: clamp(5rem, 12vh, 9rem);
  position: relative;
  overflow: hidden;
}

/* subtle dotted grid backdrop — extremely faint */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(232,178,102,0.06) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

/* status pill */
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 clamp(2rem, 5vh, 3rem) 0;
  padding: 0.4rem 0.75rem 0.4rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--text-dim);
}
.status__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 60%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
.status__text { color: var(--text); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 50%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in oklab, var(--signal) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--signal) 0%, transparent); }
}

/* the name — large, confident Space Grotesk */
.hero__name {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(4rem, 13vw, 9rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin: 0;
  color: var(--text);
}
.hero__name-line { display: block; }
.hero__name-line--accent .hero__name-dot {
  color: var(--accent);
  font-size: 0.3em;
  display: inline-block;
  vertical-align: baseline;
  margin-left: 0.08em;
  transform: translateY(-0.1em);
}

/* role line */
.hero__role {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  margin: clamp(1.25rem, 3vh, 2rem) 0 1.5rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__role-tag {
  white-space: nowrap;
}
.hero__role-sep { color: var(--text-muted); }

/* lede paragraph */
.hero__lede {
  max-width: 56ch;
  margin: 0 0 2.25rem;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text);
}

/* CTAs */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 120ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
}
.btn--primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--bg);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

/* meta dl in hero */
.hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.75rem 2.5rem;
  margin: 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-soft);
  max-width: 640px;
}
.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hero__meta dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero__meta dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text);
}

/* =========================================================
   section scaffolding
   ========================================================= */
.section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  border-top: 1px solid var(--border-soft);
  position: relative;
}
.section--quiet {
  background: color-mix(in oklab, var(--forest) 14%, var(--bg));
}
.section--contact { background: var(--bg); }

.section__marker {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent-dim);
  letter-spacing: 0.02em;
}
.section__marker-faded { color: var(--text-muted); }

.section__title {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(2.5rem, 6vh, 4rem);
  color: var(--text);
}

/* =========================================================
   about
   ========================================================= */
.prose {
  max-width: 64ch;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
}
.prose p { margin: 0 0 1.25rem; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }
.prose__aside {
  margin-top: 2rem !important;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 0.9375rem;
}

/* =========================================================
   experience timeline
   ========================================================= */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
}

/* vertical accent line (desktop only) */
@media (min-width: 720px) {
  .timeline::before {
    content: "";
    position: absolute;
    left: calc(180px + 1.25rem);
    top: 0.5rem;
    bottom: 0.5rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--border) 0%, var(--border) 70%, transparent 100%);
  }
}

.role {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  position: relative;
}

@media (min-width: 720px) {
  .role {
    grid-template-columns: 180px 1fr;
    gap: 3rem;
    align-items: start;
  }
  .role::before {
    content: "";
    position: absolute;
    left: calc(180px + 1.125rem);
    top: 0.625rem;
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg);
  }
}

.role__meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.125rem;
}
.role__dates {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.role__company {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.role__body {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.role__title {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.005em;
}
.role__summary {
  margin: 0;
  color: var(--text);
  max-width: 64ch;
}
.role__highlights {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 64ch;
}
.role__highlights li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.role__highlights li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}

/* =========================================================
   expertise grid
   ========================================================= */
.expertise {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.expertise__card {
  padding: 1.625rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}
.expertise__card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
}
.expertise__heading {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.taglist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.taglist li {
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: color-mix(in oklab, var(--bg) 60%, var(--bg-elev) 40%);
}

/* =========================================================
   credentials
   ========================================================= */
.credentials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
}
.credentials__heading {
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.cred-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}
.cred-list li {
  display: flex;
  flex-direction: column;
  gap: 0.1875rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--border-soft);
}
.cred-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.cred-list__name { color: var(--text); font-size: 1rem; }
.cred-list__issuer { color: var(--text-dim); font-size: 0.875rem; }

/* =========================================================
   beyond work
   ========================================================= */
.beyond {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.beyond__item p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.9375rem;
  line-height: 1.65;
}
.beyond__heading {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-style: normal;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
}

/* =========================================================
   contact
   ========================================================= */
.contact__lede {
  max-width: 56ch;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
}
.contact__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.contact__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
@media (max-width: 540px) {
  .contact__row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    padding: 1.25rem 0;
  }
}
.contact__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact__value {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--text);
  word-break: break-word;
  transition: color 140ms ease;
}
.contact__value:not(.contact__value--static):hover { color: var(--accent); }
.contact__value--copy {
  text-align: left;
  font-family: var(--mono);
}
.contact__text { border-bottom: 1px dashed var(--border); padding-bottom: 1px; }
.contact__copy-state {
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all 160ms ease;
}
.contact__value--copy:hover .contact__copy-state {
  color: var(--accent);
  border-color: var(--accent-dim);
}
.contact__value--copy.is-copied .contact__copy-state {
  color: var(--signal);
  border-color: color-mix(in oklab, var(--signal) 40%, transparent);
}

/* =========================================================
   footer
   ========================================================= */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.8125rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.site-footer__line { margin: 0; display: inline-flex; gap: 0.5rem; flex-wrap: wrap; }
.site-footer__sep { color: var(--border); }
.site-footer__meta { margin: 0; }
.site-footer code {
  font-family: var(--mono);
  font-size: 0.75rem;
}

/* =========================================================
   reveal-on-scroll (progressive enhancement)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   print stylesheet — clean PDF if a recruiter hits Cmd+P
   ========================================================= */
@media print {
  :root {
    --bg: #ffffff;
    --bg-elev: #ffffff;
    --bg-elev-2: #ffffff;
    --border: #d4d4d0;
    --border-soft: #e8e8e4;
    --text: #1a1a1a;
    --text-dim: #4a4a4a;
    --text-muted: #777777;
    --accent: #8a5a1f;
    --accent-dim: #8a5a1f;
    --forest: #355E3B;
    --forest-bright: #355E3B;
    --signal: #355E3B;
  }
  body { background: #fff; color: #1a1a1a; }
  .site-header,
  .hero__actions,
  .skip-link { display: none !important; }
  .hero,
  .section {
    padding: 1.75rem 0 !important;
    border-top: 1px solid #d4d4d0 !important;
    break-inside: avoid;
  }
  .hero::before { display: none; }
  .hero__name { font-size: 3.5rem; line-height: 1; }
  .section__title { font-size: 2rem; }
  .expertise__card,
  .role,
  .beyond__item { break-inside: avoid; }
  .nav__links { display: none; }
  a { color: #8a5a1f; }
  .status { background: #f6f4ee; }
}
