/* Global */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: 'Abacaxi', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300; /* slightly heavier than thin */
  background: #000;
  color: #fff;
  text-align: center;
  min-height: 100vh;
  padding-top: 64px; /* room for fixed navbar */
  cursor: url("assets/32w/Artboard%201.png"), auto;
}

@font-face {
  font-family: 'Abacaxi';
  src: url('assets/fonts/abacaxi/Abacaxi Latin VF Thin.otf') format('opentype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* prevent horizontal overflow and remove side "black bar" */
html, body {
  overflow-x: hidden; /* hide any accidental horizontal overflow */
}

/* ensure all media and iframes can't exceed their containers */
img, video, iframe, .hero-img, .ui-mockup, .Illustration-img, .client-gallery img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* make main layout containers respect viewport */
.container, main, section {
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

/* if an absolutely positioned element is causing overflow, contain it */
.hero, .section {
  position: relative;
  overflow: hidden;
}

/* Navbar */
.navbar {
  width: 100%;
  background: rgba(34,34,34,0.85);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* Hide navigation (toggle off). Remove or comment this rule to show the nav again. */
.navbar { display: none !important; }

/* When the nav is hidden, remove the page top padding so the hero sits at the top */
body { padding-top: 0 !important; }

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  justify-content: space-between;
  position: relative;
}

.navbar-logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}

.navbar-logo:hover,
.navbar-logo:focus {
  color: inherit !important;
  text-decoration: none !important;
  outline: none;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.navbar-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.navbar-links a:hover { color: #ffd700; }
.navbar-links a .fa-envelope { font-size: 1.2em; vertical-align: middle; }

/* Hamburger button (hidden on desktop) */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
  position: relative;
}

.hero-img {
  width: 350px;
  max-width: 80%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  margin-top: 20px;
}

/* Landing layout: two-column hero with image left and text right */
.hero.landing { padding: 32px 0 64px; min-height: 100vh; background: #fff; color: #111; }
.landing-nav-variants { position: absolute; right: 48px; top: 18px; display: flex; gap: 18px; align-items: center; }
.landing-nav-item { font-family: 'Anton', sans-serif; font-size: 18px; color: #111; text-decoration: none; font-weight: 400; transition: color 0.3s ease; }
.landing-nav-item:hover { color: #8ab292; }
.landing-nav-item:active { color: #CB9973; }
/* Override #hero * inherit rule for nav hover and active */
#hero .landing-nav-item:hover { color: #8ab292 !important; }
#hero .landing-nav-item:active { color: #CB9973 !important; }

.landing-inner {
  display: flex;
  align-items: flex-end;
  gap: 48px;
  padding: 36px 0;
}
.landing-left { flex: 0 0 440px; }
.landing-left-img { width: 440px; height: auto; display: block; border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.landing-copy {
  flex: 1 1 480px;
  max-width: 420px;
  text-align: left;
}
.intro-heading {
  font-family: 'Anton', sans-serif;
  font-size: 72px;
  line-height: 0.95;
  margin: 0 0 10px;
  color: #111;
  letter-spacing: -1px;
  font-weight: 400;
}
.intro-heading .intro-name { color: #6aa36a; display: inline-block; }
.intro-heading .dot { color: #111; display: inline-block; margin-left: 4px; }
.lead { font-size: 20px; margin: 6px 0 14px; color: #222; }
.landing-copy p {
  margin: 8px 0;
  font-family: 'Abacaxi', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.45;
  color: #111;
}
.landing-copy a { color: #6aa36a; text-decoration: none; font-weight: 600; }

.about-page .hero.landing { background: #fff; padding: 24px 0 48px; }
.about-page .landing-inner {
  align-items: flex-start;
  justify-content: center;
  gap: 42px;
  padding: 92px 20px 24px;
  max-width: 1240px;
  margin: 0 auto;
}
.about-page .landing-left { flex: 0 0 470px; }
.about-page .landing-left-img {
  width: 470px;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
.about-page .landing-copy {
  flex: 0 0 540px;
  max-width: 540px;
  padding-top: 86px;
}
.about-page .intro-heading {
  font-family: 'Manrope', sans-serif;
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 18px;
  letter-spacing: 0;
  font-weight: 600;
}
.about-page .lead { display: none; }
.about-page .landing-copy p {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.25;
  color: #2a2a2a;
  text-wrap: pretty;
}
.about-page .landing-copy a { color: inherit; text-decoration: none; font-weight: 400; }

@media (max-width: 1100px) {
  .landing-inner { gap: 28px; padding-top: 84px; }
  .landing-left { flex: 0 0 34%; }
  .landing-left-img { width: 100%; max-width: 380px; }
  .intro-heading { font-size: 40px; }
  .landing-copy p { font-size: 18px; }

  .about-page .landing-left { flex: 0 0 40%; }
  .about-page .landing-left-img { width: 100%; max-width: 440px; }
  .about-page .landing-copy { flex: 1 1 52%; max-width: 600px; padding-top: 26px; }
  .about-page .intro-heading { font-size: 36px; }
}

@media (max-width: 700px) {
  .landing-inner { flex-direction: column; align-items: center; padding-top: 96px; }
  .landing-left { width: 90vw; max-width: 420px; }
  .landing-left-img { width: 100%; }
  .landing-nav-variants { right: 12px; top: 14px; }
  .landing-copy { text-align: center; padding: 0 18px; }
  .intro-heading { font-size: 28px; }
  .landing-copy p { font-size: 16px; }

  .about-page .landing-left { width: 92vw; max-width: 470px; }
  .about-page .landing-copy { text-align: left; padding: 0 10px; max-width: 92vw; }
  .about-page .intro-heading { font-size: 30px; }
  .about-page .landing-copy p { font-size: 18px; }
}

h1 { font-family: 'Anton', sans-serif; font-size: 100px; margin: 8px 0 4px; letter-spacing: 2px; }
h2 { font-family: 'Anton', sans-serif; font-size: 20px; margin: 0 0 12px; }
p { font-size: 0.95rem; color: #555; }
p.teal { color: #8ab292; }
/* Ensure teal class inside the hero overrides the #hero * inheritance rule */
#hero .teal { color: #8ab292; }

/* Galleries and media */
.ui-gallery { width: 100%; background: #000; padding: 40px 0; }
.ui-gallery h2 { color:#fff; font-size:1.4rem; margin-bottom:28px; }
.ui-gallery-row { display:flex; justify-content:center; gap:12px; flex-wrap:nowrap; padding:0; margin:0; }
.ui-mockup { flex: 1 1 auto; min-width: 150px; max-width: 100%; border-radius:32px; box-shadow:0 4px 32px rgba(0,0,0,0.4); background:#222; transition: transform 0.6s ease-out; margin:0; padding:0; }
.ui-mockup.spin { animation: spinImage 0.8s ease-out forwards; }

@keyframes spinImage {
  0% { transform: rotateZ(0deg) scale(1); }
  50% { transform: rotateZ(180deg) scale(1.05); }
  100% { transform: rotateZ(360deg) scale(1); }
}

.Illustration-gallery { display:flex; justify-content:center; gap:24px; flex-wrap:wrap; padding:0 12px; }
.Illustration-img, .Illustration-video, .Illustration-video-large { width:350px; height:350px; max-width:90vw; object-fit:cover; border-radius:8px; }
.Illustration-gallery-large { display:flex; justify-content:center; margin-top:24px; }

.client-gallery-img {
  width: auto;
  max-width: 90vw;
  height: auto;
  display:block;
  margin: 0 auto;
}

/* Responsive Figma prototype embeds */
.figma-prototype { width:100%; display:flex; justify-content:center; margin-bottom:20px; padding:0 12px; }
.figma-prototype iframe {
  width: 90vw;
  max-width: 900px;
  height: 56.25vw; /* 16:9 ratio by vw */
  max-height: 600px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* Mobile / small screens */
@media (max-width: 700px) {
  .navbar-toggle { display: block; position: absolute; top: 14px; right: 18px; z-index: 210; }

  /* Use collapsible menu with max-height to avoid covering everything */
  .navbar-links {
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    margin: 0;
    display: flex;
    position: absolute;
    top: 64px;
    left: 0;
    background: rgba(34,34,34,0.98);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    overflow: auto;
    max-height: 0;
    transition: max-height 260ms ease;
    z-index: 205;
  }
  .navbar-links.open { max-height: 70vh; } /* not full screen, allows page to be seen below */
  .navbar-links li { width:100%; text-align:left; }
  .navbar-links a { display:block; padding:8px 0; font-size:1rem; }

  /* Hero sizing */
  .hero-img { width: 90vw; max-width:220px; margin-top:12px; }
  h1 { font-size: 1.5rem; margin:6px 0 6px; }
  h2 { font-size: 1rem; margin-bottom:8px; }
  p { font-size: 0.95rem; padding: 0 4vw; }

  /* Galleries stack vertically */
  .ui-gallery-row, .Illustration-gallery { flex-direction:column; align-items:center; gap:18px; }
  .ui-mockup, .Illustration-img, .Illustration-video, .Illustration-video-large { width:90vw; height:90vw; max-width:360px; max-height:360px; }
  .client-gallery-img { width:72vw; max-width:260px; }

  /* Ensure prototypes scale nicely on phones (16:9 via vw) */
  .figma-prototype iframe { height: calc(90vw * 9 / 16); max-height: 420px; width: 90vw; }
}

/* Desktop override for large embeds */
@media (min-width: 700px) {
  .figma-prototype iframe { width: 800px; height: 450px; }
}

/* nav / dropdown helpers */
:root {
  --nav-height: 64px; /* adjust if navbar height differs */
  --nav-offset: calc(var(--nav-height) + 12px);
}

/* ensure anchors land below fixed nav */
section[id] {
  scroll-margin-top: var(--nav-offset);
}

/* dropdown styles (used by virtual-companion page) */
.navbar-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; align-items: center; }
.navbar-links li { position: relative; }
.nav-dropdown .dropbtn {
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 6px 8px;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  color: #222;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  border-radius: 6px;
  min-width: 180px;
  z-index: 120;
  padding: 6px 0;
}
.dropdown-menu li { margin: 0; }
.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: inherit;
  text-decoration: none;
}
.dropdown-menu a:hover { background: rgba(0,0,0,0.05); }

/* optional: smooth scroll behavior for the whole page */
html { scroll-behavior: smooth; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: left;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

/* tighten prototype caption */
.figma-prototype figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: 0.95rem;
}
.figma-prototype figcaption a { color: #333; text-decoration: underline; }

/* Remove dark frames/backgrounds around UI images and their containers */
.ui-gallery, .ui-gallery .container,
.grid.ui-gallery-row, .ui-gallery-row,
.ui-gallery .ui-mockup, .ui-gallery img,
.client-gallery, .client-gallery img,
.Illustration-gallery, .Illustration-img {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
}

/* Ensure images themselves display without extra styling */
.ui-gallery img,
.client-gallery img,
.Illustration-img,
.ui-mockup img {
  display: block;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* If a wrapper element is adding a background via pseudo-elements */
.ui-gallery .ui-mockup::before,
.ui-gallery .ui-mockup::after,
.client-gallery::before,
.client-gallery::after {
  background: transparent !important;
  content: none !important;
}

/* Make all pages/sections dark except the first (hero) */
body {
  background: #000;
  color: #fff;
}

/* default section styling: dark background with light text */
section {
  background: #000;
  color: #fff;
}

/* keep the first page (hero) light */
#hero, .hero {
  background: #fff;    /* or use an image as before */
  color: #111;         /* dark text for hero */
}

/* ensure in-page anchors still respect hero override */
#hero * { color: inherit; }

/* images and galleries keep transparent background so files show correctly */
.section img,
.ui-gallery img,
.Illustration-img,
.client-gallery img {
  background: transparent !important;
  box-shadow: none !important;
}

/* links contrast on dark sections */
section a {
  color: #9dd3ff;
  text-decoration: underline;
}
#hero a { color: inherit; text-decoration: none; }

#clients,
section#clients {
  background: #ffffff !important;
  color: #111111 !important;
}

#clients a {
  color: #0066cc;
  text-decoration: underline;
}

#clients img {
  background: transparent !important;
  box-shadow: none !important;
}

/* scroll chevron in hero */
.scroll-down {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 120;
  color: inherit;
}

/* large chevron without tail, fade/blink animation */
.chevron-icon {
  display: block;
  width: 72px;
  height: 72px;
  line-height: 1;
  color: inherit;
  animation: chevronFade 2s ease-in-out infinite;
  will-change: opacity, transform;
  -webkit-backface-visibility: hidden;
}

/* fade / slight move / subtle scale */
@keyframes chevronFade {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  50%  { opacity: 0.15; transform: translateY(6px) scale(1.03); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .chevron-icon { animation: none; opacity: 1; }
}

.ui-gallery .container {
  display: flex;
}

.grid.ui-gallery-row,
.ui-gallery-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.ui-gallery-row img,
.ui-gallery .ui-mockup {
  /* Larger, tighter gallery items on desktop */
  flex: 0 0 340px;
  min-width: 220px;
  max-width: 100%;
  width: 340px;
  height: auto;
  display: block;
  margin: 0;
  object-fit: contain;
}

/* Reveal animation: start hidden, reveal with stagger */
.ui-mockup {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 520ms cubic-bezier(.2,.8,.2,1), transform 520ms cubic-bezier(.2,.8,.2,1);
}
.ui-gallery-row .ui-mockup:nth-child(1) { transition-delay: 0ms; }
.ui-gallery-row .ui-mockup:nth-child(2) { transition-delay: 120ms; }
.ui-gallery-row .ui-mockup:nth-child(3) { transition-delay: 240ms; }
.ui-mockup.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* small screens: allow horizontal scroll rather than wrapping */
@media (max-width: 760px) {
  .grid.ui-gallery-row,
  .ui-gallery-row {
    overflow-x: auto;
    gap: 16px;
    padding: 0 12px;
  }
  .ui-gallery-row img,
  .ui-gallery .ui-mockup {
    flex: 0 0 280px;
    max-width: none;
  }
}

/* Responsive: stack on small screens */
@media (max-width: 800px) {
  .grid.ui-gallery-row,
  .ui-gallery-row {
    flex-direction: column;
    gap: 16px;
    align-items: center;
    max-width: 100%;
    padding: 0 12px;
  }
  .ui-gallery-row img,
  .ui-gallery .ui-mockup {
    flex: 0 0 auto;
    max-width: 92%;
  }
}

/* Responsive / Mobile optimizations */
:root {
  --nav-height: 64px;
}

/* base scaling for small viewports */
@media (max-width: 900px) {
  :root { --nav-height: 56px; }

  /* typography */
  html { font-size: 15px; }
  h1 { font-size: clamp(1.6rem, 6.5vw, 2.2rem); }
  h2 { font-size: clamp(1.1rem, 4.2vw, 1.4rem); }

  /* hero */
  .hero { padding: 28px 12px; }
  .hero-img { max-height: 38vh; width: auto; margin: 0 auto; display:block; }

  /* section containers tighten padding */
  .container { padding-left: 12px; padding-right: 12px; }

  /* UI gallery: keep single row but smaller items and tighter gaps */
  .grid.ui-gallery-row,
  .ui-gallery-row {
    gap: 0;
    padding: 0;
    max-width: 100%;
    justify-content: center;
  }
  .ui-gallery-row img,
  .ui-gallery .ui-mockup {
    flex: 0 0 42%;
    max-width: 42%;
  }

  /* On very small screens, make row swipeable and slightly larger items */
  @media (max-width: 420px) {
    .ui-gallery-row img,
    .ui-gallery .ui-mockup {
      flex: 0 0 80%;
      max-width: 80%;
    }
    .grid.ui-gallery-row,
    .ui-gallery-row { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .hero-img { max-height: 32vh; }
  }

  /* Illustration and clients images scale down uniformly */
  .Illustration-img,
  .client-gallery img {
    max-width: 92%;
    margin: 0 auto;
  }
}

/* Accessibility: prefer reduced motion still honored */
@media (prefers-reduced-motion: reduce) {
  .chevron-icon { animation: none !important; opacity:1 !important; transform:none !important; }
  html { scroll-behavior: auto; }
}

/* Work Page */
.work-hero { min-height: 100vh; background: #fff; color: #111; padding: 48px 24px; display: flex; flex-direction: column; justify-content: space-around; align-items: center; position: relative; }
.work-nav-top { position: absolute; right: 48px; top: 18px; display: flex; gap: 18px; align-items: center; }
.work-nav-item { font-family: 'Anton', sans-serif; font-size: 18px; color: #111; text-decoration: none; font-weight: 400; transition: color 0.3s ease; }
.work-nav-item:hover { color: #8ab292; }
.work-nav-item:active { color: #CB9973; }

.work-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 32px; max-width: 1000px; }
.category-btn { font-family: 'Anton', sans-serif; font-size: 20px; color: #111; text-decoration: none; font-weight: 400; transition: color 0.3s ease; cursor: pointer; }
.category-btn:hover { color: #8ab292; }
.category-btn:active { color: #CB9973; }

@media (max-width: 900px) {
  .work-nav-top { right: 18px; top: 14px; gap: 12px; }
  .work-categories { gap: 24px; }
  .category-btn { font-size: 18px; }
}

@media (max-width: 600px) {
  .work-hero { padding: 36px 16px; }
  .work-nav-top { right: 12px; top: 12px; }
  .work-categories { gap: 18px; flex-direction: column; align-items: center; }
  .category-btn { font-size: 16px; }
}

/* Category Page */
.category-page { min-height: 100vh; background: #fff; color: #111; padding: 20px; position: relative; }
.category-nav-top { position: absolute; right: 20px; top: 20px; display: flex; gap: 20px; align-items: center; }
.category-nav-item { font-family: 'Anton', sans-serif; font-size: 18px; color: #111; text-decoration: none; font-weight: 400; transition: color 0.3s ease; }
.category-nav-item:hover { color: #8ab292; }
.category-nav-item:active { color: #CB9973; }

.category-header { text-align: left; margin: 20px 0 20px 33px; max-width: 1200px; padding: 0 20px 0 0; }
.category-title { font-family: 'Anton', sans-serif; font-size: 24px; color: #111; margin: 0; }
.category-subtitle { font-size: 14px; color: #666; margin: 12px 0 0; }

.category-content { max-width: 1200px; margin: 0 auto; padding: 20px; }

.category-topbar { padding: 20px 0 0; display: flex; justify-content: flex-end; }
.category-topbar-nav { display: flex; gap: 20px; font-family: 'Anton', sans-serif; font-size: 0.95rem; text-transform: uppercase; }
.category-topbar-nav a { text-decoration: none; color: #111; letter-spacing: 0.08em; }
.category-topbar-nav a:hover { color: #8ab292; }

.illustrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(314px, 314px));
  column-gap: 20px;
  row-gap: 20px;
  justify-content: center;
  grid-auto-rows: auto;
}

.illustration-card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  background: transparent;
  max-width: 314px;
  min-height: 314px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-card.tall {
  grid-row: span 2;
  min-height: 648px;
  aspect-ratio: auto;
}

.illustration-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.illustration-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card video { background: #000; }

.branding-page .category-page {
  background: #fff;
}

.ewu-page .category-page {
  background: #fff;
}

/* ── UX-UI Page ─────────────────────────────────── */
.ux-ui-page .category-page {
  background: #fff;
}

.ux-ui-content {
  max-width: 1100px;
  padding: 0 32px 60px;
  text-align: left;
}

.ux-ui-page-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #111;
  margin: 0 0 40px;
  letter-spacing: 0.02em;
}

.ux-project-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px 60px;
  padding: 60px 0;
  border-top: 1px solid #e5e5e5;
}

.ux-project-row.img-left {
  direction: ltr;
}

.ux-project-row.img-right .ux-project-copy {
  order: 1;
}

.ux-project-row.img-right .ux-project-media {
  order: 2;
}

.ux-project-copy {
  max-width: 380px;
}

.ux-project-copy-centered {
  text-align: center;
}

.ux-project-copy-centered .ux-prototype-btn {
  margin: 0 auto;
}

.ux-project-title {
  font-family: 'Abacaxi', 'Manrope', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #111;
  margin: 0 0 12px;
}

.ux-project-desc {
  font-family: 'Abacaxi', 'Manrope', system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  margin: 0 0 24px;
}

.ux-prototype-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #111;
  color: #fff;
  font-family: 'Abacaxi', 'Manrope', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.ux-prototype-btn:hover {
  background: #8AB292;
}

.ux-project-media {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.ux-project-media-snickers {
  overflow: visible;
}

.ux-project-media-layer {
  overflow: visible;
}

.ux-project-media img {
  display: block;
}

.ux-media-duo {
  gap: 16px;
}

.ux-media-duo img {
  object-fit: contain;
}

.ux-snickers-stack {
  position: relative;
  width: 390px;
  height: 460px;
  flex-shrink: 0;
}

.ux-snickers-bg {
  position: absolute;
  bottom: -8px;
  right: 8px;
  height: 430px;
  width: auto;
  max-width: none;
  object-fit: contain;
  z-index: 0;
}

.ux-snickers-front {
  position: absolute;
  bottom: -54px;
  left: -18px;
  height: 430px;
  width: auto;
  max-width: none;
  object-fit: contain;
  z-index: 1;
}

.ux-layer-stack {
  position: relative;
  width: 390px;
  height: 460px;
  flex-shrink: 0;
}

.ux-layer-bg {
  position: absolute;
  bottom: -8px;
  left: 8px;
  height: 430px;
  width: auto;
  max-width: none;
  object-fit: contain;
  z-index: 0;
}

.ux-layer-front {
  position: absolute;
  bottom: -54px;
  right: -18px;
  height: 430px;
  width: auto;
  max-width: none;
  object-fit: contain;
  z-index: 1;
}

.ux-quietbook-image {
  height: 430px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.ux-trek-image {
  height: 430px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

@media (max-width: 720px) {
  .ux-project-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ux-project-row.img-right .ux-project-copy,
  .ux-project-row.img-right .ux-project-media {
    order: unset;
  }
  .ux-project-copy {
    max-width: 100%;
  }
}

/* ── KNRD Page ──────────────────────────────────── */
.knrd-page .category-page {
  background: #fff;
  padding-bottom: 0;
}

.knrd-page .category-page section {
  background: transparent;
  color: inherit;
}

.knrd-page .category-topbar {
  padding: 14px 28px 0;
}

.knrd-page .category-topbar-nav {
  gap: 24px;
  font-family: 'Anton', sans-serif;
  font-size: 0.92rem;
  text-transform: none;
}

.knrd-content {
  max-width: 1120px;
  padding-top: 20px;
  padding-left: 18px;
  padding-right: 18px;
  padding-bottom: 0;
  text-align: left;
}

.knrd-hero-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.knrd-hero-image {
  width: 100%;
  max-width: 1020px;
  height: auto;
  display: block;
}

.knrd-intro-grid {
  max-width: 980px;
  margin: 0 auto 42px;
}

.knrd-copy-block {
  max-width: 780px;
  margin: 0 auto 34px;
}

.knrd-section-title {
  font-family: 'Abacaxi', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 21px;
  line-height: 1.25;
  color: #111;
  margin: 0 0 16px;
  font-weight: 600;
}

.knrd-copy-block p,
.knrd-process-copy p,
.knrd-style-copy p {
  margin: 0 0 16px;
  font-family: 'Abacaxi', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.22;
  color: #333;
}

.knrd-copy-block a {
  color: #111;
  font-weight: 700;
  text-decoration: underline;
}

.knrd-logo-comparison {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) auto minmax(0, 1.08fr);
  align-items: center;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}

.knrd-comparison-image {
  width: 100%;
  height: auto;
  display: block;
}

.knrd-divider-image {
  width: 187px;
  height: 187px;
  object-fit: contain;
  display: block;
}

.knrd-assets-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.46fr) minmax(0, 0.54fr);
  gap: 30px;
  align-items: start;
  max-width: 980px;
  margin: 40px auto 22px;
}

.knrd-assets-copy {
  max-width: 360px;
}

.knrd-cmyk-image,
.knrd-mockup-image {
  width: 100%;
  height: auto;
  display: block;
}

.knrd-cmyk-image {
  margin-top: 20px;
  max-width: 340px;
}

.knrd-mockup-wrap {
  width: 100%;
}

.knrd-process-grid,
.knrd-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 34px 58px;
  align-items: center;
}

.knrd-process-grid {
  max-width: 920px;
  margin: 0 auto 44px;
}

.knrd-style-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto 22px;
}

.knrd-process-left {
  display: grid;
  gap: 16px;
}

.knrd-process-right {
  display: grid;
  gap: 26px;
  align-items: start;
}

.knrd-process-copy {
  max-width: 390px;
}

.knrd-style-copy {
  padding: 4px 0 0;
  max-width: 410px;
}

.knrd-style-assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
}

.knrd-style-image-wide {
  grid-column: 1 / -1;
}

.knrd-process-image,
.knrd-style-image,
.knrd-bottom-image {
  width: 100%;
  height: auto;
  display: block;
}

.knrd-bottom-grid {
  margin-bottom: 0;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.knrd-variations-image {
  max-width: 520px;
}

.knrd-palette-band-wrap {
  width: 100vw;
  margin-top: 22px;
  margin-bottom: 0;
  margin-left: calc(50% - 50vw);
}

.knrd-palette-band {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .knrd-page .category-topbar {
    padding: 10px 14px 0;
  }

  .knrd-page .category-topbar-nav {
    gap: 14px;
    font-size: 0.84rem;
  }

  .knrd-content {
    padding-top: 18px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .knrd-intro-grid,
  .knrd-process-grid,
  .knrd-style-grid,
  .knrd-bottom-grid,
  .knrd-assets-grid {
    grid-template-columns: 1fr;
  }
  .knrd-logo-comparison {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .knrd-divider-image {
    width: 187px;
    height: 187px;
  }
  .knrd-process-copy,
  .knrd-style-copy {
    padding: 0;
    max-width: 100%;
  }

  .knrd-assets-copy {
    max-width: 100%;
  }

  .knrd-cmyk-image {
    max-width: 280px;
  }

  .knrd-palette-band-wrap {
    margin-top: 16px;
  }
}

@media (max-width: 600px) {
  .knrd-copy-block p,
  .knrd-process-copy p,
  .knrd-style-copy p,
  .knrd-section-title {
    font-size: 16px;
  }
  .knrd-divider-image {
    width: 187px;
    height: 187px;
  }
}

.ewu-page .category-page section {
  background: transparent;
  color: inherit;
}

.ewu-content {
  max-width: 1280px;
  padding-top: 66px;
  text-align: left;
}

.ewu-hero-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 42px;
}

.ewu-hero-image {
  width: 100%;
  max-width: 1120px;
  height: auto;
  display: block;
  background: #fff;
}

.ewu-intro-grid {
  max-width: 860px;
  margin: 0 auto 90px;
}

.ewu-copy-block {
  margin-bottom: 34px;
  text-align: left;
}

.ewu-section-title {
  font-family: 'Abacaxi', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.25;
  color: #111;
  margin: 0 0 18px;
  font-weight: 600;
}

.ewu-copy-block .ewu-section-title {
  text-align: center;
}

.ewu-copy-block p,
.ewu-process-copy p {
  margin: 0 0 18px;
  font-family: 'Abacaxi', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.25;
  color: #333;
}

.ewu-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: 46px;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
}

.ewu-support-card {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ewu-support-image,
.ewu-process-image {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

.ewu-process-section {
  max-width: 1160px;
  margin: 0 auto;
}

.ewu-process-title {
  margin: 0 0 46px;
}

.ewu-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 44px;
  align-items: start;
}

.ewu-process-copy {
  align-self: center;
  justify-self: center;
  max-width: 360px;
  padding-top: 0;
  text-align: left;
}

.ewu-process-subtitle {
  margin: 0 0 14px;
  font-family: 'Abacaxi', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.25;
  color: #111;
  font-weight: 600;
}

@media (max-width: 900px) {
  .ewu-content { padding-top: 48px; }
  .ewu-intro-grid { margin-bottom: 64px; }
  .ewu-support-grid,
  .ewu-process-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ewu-process-copy {
    padding-top: 0;
  }
}

@media (max-width: 600px) {
  .ewu-content { padding-top: 36px; }
  .ewu-copy-block p,
  .ewu-process-copy p,
  .ewu-section-title,
  .ewu-process-subtitle {
    font-size: 16px;
  }
}

.branding-page .category-content {
  max-width: 1300px;
  padding-top: 32px;
}

.branding-page .category-header {
  display: none;
}

.branding-section-title {
  font-family: 'Anton', sans-serif;
  font-size: 64px;
  color: #111;
  margin: 0 0 34px;
  text-align: left;
  font-weight: 400;
}

.branding-primary-title {
  font-size: 24px;
  letter-spacing: 0;
}

.branding-more-subtitle {
  font-family: 'Anton', sans-serif;
  font-size: 0.95rem;
  color: #111;
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.branding-more-subtitle:hover {
  color: #8ab292;
}

.branding-more-subtitle:active {
  color: #CB9973;
}

.branding-section-center {
  text-align: center;
}

.logos-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 66px;
  margin: 0 0 110px;
}

.logo-item {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
}

.logo-dream-note { max-height: 62px; }
.logo-spokane { max-height: 170px; }
.logo-jumpin { max-height: 195px; }

.branding-feature-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
}

.branding-feature-wrap + .branding-more-subtitle {
  margin-top: 4px;
}

.branding-more-subtitle + .branding-feature-wrap {
  margin-top: 58px;
}

.branding-feature {
  width: 100%;
  max-width: 960px;
  height: auto;
  display: block;
}

.branding-feature-more {
  max-width: 1000px;
  border: 0;
}

.branding-page .branding-section-center:last-child {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .branding-section-title { font-size: 48px; }
  .branding-more-subtitle { font-size: 0.95rem; }
  .logos-row {
    flex-wrap: wrap;
    gap: 28px;
    margin-bottom: 70px;
  }
  .logo-dream-note { max-height: 52px; }
  .logo-spokane { max-height: 132px; }
  .logo-jumpin { max-height: 148px; }
}

@media (max-width: 600px) {
  .branding-page .category-content { padding-top: 18px; }
  .branding-section-title {
    font-size: 32px;
    margin-bottom: 22px;
  }
  .branding-primary-title { font-size: 24px; }
  .branding-more-subtitle { font-size: 0.95rem; }
  .logos-row {
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 48px;
  }
}

@media (max-width: 900px) {
  .category-nav-top { right: 20px; top: 20px; gap: 20px; }
  .category-title { font-size: 48px; }
}

@media (max-width: 600px) {
  .category-page { padding: 20px; }
  .category-nav-top { right: 20px; top: 20px; }
  .category-title { font-size: 32px; }
}