:root {
  --bg-cream: #F8F4ED;
  --bg-paper: #F3ECE1;
  --bg-card: rgba(255, 255, 255, 0.78);
  --bg-card-solid: #FFFFFF;
  --ink: #241914;
  --ink-soft: #4A3B32;
  --muted: #76685F;
  --border-light: rgba(255, 255, 255, 0.92);
  --border-subtle: rgba(36, 25, 20, 0.09);

  /* Pinterest Aesthetic Pastel & Editorial Accents */
  --matcha: #6E9267;
  --matcha-soft: #E5EFE2;
  --berry: #C84B76;
  --berry-soft: #F9E3EB;
  --terracotta: #D66B3B;
  --terracotta-soft: #FCE9DF;
  --periwinkle: #7D9FD6;
  --periwinkle-soft: #E3ECF9;
  --lavender: #8A6FB8;
  --lavender-soft: #EDE6F9;
  --gold: #C89B3C;
  --gold-soft: #FBF3DF;

  --shadow-soft: 0 14px 38px -10px rgba(36, 25, 20, 0.08), inset 0 1px 1px #FFFFFF;
  --shadow-hover: 0 26px 56px -14px rgba(36, 25, 20, 0.15), inset 0 1px 1px #FFFFFF;
  --shadow-window: 0 24px 60px -15px rgba(28, 20, 15, 0.22);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-pill: 999px;

  --font-serif: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  background-image:
    radial-gradient(at 10% 8%, rgba(184, 203, 232, 0.38) 0px, transparent 42%),
    radial-gradient(at 88% 12%, rgba(214, 198, 232, 0.35) 0px, transparent 45%),
    radial-gradient(at 18% 55%, rgba(139, 174, 131, 0.22) 0px, transparent 48%),
    radial-gradient(at 85% 65%, rgba(232, 184, 200, 0.28) 0px, transparent 48%);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  position: relative;
  z-index: 2;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 4%;
}

/* =========================================
   TOP ANNOUNCEMENT & FLOATING GLASS NAVBAR
   ========================================= */
