/* nikitakissel.com v2 — shared styles for Home, Work, About, Vibing.
   Type follows nefaurk.com/about (Rubik: Light body, Black headings);
   neutral white/grey text on near-black, candle amber for actions only. */

:root {
  --bg: #0a0a0a;
  --surface: #131313;
  --card: #0e0e0e;
  --text: #ffffff;
  --text-secondary: #a0a4a7;
  --text-muted: #6b6f72;
  --hairline: #262626;
  --line: #333333;
  --accent: #a47c4c;        /* candle amber */
  --accent-soft: rgba(164, 124, 76, 0.55);
  --accent-hover: #c09562;
  --on-accent: #120d08;
  --font: "Rubik", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); color-scheme: dark; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
p { margin: 0; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.topbar-inner {
  max-width: 68rem;
  margin: 0 auto;
  padding: 1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.05;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.logo span { display: block; }
.logo:hover { color: var(--accent); }
.nav { display: flex; gap: 1.9rem; }
.nav a { color: var(--text-secondary); text-decoration: none; font-size: 1.125rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* ---------- Page frame ---------- */

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.75rem; }
.narrow { max-width: 46rem; margin-left: auto; margin-right: auto; }

.page-title {
  margin: 5.5rem 0 2.4rem;
  text-align: center;
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 3.5rem);
  line-height: 1.1;
}
.section-title {
  margin: 6.5rem 0 2rem;
  text-align: center;
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 1.75rem);
  color: var(--text-secondary);
}

.prose { display: flex; flex-direction: column; gap: 1.2rem; color: var(--text-secondary); }

/* ---------- Home hero ---------- */

/* photo on the left, name + role + tagline + buttons on the right */
.home { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3.5rem; padding: 6rem 0 7rem; }
.home .hero-photo { flex: 0 0 auto; width: 300px; height: 400px; margin: 0; }
.home-text { flex: 0 1 30rem; min-width: 0; }
.home-text .btn-row { justify-content: flex-start; margin-top: 2.4rem; }
.home-text .hero-name { font-size: clamp(2.8rem, 7vw, 4.25rem); }
@media (max-width: 760px) {
  .home { padding: 3.5rem 0 4rem; gap: 2.2rem; }
  .home .hero-photo { width: min(100%, 300px); height: 360px; }
  .home-text { text-align: center; }
  .home-text .btn-row { justify-content: center; }
}
.hero { text-align: center; padding: 5.5rem 0 3.5rem; }
.hero-name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.8rem, 9vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.hero-role { margin-top: 1.4rem; font-weight: 500; font-size: clamp(1.4rem, 3.5vw, 1.75rem); }
.hero-tag { margin-top: 0.3rem; font-size: clamp(1.15rem, 3vw, 1.5rem); color: var(--text-secondary); }
.hero-photo {
  display: block;
  width: min(100%, 380px);
  height: 480px;
  margin: 0 auto;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}

/* ---------- Buttons: one style everywhere ---------- */

.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 3rem; }
.btn-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; margin-top: 2.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 13rem;
  min-height: 3.6rem;
  padding: 0 1.8rem;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font: 500 1.125rem/1.2 var(--font);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
