/* Jamolka - parent portfolio site. Neutral by design so each project can keep
   its own product identity. */
:root {
  --ink: #111827;
  --ink-soft: #273244;
  --muted: #647084;
  --line: #e2e7ef;
  --bg: #f6f7f9;
  --card: #ffffff;
  --accent: #2f6f73;
  --accent-soft: #e6f3f1;
  --blue-soft: #eaf1f7;
  --shadow: 0 22px 50px rgba(17, 24, 39, 0.08);
  --maxw: 1040px;
}

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

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 52%, #eef2f5 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(226, 231, 239, 0.8);
  backdrop-filter: blur(14px);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 15px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0;
}

.mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a:hover { color: var(--ink); }

.hero {
  min-height: 68vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 72px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 10.5em;
  margin: 14px 0 18px;
  color: var(--ink);
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.hero p {
  max-width: 35em;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 750;
  transition: transform .12s, background .12s, border-color .12s;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #243044; }
.btn-ghost { background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: #c9d2df; }

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-row {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.panel-row:last-child { border-bottom: 0; }
.panel-row span { color: var(--accent); font-size: 12px; font-weight: 800; }
.panel-row strong { color: var(--ink-soft); font-size: 18px; line-height: 1.25; }

.projects { padding: 20px 24px 86px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.section-head h2 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.project-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--card);
  transition: transform .14s, box-shadow .14s, border-color .14s;
}

.project-card.featured {
  position: relative;
  overflow: hidden;
}

.project-card.featured::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 190px;
  height: 120px;
  border: 1px solid #d7e3ec;
  border-radius: 8px;
  background:
    linear-gradient(#f7fafc, #f7fafc) padding-box,
    linear-gradient(120deg, #dce8ef, #f7fafc) border-box;
  box-shadow: inset 0 34px 0 #edf3f7;
  opacity: .9;
}

.project-card.featured::before {
  content: "Price history";
  position: absolute;
  right: 46px;
  bottom: 68px;
  z-index: 1;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: #25645d;
  font-size: 12px;
  font-weight: 800;
}

.project-card:hover {
  transform: translateY(-2px);
  border-color: #c9d2df;
  box-shadow: var(--shadow);
}

.project-topline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.project-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--muted);
  font-weight: 800;
}

.project-icon.muted { background: #eef0f3; }

.project-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-card h3 {
  color: var(--ink);
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: 0;
}

.project-card p {
  max-width: 31em;
  color: var(--muted);
  font-size: 15.5px;
}

.tag-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tag-row span {
  padding: 4px 9px;
  border-radius: 7px;
  background: #f0f3f6;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 750;
}

.project-link {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding-top: 28px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.project-card.quiet {
  background: transparent;
  border-style: dashed;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 13.5px;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot-inner a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 56px;
  }

  .hero h1 { font-size: 48px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card.featured::before,
  .project-card.featured::after { display: none; }
}

@media (max-width: 560px) {
  .nav-inner { align-items: flex-start; }
  .nav-links { gap: 14px; }
  .hero h1 { font-size: 40px; }
  .section-head { display: block; }
  .section-head h2 { margin-top: 6px; }
}
