  /* ── Web Fonts ── */

  /* DM Sans */
  @font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/dm-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 300 900;
    font-display: swap;
    src: url('../fonts/dm-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  /* Playfair Display — regular */
  @font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/playfair-regular-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/playfair-regular-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/playfair-regular-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/playfair-regular-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  /* Playfair Display — italic */
  @font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/playfair-italic-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/playfair-italic-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/playfair-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  @font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 900;
    font-display: swap;
    src: url('../fonts/playfair-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  /* ── Design Tokens ── */
  :root {
    --bg: #f7f2e9;
    --bg-alt: #ede6d8;
    --bg-dark: #1a1208;
    --bg-dark2: #251c0e;
    --green: #3a6b35;
    --green-light: #7ab87d;
    --green-pale: #d4e8c8;
    --brown: #6b4226;
    --brown-light: #c4956a;
    --gold: #c9903a;
    --gold-light: #e8c070;
    --text: #1a1208;
    --text-muted: #7a6b55;
    --text-light: #a89070;
    --border: rgba(100,80,50,0.12);
    --shadow: 0 4px 24px rgba(30,20,5,0.08);
    --shadow-lg: 0 12px 48px rgba(30,20,5,0.14);
    --radius: 12px;
    --radius-lg: 20px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: "DM Sans", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
  }

  /* ── Grain texture ── */
  body::before {
    content: "";
    position: fixed; inset: 0; z-index: 1000; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.6;
  }

  /* ── Nav ── */
  .nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 900;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; height: 64px;
    background: rgba(247,242,233,0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s;
  }
  .nav-logo {
    font-family: "Playfair Display", serif;
    font-size: 18px; font-weight: 700; color: var(--green);
    cursor: pointer; display: flex; align-items: center; gap: 10px;
    letter-spacing: 2px; text-transform: uppercase;
  }
  .nav-logo img { width: 32px; height: 32px; object-fit: contain; }
  .nav-logo-dot { display: none; }
  .nav-links { display: flex; align-items: center; gap: 28px; }
  .nav-link {
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    cursor: pointer; background: none; border: none;
    padding: 4px 0; border-bottom: 1.5px solid transparent;
    transition: color 0.2s, border-color 0.2s;
  }
  .nav-link:hover, .nav-link.active { color: var(--green); border-bottom-color: var(--green-light); }
  .nav-cta { background: var(--green); color: white; border: none; border-radius: 24px; padding: 8px 20px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background 0.2s; font-family: "DM Sans", sans-serif; }
  .nav-cta:hover { background: #2d5a28; }

  /* ── Buttons ── */
  .btn-primary {
    background: var(--green); color: white; border: none; border-radius: 32px;
    padding: 14px 32px; font-family: "DM Sans", sans-serif; font-size: 15px; font-weight: 500;
    cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 0 0 0 rgba(58,107,53,0.3);
  }
  .btn-primary:hover { background: #2d5a28; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(58,107,53,0.35); }
  .btn-ghost {
    background: transparent; color: var(--text-muted); border: 1.5px solid var(--border);
    border-radius: 32px; padding: 13px 28px; font-family: "DM Sans", sans-serif;
    font-size: 15px; font-weight: 400; cursor: pointer; transition: all 0.2s;
  }
  .btn-ghost:hover { border-color: var(--green-light); color: var(--green); }
  .btn-ghost-sm {
    background: transparent; color: var(--green); border: 1.5px solid var(--green-pale);
    border-radius: 24px; padding: 8px 20px; font-family: "DM Sans", sans-serif;
    font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s;
  }
  .btn-ghost-sm:hover { background: var(--green-pale); }
  .back-btn {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 14px; font-family: "DM Sans", sans-serif; padding: 0;
    display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s;
  }
  .back-btn:hover { color: var(--text); }

  /* ── Typography helpers ── */
  .section-eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold); margin-bottom: 10px;
  }
  .section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--text);
    line-height: 1.2; margin-bottom: 8px;
  }
  .section-header {
    display: flex; flex-direction: column; align-items: flex-start;
    margin-bottom: 40px;
  }
  .section { padding: 80px 60px; }

  /* ── Particles ── */
  .particle {
    position: absolute; border-radius: 50%;
    background: radial-gradient(circle, rgba(122,184,125,0.6), rgba(58,107,53,0.1));
    animation: floatParticle linear infinite;
    pointer-events: none;
  }
  @keyframes floatParticle {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    33% { transform: translateY(-30px) rotate(120deg) scale(1.1); }
    66% { transform: translateY(-15px) rotate(240deg) scale(0.9); }
    100% { transform: translateY(0) rotate(360deg) scale(1); }
  }

  /* ── Hero ── */
  .hero {
    position: relative; min-height: 50vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding-top: 64px;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #1a2d12 0%, #2d4a1e 40%, #1a2508 100%);
  }
  .hero-grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
    opacity: 0.8;
  }
  .globe-wrap {
    position: absolute; right: 8%; top: 50%; transform-origin: center;
    transform: translateY(-50%); width: min(420px, 40vw);
    transition: transform 0.1s linear;
  }
  .globe-svg { width: 100%; opacity: 0.85; animation: globeBreath 8s ease-in-out infinite; }
  @keyframes globeBreath {
    0%,100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 0.95; transform: scale(1.025); }
  }
  .hero-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column; align-items: center;
    text-align: center; padding: 28px 40px 56px;
    max-width: 700px; margin: 0 auto;
  }
  .hero-logo-wrap {
    margin-bottom: 12px;
    animation: fadeDown 0.8s ease both;
  }
  .hero-logo-img {
    width: 52px; height: 52px; object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.9);
  }
  @keyframes fadeDown { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:none; } }
  .hero-eyebrow {
    font-size: 11px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
    color: rgba(180,210,140,0.7); margin-bottom: 10px;
    animation: fadeDown 0.8s ease 0.1s both;
  }
  .hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1; font-weight: 700; color: white;
    display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px;
    animation: fadeDown 0.8s ease 0.2s both;
  }
  .hero-title .accent { color: var(--gold-light); font-style: italic; }
  .hero-sub {
    font-size: 14px; line-height: 1.65; color: rgba(220,235,200,0.75);
    max-width: 460px; margin-bottom: 22px; font-weight: 300;
    animation: fadeDown 0.8s ease 0.3s both;
  }
  .hero-cta-row {
    display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px;
    animation: fadeDown 0.8s ease 0.4s both;
  }
  .hero-stats {
    display: flex; gap: 0; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;
    animation: fadeDown 0.8s ease 0.5s both; width: 100%; justify-content: center;
  }
  .hero-stat {
    display: flex; flex-direction: column; align-items: center; padding: 0 28px;
  }
  .hero-stat-num {
    font-family: "Playfair Display", serif; font-size: 22px; font-weight: 700;
    color: var(--gold-light); line-height: 1;
  }
  .hero-stat-label { font-size: 10px; color: rgba(200,220,160,0.5); margin-top: 3px; letter-spacing: 0.5px; }
  .hero-scroll-hint {
    position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    color: rgba(200,220,160,0.4); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    pointer-events: none;
  }
  .scroll-line {
    width: 1px; height: 20px;
    background: linear-gradient(to bottom, transparent, rgba(200,220,160,0.4));
    animation: scrollPulse 2s ease-in-out infinite;
  }
  @keyframes scrollPulse { 0%,100% { opacity: 0.5; transform: scaleY(1); } 50% { opacity: 1; transform: scaleY(1.1); } }

  /* ── Vine sidebar ── */
  .vine-sidebar {
    position: fixed; left: 14px; bottom: 20px;
    height: 75vh; width: 32px; z-index: 50; pointer-events: none;
  }
  .vine-svg { width: 100%; height: 100%; overflow: visible; }

  /* ── Herb Explorer ── */
  .herb-explorer { background: var(--bg); padding-bottom: 60px; }
  .herb-carousel {
    display: flex; gap: 20px; overflow-x: auto; padding-bottom: 16px;
    scroll-snap-type: x mandatory; scrollbar-width: thin;
    scrollbar-color: var(--green-pale) transparent;
    opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .herb-carousel.visible { opacity: 1; transform: none; }
  .herb-card {
    flex: 0 0 200px; background: white; border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden; cursor: pointer;
    scroll-snap-align: start; transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeUp 0.5s ease both;
  }
  .herb-card.hovered { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .herb-card-img { height: 140px; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
  .herb-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
  .herb-card-link { display: contents; }
  .herb-placeholder { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
  .herb-emoji { font-size: 48px; animation: gentleBob 3s ease-in-out infinite; }
  @keyframes gentleBob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-6px)} }
  .sway-leaves { position: absolute; bottom: 12px; display: flex; gap: 6px; }
  .sway-leaf {
    width: 18px; height: 28px;
    background: rgba(58,107,53,0.2); border-radius: 50% 10% 50% 10%;
    transform-origin: bottom center;
    animation: leafSway 2.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.4s);
  }
  @keyframes leafSway { 0%,100%{transform:rotate(-8deg)} 50%{transform:rotate(8deg)} }
  .herb-card-body { padding: 16px; }
  .herb-tag { font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); }
  .herb-name { font-family: "Playfair Display", serif; font-size: 17px; font-weight: 600; margin: 6px 0 4px; color: var(--text); }
  .herb-latin { font-size: 12px; font-style: italic; color: var(--text-muted); }
  .herb-card-hover-line {
    height: 3px; background: var(--green); transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s ease;
  }
  .herb-card.hovered .herb-card-hover-line { transform: scaleX(1); }

  /* ── Categories ── */
  .categories-section { background: var(--bg-alt); }
  .cat-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px;
    opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s;
  }
  .cat-grid.visible { opacity: 1; transform: none; }
  .cat-card {
    background: white; border-radius: var(--radius-lg); padding: 28px 20px 20px;
    border: 1px solid var(--border); cursor: pointer; position: relative; overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s; animation: fadeUp 0.5s ease both;
    text-align: center;
  }
  .cat-card.hov { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .cat-card::before {
    content: ""; position: absolute; inset: 0;
    background: oklch(95% 0.04 var(--cat-hue));
    opacity: 0; transition: opacity 0.3s;
  }
  .cat-card.hov::before { opacity: 1; }
  .cat-icon-wrap { position: relative; width: 64px; height: 64px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; }
  .cat-icon { font-size: 32px; position: relative; z-index: 1; transition: transform 0.3s; }
  .cat-card.hov .cat-icon { transform: scale(1.15) translateY(-3px); }
  .cat-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1.5px solid oklch(75% 0.1 145);
    opacity: 0; transition: opacity 0.3s, transform 0.4s;
  }
  .cat-ring-2 { inset: -8px; border-color: oklch(85% 0.06 145); animation-delay: 0.1s; }
  .cat-card.hov .cat-ring { opacity: 0.4; transform: scale(1.1); }
  .cat-card.hov .cat-ring-2 { opacity: 0.2; transform: scale(1.2); }
  .cat-name { font-family: "Playfair Display", serif; font-size: 17px; font-weight: 600; margin-bottom: 6px; position: relative; }
  .cat-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; position: relative; }
  .cat-count { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-light); position: relative; }

  /* ── Article cards ── */
  .articles-section { background: var(--bg); }

  /* Magazine grid — always visible, no JS dependency */
  .art-magazine {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
  }
  .art-masonry {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  }
  .art-masonry.visible, .art-magazine.visible { opacity: 1; transform: none; }

  /* Column spans */
  .art-mag-hero  { grid-column: 1 / -1; }
  .art-mag-half  { grid-column: span 3; min-width: 0; }
  .art-mag-third { grid-column: span 2; min-width: 0; }
  .art-card--large { grid-column: span 2; }

