/* ═══════════════════════════════════════════════════════════════════
   Zolomon Kaliser — zolomon-kaliser.com
   Personal portfolio stylesheet. Design tokens, layout, and components
   follow the same visual system used across zkkconsulting.com.
   ═══════════════════════════════════════════════════════════════════ */

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

:root {
  --bg:       #fbfaf7;
  --bg-alt:   #f3f1ea;
  --white:    #ffffff;
  --ink:      #1c2b3a;
  --navy:     #1f3a5f;
  --navy-d:   #16293f;
  --accent:   #2e6e63;
  --accent-d: #245951;
  --maroon:   #500000;
  --muted:    #5b6573;
  --border:   #e4e0d6;
  --gold:     #b8860b;
  --serif:    'Lora', Georgia, 'Times New Roman', serif;
  --sans:     'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h:    72px;
  --shadow:   0 10px 28px rgba(28, 43, 58, 0.08);
  --shadow-l: 0 4px 14px rgba(28, 43, 58, 0.05);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 400;
  background: var(--navy); color: var(--white);
  padding: 0.7rem 1.1rem; border-radius: 0 0 6px 0; font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

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

/* ── NAV ─────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem;
  padding: 1.05rem 5vw;
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}
nav.shrink { padding: 0.6rem 5vw; box-shadow: 0 2px 12px rgba(28, 43, 58, 0.06); }

.nav-logo {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--serif);
  font-size: 1.18rem; font-weight: 600;
  color: var(--ink); letter-spacing: 0.01em;
  text-decoration: none; flex: none;
}
.nav-mark { width: 32px; height: 32px; flex: none; display: block; transition: width 0.3s ease, height 0.3s ease; }
nav.shrink .nav-mark { width: 27px; height: 27px; }

.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--muted); font-size: 0.79rem;
  text-decoration: none; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 500;
  transition: color 0.2s; position: relative; padding: 0.2rem 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -3px;
  width: 0; height: 1px; background: var(--navy); transition: width 0.25s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--ink); }

.nav-cta {
  color: var(--white) !important; background: var(--navy);
  padding: 0.48rem 1.05rem !important; border-radius: 4px;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--navy-d); }
.nav-cta::after { display: none !important; }

@media (max-width: 1100px) { .nav-links { gap: 1.1rem; } .nav-links a { font-size: 0.74rem; } }
@media (max-width: 420px) {
  .nav-logo { font-size: 1rem; gap: 0.45rem; }
  .nav-mark, nav.shrink .nav-mark { width: 26px; height: 26px; }
}

/* ── HAMBURGER / MOBILE MENU ─────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 200;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(251, 250, 247, 0.99);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
  overflow-y: auto; padding: 5rem 6vw;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu ul li { padding: 0.65rem 0; }
.mobile-link {
  font-family: var(--serif); font-size: 1.55rem; font-weight: 500;
  color: var(--ink); text-decoration: none; transition: color 0.2s;
}
.mobile-link:hover { color: var(--navy); }
.mobile-link.is-cta { color: var(--navy); }
.mobile-menu-close {
  position: absolute; top: 1.4rem; right: 5vw;
  background: none; border: none; color: var(--muted);
  font-size: 1.5rem; cursor: pointer; transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--ink); }

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.85rem;
  font-family: var(--sans);
  font-size: 0.81rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border-radius: 4px;
  transition: all 0.22s; cursor: pointer; border: none; text-align: center;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-d); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(31, 58, 95, 0.18); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-d); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(46, 110, 99, 0.2); }

/* ── SECTIONS / TYPE ─────────────────────────────────────────────── */
section { padding: 4.1rem 5vw; }
section.alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.wrap { max-width: 1150px; margin: 0 auto; }
.wrap-narrow { max-width: 860px; margin: 0 auto; }

h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  font-weight: 600; line-height: 1.1;
  margin-bottom: 1.3rem; letter-spacing: -0.015em;
  color: var(--ink);
}
h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  font-weight: 600; line-height: 1.2;
  margin-bottom: 2.1rem; letter-spacing: -0.01em;
  color: var(--ink);
}
h3 { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; margin-bottom: 0.6rem; }

.section-label {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0.95rem;
}
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--accent); flex: none; }
.section-label.center { justify-content: center; }
.section-label.center::after { content: ''; width: 30px; height: 1px; background: var(--accent); flex: none; }

.section-intro { color: var(--muted); font-size: 1.02rem; max-width: 70ch; margin-bottom: 2.4rem; }

