/* ========================================
   iamNK — Brand mini-website styles
   Ultramodern, image-rich, per-brand themes.
   Each brand sets --brand-accent + --brand-accent-ink
   and a body[data-layout] for unique accents.
   ======================================== */

:root {
  --brand-accent: #2c80d4;
  --brand-accent-soft: #e8f1fb;
  --brand-accent-ink: #1f5fa8;
  --brand-radius: 20px;
  --brand-shadow: 0 10px 40px rgba(20, 30, 50, 0.08);
  --brand-shadow-lg: 0 24px 60px rgba(20, 30, 50, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a2230;
  background: #f6f7fb;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }
img { display: block; max-width: 100%; }

/* ── Top bar ─────────────────────────────────── */
.brand-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(20, 30, 50, 0.06);
}
.brand-topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-back {
  font-weight: 700;
  color: var(--brand-accent-ink);
  font-size: 0.95rem;
}
.brand-topbar-nav { display: flex; gap: 1.4rem; }
.brand-topbar-nav a { color: #566; font-weight: 600; font-size: 0.9rem; opacity: 0.8; }
.brand-topbar-nav a:hover { color: var(--brand-accent); opacity: 1; }

/* ── Hero ────────────────────────────────────── */
.brand-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 5rem 1.5rem 6rem;
}
.brand-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(0, 0, 0, 0.12), transparent 50%);
  pointer-events: none;
}
.brands-hero {
  background: linear-gradient(135deg, #0f1226 0%, #2b1b54 35%, #4f46e5 70%, #06b6d4 100%);
  background-size: 200% 200%;
  animation: brandsHeroShift 18s ease infinite;
  padding: 4.5rem 1.5rem 5rem;
}
@keyframes brandsHeroShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.brands-hero .brand-hero-name {
  background: linear-gradient(120deg, #fff, #c4b5fd 60%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brands-hero .brand-hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
}
.brands-hero::before {
  content: '';
  position: absolute;
  width: 50vw; height: 50vw;
  max-width: 480px; max-height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.45), transparent 70%);
  filter: blur(70px);
  top: -10%; right: -10%;
  z-index: 0;
  animation: floaty 9s ease-in-out infinite;
}
.brand-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.brand-hero-emoji {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.25));
  animation: floaty 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.brand-hero-name {
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -1px;
  font-weight: 800;
}
.brand-hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 600;
  margin: 0 0 0.7rem;
  opacity: 0.98;
}
.brand-hero-subtitle {
  font-size: 1.02rem;
  margin: 0 auto 2rem;
  max-width: 620px;
  opacity: 0.9;
}
.brand-hero-cta {
  display: inline-block;
  background: #fff;
  color: var(--brand-accent-ink);
  font-weight: 800;
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-size: 1.02rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brand-hero-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28); }

/* ── Main / sections ─────────────────────────── */
.brand-main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 4.5rem;
}
.brand-section { margin-bottom: 3.5rem; }
.brand-section-title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 1.2rem;
  letter-spacing: -0.5px;
  font-weight: 800;
}
.brand-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.brand-section-link {
  color: var(--brand-accent-ink);
  font-weight: 700;
  font-size: 0.95rem;
}
.brand-text {
  font-size: 1.05rem;
  color: #3c4658;
  margin: 0.6rem 0;
  max-width: 680px;
}
.brand-note {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--brand-accent-soft);
  border-left: 4px solid var(--brand-accent);
  border-radius: 12px;
  font-size: 0.96rem;
  color: #33404f;
}
.brand-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--brand-accent-ink);
  background: var(--brand-accent-soft);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}