.top-ribbon {
  background: var(--ink);
  color: #FAF6F0;
  font-size: 0.8rem;
  padding: 0.55rem 4%;
  text-align: center;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.top-ribbon .ribbon-badge {
  background: linear-gradient(135deg, #8BAE83, #C84B76);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.top-ribbon a {
  color: #F4D35E;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
}

.navbar-wrap {
  position: sticky;
  top: 14px;
  z-index: 100;
  padding: 0 3%;
  margin-top: 14px;
}

.navbar {
  max-width: 1340px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-light);
  box-shadow: 0 10px 28px rgba(36, 25, 20, 0.07);
  border-radius: var(--radius-pill);
  padding: 0.55rem 0.85rem 0.55rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-monogram {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: #FAF6F0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  box-shadow: 0 4px 10px rgba(36, 25, 20, 0.16);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1.38rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.45rem 0.72rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(36, 25, 20, 0.07);
  color: var(--ink);
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--matcha-soft);
  color: #2E4A29;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.08rem 0.42rem;
  border-radius: var(--radius-pill);
  margin-left: 0.2rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.72rem 1.3rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: #FAF6F0;
  box-shadow: 0 8px 20px -4px rgba(36, 25, 20, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #38271F;
  box-shadow: 0 14px 28px -6px rgba(36, 25, 20, 0.36);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border: 1px solid rgba(36, 25, 20, 0.13);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 4px 12px rgba(36, 25, 20, 0.05);
}

.btn-glass:hover {
  transform: translateY(-2px);
  background: #FFFFFF;
  border-color: rgba(36, 25, 20, 0.28);
  box-shadow: 0 10px 22px rgba(36, 25, 20, 0.09);
}

.btn-accent {
  background: linear-gradient(135deg, #5F8259 0%, #3F5E3A 100%);
  color: #FFFFFF;
  box-shadow: 0 8px 20px -4px rgba(63, 94, 58, 0.35);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -6px rgba(63, 94, 58, 0.45);
}

.btn-sm {
  font-size: 0.8rem;
  padding: 0.52rem 1rem;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--ink);
}

/* =========================================
   HERO SECTION — PINTEREST EDITORIAL MOODBOARD
   ========================================= */
.hero {
  padding: 3.5rem 0 4rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(36, 25, 20, 0.1);
  padding: 0.42rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 14px rgba(36, 25, 20, 0.04);
}

.eyebrow-pill .sparkle {
  color: var(--berry);
  font-size: 0.95rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5vw, 4.55rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}

.hero-title em {
  font-style: italic;
  color: var(--matcha);
  position: relative;
}

.hero-script-line {
  display: inline-block;
  font-family: var(--font-script);
  font-size: clamp(2rem, 3.3vw, 2.85rem);
  color: #6B5B95;
  font-weight: 700;
  transform: rotate(-2deg);
  margin-left: 0.35rem;
  position: relative;
}

.hero-script-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 3px;
  background: linear-gradient(90deg, #8A6FB8, transparent);
  border-radius: 4px;
}

.hero-desc {
  font-size: 1.06rem;
  color: var(--ink-soft);
  max-width: 610px;
  margin-bottom: 1.65rem;
  line-height: 1.68;
}

.hero-desc strong {
  color: var(--ink);
  font-weight: 700;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

/* Pastel Feature Pills inspired by e080a4d3 poster */
.hero-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.pastel-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 16px rgba(36, 25, 20, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.pastel-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(36, 25, 20, 0.1);
}

.pastel-pill.p-matcha { background: var(--matcha-soft); }
.pastel-pill.p-berry { background: var(--berry-soft); }
.pastel-pill.p-blue { background: var(--periwinkle-soft); }
.pastel-pill.p-lavender { background: var(--lavender-soft); }
.pastel-pill.p-gold { background: var(--gold-soft); }
.pastel-pill.p-terra { background: var(--terracotta-soft); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px dashed rgba(36, 25, 20, 0.15);
}

.stat-box .stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
}

.stat-box .stat-label {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* Right Side Moodboard Collage */
.hero-moodboard {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.moodboard-backdrop {
  position: absolute;
  inset: 15px;
  background: linear-gradient(145deg, #FFFFFF, #F3ECE1);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.moodboard-backdrop::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--periwinkle-soft) 0%, transparent 70%);
  border-radius: 50%;
}

.moodboard-backdrop::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--lavender-soft) 0%, transparent 70%);
  border-radius: 50%;
}

.moodboard-stack {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.mini-browser {
  background: #FFFFFF;
  border-radius: 18px;
  border: 1px solid rgba(36, 25, 20, 0.1);
  box-shadow: var(--shadow-window);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
}

.mini-browser:hover {
  transform: translateY(-6px) scale(1.015) !important;
  z-index: 10;
}

.mini-browser.mb-1 {
  transform: rotate(-1.5deg);
}

.mini-browser.mb-2 {
  transform: rotate(1.3deg) translateX(12px);
}

.mini-browser.mb-3 {
  transform: rotate(-0.8deg) translateX(-6px);
}

.mb-topbar {
  background: #F6F3EE;
  padding: 0.45rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(36, 25, 20, 0.07);
}

.mb-dots {
  display: flex;
  gap: 5px;
}

.mb-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.mb-dots span:nth-child(1) { background: #FF5F56; }
.mb-dots span:nth-child(2) { background: #FFBD2E; }
.mb-dots span:nth-child(3) { background: #27C93F; }

.mb-url {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  background: #FFFFFF;
  padding: 0.15rem 0.65rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(36, 25, 20, 0.08);
}

.mb-action {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--matcha);
}

.mb-body {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.9rem;
  padding: 0.85rem;
  align-items: center;
}

.mb-thumb {
  width: 120px;
  height: 82px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: #EFEAE2;
}

.mb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mb-info h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.2rem;
}

.mb-info p {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 0.45rem;
}

.mb-tags {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.washi-tape {
  display: inline-block;
  background: #F5E9D4;
  color: var(--ink);
  font-family: var(--font-script);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.15rem 0.85rem;
  box-shadow: 0 3px 8px rgba(36, 25, 20, 0.1);
  border-left: 2px dashed rgba(36, 25, 20, 0.18);
  border-right: 2px dashed rgba(36, 25, 20, 0.18);
}

.signature-badge {
  position: absolute;
  bottom: -10px;
  right: 18px;
  z-index: 12;
  background: #F8EFE0;
  padding: 0.45rem 1.25rem;
  transform: rotate(-3deg);
  box-shadow: 0 10px 24px rgba(36, 25, 20, 0.14);
  border-left: 3px dashed rgba(36, 25, 20, 0.2);
  border-right: 3px dashed rgba(36, 25, 20, 0.2);
  font-family: var(--font-script);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
}

/* =========================================
   SECTION HEADERS
   ========================================= */
.section {
  padding: 4.5rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.section-header.center {
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--matcha-soft);
  color: #345230;
  margin-bottom: 0.75rem;
}

.section-tag.berry {
  background: var(--berry-soft);
  color: #8F244B;
}

.section-tag.blue {
  background: var(--periwinkle-soft);
  color: #2B4C7E;
}

.section-tag.lavender {
  background: var(--lavender-soft);
  color: #4D357B;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.8vw, 3.35rem);
  font-weight: 400;
  line-height: 1.08;
  color: var(--ink);
}

.section-title em {
  font-style: italic;
  color: var(--matcha);
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 650px;
  margin-top: 0.55rem;
}

/* =========================================
   DIETITIAN 5-CONCEPT SPOTLIGHT SHOWCASE
   ========================================= */
.dietitian-showcase-box {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-light);
  border-radius: 36px;
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.dietitian-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1.35rem;
}

.diet-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(36, 25, 20, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  box-shadow: 0 10px 26px rgba(36, 25, 20, 0.05);
}

.diet-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(36, 25, 20, 0.13);
}

.diet-card-media {
  height: 175px;
  position: relative;
  overflow: hidden;
}

.diet-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.diet-card:hover .diet-card-media img {
  transform: scale(1.06);
}

.diet-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.palette-swatches {
  position: absolute;
  bottom: 10px;
  right: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  display: flex;
  gap: 5px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.swatch-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.diet-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.diet-style-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.25rem;
}

.diet-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 0.4rem;
}

.diet-card-body p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.85rem;
}

.diet-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.77rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  flex: 1;
}