/* secondary: dark with an amber outline (e.g. "I can help") */
.btn-quiet { background: var(--surface); border-color: var(--accent-soft); color: var(--text); }
.btn-quiet:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* contact links under the single "Get in touch" button */
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; margin: 1.3rem 0 0; padding: 0; list-style: none; font-size: 1.06rem; }
.contact-links a { color: var(--text-secondary); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.contact-links a:hover { color: var(--accent); text-decoration-color: var(--accent); }
.btn-grid .btn { min-width: 0; width: 100%; }

/* ---------- Project cards ---------- */

.pcard {
  position: relative;
  margin-top: 9rem;
  border: 1px solid var(--accent-soft);
  border-radius: 16px;
  background: var(--card);
}
.pcard-top { display: flex; flex-wrap: wrap; min-height: 26rem; }
.pcard-text {
  flex: 1 1 22rem;
  min-width: 0;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.4rem;
}
.pcard-label { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.pcard-label span { color: #4a4a4a; margin: 0 0.3em; }
.pcard-title { margin: 0; font-weight: 400; font-size: clamp(1.7rem, 3.4vw, 2.35rem); line-height: 1.2; }
.pcard-visual { flex: 1 1 22rem; position: relative; min-height: 26rem; }
.phone {
  position: absolute;
  left: 50%;
  top: -6rem;
  transform: translateX(-50%);
  width: 236px;
  padding: 8px;
  border-radius: 38px;
  background: #000;
  box-shadow: 0 0 0 1.5px #2a2a2a, 0 26px 50px rgba(0, 0, 0, 0.6);
}
.phone img { display: block; width: 220px; height: 476px; object-fit: cover; object-position: top; border-radius: 30px; }
.callout {
  position: absolute;
  max-width: 15rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: #151515;
  border: 1px solid var(--accent-soft);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--text-secondary);
}
.callout b { display: block; margin-bottom: 0.15rem; font-weight: 500; font-size: 0.95rem; color: var(--text); }
.callout.c1 { left: 2%; top: 3rem; }
.callout.c2 { right: 2%; top: 16rem; }

.chat { display: flex; flex-direction: column; justify-content: center; gap: 0.9rem; padding: 2.75rem; }
.bubble { align-self: flex-start; max-width: 85%; padding: 0.75rem 1rem; border-radius: 16px 16px 16px 4px; background: #1a1a1a; border: 1px solid #2c2c2c; font-size: 1rem; color: var(--text); }
.pcard-visual.chat .callout { position: static; align-self: flex-end; }

.pcard-more { border-top: 1px solid var(--hairline); padding: 2.75rem; }
.pcard-more[hidden] { display: none; }
.pcard-cols { display: flex; flex-wrap: wrap; gap: 3rem; margin-top: 2.6rem; }
.pcard-cols > div { flex: 1 1 20rem; min-width: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.field h4 { margin: 0 0 0.4rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.field p { color: var(--text-secondary); }
.field.strong p { color: var(--text); }
.pcard-more .btn-row { margin-top: 2.4rem; }

.shot-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.shot { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--hairline); }
.shot-hint { margin-top: 0.8rem; text-align: center; font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 760px) {
  .pcard { margin-top: 7rem; }
  .pcard-visual { order: -1; min-height: 0; padding: 0 1.25rem 0.5rem; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
  .phone { position: relative; left: auto; top: -4.5rem; transform: none; margin-bottom: -3.5rem; }
  .callout { position: static; max-width: none; width: 100%; }
  .pcard-text, .pcard-more { padding: 1.75rem 1.25rem; }
  .chat { padding: 1.75rem 1.25rem 0; }
}

/* ---------- Experience ---------- */

.jobs { display: flex; flex-direction: column; gap: 3rem; }
.job-head { text-align: center; margin-bottom: 0.9rem; }
.job-name { margin: 0; font-weight: 700; font-size: clamp(1.6rem, 4.5vw, 1.9rem); line-height: 1.15; }
.job-meta { margin-top: 0.4rem; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.job p { color: var(--text-secondary); }

/* ---------- About ---------- */

.about-intro { display: flex; flex-wrap: wrap; gap: 2.75rem; align-items: stretch; }
/* the frame stretches to the text's height; the photo fills it */
.about-photo {
  flex: 1 1 18rem;
  min-width: 0;
  min-height: 26rem;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--hairline);
}
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.about-intro .prose { flex: 1.4 1 22rem; min-width: 0; }

.values { border-top: 1px solid var(--hairline); }
.values details { border-bottom: 1px solid var(--hairline); padding: 1.35rem 0; }
.values summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 2.75rem;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  font-size: 1.5rem;
}
.values summary::-webkit-details-marker { display: none; }
.values summary::marker { content: ""; }
.vchev {
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
  transition: transform 180ms ease;
}
.values details[open] .vchev { transform: rotate(45deg); }
.values .prose { padding: 0.9rem 0 0.25rem 1.6rem; gap: 0.9rem; }

.plain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.45rem; text-align: center; color: var(--text-secondary); }

/* ---------- Frames (Vibing) ---------- */

.frame {
  margin-top: 3rem;
  padding: 2.5rem 2.25rem;
  border: 1px solid var(--accent-soft);
  border-radius: 16px;
  background: var(--card);
}
.frame h2 { margin: 0 0 1.1rem; font-weight: 700; font-size: 1.6rem; }
/* the focus zone: brighter fill so it reads first */
.frame-focus { background: #1d1d1d; border-color: var(--accent); }
.frame-focus .prose { color: #c8cbcd; }
.frame .btn-row { justify-content: flex-start; margin-top: 2rem; }
.dots { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.75rem; color: var(--text-secondary); }
.dots li { display: flex; gap: 0.9rem; }
.dots li::before { content: ""; flex: none; margin-top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- Closing call to action + footer ---------- */

.cta { text-align: center; padding: 6.5rem 0 6.5rem; }
.cta h2 { margin: 0; font-weight: 300; font-size: clamp(1.6rem, 4.5vw, 2rem); color: var(--text-secondary); }
.cta .btn-row { margin-top: 1.8rem; }

.footer { border-top: 1px solid var(--hairline); padding: 1.75rem 1.75rem 6rem; text-align: center; font-size: 0.95rem; color: var(--text-muted); }

/* 2. grey buttons: same fill as the Vibing? focus frame (Work downloads grid) */
.btn-grey { background: #1d1d1d; border-color: var(--accent); color: var(--text); }
.btn-grey:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* 5. contact actions: icon + uppercase label, no box (nefaurk style) */
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.4rem 3.2rem; margin-top: 2.2rem; }
.contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
}
.contact-actions a:hover { color: var(--accent); }
.contact-actions svg { width: 1.6rem; height: 1.6rem; flex: none; }

/* 8. footer links (Home) */
.footer a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent-soft); text-underline-offset: 3px; }
.footer a:hover { color: var(--accent-hover); }

/* Background list on About: left-aligned under the toggles */
.plain-list.left { text-align: left; }

/* Hire me pop-up (native <dialog>: Esc and focus handled by the browser) */
.modal {
  width: min(92vw, 40rem);
  padding: 0;
  border: 1px solid var(--accent);
  border-radius: 16px;
  background: #1d1d1d;
  color: var(--text);
  font: inherit;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.72); }
.modal-body { position: relative; padding: 2.75rem 2.5rem 2.5rem; }
.modal h2 { margin: 0 2rem 1.1rem 0; font-weight: 700; font-size: 1.6rem; }
.modal .prose { color: #c8cbcd; }
.modal .btn-row { justify-content: flex-start; margin-top: 2rem; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.modal-close::before, .modal-close::after { content: ""; position: absolute; left: 12px; top: 21px; width: 20px; height: 1.5px; background: var(--text-secondary); }
.modal-close::before { transform: rotate(45deg); }
.modal-close::after { transform: rotate(-45deg); }
.modal-close:hover::before, .modal-close:hover::after { background: var(--text); }

/* Vibing? page has no page title: space the first frame from the header */
.vibing-top { padding-top: 4.5rem; }
.frame h1 { margin: 0 0 1.1rem; font-weight: 700; font-size: 1.6rem; }

/* "Gmail · Outlook" compose links under the Hire me button */
.webmail { margin: 1.6rem 0 0; font-size: 0.85rem; color: var(--text-muted); }
.webmail a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 4px; }
.webmail a:hover { color: var(--accent); }

/* ---------- Vibing? pill (every page) ---------- */

.vibing-pill {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  font-size: 1.06rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.vibing-pill:hover { background: var(--accent-hover); color: var(--on-accent); }
.vibing-pill[aria-current="page"] { background: var(--surface); color: var(--accent); border: 1px solid var(--accent); }

@media (max-width: 560px) {
  .btn-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .page-title { margin-top: 3.8rem; }
  .vibing-pill { right: 1rem; bottom: 1rem; }
}

/* ---------- Screenshot gallery (lightbox) ---------- */

.lb { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; background: rgba(5, 5, 5, 0.96); touch-action: pan-y; }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; max-width: 100%; }
.lb-img { display: block; max-width: min(92vw, 1200px); max-height: 82vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; user-select: none; -webkit-user-drag: none; }
.lb-cap { font-size: 0.9rem; color: var(--text-secondary); text-align: center; padding: 0 1rem; }
.lb-cap b { color: var(--accent); font-weight: 500; margin-right: 0.5em; }
.lb button { position: absolute; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(20, 20, 20, 0.6); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lb-close { top: 14px; right: 14px; }
.lb-close::before, .lb-close::after { content: ""; position: absolute; left: 14px; top: 23px; width: 20px; height: 1.5px; background: var(--text-secondary); }
.lb-close::before { transform: rotate(45deg); }
.lb-close::after { transform: rotate(-45deg); }
.lb-prev { left: 14px; top: 50%; margin-top: -24px; }
.lb-next { right: 14px; top: 50%; margin-top: -24px; }
.lb-prev::before, .lb-next::before { content: ""; position: absolute; top: 18px; width: 11px; height: 11px; border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); }
.lb-prev::before { left: 20px; transform: rotate(135deg); }
.lb-next::before { left: 15px; transform: rotate(-45deg); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 18px; margin-top: 0; }
  .lb-img { max-height: 74vh; }
}

@media (prefers-reduced-motion: reduce) {
  .vchev, .btn { transition: none; }
}