.brand-ghost-btn {
  display: inline-block;
  margin-top: 1rem;
  border: 2px solid var(--brand-accent);
  color: var(--brand-accent-ink);
  font-weight: 700;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  transition: background 0.18s, color 0.18s;
}
.brand-ghost-btn:hover { background: var(--brand-accent); color: #fff; }

/* ── Split (about + media) ────────────────────── */
.brand-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.brand-split-rev { direction: rtl; }
.brand-split-rev > * { direction: ltr; }
.brand-split-text { max-width: 520px; }
.brand-split-media img {
  width: 100%;
  border-radius: var(--brand-radius);
  box-shadow: var(--brand-shadow);
}

/* ── Masonry (farm) ───────────────────────────── */
.brand-masonry {
  column-count: 2;
  column-gap: 0.8rem;
}
.brand-masonry-item {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--brand-shadow);
  margin-bottom: 0.8rem;
  break-inside: avoid;
  display: block;
}
.brand-masonry-item img { width: 100%; height: auto; display: block; }

/* ── Highlights ──────────────────────────────── */
.brand-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.brand-highlight-card {
  background: #fff;
  border: 1px solid rgba(20, 30, 50, 0.07);
  border-radius: var(--brand-radius);
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--brand-shadow);
  transition: transform 0.18s ease;
}
.brand-highlight-card:hover { transform: translateY(-4px); }
.brand-highlight-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-accent-ink);
}
.brand-highlight-label {
  font-size: 0.82rem;
  color: #6b7585;
  margin-top: 0.3rem;
  font-weight: 600;
}

/* ── Features ────────────────────────────────── */
.brand-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
/* Force up to 5 tiles onto a single row */
.brand-features-row {
  grid-template-columns: repeat(5, 1fr);
}

.brand-feature-card {
  background: #fff;
  border: 1px solid rgba(20, 30, 50, 0.07);
  border-radius: var(--brand-radius);
  padding: 1.6rem;
  box-shadow: var(--brand-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brand-feature-card:hover { transform: translateY(-5px); box-shadow: var(--brand-shadow-lg); }
.brand-feature-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  display: inline-block;
}
.brand-feature-title { font-size: 1.15rem; margin: 0 0 0.4rem; font-weight: 700; }
.brand-feature-text { font-size: 0.94rem; color: #5b6470; margin: 0; }

/* Clickable feature cards → deep-link into the catalogue */
a.brand-feature-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
a.brand-feature-link:hover { border-color: var(--brand-accent); }
a.brand-feature-link:hover .brand-feature-title { color: var(--brand-accent-ink); }
.brand-feature-go {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-accent-ink);
  opacity: 0.85;
}
a.brand-feature-link:hover .brand-feature-go { opacity: 1; }

/* ── Gallery ─────────────────────────────────── */
.brand-gallery {
  column-count: 4;
  column-gap: 0.4rem;
}
.brand-gallery-item {
  position: relative;
  border-radius: calc(var(--brand-radius) * 0.7);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--brand-shadow);
  margin-bottom: 0.4rem;
  break-inside: avoid;
  display: block;
}
.brand-gallery-item img { width: 100%; height: auto; display: block; transition: transform 0.4s ease; }
.brand-gallery-item:hover img { transform: scale(1.06); }
.brand-gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.5rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.62));
  opacity: 0;
  transition: opacity 0.2s ease;
}
.brand-gallery-item:hover figcaption { opacity: 1; }