/* ── HERO ────────────────────────────────────────────────────────── */
#hero {
  padding-top: calc(var(--nav-h) + 4.4rem);
  padding-bottom: 3.4rem;
  background:
    radial-gradient(900px 420px at 88% 8%, rgba(46, 110, 99, 0.07), transparent 62%),
    radial-gradient(700px 380px at 4% 92%, rgba(31, 58, 95, 0.06), transparent 60%),
    var(--bg);
}
.hero-grid {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 3.4rem; align-items: center;
}
.eyebrow {
  font-size: 0.73rem; font-weight: 600; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.hero-name { margin-bottom: 0.5rem; }
.hero-title {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2.3vw, 1.45rem);
  color: var(--navy); margin-bottom: 1.2rem; line-height: 1.4;
}
.lede { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.hero-portrait { position: relative; justify-self: center; }
.hero-portrait img {
  position: relative; z-index: 1;
  display: block; width: 100%; max-width: 330px;
  aspect-ratio: 1 / 1; object-fit: cover; object-position: center 20%;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.hero-portrait::after {
  content: ''; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--accent); border-radius: 8px; z-index: 0; opacity: 0.45;
}

/* ── CREDENTIAL LOGO STRIP ───────────────────────────────────────── */
.cred-strip { max-width: 1150px; margin: 3.2rem auto 0; padding-top: 2.2rem; border-top: 1px solid var(--border); }
.cred-label {
  text-align: center; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.3rem;
}
.logo-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; align-items: center; }
.logo-slot {
  display: flex; align-items: center; justify-content: center;
  min-width: 138px; height: 70px; padding: 0.6rem 1.2rem;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow-l);
}
.logo-slot img { max-height: 44px; width: auto; display: block; }
.logo-note { text-align: center; font-size: 0.74rem; color: var(--muted); margin-top: 1rem; }

/* ── CARDS ───────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-l);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

/* ── ABOUT ───────────────────────────────────────────────────────── */
.about-grid {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3.2rem; align-items: start;
}
.about-text p { color: var(--muted); margin-bottom: 1.05rem; }
.about-text p strong { color: var(--ink); font-weight: 600; }

.skills-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem; }
.skill-chip {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 6px; padding: 0.72rem 0.9rem;
  font-size: 0.85rem; font-weight: 500; color: var(--ink);
  box-shadow: var(--shadow-l);
  transition: border-color 0.2s, transform 0.2s;
}
.skill-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.skill-chip svg { width: 17px; height: 17px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
section.alt .skill-chip { background: var(--bg); }

/* ── SKILL GROUPS ────────────────────────────────────────────────── */
.skillset-grid { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; }
.skillset { padding: 1.5rem 1.6rem; }
.skillset h3 { font-size: 1.05rem; margin-bottom: 0.9rem; color: var(--navy); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.42rem; }
.tag {
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.03em;
  background: var(--bg-alt); color: var(--ink);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.28rem 0.72rem;
}

/* ── EDUCATION ───────────────────────────────────────────────────── */
.edu-grid { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.4rem; }
.edu-card { display: flex; gap: 1.3rem; padding: 1.7rem 1.8rem; align-items: flex-start; }
.edu-logo {
  flex: none; width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--white); padding: 0.5rem;
}
.edu-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.edu-degree { font-family: var(--serif); font-size: 1.14rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.3rem; }
.edu-school { font-size: 0.93rem; font-weight: 500; color: var(--navy); margin-bottom: 0.15rem; }
.edu-meta { font-size: 0.82rem; color: var(--muted); }
.edu-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--border); }

/* ── EXPERIENCE TIMELINE ─────────────────────────────────────────── */
.exp-list { max-width: 980px; margin: 0 auto; position: relative; }
.exp-list::before {
  content: ''; position: absolute; left: 41px; top: 12px; bottom: 12px;
  width: 1px; background: var(--border);
}
.exp-item { position: relative; padding-left: 6.6rem; margin-bottom: 1.5rem; }
.exp-item:last-child { margin-bottom: 0; }
.exp-mark {
  position: absolute; left: 0; top: 4px;
  width: 84px; height: 68px; border-radius: 8px;
  background: var(--white); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 0.55rem 0.6rem; box-shadow: var(--shadow-l); z-index: 2;
}
.exp-mark img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.exp-mark .initials {
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  color: var(--navy); letter-spacing: 0.02em;
}
.exp-body { padding: 1.4rem 1.6rem; }
.exp-role { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.2rem; }
.exp-company { font-size: 0.95rem; font-weight: 600; color: var(--accent); margin-bottom: 0.15rem; }
.exp-company a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(46, 110, 99, 0.35); }
.exp-company a:hover { border-bottom-color: var(--accent); }
.exp-meta { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 0.85rem; }
.exp-bullets { list-style: none; }
.exp-bullets li { position: relative; padding-left: 1.15rem; color: var(--muted); font-size: 0.93rem; margin-bottom: 0.4rem; }
.exp-bullets li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.exp-bullets li:last-child { margin-bottom: 0; }