@media (max-width: 900px) {
  .art-magazine { grid-template-columns: repeat(2, 1fr); }
  .art-mag-hero  { grid-column: 1 / -1; }
  .art-mag-half  { grid-column: span 2; }
  .art-mag-third { grid-column: span 1; }
}
@media (max-width: 560px) {
  .art-magazine { grid-template-columns: 1fr; }
  .art-mag-hero, .art-mag-half, .art-mag-third { grid-column: 1 / -1; }
}

  /* ── Art card shared ── */
  .art-card {
    background: white; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border); cursor: pointer; min-width: 0;
    transition: transform 0.3s, box-shadow 0.3s; animation: fadeUp 0.5s ease both;
  }
  .art-card:hover, .art-card.hov, .art-card.hov-ready:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .art-card-inner { display: block; width: 100%; text-decoration: none; color: inherit; }

  /* Full image — puri image dikhe, no cropping */
  .art-img-full { display: block; width: 100%; line-height: 0; }
  .art-img-full img,
  .art-img-full figure,
  .art-img-full figure img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; margin: 0 !important; }

  /* Placeholder */
  .art-card-img { height: 180px; background: var(--bg-alt); overflow: hidden; position: relative; }
  .art-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
  .art-card--large .art-card-img { height: 240px; }
  .art-img-placeholder {
    width: 100%; height: 180px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #e8dcc8, #d4c8a8); position: relative;
  }
  .art-img-placeholder.small { height: 120px; }
  .art-img-placeholder::before {
    content: ""; position: absolute; inset: 0;
    background-image: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(160,130,80,0.06) 8px, rgba(160,130,80,0.06) 16px);
  }
  .art-no-img-label { font-family: monospace; font-size: 11px; color: rgba(100,80,50,0.5); text-transform: uppercase; letter-spacing: 1px; position: relative; }

  .art-card-body { padding: 16px 20px 20px; }
  .art-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
  .art-category {
    font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gold); background: rgba(201,144,58,0.1); padding: 3px 10px; border-radius: 20px;
  }
  .art-dosha { font-size: 11px; color: var(--text-muted); }
  .art-read { font-size: 11px; color: var(--text-light); }
  .art-title { font-family: "Playfair Display", serif; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--text); margin-bottom: 6px; }
  .art-title--hero { font-size: 22px; }
  .art-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 0; }
  .leaf-burst { position: absolute; inset: 0; pointer-events: none; }
  .burst-leaf {
    position: absolute; font-size: 16px;
    top: 50%; left: 50%;
    animation: burstOut 0.6s ease forwards;
    animation-delay: calc(var(--bi) * 0.08s);
    opacity: 0;
  }
  @keyframes burstOut {
    0% { transform: translate(-50%,-50%) rotate(0deg) scale(0); opacity: 1; }
    100% { transform: translate(calc(-50% + calc(cos(calc(var(--bi) * 72deg)) * 40px)), calc(-50% + calc(sin(calc(var(--bi) * 72deg)) * 40px))) rotate(180deg) scale(1); opacity: 0; }
  }

  /* ── Tools ── */
  .tools-section { background: var(--bg-dark); position: relative; overflow: hidden; }
  .tools-section .section-title { color: white; }
  .tools-section .section-eyebrow { color: var(--gold); }
  .tools-bg-pattern {
    position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(circle at 20% 50%, rgba(58,107,53,0.15) 0%, transparent 60%),
      radial-gradient(circle at 80% 20%, rgba(201,144,58,0.1) 0%, transparent 50%);
  }
  .tools-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
    opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s;
  }
  .tools-grid.visible { opacity: 1; transform: none; }
  .tool-tile {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg); padding: 32px 28px; cursor: pointer;
    transition: background 0.3s, transform 0.3s, border-color 0.3s;
    animation: fadeUp 0.5s ease both; position: relative; overflow: hidden;
  }
  .tool-tile::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--tool-color), transparent);
    opacity: 0; transition: opacity 0.3s; border-radius: var(--radius-lg);
  }
  .tool-tile.hov { background: rgba(255,255,255,0.08); transform: translateY(-4px); border-color: rgba(255,255,255,0.15); }
  .tool-tile.hov::before { opacity: 0.12; }
  .tool-icon-wrap { position: relative; width: 56px; height: 56px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
  .tool-icon { font-size: 30px; position: relative; z-index: 1; }
  .mandala-ring {
    position: absolute; inset: -4px; border-radius: 50%;
    border: 1.5px dashed rgba(255,255,255,0.2);
    transition: transform 0.3s;
  }
  .mandala-ring.spin { animation: spinRing 3s linear infinite; }
  @keyframes spinRing { to { transform: rotate(360deg); } }
  .tool-name { font-family: "Playfair Display", serif; font-size: 19px; font-weight: 600; color: white; margin-bottom: 8px; }
  .tool-desc { font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.6; margin-bottom: 20px; }
  .tool-cta { font-size: 13px; font-weight: 600; color: var(--green-light); letter-spacing: 0.5px; }

  /* ── Square Article Grid ──
     Desktop  (≥1100px): 5 cols, 12 posts
       Row 1-2: [Hero 2×2] [P2][P3][P4] / [Hero 2×2] [P5][P6][P7]
       Row 3:   [P8][P9][P10][P11][P12]
     Tablet   (700-1099px): 3 cols, 9 posts
     Mobile   (<700px):     2 cols, 4 posts
  ── */
  .sq-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
  }

  /* Every card is a square positioned container */
  .sq-card {
    aspect-ratio: 1 / 1;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    animation: fadeUp 0.5s ease both;
    box-shadow: 0 2px 14px rgba(30,20,5,0.09);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .sq-card:hover { transform: translateY(-5px); box-shadow: 0 10px 34px rgba(30,20,5,0.18); }

  /* Hero spans 2 cols × 2 rows — size comes from grid, not aspect-ratio */
  .sq-card--hero {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    aspect-ratio: unset;
  }

  /* Link + image fill the entire card */
  .sq-card-link {
    position: absolute; inset: 0;
    display: block; text-decoration: none; color: inherit;
  }

  .sq-img-wrap {
    position: absolute; inset: 0;
    overflow: hidden;
    background: var(--bg-alt);
  }

  .sq-img-wrap img,
  .sq-img-wrap .sq-img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center top;
    display: block;
    transition: transform 0.45s ease;
  }
  .sq-card:hover .sq-img-wrap img,
  .sq-card:hover .sq-img-wrap .sq-img { transform: scale(1.07); }

  .sq-img-placeholder {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #d4c8a8, #bfb08c);
    display: flex; align-items: center; justify-content: center;
  }
  .sq-no-img { font-size: 40px; }

  /* Gradient overlay — text sits on top */
  .sq-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(to bottom, transparent 28%, rgba(8,12,4,0.85) 100%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 14px;
  }
  .sq-card--hero .sq-overlay { padding: 22px; }

  .sq-cat {
    display: inline-block; align-self: flex-start;
    font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--gold-light); background: rgba(201,144,58,0.28);
    padding: 3px 8px; border-radius: 10px; margin-bottom: 5px;
  }

  .sq-title {
    font-family: "Playfair Display", serif;
    font-size: 12px; font-weight: 600; color: white; line-height: 1.3;
    margin: 0 0 4px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
  }
  .sq-card--hero .sq-title { font-size: 18px; margin-bottom: 7px; }

  .sq-excerpt {
    font-size: 13px; color: rgba(220,235,200,0.78);
    line-height: 1.6; margin: 0 0 8px;
  }

  .sq-read {
    font-size: 10px; color: rgba(200,220,160,0.5); letter-spacing: 0.3px;
  }

  /* Tablet: 3 cols, 9 posts (hide 10-12) */
  @media (max-width: 1099px) {
    .sq-grid { grid-template-columns: repeat(3, 1fr); }
    .sq-card--hero { grid-column: 1 / 3; grid-row: 1 / 3; }
    .sq-card:nth-child(n+10) { display: none; }
  }

  /* Mobile: 2 cols, 4 posts (hide 5-12) */
  @media (max-width: 699px) {
    .sq-grid { grid-template-columns: repeat(2, 1fr); }
    .sq-card--hero { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16/9; }
    .sq-card:nth-child(n+5) { display: none; }
  }

  /* ── Newsletter ── */
  .newsletter-section { background: var(--green); padding: 80px 60px; }
  .newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
  .newsletter-title { font-family: "Playfair Display", serif; font-size: 36px; font-weight: 700; color: white; margin-bottom: 12px; }
  .newsletter-sub { font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 32px; }
  .newsletter-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .newsletter-input {
    flex: 1; min-width: 240px; padding: 14px 20px; border-radius: 32px;
    border: 1.5px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1);
    color: white; font-size: 15px; font-family: "DM Sans", sans-serif;
    outline: none;
  }
  .newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
  .newsletter-input:focus { border-color: rgba(255,255,255,0.5); }
  .newsletter-thanks { font-size: 20px; color: white; font-weight: 500; }

  /* ── Articles Page ── */
  .articles-page { padding-top: 64px; opacity: 0; transition: opacity 0.4s; }
  .articles-page.visible { opacity: 1; }
  .page-hero-sm {
    position: relative; padding: 64px 60px 56px;
    background: linear-gradient(160deg, #1a2d12 0%, #2d4a1e 100%);
    overflow: hidden;
  }
  .page-hero-grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  }
  .page-hero-content { position: relative; z-index: 1; }
  .page-hero-title { font-family: "Playfair Display", serif; font-size: 52px; font-weight: 700; color: white; }
  .page-hero-sub { font-size: 16px; color: rgba(200,220,170,0.75); margin-top: 8px; }
  .articles-main { display: grid; grid-template-columns: 280px 1fr; gap: 0; }

  /* Filters sidebar */
  .filters-sidebar { padding: 40px 32px; border-right: 1px solid var(--border); position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
  .filter-search-wrap { margin-bottom: 32px; }
  .filter-search {
    width: 100%; padding: 10px 16px; border: 1.5px solid var(--border);
    border-radius: 32px; font-size: 14px; font-family: "DM Sans", sans-serif;
    background: white; outline: none; color: var(--text);
    transition: border-color 0.2s;
  }
  .filter-search:focus { border-color: var(--green-light); }
  .filter-group { margin-bottom: 28px; }
  .filter-label { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); margin-bottom: 12px; }
  .filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
  .filter-pills.vertical { flex-direction: column; gap: 4px; }
  .filter-pill {
    padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 400;
    border: 1.5px solid var(--border); background: white; color: var(--text-muted);
    cursor: pointer; transition: all 0.2s; font-family: "DM Sans", sans-serif;
    text-align: left;
  }
  .filter-pill.active { background: var(--green); color: white; border-color: var(--green); }
  .filter-pill:hover:not(.active) { border-color: var(--green-light); color: var(--green); }

  /* Results */
  .articles-results { padding: 40px; }
  .results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
  .results-count { font-size: 14px; color: var(--text-muted); }
  .mode-toggle { display: flex; gap: 4px; }
  .mode-btn {
    padding: 6px 14px; border-radius: 8px; font-size: 13px; border: 1.5px solid var(--border);
    background: white; cursor: pointer; font-family: "DM Sans", sans-serif; color: var(--text-muted);
    transition: all 0.2s;
  }
  .mode-btn.active { background: var(--green); color: white; border-color: var(--green); }
  .results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
  .results-list { display: flex; flex-direction: column; gap: 16px; }
  .no-results { text-align: center; padding: 80px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }

  /* List card */
  .alist-card {
    display: flex; gap: 20px; background: white; border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s; animation: fadeUp 0.4s ease both;
  }
  .alist-card.hov { transform: translateX(4px); box-shadow: var(--shadow); }
  .alist-img { flex: 0 0 120px; }
  .alist-body { flex: 1; padding: 20px 0; }
  .alist-title { font-family: "Playfair Display", serif; font-size: 16px; font-weight: 600; margin: 8px 0; line-height: 1.35; }
  .alist-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
  .alist-tags { display: flex; gap: 6px; flex-wrap: wrap; }
  .tag { font-size: 11px; color: var(--green); background: rgba(58,107,53,0.08); padding: 2px 8px; border-radius: 10px; }
  .alist-arrow { display: flex; align-items: center; padding: 0 20px; font-size: 22px; color: var(--text-light); transition: color 0.2s; }
  .alist-card.hov .alist-arrow { color: var(--green); }

  /* ── Article Detail ── */
  .detail-page { padding-top: 64px; }
  .detail-hero {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
    height: clamp(360px, 56vw, 620px); /* fixed height so img height:100% works */
  }
  .detail-hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, #2d4a1e 0%, #1a2508 100%);
  }
  /* Blurred background fills the full frame (sides + top/bottom) */
  .detail-hero-bg-blur {
    position: absolute; inset: -10%;   /* slightly oversized so blur edge is hidden */
    background-size: cover; background-position: center;
    filter: blur(22px) brightness(0.38) saturate(0.65);
  }
  /* Centered sharp image — height 100%, auto width, sides show blur */
  .detail-hero-img-center {
    position: absolute; inset: 0; z-index: 1;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
  }
  .detail-hero-img-sharp {
    height: 100%; width: auto;
    max-width: 100%;        /* very wide images still fit */
    display: block;
    object-fit: contain;
  }
  /* Bottom vignette — fades blurred bg into readable text zone */
  .detail-hero-vignette {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 45%,
      rgba(5,10,3,0.55) 70%,
      rgba(5,10,3,0.88) 100%
    );
  }
  /* Text content sits at bottom over vignette */
  .detail-hero-inner {
    position: relative; z-index: 3;
    padding: 0 60px 40px;
    width: 100%;
  }
  .detail-hero-content { max-width: 760px; }
  /* Smaller, clear heading with light shadow */
  .detail-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(20px, 2.8vw, 34px);
    font-weight: 700; color: white; line-height: 1.25; margin: 10px 0;
    text-shadow: 0 2px 14px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
  }
  .detail-meta { display: flex; gap: 20px; font-size: 13px; color: rgba(200,220,170,0.7); flex-wrap: wrap; }

  @media (max-width: 768px) {
    .detail-hero-inner { padding: 0 24px 32px; }
    .detail-title { font-size: clamp(18px, 5vw, 26px); }
  }

  .detail-body { display: grid; grid-template-columns: 300px 1fr; gap: 0; max-width: 1200px; margin: 0 auto; padding: 40px 40px 40px 60px; }
  .detail-sidebar { padding-right: 40px; }
  .sidebar-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
  .sidebar-card-title { font-family: "Playfair Display", serif; font-size: 16px; font-weight: 600; margin-bottom: 16px; }
  .prop-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
  .prop-icon { font-size: 18px; flex-shrink: 0; }
  .prop-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 2px; }
  .prop-value { font-size: 14px; font-weight: 500; color: var(--text); }
  .quick-facts { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .quick-facts li { font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 10px; }
  .quick-facts li:last-child { border: none; padding: 0; }
  .quick-facts strong { color: var(--text); }

  /* Dosha chart */
  .dosha-chart-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
  .dosha-bar-row { margin-bottom: 14px; }
  .dosha-bar-label { display: flex; justify-content: space-between; margin-bottom: 6px; }
  .dosha-name { font-size: 13px; font-weight: 500; }
  .dosha-effect { font-size: 12px; color: var(--text-muted); }
  .dosha-bar-track { height: 8px; background: var(--bg-alt); border-radius: 4px; overflow: hidden; }
  .dosha-bar-fill { height: 100%; border-radius: 4px; }

  /* Article body */
  .detail-main { padding-left: 48px; border-left: 1px solid var(--border); }
  .detail-lead { font-size: 18px; line-height: 1.75; color: var(--text); margin-bottom: 36px; font-weight: 400; border-left: 3px solid var(--green-light); padding-left: 20px; }
  .detail-main h2 { font-family: "Playfair Display", serif; font-size: 26px; font-weight: 700; margin: 40px 0 16px; }
  .detail-main h3 { font-family: "Playfair Display", serif; font-size: 20px; font-weight: 600; margin: 28px 0 12px; }
  .detail-main p { font-size: 16px; line-height: 1.8; color: #3a3020; margin-bottom: 16px; }
  .benefits-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
  .benefit-card { background: var(--bg-alt); border-radius: var(--radius); padding: 20px; }
  .benefit-icon { font-size: 28px; margin-bottom: 10px; display: block; }
  .benefit-card h4 { font-family: "Playfair Display", serif; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
  .benefit-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }
  .callout { display: flex; gap: 14px; background: rgba(201,144,58,0.08); border: 1px solid rgba(201,144,58,0.2); border-radius: var(--radius); padding: 20px; margin: 24px 0; }
  .callout-icon { font-size: 22px; flex-shrink: 0; }
  .callout p { margin: 0; font-size: 14px; line-height: 1.6; }

  /* Growing herb */
  .grow-section { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px; margin: 32px 0; display: flex; flex-direction: column; align-items: center; }
  .herb-grow-wrap { display: flex; align-items: flex-start; gap: 24px; }
  .herb-grow-svg { width: 120px; flex-shrink: 0; }
  .herb-grow-labels { display: flex; flex-direction: column; gap: 10px; padding-top: 40px; }
  .grow-badge { font-size: 13px; background: white; border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; color: var(--text); transition: opacity 0.4s; }

  /* Related */
  .related-section { padding: 60px; background: var(--bg-alt); }
  .related-carousel { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
  .related-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
  .related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

  /* ── Quiz Page ── */
  .quiz-page { padding-top: 64px; min-height: 100vh; }
  .quiz-intro-page { display: flex; align-items: center; justify-content: center; background: var(--bg); }
  .quiz-intro-inner { max-width: 620px; padding: 80px 40px; text-align: center; }
  .quiz-intro-title { font-family: "Playfair Display", serif; font-size: 42px; font-weight: 700; margin-bottom: 16px; }
  .quiz-intro-desc { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin-bottom: 32px; }
  .dosha-preview-row { display: flex; gap: 16px; justify-content: center; }
  .dosha-preview-card { flex: 1; background: white; border: 1.5px solid var(--dc, var(--border)); border-radius: var(--radius); padding: 20px; text-align: center; }
  .dosha-preview-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dc); margin: 0 auto 10px; }
  .dosha-preview-card h4 { font-family: "Playfair Display", serif; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
  .dosha-preview-card p { font-size: 12px; color: var(--text-muted); }

  /* Quiz question */
  .quiz-q-page { background: var(--bg); display: flex; flex-direction: column; transition: opacity 0.3s; }
  .quiz-q-page.fading { opacity: 0; }
  .quiz-progress-bar { height: 3px; background: var(--bg-alt); }
  .quiz-progress-fill { height: 100%; background: var(--green); transition: width 0.5s ease; }
  .quiz-q-inner { max-width: 640px; margin: 0 auto; padding: 60px 40px; }
  .quiz-q-counter { font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-light); margin-bottom: 24px; }
  .quiz-q-text { font-family: "Playfair Display", serif; font-size: 30px; font-weight: 700; line-height: 1.3; margin-bottom: 40px; }
  .quiz-opts { display: flex; flex-direction: column; gap: 14px; }
  .quiz-opt {
    display: flex; align-items: flex-start; gap: 16px; background: white;
    border: 1.5px solid var(--border); border-radius: var(--radius); padding: 20px 24px;
    cursor: pointer; text-align: left; font-family: "DM Sans", sans-serif; font-size: 15px;
    color: var(--text); transition: all 0.2s; animation: fadeUp 0.4s ease both;
  }
  .quiz-opt:hover { border-color: var(--opt-color); background: rgba(100,170,100,0.04); }
  .quiz-opt.selected { border-color: var(--opt-color); background: rgba(100,170,100,0.08); transform: scale(0.98); }
  .quiz-opt-marker { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; margin-top: 2px; transition: all 0.2s; }
  .quiz-opt:hover .quiz-opt-marker, .quiz-opt.selected .quiz-opt-marker { border-color: var(--opt-color); background: var(--opt-color); }
  .quiz-opt-label { line-height: 1.5; }
  .quiz-nav { margin-top: 32px; }

  /* Quiz result */
  .quiz-result-page { }
  .quiz-result-header {
    position: relative; padding: 80px 60px 60px;
    background: linear-gradient(135deg, var(--result-color, #7ab87d), color-mix(in oklch, var(--result-color, #7ab87d) 50%, #1a2508));
    overflow: hidden;
  }
  .quiz-result-grain {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  }
  .quiz-result-name { font-family: "Playfair Display", serif; font-size: 72px; font-weight: 700; color: white; line-height: 1; }
  .quiz-result-element { font-size: 16px; color: rgba(255,255,255,0.7); margin-top: 8px; }
  .quiz-result-body { display: grid; grid-template-columns: 340px 1fr; gap: 48px; padding: 60px; max-width: 1100px; margin: 0 auto; }
  .wheel-wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
  .wheel-svg { width: 180px; }
  .wheel-legend { display: flex; flex-direction: column; gap: 10px; width: 100%; }
  .wheel-legend-item { display: flex; align-items: center; gap: 10px; }
  .wheel-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
  .wheel-label { flex: 1; font-size: 14px; font-weight: 500; text-transform: capitalize; }
  .wheel-pct { font-size: 14px; font-weight: 600; color: var(--text-muted); }
  .result-qualities { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
  .quality-badge { font-size: 12px; font-weight: 500; padding: 6px 14px; border-radius: 20px; background: var(--bg-alt); color: var(--text); }
  .result-desc { font-size: 16px; line-height: 1.8; color: var(--text-muted); margin-bottom: 32px; }
  .result-section-title { font-family: "Playfair Display", serif; font-size: 18px; font-weight: 600; margin: 24px 0 12px; }
  .result-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
  .result-herb-tag { font-size: 13px; padding: 6px 14px; border-radius: 20px; background: rgba(58,107,53,0.1); color: var(--green); font-weight: 500; }
  .result-tag { font-size: 13px; padding: 6px 14px; border-radius: 20px; background: var(--bg-alt); color: var(--text-muted); }
  .result-tag.avoid { background: rgba(200,80,80,0.07); color: #8b3a3a; }
  .result-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

  /* ── Footer ── */
  .footer { background: var(--bg-dark); padding: 48px 60px; text-align: center; }
  .footer-logo { font-family: "Playfair Display", serif; font-size: 24px; color: white; margin-bottom: 8px; }
  .footer-sub { font-size: 13px; color: rgba(255,255,255,0.35); }
  .footer-links { display: flex; gap: 24px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
  .footer-link { font-size: 13px; color: rgba(255,255,255,0.4); cursor: pointer; transition: color 0.2s; background: none; border: none; font-family: "DM Sans", sans-serif; }
  .footer-link:hover { color: rgba(255,255,255,0.75); }

  /* ── Page transitions ── */
  .page-enter { animation: pageIn 0.35s ease; }
  @keyframes pageIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

  /* ── Scrollbar ── */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(100,80,50,0.2); border-radius: 3px; }

  /* ── Archive / Category Page ── */
  .site-main > .container { max-width: 1200px; margin: 0 auto; padding: 40px 24px 60px; }

  .archive-header { margin-bottom: 36px; border-bottom: 1px solid rgba(0,0,0,0.08); padding-bottom: 20px; }
  .archive-title { font-family: "Playfair Display", serif; font-size: 30px; font-weight: 700; color: var(--text, #1a1a1a); margin-bottom: 8px; }
  .archive-description p { font-size: 15px; color: var(--text-muted, #666); line-height: 1.7; margin: 0; }

  .posts-loop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 48px; }
  @media (max-width: 900px) { .posts-loop { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .posts-loop { grid-template-columns: 1fr; } }

  .posts-loop article { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 14px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
  .posts-loop article:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,0.13); }

  .entry-thumbnail { width: 100%; height: 200px; overflow: hidden; flex-shrink: 0; }
  .entry-thumbnail a { display: block; width: 100%; height: 100%; }
  .entry-thumbnail img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.35s; }
  .entry-thumbnail figure { width: 100%; height: 100%; margin: 0; }
  .entry-thumbnail figure img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
  .posts-loop article:hover .entry-thumbnail img { transform: scale(1.05); }

  .posts-loop .entry-title { font-family: "Playfair Display", serif; font-size: 16px; font-weight: 700; padding: 16px 18px 8px; line-height: 1.45; }
  .posts-loop .entry-title a { color: var(--text, #1a1a1a); text-decoration: none; }
  .posts-loop .entry-title a:hover { color: var(--green, #3a6b35); }

  .entry-excerpt { font-size: 13px; color: var(--text-muted, #666); line-height: 1.75; padding: 0 18px 18px; flex: 1; }
  .entry-excerpt p { margin: 0; }

  /* ── Archive Pagination ── */
  .pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; flex-wrap: wrap; }
  .pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 8px;
    border-radius: 10px; font-size: 14px; font-weight: 500;
    color: var(--text-muted); text-decoration: none;
    border: 1.5px solid var(--border);
    background: #fff;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
  }
  .pagination .page-numbers:hover { background: var(--green-pale); color: var(--green); border-color: var(--green-light); }
  .pagination .page-numbers.current { background: var(--green); color: #fff; border-color: var(--green); font-weight: 700; }
  .pagination .page-numbers.dots { border: none; background: none; color: var(--text-muted); pointer-events: none; }

/* ─────────────────────────────────────────────────────────────
   Mobile Friendly Amendments — added after usage feedback
   Purpose: safer mobile navigation, better spacing, no horizontal overflow,
   and single-column layouts on small screens.
   ───────────────────────────────────────────────────────────── */

img, video, iframe {
  max-width: 100%;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 4px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav {
    height: 60px;
    padding: 0 16px;
  }
  .nav-logo {
    font-size: 14px;
    letter-spacing: 1px;
    max-width: calc(100% - 58px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-logo img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-cta {
    display: none;
  }
  .nav-links {
    display: none;
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    padding: 10px;
    background: rgba(247,242,233,0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-link {
    display: block;
    width: 100%;
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 15px;
  }
  .nav-link:last-child {
    border-bottom: 0;
  }
  body.nav-open {
    overflow: hidden;
  }
}

@media (max-width: 768px) {
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .section,
  .related-section,
  .newsletter-section,
  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }
  .section-header {
    margin-bottom: 28px;
  }
  .section-title {
    font-size: clamp(26px, 8vw, 34px);
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
  }
  .hero-content {
    padding: 34px 20px 46px;
  }
  .hero-title {
    font-size: clamp(34px, 12vw, 48px);
    line-height: 1.04;
  }
  .hero-sub {
    font-size: 14px;
  }
  .globe-wrap {
    width: 74vw;
    right: -26vw;
    opacity: 0.24;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 14px 0;
  }
  .hero-stat {
    padding: 0 14px;
    min-width: 88px;
  }
  .hero-scroll-hint,
  .vine-sidebar {
    display: none;
  }

  .btn-primary,
  .btn-ghost,
  .nav-cta {
    min-height: 44px;
  }
  .hero-cta-row .btn-primary,
  .hero-cta-row .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .herb-card {
    flex-basis: 168px;
  }
  .cat-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tools-grid,
  .cat-grid,
  .related-carousel,
  .posts-loop {
    gap: 16px;
  }

  .newsletter-section {
    padding-top: 54px;
    padding-bottom: 54px;
  }
  .newsletter-form {
    flex-direction: column;
    align-items: stretch;
  }
  .newsletter-form input,
  .newsletter-form button,
  #newsletter-email,
  #newsletter-submit {
    width: 100%;
    min-width: 0;
  }

  .page-hero-sm {
    padding: 48px 20px 42px;
  }
  .page-hero-title {
    font-size: clamp(32px, 10vw, 42px);
  }
  .articles-main {
    display: block;
  }
  .filters-sidebar {
    position: static;
    top: auto;
    height: auto;
    overflow: visible;
    padding: 24px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .filter-pills.vertical {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .filter-pills.vertical::-webkit-scrollbar {
    display: none;
  }
  .articles-results {
    padding: 24px 20px 44px;
  }
  .results-bar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }
  .alist-card {
    flex-direction: column;
    gap: 0;
  }
  .alist-img {
    flex: none;
    width: 100%;
    height: 180px;
  }
  .alist-body {
    padding: 16px;
  }
  .alist-arrow {
    display: none;
  }

  .detail-hero {
    min-height: 330px;
  }
  .detail-hero-inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .detail-body {
    display: block;
    padding: 28px 20px 44px;
  }
  .detail-sidebar {
    padding-right: 0;
    margin-bottom: 24px;
  }
  .article-content {
    min-width: 0;
  }
  .article-content h1,
  .article-content h2,
  .article-content h3,
  .article-content p,
  .article-content li {
    overflow-wrap: anywhere;
  }
  .article-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
  }
  .benefits-grid,
  .quiz-result-body {
    grid-template-columns: 1fr;
  }
  .growth-visual {
    flex-direction: column;
    align-items: flex-start;
  }
  .herb-grow-svg {
    width: 96px;
  }

  .quiz-intro-inner,
  .quiz-q-inner {
    padding: 44px 20px;
  }
  .quiz-intro-title {
    font-size: clamp(30px, 9vw, 38px);
  }
  .dosha-preview-row {
    flex-direction: column;
  }
  .quiz-q-text {
    font-size: clamp(24px, 7vw, 30px);
  }
  .quiz-opt {
    padding: 16px;
  }
  .quiz-result-header {
    padding: 54px 20px 44px;
  }
  .quiz-result-name {
    font-size: clamp(42px, 14vw, 58px);
  }
  .quiz-result-body {
    padding: 36px 20px;
    gap: 28px;
  }
  .result-actions .btn-primary,
  .result-actions .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .footer {
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .footer-links {
    gap: 14px 20px;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 13px;
  }
  .hero-stat {
    width: 50%;
    padding: 0 8px;
  }
  .herb-card {
    flex-basis: 152px;
  }
  .art-card--large {
    grid-column: auto;
  }
  .sq-grid {
    grid-template-columns: 1fr;
  }
  .sq-card:nth-child(n+4) {
    display: none;
  }
  .posts-loop .entry-title {
    font-size: 15px;
  }
  .entry-thumbnail {
    height: 180px;
  }
}

/* =========================================================
   Mobile polish v2: compact header + cleaner handpicked cards
   ========================================================= */

@media (max-width: 900px) {
  .nav {
    height: 56px !important;
    min-height: 56px !important;
    padding: 0 18px !important;
  }
  .nav-logo {
    font-size: 14px !important;
    gap: 8px !important;
    letter-spacing: 1px !important;
    line-height: 1 !important;
  }
  .nav-logo img {
    width: 28px !important;
    height: 28px !important;
  }
  .nav-toggle {
    width: 38px !important;
    height: 38px !important;
  }
  .nav-toggle span {
    width: 22px !important;
    height: 2px !important;
  }
  .nav-links {
    top: 56px !important;
  }
  .hero,
  .articles-page {
    padding-top: 56px !important;
  }
}

@media (max-width: 699px) {
  .articles-section {
    padding-top: 42px !important;
  }
  .articles-section .section-header {
    margin-bottom: 26px !important;
  }
  .articles-section .section-title {
    font-size: clamp(30px, 9vw, 38px) !important;
    line-height: 1.05 !important;
    margin-bottom: 14px !important;
  }

  /* Cards: one clean column on phones, no text crowding over thumbnails */
  .sq-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
  .sq-card,
  .sq-card--hero {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 20px !important;
  }
  .sq-card:nth-child(n+5) {
    display: none !important;
  }
  .sq-overlay,
  .sq-card--hero .sq-overlay {
    justify-content: flex-end !important;
    padding: 14px 16px !important;
    background: linear-gradient(to bottom, transparent 38%, rgba(8,12,4,0.92) 100%) !important;
  }
  .sq-cat,
  .sq-excerpt {
    display: none !important;
  }
  .sq-title,
  .sq-card--hero .sq-title {
    font-size: 17px !important;
    line-height: 1.18 !important;
    margin: 0 0 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.75) !important;
  }
  .sq-read {
    font-size: 11px !important;
    color: rgba(255,255,255,0.72) !important;
  }
}

@media (max-width: 420px) {
  .nav {
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 16px !important;
  }
  .nav-logo {
    font-size: 13px !important;
    max-width: 240px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .nav-logo img {
    width: 26px !important;
    height: 26px !important;
  }
  .nav-toggle {
    width: 36px !important;
    height: 36px !important;
  }
  .nav-links {
    top: 52px !important;
  }
  .hero,
  .articles-page {
    padding-top: 52px !important;
  }
  .sq-title,
  .sq-card--hero .sq-title {
    font-size: 16px !important;
  }
}