/* ── Full gallery viewer (lightbox) ──────────── */
.brand-gv {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(8, 12, 20, 0.94);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; animation: brandGvFade 0.25s ease;
}
@keyframes brandGvFade { from { opacity: 0; } to { opacity: 1; } }
.brand-gv-inner {
  width: 100%; max-width: 920px; max-height: 94vh;
  display: flex; flex-direction: column; gap: 0.75rem;
  overflow-y: auto; border-radius: 16px;
}
.brand-gv-stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.4); border-radius: 16px; overflow: hidden;
}
.brand-gv-img {
  max-width: 100%; max-height: 56vh; object-fit: contain; display: block;
  border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.brand-gv-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.18); color: #fff; font-size: 2rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background 0.2s; backdrop-filter: blur(4px);
}
.brand-gv-nav:hover { background: rgba(255,255,255,0.35); }
.brand-gv-nav.prev { left: 12px; }
.brand-gv-nav.next { right: 12px; }
.brand-gv-cap {
  text-align: center; color: rgba(255,255,255,0.85); font-size: 0.95rem; margin: 0;
  text-transform: capitalize;
}
.brand-gv-dots { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.brand-gv-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.3); transition: all 0.2s; padding: 0;
}
.brand-gv-dot.active { background: #fff; transform: scale(1.3); }
.brand-gv-thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 0.5rem;
}
.brand-gv-thumb {
  border: 2px solid transparent; border-radius: 10px; overflow: hidden;
  cursor: pointer; padding: 0; background: none; line-height: 0; transition: border-color 0.2s;
}
.brand-gv-thumb img { width: 100%; height: 72px; object-fit: cover; display: block; }
.brand-gv-thumb.active { border-color: #fff; }
.brand-gv-close {
  position: fixed; top: 16px; right: 22px; z-index: 10000;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.2); color: #fff; font-size: 1.8rem; cursor: pointer;
  line-height: 1; backdrop-filter: blur(4px); transition: background 0.2s;
}
.brand-gv-close:hover { background: rgba(255,255,255,0.4); }
@media (max-width: 600px) {
  .brand-gv-nav { width: 38px; height: 38px; font-size: 1.5rem; }
  .brand-gv-img { max-height: 44vh; }
}