.diet-card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
}

/* =========================================
   FILTERABLE PINTEREST PORTFOLIO GRID
   ========================================= */
.portfolio-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  background: #FFFFFF;
  padding: 0.75rem 1rem;
  border-radius: 24px;
  border: 1px solid rgba(36, 25, 20, 0.08);
  box-shadow: var(--shadow-soft);
}

.filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid transparent;
  padding: 0.52rem 1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  background: rgba(36, 25, 20, 0.05);
  color: var(--ink);
}

.filter-btn.active {
  background: var(--ink);
  color: #FAF6F0;
  box-shadow: 0 6px 16px rgba(36, 25, 20, 0.2);
}

.filter-btn .count-pill {
  font-size: 0.68rem;
  padding: 0.08rem 0.45rem;
  border-radius: var(--radius-pill);
  background: rgba(36, 25, 20, 0.08);
}

.filter-btn.active .count-pill {
  background: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
}

.search-and-layout {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.search-input-wrap {
  position: relative;
}

.search-input {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 0.55rem 1rem 0.55rem 2.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(36, 25, 20, 0.14);
  background: #FFFFFF;
  color: var(--ink);
  width: 220px;
  outline: none;
  transition: border-color 0.2s ease, width 0.25s ease;
}

.search-input:focus {
  border-color: var(--ink);
  width: 260px;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  color: var(--muted);
  pointer-events: none;
}

.layout-toggle {
  display: flex;
  background: #F2ECE3;
  padding: 0.22rem;
  border-radius: var(--radius-pill);
}

.layout-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.layout-btn.active {
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Portfolio Grid — Bento & Pinterest Masonry Modes */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.6rem;
}

.portfolio-grid.masonry-mode {
  columns: 3 330px;
  column-gap: 1.6rem;
  display: block;
}

.portfolio-grid.masonry-mode .project-pin {
  break-inside: avoid;
  margin-bottom: 1.6rem;
}

.project-pin {
  background: #FFFFFF;
  border-radius: 26px;
  border: 1px solid rgba(36, 25, 20, 0.08);
  box-shadow: 0 10px 28px -8px rgba(36, 25, 20, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  will-change: transform;
}

.project-pin:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px -12px rgba(36, 25, 20, 0.14);
}

.pin-browser-bar {
  background: rgba(246, 242, 235, 0.9);
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(36, 25, 20, 0.06);
}

.pin-url-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.16rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(36, 25, 20, 0.07);
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #285B24;
  background: #E3F2E1;
  padding: 0.18rem 0.6rem;
  border-radius: var(--radius-pill);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.75; }
}

.pin-preview {
  position: relative;
  height: 235px;
  overflow: hidden;
  background: #EDE7DD;
  cursor: pointer;
}

.portfolio-grid.masonry-mode .project-pin:nth-child(3n+1) .pin-preview {
  height: 265px;
}

.portfolio-grid.masonry-mode .project-pin:nth-child(3n+2) .pin-preview {
  height: 220px;
}

.pin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-pin:hover .pin-preview img {
  transform: scale(1.06);
}

.pin-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 20, 15, 0.52);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  padding: 1.25rem;
}

