:root {
  --paper: #f4f5fa;
  --card: #ffffff;
  --ink: #171a33;
  --muted: #5b6082;
  --line: #d9dceb;
  --accent: #3b4cca;
  --accent-dark: #2a389e;
  --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 5vw;
  background: rgba(244, 245, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-store {
  background: var(--accent); color: #fff;
  padding: 8px 16px; border-radius: 999px;
}
.nav-links .nav-store:hover { background: var(--accent-dark); color: #fff; }

/* About */
.about {
  display: flex;
  align-items: center; 
  gap: 28px;
   padding: 6vh 5vw 0;
}

.about-photo {
  position: relative; flex: 0 0 auto;
  width: 300px; height: 380px;
  overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #3b4cca, #8a5cf5);
  font: 800 3.5rem var(--font-head); color: rgba(255, 255, 255, 0.85);
}

.about-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.about h2 { font-family: var(--font-head); font-size: 1.9rem; }
.about p { margin-top: 8px; max-width: 55ch; color: var(--muted); }

/* Hero */
.hero { padding: 9vh 5vw 6vh; max-width: 980px; }
.hero h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero p { margin-top: 20px; max-width: 52ch; font-size: 1.1rem; color: var(--muted); }
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-block; cursor: pointer;
  font: 600 1rem var(--font-body);
  padding: 12px 24px; border-radius: 999px;
  text-decoration: none; border: 2px solid var(--ink);
  background: transparent; color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); }
.btn-line:hover { background: var(--ink); color: #fff; }

/* Works */
.works { padding: 6vh 5vw 8vh; }
.works-head {
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.works h2, .footer h2 { font-family: var(--font-head); font-size: 1.9rem; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font: 500 0.95rem var(--font-body);
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.filter:hover { border-color: var(--accent); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.card-media { aspect-ratio: 4 / 3; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  font: 800 4rem var(--font-head); color: rgba(255, 255, 255, 0.85);
}
.placeholder.digital { background: linear-gradient(135deg, #3b4cca, #8a5cf5); }
.placeholder.traditional { background: linear-gradient(135deg, #c27a1a, #7a3b12); }

.card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.tag { font-size: 0.85rem; color: var(--muted); }
.card h3 { font-family: var(--font-head); font-size: 1.25rem; margin: 2px 0 8px; }
.desc { color: var(--muted); font-size: 0.97rem; }

/* Borderless read more button */
.readmore {
  border: none; background: none; padding: 0; margin-top: 6px;
  font: 600 0.95rem var(--font-body);
  color: var(--accent); cursor: pointer; align-self: flex-start;
}
.readmore:hover { text-decoration: underline; }

.card-link {
  margin-top: auto; padding-top: 16px;
  font-weight: 600; color: var(--ink); text-decoration: none;
}
.card-link span { border-bottom: 2px solid var(--accent); }
.card-link:hover { color: var(--accent); }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.more-wrap { text-align: center; margin-top: 36px; }

/* Footer */
.footer {
  padding: 8vh 5vw 5vh;
  background: var(--ink); color: #fff;
  display: grid; gap: 24px;
}
.footer p { color: #c4c8e4; max-width: 50ch; margin-top: 6px; }
.socials { list-style: none; display: flex; gap: 12px; flex-wrap: wrap; }
.socials a {
  display: inline-block; padding: 8px 18px;
  border: 1px solid #4a4f7d; border-radius: 999px; text-decoration: none;
}
.socials a:hover { background: #fff; color: var(--ink); }
.contact-list { list-style: none; display: grid; gap: 6px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid #4a4f7d; }
.contact-list a:hover { border-color: #fff; }
.footer .copy { font-size: 0.9rem; margin-top: 12px; }

@media (max-width: 520px) {
  .nav-links { gap: 12px; }
  .nav-links a[href="#about"], .nav-links a[href="#contact"] { display: none; }
  .about { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