/* ── Category pills ──────────────────────────── */
.brand-cats { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.brand-cat-pill {
  background: #fff;
  border: 1.5px solid var(--brand-accent);
  color: var(--brand-accent-ink);
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--brand-shadow);
  transition: background 0.16s, color 0.16s, transform 0.16s;
}
.brand-cat-pill:hover { background: var(--brand-accent); color: #fff; transform: translateY(-2px); }
.brand-cat-count {
  background: var(--brand-accent-soft);
  color: var(--brand-accent-ink);
  border-radius: 999px;
  padding: 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
}
.brand-cat-pill:hover .brand-cat-count { background: rgba(255, 255, 255, 0.28); color: #fff; }

/* ── Featured products ───────────────────────── */
.brand-feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.brand-feat-card {
  background: #fff;
  border: 1px solid rgba(20, 30, 50, 0.07);
  border-radius: var(--brand-radius);
  overflow: hidden;
  box-shadow: var(--brand-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brand-feat-card:hover { transform: translateY(-4px); box-shadow: var(--brand-shadow-lg); }
.brand-feat-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f3f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-feat-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.brand-feat-ph { font-size: 2rem; color: #9aa3b0; }
.brand-feat-body { padding: 0.7rem 0.8rem 0.85rem; display: flex; flex-direction: column; gap: 0.18rem; }
.brand-feat-cat {
  font-size: 0.7rem; color: var(--brand-accent-ink); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.brand-feat-name { font-size: 0.9rem; font-weight: 600; color: #28313c; line-height: 1.3; }
.brand-feat-price { font-size: 0.95rem; font-weight: 800; color: #1a2230; margin-top: 0.18rem; }

/* ── Quote (studio) ──────────────────────────── */
.brand-quote {
  text-align: center;
  background: var(--brand-accent-ink);
  border-radius: var(--brand-radius);
  padding: 2.5rem 2rem;
  color: #fff;
}
.brand-quote blockquote {
  margin: 0 auto;
  max-width: 720px;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
}

/* ── Scent notes grid (studio) ───────────────── */
.brand-scent-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  width: 100%;
}
.brand-scent-note {
  background: var(--brand-accent-soft);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
}
.brand-scent-note-v { display: block; font-weight: 800; font-size: 1.05rem; color: var(--brand-accent-ink); }
.brand-scent-note-l { display: block; font-size: 0.78rem; color: #6b7585; margin-top: 0.15rem; }

/* ── Tech stats (donkomi) ────────────────────── */
.brand-tech-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.brand-tech-stat {
  background: #fff;
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: var(--brand-shadow);
  border-top: 3px solid var(--brand-accent);
}
.brand-tech-stat-v { display: block; font-weight: 800; font-size: 1.1rem; color: var(--brand-accent-ink); }
.brand-tech-stat-l { display: block; font-size: 0.78rem; color: #6b7585; margin-top: 0.15rem; font-weight: 600; }

/* ── Photo stats (photokiosk) ────────────────── */
.brand-photo-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.7rem;
}
.brand-photo-stat {
  background: linear-gradient(160deg, var(--brand-accent-soft), #fff);
  border-radius: 14px;
  padding: 1rem 0.7rem;
  text-align: center;
  box-shadow: var(--brand-shadow);
}
.brand-photo-stat-v { display: block; font-weight: 800; font-size: 1rem; color: var(--brand-accent-ink); }
.brand-photo-stat-l { display: block; font-size: 0.72rem; color: #6b7585; margin-top: 0.15rem; }

/* ── Pre-order block (farms) ─────────────────── */
.brand-preorder .brand-preorder-card {
  background: linear-gradient(160deg, var(--brand-accent-soft), #fff);
  border: 1px solid rgba(20, 30, 50, 0.07);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--brand-shadow-lg);
}
.brand-preorder-head { margin-bottom: 1.5rem; }
.brand-preorder-badge {
  display: inline-block;
  background: var(--brand-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.8rem;
}
.brand-preorder-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.brand-preorder-stat {
  flex: 1;
  min-width: 140px;
  background: #fff;
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  text-align: center;
  box-shadow: var(--brand-shadow);
  border-top: 3px solid var(--brand-accent);
}
.brand-preorder-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-accent-ink);
}
.brand-preorder-stat-label {
  display: block;
  font-size: 0.8rem;
  color: #6b7585;
  margin-top: 0.2rem;
  font-weight: 600;
}
.brand-preorder-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.brand-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
}
.brand-form-row { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.brand-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #3c4658;
}
.brand-form-input {
  width: 100%;
  max-width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid rgba(20, 30, 50, 0.14);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #1f2937;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.brand-form-input::placeholder { color: #9aa4b2; }
select.brand-form-input { appearance: none; -webkit-appearance: none; color: #1f2937; }
select.brand-form-input option { color: #1f2937; }
.brand-form-input:focus {
  outline: none;
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px var(--brand-accent-soft);
}
textarea.brand-form-input { resize: vertical; }
.brand-preorder-btn {
  align-self: center;
  width: auto;
  min-width: 240px;
  max-width: 100%;
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  cursor: pointer;
  text-align: center;
  margin-top: 0.4rem;
  transition: transform 0.16s, box-shadow 0.16s, opacity 0.16s;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.brand-preorder-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22); }
.brand-preorder-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.brand-preorder-note {
  font-size: 0.84rem;
  color: #6b7585;
  margin: 0;
  line-height: 1.5;
}
.brand-preorder-msg { font-weight: 700; font-size: 0.95rem; min-height: 1.2em; }
.brand-preorder-msg.success { color: #0f6b3c; }
.brand-preorder-msg.error { color: #c0392b; }

/* ── CTA block ───────────────────────────────── */
.brand-cta-block {
  text-align: center;
  background: linear-gradient(135deg, var(--brand-accent-soft), #fff);
  border: 1px solid rgba(20, 30, 50, 0.06);
  border-radius: 28px;
  padding: 3rem 1.5rem;
}
.brand-cta-title { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 0.5rem; }

/* ── Brands index grid ───────────────────────── */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}
.brand-card {
  position: relative;
  background: #fff;
  border-radius: var(--brand-radius);
  padding: 1.8rem;
  border: 1px solid rgba(20, 30, 50, 0.07);
  box-shadow: var(--brand-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.brand-card:nth-child(1) { animation-delay: 0.05s; }
.brand-card:nth-child(2) { animation-delay: 0.10s; }
.brand-card:nth-child(3) { animation-delay: 0.15s; }
.brand-card:nth-child(4) { animation-delay: 0.20s; }
.brand-card:nth-child(5) { animation-delay: 0.25s; }
.brand-card:nth-child(6) { animation-delay: 0.30s; }
.brand-card:nth-child(n+7) { animation-delay: 0.35s; }
.brand-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--brand-accent);
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-card::after {
  content: '';
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: var(--brand-accent);
  filter: blur(60px);
  opacity: 0;
  top: -60px; right: -60px;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.brand-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-accent);
  box-shadow: var(--brand-shadow-lg);
}
.brand-card:hover::before { transform: scaleX(1); }
.brand-card:hover::after { opacity: 0.18; }
.brand-card:hover .brand-card-emoji { transform: scale(1.12) rotate(-6deg); }
.brand-card-emoji { transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.brand-card:hover .brand-card-link { gap: 0.5rem; }
.brand-card-link { display: inline-flex; align-items: center; transition: gap 0.3s ease; }

/* ── Featured Software Services tile ─────────── */
.brand-card--services {
  color: #fff;
  background: linear-gradient(135deg, #1a103a 0%, #4f46e5 45%, #06b6d4 100%);
  background-size: 200% 200%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  animation: cardIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) both, svcShimmer 10s ease infinite;
  box-shadow: 0 14px 40px rgba(79, 70, 229, 0.35);
}
@keyframes svcShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.brand-card--services::before { display: none; }
.brand-card--services::after {
  background: radial-gradient(circle, #ec4899, transparent 70%);
}
.brand-card--services:hover { border-color: rgba(255, 255, 255, 0.35); }
.brand-card--services .brand-card-name {
  background: linear-gradient(120deg, #fff, #c4b5fd 60%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-card--services .brand-card-tagline { color: rgba(255, 255, 255, 0.85); }
.brand-card--services .brand-card-link { color: #fff; }
.brand-card-count--featured {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.brand-card-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.2rem;
}
.brand-card-services-tags span {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.brand-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.brand-card-emoji { font-size: 2.6rem; }
.brand-card-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-accent-ink);
  background: var(--brand-accent-soft);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}
.brand-card-name { font-size: 1.4rem; margin: 0 0 0.4rem; font-weight: 800; }
.brand-card-tagline { font-size: 0.95rem; color: #5b6470; margin: 0 0 1.2rem; flex: 1; }
.brand-card-link { color: var(--brand-accent-ink); font-weight: 800; font-size: 0.96rem; }

/* ── Footer ──────────────────────────────────── */
.brand-footer {
  background: #161c28;
  color: #b8c2d0;
  padding: 2.2rem 1.5rem;
}
.brand-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand-footer-logo { font-weight: 800; font-size: 1.15rem; color: #fff; letter-spacing: -0.3px; }
.brand-footer-nav { display: flex; gap: 1.4rem; }
.brand-footer-nav a { color: #b8c2d0; font-size: 0.9rem; }
.brand-footer-nav a:hover { color: #fff; }
#brand-footer-count { font-size: 0.85rem; opacity: 0.75; }

/* ── Loading / error ─────────────────────────── */
.brand-loading, .brand-error {
  text-align: center;
  padding: 4rem 1rem;
  color: #6b7585;
}
.brand-error .brand-hero-cta { margin-top: 1.2rem; }
.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #e3e7ec;
  border-top-color: var(--brand-accent);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Per-layout body accents ─────────────────── */
/* Modern farm: layered organic blobs + subtle dot texture on a fresh green base */
body[data-layout='farm'] {
  background-color: #f4f9f2;
  background-image:
    radial-gradient(circle at 12% 8%, rgba(27, 158, 90, 0.16) 0%, transparent 26%),
    radial-gradient(circle at 88% 6%, rgba(46, 204, 113, 0.14) 0%, transparent 30%),
    radial-gradient(circle at 92% 82%, rgba(15, 107, 60, 0.10) 0%, transparent 34%),
    radial-gradient(circle at 6% 90%, rgba(27, 158, 90, 0.10) 0%, transparent 30%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    repeating-radial-gradient(circle at 50% 50%, rgba(27, 158, 90, 0.035) 0 2px, transparent 2px 22px);
  background-attachment: fixed;
}
body[data-layout='farm'] .brand-main {
  background: transparent;
  border-radius: 0;
}
/* Frosted, slightly lifted cards on the textured backdrop */
body[data-layout='farm'] .brand-feature-card,
body[data-layout='farm'] .brand-highlight-card,
body[data-layout='farm'] .brand-recipe-card,
body[data-layout='farm'] .brand-cat-pill {
  backdrop-filter: saturate(140%) blur(2px);
}
body[data-layout='studio'] .brand-section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
}
body[data-layout='tech'] .brand-feature-card {
  border-left: 4px solid var(--brand-accent);
}
body[data-layout='photo'] .brand-gallery-item {
  background: #0f1320;
}
body[data-layout='photo'] .brand-gallery-item img {
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.4));
}

/* ── Mission / Vision ────────────────────────── */
.brand-mv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.brand-mv-card {
  background: #fff;
  border-radius: var(--brand-radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--brand-shadow);
  border-top: 4px solid var(--brand-accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand-mv-card:hover { transform: translateY(-4px); box-shadow: var(--brand-shadow-lg); }
.brand-mv-emoji { font-size: 2rem; display: block; margin-bottom: 0.6rem; }
.brand-mv-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-accent-ink);
}

/* ── Quail types grid ────────────────────────── */
.brand-quail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-top: 1rem;
}
.brand-quail-card {
  background: var(--brand-accent-soft);
  border-radius: 16px;
  padding: 1.5rem 1.3rem;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform 0.2s ease;
}
.brand-quail-card:hover { transform: translateY(-3px); }
.brand-quail-emoji { font-size: 2.2rem; display: block; margin-bottom: 0.4rem; }
.brand-quail-name { margin: 0 0 0.3rem; font-size: 1.05rem; font-weight: 700; color: var(--brand-accent-ink); }
.brand-quail-note { margin: 0; font-size: 0.9rem; color: #5a6478; line-height: 1.5; }

/* ── Recipes ─────────────────────────────────── */
.brand-recipes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.brand-recipe-card {
  background: #fff;
  border-radius: var(--brand-radius);
  padding: 1.8rem;
  box-shadow: var(--brand-shadow);
  border-left: 4px solid var(--brand-accent);
}
.brand-recipe-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.8rem; }
.brand-recipe-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--brand-accent-ink); }
.brand-recipe-meta { display: flex; gap: 0.8rem; font-size: 0.8rem; color: #6b7688; white-space: nowrap; }
.brand-recipe-steps { margin: 0; padding-left: 1.2rem; font-size: 0.92rem; color: #3a4452; }
.brand-recipe-steps li { margin-bottom: 0.4rem; line-height: 1.5; }
.brand-recipe-tags { display: flex; gap: 0.4rem; margin-top: 0.3rem; }
.brand-recipe-tag { font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.03em; }
.brand-recipe-tag.egg { background: #fff4d6; color: #8a6a00; }
.brand-recipe-tag.meat { background: #fde0dc; color: #a83227; }
.brand-recipe-head { flex-wrap: wrap; }
.brand-recipe-meta { margin-top: 0.3rem; }

/* Community recipe submission form */
.brand-recipe-by {
  margin-top: 0.8rem; padding-top: 0.7rem; border-top: 1px dashed #e2e6ec;
  font-size: 0.78rem; color: #8a93a3; font-style: italic;
}
.brand-recipe-submit { margin-top: 1.5rem; }
.brand-recipe-submit-toggle {
  width: 100%; padding: 0.9rem 1rem; border: 1.5px dashed var(--brand-accent, #1b9e5a);
  background: var(--brand-accent-soft, #e7f7ee); color: var(--brand-accent-ink, #0f6b3c);
  border-radius: var(--brand-radius, 12px); font-size: 0.95rem; font-weight: 700; cursor: pointer;
  transition: all 0.2s;
}
.brand-recipe-submit-toggle:hover { background: var(--brand-accent, #1b9e5a); color: #fff; }
.brand-recipe-submit-body {
  margin-top: 1rem; padding: 1.3rem; background: #fff; border-radius: var(--brand-radius, 12px);
  box-shadow: var(--brand-shadow, 0 6px 20px rgba(20,30,50,0.06)); border: 1px solid #eef0f3;
}
/* Recipe-submit form rows (scoped — must not override the pre-order form) */
.brand-recipe-submit-body .brand-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.8rem; margin-bottom: 0.8rem; }
.brand-form-full { display: block; margin-bottom: 0.8rem; }
.brand-recipe-submit-body label { font-size: 0.8rem; font-weight: 600; color: #4a5568; display: flex; flex-direction: column; gap: 0.3rem; }
.brand-recipe-submit-body input,
.brand-recipe-submit-body select,
.brand-recipe-submit-body textarea {
  font-family: inherit; font-size: 0.92rem; padding: 0.55rem 0.7rem; border: 1px solid #d8dde5;
  border-radius: 8px; background: #fafbfc; color: #1a2230; transition: border-color 0.2s;
}
.brand-recipe-submit-body input:focus,
.brand-recipe-submit-body select:focus,
.brand-recipe-submit-body textarea:focus { outline: none; border-color: var(--brand-accent, #1b9e5a); background: #fff; }
.brand-recipe-submit-body textarea { resize: vertical; }
.brand-form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.brand-recipe-submit-msg { font-size: 0.85rem; font-weight: 600; }

/* Section header: title on the left, action link on the right */
.brand-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.brand-view-all {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-accent-ink);
  text-decoration: none;
  white-space: nowrap;
  padding: 0 0 0.15rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, opacity 0.15s ease;
}
.brand-view-all:hover { border-bottom-color: var(--brand-accent); }

/* Overflow recipes revealed on "view all" — seamless continuation grid */
.brand-recipes-extra { margin-top: 0.5rem; }

/* ── FAQ accordion ───────────────────────────── */
.brand-faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.brand-faq-item {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.brand-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-accent-ink);
  font-family: inherit;
}
.brand-faq-icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-accent);
  background: var(--brand-accent-soft);
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.brand-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  padding: 0 1.25rem;
}
.brand-faq-item.open .brand-faq-a { max-height: 400px; padding-bottom: 1.1rem; }
.brand-faq-item.open .brand-faq-icon { transform: rotate(45deg); }

/* ── Manure section ──────────────────────────── */
.brand-manure {
  background: linear-gradient(135deg, var(--brand-accent-soft), #fff);
  border-radius: var(--brand-radius);
  padding: 0;
}
.brand-manure-inner {
  background: #fff;
  border-radius: var(--brand-radius);
  padding: 2.2rem 2rem;
  box-shadow: var(--brand-shadow);
}
.brand-manure-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.brand-manure-perk {
  background: var(--brand-accent-soft);
  color: var(--brand-accent-ink);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Preorder capacity & help ────────────────── */
.brand-preorder-capacity {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--brand-accent-soft);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.2rem;
  font-size: 0.88rem;
  color: #3a4452;
}
.brand-preorder-capacity-ico { font-size: 1.4rem; }
.brand-preorder-help {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: #6b7688;
}
.brand-preorder-help strong { color: var(--brand-accent-ink); }
.brand-preorder-catalogue {
  margin: 0 0 1.1rem;
  font-size: 0.85rem;
  color: #5a6478;
  background: var(--brand-accent-soft);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.brand-preorder-catalogue a {
  color: var(--brand-accent-ink);
  font-weight: 700;
  text-decoration: underline;
}

/* ── Offers section (promos + discounts) ─────────────────────────────── */
.brand-offers-section { max-width: 1180px; margin: 0 auto; padding: 3.5rem 1.5rem; }
.brand-offers-section .brand-section-title {
  text-align: center; font-size: 1.85rem; margin: 0 0 0.4rem; color: var(--brand-accent-ink);
}
.brand-offers-subtitle { text-align: center; color: #5a6478; margin: 0 0 2rem; font-size: 0.95rem; }
.brand-offers-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem;
}
.brand-offer-group { margin-bottom: 2.2rem; }
.brand-offer-group:last-child { margin-bottom: 0; }
.brand-offer-group-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  margin-bottom: 0.9rem; padding-bottom: 0.5rem; border-bottom: 2px solid #eef0f4;
}
.brand-offer-group-title {
  margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--brand-accent-ink);
  text-transform: capitalize; letter-spacing: 0.01em;
}
.brand-offer-group-link {
  font-size: 0.88rem; font-weight: 700; color: var(--brand-accent-ink);
  text-decoration: none; white-space: nowrap; opacity: 0.85; transition: opacity .15s;
}
.brand-offer-group-link:hover { opacity: 1; text-decoration: underline; }
.brand-offer-group-here {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  color: #fff; background: var(--brand-accent); padding: 0.25rem 0.6rem; border-radius: 99px;
  white-space: nowrap;
}

/* Film-roll: horizontal scroll for a brand's offers so the page stays tidy. */
.brand-offer-filmroll {
  display: flex; gap: 1rem; overflow-x: auto; padding: 0.4rem 0 1rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.brand-offer-filmroll::-webkit-scrollbar { height: 7px; }
.brand-offer-filmroll::-webkit-scrollbar-thumb { background: #cfd6e4; border-radius: 99px; }
.brand-offer-filmroll .brand-offer-card {
  flex: 0 0 280px; max-width: 280px; scroll-snap-align: start;
}
.brand-offer-card {
  position: relative; background: #fff; border: 1px solid #eef0f4; border-radius: 16px;
  padding: 1.6rem 1.5rem 1.5rem; box-shadow: 0 4px 18px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; gap: 0.6rem; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.brand-offer-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.brand-offer-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-ink));
}
.brand-offer-badge {
  display: inline-block; align-self: flex-start; font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; color: #fff;
  background: var(--brand-accent-ink); border-radius: 20px; padding: 0.25rem 0.7rem;
}
.brand-offer-title { font-size: 1.15rem; font-weight: 800; color: #1a2233; margin: 0; }
.brand-offer-desc { font-size: 0.88rem; color: #5a6478; line-height: 1.5; margin: 0; }
.brand-offer-code {
  margin-top: auto; display: flex; align-items: center; gap: 0.5rem;
  background: var(--brand-accent-soft); border: 1px dashed var(--brand-accent-ink);
  border-radius: 10px; padding: 0.55rem 0.8rem; font-size: 0.85rem; color: var(--brand-accent-ink);
  font-weight: 700; font-family: 'Courier New', monospace; letter-spacing: 0.04em;
}
.brand-offer-code .brand-offer-code-lbl { font-size: 0.7rem; font-weight: 600; opacity: 0.7; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 860px) {
  .brand-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .brand-split-rev { direction: ltr; }
  .brand-gallery { column-count: 2; }
  .brand-masonry { column-count: 1; }
  .brand-photo-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .brand-hero { padding: 3.5rem 1.25rem 4rem; }
  .brand-main { padding: 2.5rem 1.1rem 3rem; }
  .brand-form-grid { grid-template-columns: 1fr; }
  .brand-preorder .brand-preorder-card { padding: 1.6rem; }
  .brand-masonry { column-count: 1; }
  /* Keep 5-tile row readable on phones: wrap to 2 columns */
  .brand-features-row { grid-template-columns: repeat(2, 1fr); }
}

/* ── Hero contact lines ───────────────────────── */
.brand-hero-contacts {
  margin: 0.4rem 0 0.6rem; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 0.4rem 1.1rem;
  font-size: 0.9rem; line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}
.brand-hero-contact-line {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px; padding: 0.25rem 0.75rem;
  backdrop-filter: blur(4px);
}
.brand-hero-contact-line a {
  color: #fff; text-decoration: none; font-weight: 600;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.5);
}
.brand-hero-contact-line a:hover { border-bottom-style: solid; }
@media (max-width: 600px) {
  .brand-hero-contacts { font-size: 0.82rem; gap: 0.35rem 0.5rem; }
}

/* ── Theme toggle button (light/base) ────────────────────── */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-left: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(20, 30, 50, 0.14);
  background: rgba(20, 30, 50, 0.04);
  color: #2a3344;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}
.theme-toggle:hover { transform: rotate(-12deg) scale(1.08); background: var(--brand-accent-soft); }
.brand-topbar-nav { align-items: center; }