/* ── PROJECT CARDS WITH IMAGERY ──────────────────────────────────── */
.proj-grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.proj-card { display: flex; flex-direction: column; overflow: hidden; }
.proj-img {
  height: 196px; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--border); position: relative;
}
.proj-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(28, 43, 58, 0.06), rgba(28, 43, 58, 0.22));
}
.proj-body { padding: 1.35rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.badge {
  display: inline-block; align-self: flex-start;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--accent); background: rgba(46, 110, 99, 0.09);
  border: 1px solid rgba(46, 110, 99, 0.22);
  border-radius: 999px; padding: 0.22rem 0.66rem; margin-bottom: 0.7rem;
}
.proj-title { font-family: var(--serif); font-size: 1.1rem; font-weight: 600; line-height: 1.35; margin-bottom: 0.25rem; }
.proj-date { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 0.7rem; }
.proj-desc { font-size: 0.9rem; color: var(--muted); }

/* numbered (text-only) projects */
.num-grid { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 1.4rem; }
.num-card { padding: 1.6rem 1.7rem; position: relative; }
.num-card .num {
  font-family: var(--serif); font-size: 2.1rem; font-weight: 600;
  color: var(--border); line-height: 1; margin-bottom: 0.5rem;
}
.num-card .proj-title { margin-bottom: 0.2rem; }
.num-bullets { list-style: none; margin-top: 0.5rem; }
.num-bullets li { position: relative; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem; margin-bottom: 0.4rem; }
.num-bullets li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ── CERTIFICATIONS ──────────────────────────────────────────────── */
.cert-grid { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.cert-card { display: flex; gap: 1rem; align-items: center; padding: 1.35rem 1.5rem; }
.cert-icon { width: 30px; height: 30px; flex: none; stroke: var(--gold); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cert-name { font-weight: 600; font-size: 0.96rem; line-height: 1.4; margin-bottom: 0.1rem; }
.cert-issuer { font-size: 0.83rem; color: var(--muted); }

/* ── CONTACT ─────────────────────────────────────────────────────── */
.contact-grid {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem; align-items: center;
}
.contact-headline { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 600; line-height: 1.15; color: var(--ink); }
.contact-headline em { color: var(--accent); font-style: italic; }
.contact-sub { color: var(--muted); margin-top: 1rem; max-width: 46ch; }
.contact-panel { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 1.7rem 1.8rem; box-shadow: var(--shadow); }
section.alt .contact-panel { background: var(--bg); }
.contact-link {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 0.85rem 0; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--border); transition: color 0.2s;
  font-size: 0.94rem;
}
.contact-link:last-child { border-bottom: none; }
.contact-link:hover { color: var(--accent); }
.contact-link svg { width: 19px; height: 19px; flex: none; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-link .lbl { font-size: 0.7rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); display: block; font-weight: 600; }

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
  background: var(--navy-d); color: rgba(255, 255, 255, 0.72);
  padding: 2.6rem 5vw; text-align: center; font-size: 0.85rem;
}
footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
footer a:hover { border-bottom-color: rgba(255, 255, 255, 0.7); }
.footer-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--white); margin-bottom: 0.45rem; }
.footer-links { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; justify-content: center; }
.footer-fine { margin-top: 1rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.5); }

/* ── ANIMATION ───────────────────────────────────────────────────── */
body.js-anim .fade-up { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body.js-anim .fade-up { opacity: 1; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-portrait { order: -1; justify-self: start; }
  .hero-portrait img { max-width: 210px; }
  .hero-portrait::after { inset: 10px -10px -10px 10px; }
  .about-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .proj-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section { padding: 3rem 6vw; }
  #hero { padding-top: calc(var(--nav-h) + 2.6rem); }
  .skills-grid { grid-template-columns: 1fr; }
  .exp-list::before { display: none; }
  .exp-item { padding-left: 0; }
  .exp-mark { position: static; margin-bottom: 0.85rem; width: 78px; height: 62px; }
  .edu-card { flex-direction: column; gap: 1rem; }
  .logo-slot { min-width: 118px; height: 62px; padding: 0.5rem 0.9rem; }
  .logo-slot img { max-height: 36px; }
}
@media print {
  nav, .hamburger, .mobile-menu, .hero-ctas, footer { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  section { padding: 1rem 0; page-break-inside: avoid; }
  .card { box-shadow: none; }
}
