/* =====================================================================
   Alex Rivera — Portfolio Template
   Plain CSS3. No frameworks.
   ---------------------------------------------------------------------
   REBRAND: Change the palette and fonts in :root below to make this
   template your own. Update --accent for a different brand color, then
   adjust the work-thumb gradients in the "Selected Work" section.
   ===================================================================== */

:root {
  /* --- Colors (rebrand here) --- */
  --bg:        #ffffff;   /* page background            */
  --bg-alt:    #f4f3fb;   /* soft alternate section bg  */
  --ink:       #0f0f12;   /* near-black text            */
  --ink-soft:  #5a5a66;   /* muted body text            */
  --accent:    #6c5ce7;   /* primary brand violet       */
  --accent-2:  #a29bfe;   /* lighter violet for accents */
  --line:      #e8e7f0;   /* borders / hairlines        */

  /* --- Fonts (rebrand here) --- */
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  /* --- Layout tokens --- */
  --maxw: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(15, 15, 18, 0.18);
  --shadow-sm: 0 8px 24px -12px rgba(15, 15, 18, 0.18);
  --transition: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

/* ----------------------------- Layout helpers ----------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-eyebrow, .eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  color: var(--ink);
}

.accent { color: var(--accent); }

/* ----------------------------- Buttons ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              box-shadow var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 30px -10px rgba(108, 92, 231, 0.6);
}
.btn-primary:hover { background: #5a4bd6; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============================== HEADER ============================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(15, 15, 18, 0.5);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.logo-text { font-size: 1.05rem; letter-spacing: -0.01em; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav-list { display: flex; align-items: center; gap: 28px; }
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.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); }

/* ============================== HERO ============================== */
.hero {
  padding: clamp(60px, 9vw, 110px) 0 90px;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin: 12px 0 22px;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-meta { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--ink); }
.hero-meta span { font-size: 0.88rem; color: var(--ink-soft); }

/* Hero decorative graphic */
.hero-graphic { position: relative; min-height: 320px; display: grid; place-items: center; }
.orb { position: absolute; border-radius: 50%; filter: blur(8px); opacity: 0.55; }
.orb-1 { width: 220px; height: 220px; background: var(--accent-2); top: -10px; right: 0; }
.orb-2 { width: 160px; height: 160px; background: #ffd6a5; bottom: -10px; left: 10px; }
.hero-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  animation: float 6s ease-in-out infinite;
}
.hero-card-row { display: flex; gap: 7px; margin-bottom: 14px; }
.hero-card-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.hero-card-row .dot:first-child { background: #ff7b72; }
.hero-svg { width: 100%; height: auto; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ============================== ABOUT ============================== */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; }
.about-body p { color: var(--ink-soft); margin-bottom: 18px; }
.about-highlights { margin-top: 26px; display: grid; gap: 12px; }
.about-highlights li {
  font-weight: 500;
  padding: 14px 18px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.section-alt .about-highlights li { background: #fff; }

/* ============================== SKILLS ============================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.skill-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.skill-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  font-size: 1.5rem;
  border-radius: 14px;
  background: var(--bg-alt);
  margin-bottom: 18px;
}
.skill-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.skill-card p { color: var(--ink-soft); font-size: 0.96rem; }

/* ============================== SELECTED WORK ============================== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.work-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform var(--transition), box-shadow var(--transition);
}
.work-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.work-thumb {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.work-emoji {
  font-size: 3rem;
  transition: transform var(--transition);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
}
.work-card:hover .work-emoji { transform: scale(1.18) rotate(-4deg); }
/* Gradient thumbnails — rebrand by editing these */
.thumb-1 { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.thumb-2 { background: linear-gradient(135deg, #00b894, #55efc4); }
.thumb-3 { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.thumb-4 { background: linear-gradient(135deg, #e17055, #fab1a0); }
.thumb-5 { background: linear-gradient(135deg, #d63031, #ff7675); }
.thumb-6 { background: linear-gradient(135deg, #2d3436, #636e72); }
.work-info { padding: 22px 22px 26px; }
.work-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.work-cat { color: var(--ink-soft); font-size: 0.9rem; }
.work-arrow {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  font-size: 1.1rem;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity var(--transition), transform var(--transition);
}
.work-card:hover .work-arrow { opacity: 1; transform: translateX(0); }

/* ============================== EXPERIENCE / TIMELINE ============================== */
.timeline { position: relative; max-width: 760px; margin-left: 8px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-left: 42px;
  padding-bottom: 38px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-alt);
}
.section:not(.section-alt) .timeline-item::before { border-color: #fff; }
.timeline-period { font-family: var(--font-head); font-weight: 600; color: var(--accent); font-size: 0.95rem; padding-top: 2px; }
.timeline-content h3 { font-size: 1.25rem; margin-bottom: 2px; }
.timeline-org { font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.timeline-content p:last-child { color: var(--ink-soft); }

/* ============================== SERVICES ============================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.service-card.featured p,
.service-card.featured ul li { color: rgba(255,255,255,0.75); }
.service-num { font-family: var(--font-head); font-size: 0.95rem; font-weight: 600; color: var(--accent); }
.service-card h3 { font-size: 1.4rem; margin: 10px 0 12px; }
.service-card > p { color: var(--ink-soft); margin-bottom: 20px; }
.service-card ul { display: grid; gap: 10px; }
.service-card ul li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.service-card ul li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}
.service-card.featured ul li::before { color: var(--accent-2); }
.service-badge {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 5px 12px; border-radius: 999px;
}

/* ============================== TESTIMONIALS ============================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testimonial blockquote { font-size: 1.05rem; line-height: 1.55; font-weight: 500; }
.testimonial figcaption { display: flex; align-items: center; gap: 14px; font-size: 0.9rem; color: var(--ink-soft); }
.avatar {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  flex-shrink: 0;
}
.testimonial figcaption strong { color: var(--ink); }

.clients {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 48px;
  justify-content: center;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.clients span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--ink-soft);
  opacity: 0.55;
  transition: opacity var(--transition), color var(--transition);
}
.clients span:hover { opacity: 1; color: var(--accent); }

/* ============================== CONTACT ============================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-lead { color: var(--ink-soft); margin: 16px 0 26px; max-width: 42ch; }
.contact-details { display: grid; gap: 14px; }
.contact-details li { font-weight: 500; }
.contact-details a { color: var(--accent); }
.contact-details a:hover { text-decoration: underline; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.12);
}
.field.invalid input, .field.invalid textarea { border-color: #e74c3c; }
.error { display: block; color: #e74c3c; font-size: 0.82rem; margin-top: 6px; min-height: 1em; }
.form-success {
  margin-top: 16px;
  font-weight: 600;
  color: #00b894;
  text-align: center;
}

/* ============================== FOOTER ============================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 60px 0 30px; }
.site-footer .logo-text { color: #fff; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand p { margin-top: 14px; max-width: 30ch; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: 12px; align-items: flex-start; }
.footer-social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}

/* ============================== SCROLL REVEAL ============================== */
/* Hidden state only applies when JS marks the document as reveal-ready.
   If JS/IntersectionObserver is unavailable, everything stays visible. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 940px) {
  .skills-grid, .work-grid, .services-grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-graphic { order: -1; min-height: 240px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }

  /* Mobile nav */
  .hamburger { display: flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 16px 24px 24px;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--transition), opacity var(--transition), visibility var(--transition);
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li { border-bottom: 1px solid var(--line); }
  .nav-link { display: block; padding: 15px 0; font-size: 1.05rem; }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 18px; width: 100%; }

  .timeline-item { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .skills-grid, .work-grid, .services-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 26px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================================
   ===== MULTI-PAGE ADDITIONS (appended) ==============================
   Shared page banner, breadcrumb, and new components for the
   About / Work / Project / Services / Contact pages.
   ===================================================================== */

/* ----- Active nav state ----- */
.nav-link.active { color: var(--ink); font-weight: 600; }
.nav-link.active::after { width: 100%; }
@media (max-width: 760px) {
  .nav-link.active { color: var(--accent); }
}

/* ----- Page banner + breadcrumb ----- */
.page-banner {
  padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-banner::after {
  content: "";
  position: absolute;
  top: -120px; right: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,0.18), transparent 70%);
  pointer-events: none;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 22px;
}
.breadcrumb a { color: var(--ink-soft); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-hidden] { color: var(--line); }
.breadcrumb span[aria-current] { color: var(--accent); font-weight: 600; }
.page-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: var(--ink);
  max-width: 16ch;
  position: relative;
  z-index: 1;
}
.page-lead {
  margin-top: 18px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 56ch;
  position: relative;
  z-index: 1;
}

/* ----- Generic helpers used across new pages ----- */
.narrow { max-width: 800px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.section-cta { margin-top: 48px; text-align: center; }

/* ----- CTA band ----- */
.cta-band { background: var(--bg-alt); }
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-inner p { color: var(--ink-soft); font-size: 1.08rem; margin: 16px 0 30px; }

/* ----- About: portrait + skill bars ----- */
.about-portrait {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.about-portrait span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5rem);
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
}
.skill-bars { margin-top: 48px; display: grid; gap: 22px; max-width: 720px; }
.skill-bar-head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}
.skill-bar-head span:last-child { color: var(--accent); }
.bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.section-alt .bar-track { background: #fff; }
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ----- Info lists (education / awards) ----- */
.info-list { display: grid; gap: 26px; }
.info-list li {
  padding-left: 20px;
  border-left: 2px solid var(--line);
}
.info-list strong { display: block; font-size: 1.1rem; font-family: var(--font-head); }
.info-list li > span { display: block; font-size: 0.88rem; color: var(--accent); font-weight: 600; margin: 2px 0 8px; }
.info-list p { color: var(--ink-soft); font-size: 0.96rem; }

/* ----- Tools ----- */
.tools-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.tool-chip {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}
.tool-chip:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); }

/* ----- Work filters + stats ----- */
.work-filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }
.filter-chip {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3rem);
  color: var(--accent);
  line-height: 1;
}
.stat span { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; }

/* ----- Project / case study ----- */
.project-hero .page-title { max-width: 20ch; }
.case-hero-block {
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.case-hero-block .work-emoji { font-size: 5rem; }

.project-overview {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.overview-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.overview-meta span { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 4px; }
.overview-meta strong { font-family: var(--font-head); font-size: 1rem; }
.overview-intro p { color: var(--ink-soft); margin-bottom: 16px; }

.case-text { font-size: 1.1rem; color: var(--ink-soft); }

.problem-list { margin-top: 34px; display: grid; gap: 18px; }
.problem-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}
.problem-list li span {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.problem-list li p { color: var(--ink-soft); }

.case-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0 24px; }
.case-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.case-image .work-emoji { font-size: 3.4rem; }
.case-image.wide { aspect-ratio: 16 / 6; }

.solution-list { margin-top: 34px; display: grid; gap: 14px; }
.solution-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 1.02rem;
}
.solution-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.result-card {
  text-align: center;
  padding: 34px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.result-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.result-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--accent);
  line-height: 1;
}
.result-card span { display: block; margin-top: 10px; color: var(--ink-soft); font-size: 0.92rem; }

.case-quote {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}
.case-quote cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

.next-project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 8px;
  border-radius: var(--radius);
  transition: transform var(--transition);
}
.next-project-link:hover { transform: translateY(-4px); }
.next-project-link p { color: var(--ink-soft); margin-top: 4px; }
.next-thumb {
  width: 160px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.next-thumb .work-emoji { font-size: 2.6rem; }

/* ----- Services: process ----- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step {
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.process-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent-2);
  display: block;
  margin-bottom: 12px;
}
.process-step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.process-step p { color: var(--ink-soft); font-size: 0.95rem; }

/* ----- Services: pricing ----- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: start; }
.pricing-card {
  position: relative;
  padding: 36px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 18px 50px -18px rgba(108,92,231,0.45);
}
.pricing-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.price { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--ink); line-height: 1; }
.price span { font-family: var(--font-body); font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.pricing-desc { color: var(--ink-soft); margin: 14px 0 22px; font-size: 0.96rem; }
.pricing-list { display: grid; gap: 12px; margin-bottom: 28px; }
.pricing-list li { position: relative; padding-left: 24px; font-size: 0.95rem; color: var(--ink-soft); }
.pricing-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.pricing-note { text-align: center; margin-top: 32px; color: var(--ink-soft); }
.pricing-note a { color: var(--accent); font-weight: 600; }

/* ----- FAQ (accordion) ----- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 24px;
  transition: border-color var(--transition);
}
.faq-item[open] { border-color: var(--accent); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); padding: 0 0 22px; max-width: 64ch; }

/* ----- Contact: availability + socials ----- */
.availability-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.availability-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #00b894;
  margin-top: 6px;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(0,184,148,0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,184,148,0.5); }
  100% { box-shadow: 0 0 0 10px rgba(0,184,148,0); }
}
.availability-card strong { font-family: var(--font-head); }
.availability-card p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 2px; }
.contact-social { display: flex; gap: 12px; margin-top: 28px; }
.contact-social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}
.contact-social a:hover { background: var(--accent); color: #fff; transform: translateY(-3px); }

/* ----- Responsive (multi-page additions) ----- */
@media (max-width: 940px) {
  .two-col,
  .project-overview { grid-template-columns: 1fr; gap: 36px; }
  .overview-meta,
  .about-portrait { position: static; }
  .process-grid,
  .results-grid,
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .case-grid-2 { grid-template-columns: 1fr; }
  .next-project-link { flex-direction: column-reverse; align-items: flex-start; }
  .next-thumb { width: 100%; }
}
@media (max-width: 560px) {
  .process-grid,
  .results-grid,
  .stats-row,
  .overview-meta { grid-template-columns: 1fr; }
}

/* ----- Photo backgrounds (wired-in professional images) ----- */
.has-photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