.project-pin:hover .pin-hover-overlay {
  opacity: 1;
}

.pin-washi-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(252, 246, 236, 0.95);
  padding: 0.22rem 0.85rem;
  font-family: var(--font-script);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-left: 2px dashed rgba(36, 25, 20, 0.22);
  border-right: 2px dashed rgba(36, 25, 20, 0.22);
  transform: rotate(-1.5deg);
  z-index: 2;
}

.pin-body {
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pin-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.pin-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--matcha);
}

.pin-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.12;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.pin-desc {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.pin-feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin-bottom: 1.2rem;
}

.feature-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.24rem 0.65rem;
  border-radius: 10px;
  background: rgba(36, 25, 20, 0.05);
  color: var(--ink-soft);
}

.pin-actions {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 0.55rem;
}

/* =========================================
   EMBEDDED INTERACTIVE LIVE STUDIO SANDBOX
   ========================================= */
.studio-shell {
  background: #1C1613;
  color: #F7F3EB;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 32px 70px -15px rgba(24, 16, 12, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.studio-toolbar {
  background: #271F1B;
  padding: 0.9rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.studio-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.studio-url-box {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #D7CEC6;
}

.studio-device-toggles {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.22rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-btn {
  background: transparent;
  border: none;
  color: #B9ADA3;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.38rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.device-btn.active {
  background: #FAF6F0;
  color: #1C1613;
}

.studio-project-tabs {
  background: #201915;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  scrollbar-width: thin;
}

.studio-tab {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #D9D0C7;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.studio-tab:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.studio-tab.active {
  background: linear-gradient(135deg, #8BAE83, #5D8254);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(139, 174, 131, 0.35);
}

.studio-viewport-area {
  background: #14100E;
  padding: 1.25rem;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 680px;
}

.studio-iframe-container {
  width: 100%;
  height: 660px;
  background: #FFFFFF;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.studio-iframe-container.viewport-tablet {
  width: 768px;
  border: 10px solid #2C2420;
  border-radius: 28px;
}

.studio-iframe-container.viewport-mobile {
  width: 390px;
  border: 12px solid #2C2420;
  border-radius: 38px;
}

.studio-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #FFFFFF;
}

/* =========================================
   ENTERPRISE RFID & INVENTORY SYSTEMS SECTION
   ========================================= */
.enterprise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.enterprise-card {
  background: #FFFFFF;
  border: 1px solid rgba(36, 25, 20, 0.08);
  border-radius: 32px;
  padding: 2.2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.enterprise-preview-duo {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.85rem;
  height: 220px;
}

.enterprise-preview-duo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(36, 25, 20, 0.1);
}

.subpage-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.subpage-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.38rem 0.8rem;
  border-radius: var(--radius-pill);
  background: #FBF9F5;
  border: 1px solid rgba(36, 25, 20, 0.12);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
}

.subpage-pill:hover {
  background: var(--ink);
  color: #FFFFFF;
}

/* =========================================
   PACKAGES / PINTEREST MARKETING SECTION
   ========================================= */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 275px), 1fr));
  gap: 1.5rem;
}

.package-card {
  background: #FFFFFF;
  border-radius: 28px;
  border: 1px solid rgba(36, 25, 20, 0.08);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.22s ease;
}

.package-card:hover {
  transform: translateY(-5px);
}

.package-card.featured {
  background: linear-gradient(160deg, #FFFFFF, #EAF3E7);
  border: 2px solid var(--matcha);
}

.pkg-popular-tag {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--matcha);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
}

.package-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.1rem;
}

.package-card h3 {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.package-card p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.package-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.84rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
  flex: 1;
}

/* =========================================
   ABOUT & INTERACTIVE PROJECT CONFIGURATOR
   ========================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: stretch;
}

.about-card,
.configurator-card {
  background: #FFFFFF;
  border-radius: 32px;
  border: 1px solid rgba(36, 25, 20, 0.08);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #241914, #5D7E57);
  color: #FAF6F0;
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(36, 25, 20, 0.18);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.25rem 0 1.75rem;
}

.skill-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-pill);
  background: #F4EFE6;
  color: var(--ink);
  border: 1px solid rgba(36, 25, 20, 0.08);
}

.contact-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  border-radius: 18px;
  background: #FFFFFF;
  border: 1px solid rgba(36, 25, 20, 0.08);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-link-item:hover {
  transform: translateX(4px);
  border-color: var(--ink);
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 0.78rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(36, 25, 20, 0.15);
  background: #FFFFFF;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--ink);
}

/* =========================================
   FULL-SCREEN INTERACTIVE PREVIEW MODAL
   ========================================= */
.preview-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 14, 11, 0.78);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.preview-modal-backdrop.open {
  display: flex;
}

.preview-modal {
  width: 100%;
  max-width: 1440px;
  height: 92vh;
  background: #1B1512;
  color: #FAF6F0;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  background: #251D19;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.modal-title-area {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-title-area h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.modal-subpages-bar {
  background: #1E1714;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-subpages-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A5978C;
  margin-right: 0.4rem;
  white-space: nowrap;
}

.modal-body {
  flex: 1;
  background: #120E0C;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
  position: relative;
}

.modal-iframe-wrap {
  width: 100%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 14px;
  overflow: hidden;
  transition: width 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-iframe-wrap.viewport-tablet {
  width: 768px;
  border: 10px solid #2E2520;
  border-radius: 26px;
}

.modal-iframe-wrap.viewport-mobile {
  width: 390px;
  border: 12px solid #2E2520;
  border-radius: 36px;
}

.modal-iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #FFFFFF;
}

.modal-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: #EF4444;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(36, 25, 20, 0.1);
  margin-top: 3rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* =========================================
   RESPONSIVE DESIGN (DESKTOP, TABLET & MOBILE)
   ========================================= */
@media (max-width: 1180px) {
  .nav-links {
    display: none;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 3%;
    right: 3%;
    background: #FFFFFF;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(36, 25, 20, 0.1);
    box-shadow: 0 20px 45px rgba(36, 25, 20, 0.16);
    align-items: stretch;
    gap: 0.25rem;
    z-index: 200;
  }

  .nav-links.mobile-open a {
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .enterprise-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero-moodboard {
    min-height: auto;
  }

  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 768px) {
  .top-ribbon {
    font-size: 0.73rem;
    padding: 0.45rem 3%;
    gap: 0.4rem;
  }

  .navbar-wrap {
    top: 8px;
    margin-top: 8px;
    padding: 0 2.5%;
  }

  .navbar {
    padding: 0.45rem 0.65rem 0.45rem 0.9rem;
  }

  .portfolio-controls {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem;
  }

  .filter-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }

  .search-and-layout {
    width: 100%;
    justify-content: space-between;
  }

  .search-input-wrap {
    flex: 1;
  }

  .search-input,
  .search-input:focus {
    width: 100%;
  }

  .studio-toolbar {
    padding: 0.7rem 0.9rem;
  }

  .studio-url-box {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .studio-viewport-area {
    padding: 0.6rem;
    min-height: 520px;
  }

  .studio-iframe-container {
    height: 520px;
  }

  .studio-iframe-container.viewport-tablet,
  .studio-iframe-container.viewport-mobile {
    width: 100%;
    border-width: 6px;
  }

  .preview-modal-backdrop {
    padding: 0.4rem;
  }

  .preview-modal {
    height: 95dvh;
    border-radius: 18px;
  }

  .modal-header {
    padding: 0.6rem 0.85rem;
    gap: 0.5rem;
  }

  .modal-title-area h3 {
    font-size: 1.1rem;
  }

  .modal-header .studio-device-toggles {
    display: none;
  }

  .modal-body {
    padding: 0.45rem;
  }

  .modal-iframe-wrap.viewport-tablet,
  .modal-iframe-wrap.viewport-mobile {
    width: 100%;
    border-width: 4px;
  }
}

@media (max-width: 560px) {
  .nav-actions .btn-demo-hide-mobile {
    display: none;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .hero-script-line {
    font-size: 1.85rem;
    display: block;
    margin-left: 0;
    margin-top: 0.2rem;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta-row .btn {
    width: 100%;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }

  .moodboard-backdrop {
    inset: 4px;
    border-radius: 24px;
  }

  .moodboard-stack {
    padding: 0.85rem;
  }

  .mini-browser.mb-1,
  .mini-browser.mb-2,
  .mini-browser.mb-3 {
    transform: none;
  }

  .mb-body {
    grid-template-columns: 78px 1fr;
    gap: 0.65rem;
    padding: 0.65rem;
  }

  .mb-thumb {
    width: 78px;
    height: 64px;
  }

  .dietitian-showcase-box,
  .enterprise-card,
  .package-card,
  .about-card,
  .configurator-card {
    padding: 1.35rem;
    border-radius: 24px;
  }

  .enterprise-preview-duo {
    grid-template-columns: 1fr;
    height: auto;
  }

  .enterprise-preview-duo img {
    height: 165px;
  }

  .pin-actions {
    grid-template-columns: 1fr;
  }
}
