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

    :root {
      --deep-bark: #2C2420;
      --walnut: #5C4A3A;
      --warm-sand: #C4956A;
      --linen: #E8DDD0;
      --sage: #7A9E8E;
      --forest: #3D5C52;
      --cream: #F5F1EC;
      --font-display: 'Cormorant Garamond', Georgia, serif;
      --font-body: 'Nunito', sans-serif;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: var(--font-body);
      background: var(--deep-bark);
      color: var(--deep-bark);
      overflow-x: hidden;
    }

    /* NAV */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 0.4rem 2rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 72px;
      background: rgba(245, 241, 236, 0.92);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid rgba(92, 74, 58, 0.12);
    }

    .nav-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .nav-logo-mark {
      width: 36px;
      height: 36px;
    }

    .nav-brand {
      display: flex;
      flex-direction: column;
      line-height: 1.05;
    }

    .nav-wordmark {
      font-family: var(--font-body);
      font-size: 20px;
      font-weight: 800;
      color: var(--deep-bark);
      letter-spacing: -0.3px;
    }

    .nav-byline {
      font-family: var(--font-display);
      font-style: italic;
      font-weight: 400;
      font-size: 16px;
      color: var(--walnut);
      letter-spacing: 0.02em;
      margin-top: 1px;
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }

    .nav-links a {
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--walnut);
      text-decoration: none;
      transition: color 0.2s;
    }

    .nav-links a:hover { color: var(--forest); }

    /* Hamburger toggle — hidden on desktop, shown on mobile */
    .nav-toggle {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 44px;
      height: 44px;
      padding: 10px;
      background: none;
      border: none;
      cursor: pointer;
    }
    .nav-toggle span {
      display: block;
      width: 100%;
      height: 2px;
      border-radius: 2px;
      background: var(--deep-bark);
      transition: transform 0.25s ease, opacity 0.25s ease;
    }
    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


    /* VIDEO CAROUSEL */
    .video-carousel {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      z-index: 0;
      overflow: hidden;
    }

    .video-carousel video {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center top;
      opacity: 0;
      transition: opacity 1.2s ease;
    }

    .video-carousel video.active {
      opacity: 1;
    }

    .hero-overlay {
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.6) 40%,
        rgba(0,0,0,0.7) 70%,
        rgba(0,0,0,0.4) 100%
      );
      z-index: 1;
    }

    .hero > *:not(.video-carousel):not(.hero-overlay) {
      position: relative;
      z-index: 2;
    }

    .hero-eyebrow { color: #F5F1EC; text-shadow: 2px 4px 12px rgba(0,0,0,0.9); letter-spacing: 0.2em; }
    .hero-headline { color: rgba(245, 241, 236, 0.5) !important; -webkit-text-stroke: 0 !important; text-shadow: none !important; }
    .hero-sub { color: var(--warm-sand) !important; text-shadow: 0 2px 10px rgba(0,0,0,0.65) !important; }

    .video-dots {
      display: flex;
      gap: 8px;
      margin-top: 1.75rem;
      align-self: center;
      z-index: 3;
    }

    .video-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(245, 241, 236, 0.4);
      border: none;
      cursor: pointer;
      padding: 0;
      transition: background 0.3s, transform 0.3s;
    }

    .video-dot.active {
      background: #F5F1EC;
      transform: scale(1.3);
    }

    


    


    .hero-headline-wrap {
      background: transparent;
      padding: 1.5rem 2.5rem;
      border-radius: 12px;
      margin-bottom: 1.25rem;
      display: inline-block;
      backdrop-filter: blur(4px);
    }

    /* HERO */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 8rem 2rem 5rem;
      background: var(--cream);
      position: relative;
      overflow: hidden;
    }

    .hero::before {
      content: '';
      position: absolute;
      top: -10%;
      left: 50%;
      transform: translateX(-50%);
      width: 700px;
      height: 700px;
      background: radial-gradient(circle, rgba(122,158,142,0.12) 0%, transparent 70%);
      pointer-events: none;
    }

    

    .hero-eyebrow {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--sage);
      margin-bottom: 1.25rem;
      animation: fadeUp 0.8s ease 0.1s both;
    }

    .hero-headline {
      font-family: var(--font-display);
      font-size: clamp(2.4rem, 5vw, 4.2rem);
      font-weight: 300;
      font-style: italic;
      line-height: 1.2;
      color: rgba(245, 241, 236, 0.5);
      max-width: 780px;
      margin-bottom: 1.75rem;
      animation: fadeUp 0.8s ease 0.2s both;
    }

    .hero-sub {
      font-size: 20px;
      font-weight: 400;
      color: var(--walnut);
      max-width: 580px;
      line-height: 1.8;
      margin-bottom: 3.5rem;
      animation: fadeUp 0.8s ease 0.3s both;
    }

    .hero-cta {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
      animation: fadeUp 0.8s ease 0.4s both;
    }

    .btn-primary {
      background: var(--forest);
      color: var(--cream);
      padding: 0.875rem 2rem;
      border-radius: 100px;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-decoration: none;
      transition: background 0.2s, transform 0.2s;
      border: none;
      cursor: pointer;
    }

    .btn-primary:hover { background: var(--deep-bark); transform: translateY(-1px); }

    .btn-secondary {
      background: #E8DDD0;
      color: #2C2420;
      padding: 0.875rem 2rem;
      border-radius: 100px;
      font-family: var(--font-body);
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-decoration: none;
      border: 1.5px solid #E8DDD0;
      transition: border-color 0.2s, color 0.2s, background 0.2s;
      cursor: pointer;
    }

    .btn-secondary:hover { background: #F5F1EC; border-color: #F5F1EC; color: #2C2420; }

    

    

    

    /* TAGLINE BAND */
    .tagline-band {
      background: var(--deep-bark);
      padding: 1.5rem 2rem;
      text-align: center;
    }

    .tagline-band p {
      font-family: var(--font-display);
      font-size: clamp(1rem, 2.5vw, 1.4rem);
      font-style: italic;
      color: var(--warm-sand);
      letter-spacing: 0.02em;
    }

    /* ABOUT */
    .about {
      background: var(--linen);
      padding: 2.5rem 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .about-inner {
      max-width: 680px;
      text-align: center;
    }

    .founder-photo {
      display: block;
      width: 190px;
      height: 190px;
      border-radius: 50%;
      object-fit: cover;
      object-position: center 22%;
      margin: 1.75rem auto 2rem;
      border: 4px solid var(--cream);
      box-shadow: 0 8px 24px rgba(44,36,32,0.18);
    }

    .section-eyebrow {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--sage);
      margin-bottom: 1.25rem;
    }

    .section-title {
      font-family: var(--font-display);
      font-size: clamp(2rem, 4vw, 3rem);
      font-weight: 400;
      line-height: 1.25;
      color: var(--deep-bark);
      margin-bottom: 1.5rem;
    }

    .section-body {
      font-size: 16px;
      line-height: 1.85;
      color: var(--walnut);
    }

    .section-body p + p { margin-top: 1rem; }

    /* PILLARS */
    .pillars {
      background: var(--deep-bark);
      padding: 2.5rem 2rem;
    }

    .pillars-inner {
      max-width: 1100px;
      margin: 0 auto;
    }

    .pillars-header {
      text-align: center;
      margin-bottom: 4rem;
    }

    .pillars-header .section-eyebrow { color: var(--warm-sand); }

    .pillars-header .section-title { color: var(--cream); }

    .pillars-header .section-body { color: var(--linen); opacity: 0.8; max-width: 520px; margin: 0 auto; }

    .pillars-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 1.5rem;
    }

    .pillar-card {
      display: block;
      text-decoration: none;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px;
      padding: 2rem 1.5rem;
      text-align: center;
      transition: background 0.2s, transform 0.2s;
    }

    .pillar-card:hover {
      background: rgba(255,255,255,0.07);
      transform: translateY(-3px);
    }

    .pillar-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.25rem;
      font-size: 22px;
    }

    .pillar-name {
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--warm-sand);
      margin-bottom: 0.75rem;
    }

    .pillar-desc {
      font-size: 13.5px;
      line-height: 1.7;
      color: var(--linen);
      opacity: 0.75;
    }

    /* NEWSLETTER */
    .newsletter {
      background: var(--linen);
      padding: 2.5rem 2rem;
      text-align: center;
    }

    .newsletter-inner { max-width: 560px; margin: 0 auto; }

    .newsletter .section-title { margin-bottom: 1rem; }

    .newsletter .section-body { margin-bottom: 2.5rem; }

    .newsletter-form {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .newsletter-input {
      flex: 1;
      min-width: 220px;
      padding: 0.875rem 1.25rem;
      border-radius: 100px;
      border: 1.5px solid var(--walnut);
      background: var(--cream);
      font-family: var(--font-body);
      font-size: 14px;
      color: var(--deep-bark);
      outline: none;
      transition: border-color 0.2s;
    }

    .newsletter-input:focus { border-color: var(--forest); }
    .newsletter-input::placeholder { color: var(--walnut); opacity: 0.6; }

    .newsletter-note {
      margin-top: 1rem;
      font-size: 12px;
      color: var(--walnut);
      opacity: 0.7;
    }

    /* SOCIAL */
    .social-section {
      background: var(--forest);
      padding: 2.5rem 2rem;
      text-align: center;
    }

    .social-section .section-title { color: var(--cream); margin-bottom: 1rem; }
    .social-section .section-body { color: var(--linen); opacity: 0.85; margin-bottom: 1rem; }

    .social-links {
      display: flex;
      gap: 16px;
      justify-content: center;
      flex-wrap: wrap;
    }

    .social-link {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0.75rem 1.5rem;
      border-radius: 100px;
      border: 1.5px solid rgba(245,241,236,0.3);
      color: var(--cream);
      text-decoration: none;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.04em;
      transition: background 0.2s, border-color 0.2s;
    }

    .social-link:hover { background: rgba(245,241,236,0.1); border-color: var(--cream); }

    .social-icons {
      display: flex;
      gap: 16px;
      justify-content: center;
      margin-top: 0.5rem;
      margin-bottom: 1.5rem;
    }

    .social-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1.5px solid rgba(245,241,236,0.3);
      color: var(--cream);
      transition: background 0.2s, border-color 0.2s, transform 0.2s;
    }

    .social-icon:hover {
      background: rgba(245,241,236,0.1);
      border-color: var(--cream);
      transform: translateY(-2px);
    }

    /* FOOTER */
    footer {
      background: var(--deep-bark);
      padding: 2.5rem 2rem;
      text-align: center;
    }

    .footer-logo {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-bottom: 1rem;
      text-decoration: none;
    }

    .footer-wordmark {
      font-family: var(--font-body);
      font-size: 18px;
      font-weight: 800;
      color: var(--cream);
    }

    .footer-tagline {
      font-family: var(--font-display);
      font-style: italic;
      font-size: 13px;
      color: var(--warm-sand);
      margin-bottom: 1.5rem;
    }

    .footer-links {
      display: flex;
      gap: 1.5rem;
      justify-content: center;
      list-style: none;
      margin-bottom: 2rem;
      flex-wrap: wrap;
    }

    .footer-links a {
      font-size: 12px;
      color: var(--linen);
      opacity: 0.6;
      text-decoration: none;
      transition: opacity 0.2s;
    }

    .footer-links a:hover { opacity: 1; }

    .footer-copy {
      font-size: 11px;
      color: var(--linen);
      opacity: 0.35;
    }

    /* ANIMATIONS */
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes scrollPulse {
      0%, 100% { opacity: 0.4; }
      50% { opacity: 1; }
    }

    .reveal {
      opacity: 0;
      transform: translateY(24px);
      transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* ===== TABLET / MOBILE NAV (hamburger menu) ===== */
    @media (max-width: 768px) {
      .nav-toggle { display: flex; }
      nav { padding: 0.4rem 1.5rem; }
      .nav-logo img { height: 52px !important; width: 52px !important; }

      .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(245, 241, 236, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid rgba(92, 74, 58, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
      }
      .nav-links.open { max-height: 340px; }
      .nav-links li { width: 100%; }
      .nav-links a {
        display: block;
        padding: 1rem 1.5rem;
        font-size: 14px;
        border-top: 1px solid rgba(92, 74, 58, 0.08);
      }
      .nav-links a:hover { background: rgba(92, 74, 58, 0.06); }
    }

    /* ===== MOBILE ===== */
    @media (max-width: 600px) {
      .about, .pillars, .newsletter, .social-section { padding: 2rem 1.5rem; }
      .pillars-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
      .hero { padding: 7rem 1.5rem 5rem; }
      .hero-sub { font-size: 17px; margin-bottom: 2.5rem; }
      .hero-headline-wrap { padding: 1rem 1.25rem; }
      .newsletter-form { flex-direction: column; align-items: stretch; }
      .newsletter-input { width: 100%; min-width: 0; }
      .topic > summary { padding: 1.1rem 1.2rem; }
      .topic-body { padding: 0 1.2rem 1.2rem; }
      .resource-item { padding: 0.75rem 0.85rem; }
    }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation: none !important; transition: none !important; }
    }

    /* ===================================================== */
    /* LIFE LAYER SUBPAGES                                    */
    /* ===================================================== */
    .page-hero {
      position: relative;
      padding: 5.5rem 2rem 2.5rem;
      text-align: center;
      background: var(--deep-bark);
      color: var(--cream);
    }
    .page-hero--forest { background: var(--forest); }
    .page-hero--walnut { background: var(--walnut); }

    .page-hero .section-eyebrow { color: var(--warm-sand); }

    /* Round icon with the title sitting just beneath it */
    .page-icon {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 0.75rem;
      font-size: 44px;
      background: rgba(255, 255, 255, 0.08);
    }
    .page-title {
      font-family: var(--font-display);
      font-weight: 500;
      font-size: clamp(2.2rem, 5vw, 3.2rem);
      line-height: 1.1;
      color: var(--cream);
      margin-bottom: 0.75rem;
    }

    .page-sub {
      max-width: 580px;
      margin: 0 auto;
      font-size: 1.05rem;
      line-height: 1.7;
      color: var(--linen);
      opacity: 0.85;
    }

    /* Content sections */
    .layer-section { padding: 2.5rem 2rem; }

    /* Divider between the dropdown topics and the newsletter on layer pages */
    .layer-section + .newsletter {
      border-top: 1px solid rgba(92, 74, 58, 0.18);
    }
    .layer-section--cream { background: var(--cream); }
    .layer-section--linen { background: var(--linen); }
    .layer-inner { max-width: 720px; margin: 0 auto; }
    .layer-inner--center { text-align: center; }
    .layer-section .section-title { margin-bottom: 1.5rem; }

    /* Point cards */
    .layer-points {
      list-style: none;
      margin-top: 2.25rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      text-align: left;
    }
    .layer-point {
      background: #fff;
      border: 1px solid rgba(92,74,58,0.12);
      border-radius: 14px;
      padding: 1.4rem 1.6rem;
    }
    .layer-point h3 {
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--warm-sand);
      margin-bottom: 0.5rem;
    }
    .layer-point p {
      font-size: 15px;
      line-height: 1.7;
      color: var(--walnut);
      opacity: 0.85;
    }

    /* Back to home link */
    .layer-back {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 2.75rem;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      color: var(--warm-sand);
      text-decoration: none;
      transition: opacity 0.2s;
    }
    .layer-back:hover { opacity: 0.7; }

    /* Expandable topics (accordion) */
    .topic-list {
      display: grid;
      gap: 1rem;
      margin-top: 2.5rem;
      text-align: left;
    }

    .topic {
      background: #fff;
      border: 1px solid rgba(92,74,58,0.14);
      border-radius: 16px;
      overflow: hidden;
    }

    .topic > summary {
      list-style: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.4rem 1.6rem;
      font-family: var(--font-display);
      font-size: clamp(1.3rem, 3vw, 1.7rem);
      font-weight: 500;
      color: var(--deep-bark);
      transition: background 0.2s;
    }
    .topic > summary::-webkit-details-marker { display: none; }
    .topic > summary:hover { background: rgba(92,74,58,0.04); }

    .topic-chevron {
      font-size: 1.6rem;
      color: var(--warm-sand);
      transition: transform 0.25s ease;
      line-height: 1;
    }
    .topic[open] .topic-chevron { transform: rotate(180deg); }

    .topic-body {
      padding: 0 1.6rem 1.6rem;
    }

    .topic-intro {
      font-size: 15.5px;
      line-height: 1.75;
      color: var(--walnut);
      opacity: 0.9;
      margin-bottom: 1.75rem;
    }

    /* Resource groups inside a topic */
    .resource-group { margin-bottom: 1.5rem; }
    .resource-group:last-child { margin-bottom: 0; }

    .resource-group h4 {
      font-family: var(--font-body);
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--sage);
      margin-bottom: 0.75rem;
    }

    .resource-item {
      display: flex;
      align-items: center;
      gap: 0.9rem;
      padding: 0.85rem 1rem;
      border: 1px solid rgba(92,74,58,0.12);
      border-radius: 12px;
      margin-bottom: 0.6rem;
      text-decoration: none;
      transition: background 0.2s, border-color 0.2s, transform 0.2s;
    }
    .resource-item:last-child { margin-bottom: 0; }
    .resource-item:hover {
      background: var(--cream);
      border-color: var(--warm-sand);
      transform: translateY(-1px);
    }

    .resource-icon {
      flex-shrink: 0;
      width: 38px;
      height: 38px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      font-weight: 700;
      color: var(--cream);
      background: var(--walnut);
    }
    .resource-icon--download { background: var(--forest); }
    .resource-icon--pdf { background: var(--warm-sand); font-size: 10px; letter-spacing: 0.03em; }
    .resource-icon--link { background: var(--sage); }

    .resource-text {
      display: flex;
      flex-direction: column;
      line-height: 1.35;
    }
    .resource-text strong {
      font-size: 15px;
      font-weight: 700;
      color: var(--deep-bark);
    }
    .resource-text small {
      font-size: 12.5px;
      color: var(--walnut);
      opacity: 0.75;
    }

    /* ===== TABBED SECTIONS (Money, Purpose) ===== */
    .tabs { margin-top: 2.5rem; text-align: left; }
    .tab-buttons {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.5rem;
      margin-bottom: 1.75rem;
    }
    .tab-btn {
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.04em;
      color: var(--walnut);
      background: none;
      border: 1.5px solid rgba(92, 74, 58, 0.25);
      border-radius: 100px;
      padding: 0.55rem 1.25rem;
      cursor: pointer;
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }
    .tab-btn:hover { border-color: var(--warm-sand); }
    .tab-btn.active {
      background: var(--deep-bark);
      border-color: var(--deep-bark);
      color: var(--cream);
    }
    .tab-panel { display: none; }
    .tab-panel.active { display: block; animation: fadeUp 0.4s ease both; }

    /* ===== FLIP CARDS (Body) ===== */
    .flip-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-top: 2.5rem;
    }
    .flip-card {
      border: none;
      background: none;
      padding: 0;
      height: 180px;
      cursor: pointer;
      perspective: 900px;
      font-family: inherit;
    }
    .flip-inner {
      position: relative;
      display: block;
      width: 100%;
      height: 100%;
      transition: transform 0.5s ease;
      transform-style: preserve-3d;
    }
    .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
    .flip-face {
      position: absolute;
      inset: 0;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      border-radius: 16px;
      border: 1px solid rgba(92, 74, 58, 0.14);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 1.5rem;
    }
    .flip-front { background: #fff; gap: 0.6rem; }
    .flip-icon { font-size: 34px; }
    .flip-title {
      font-family: var(--font-display);
      font-size: 1.35rem;
      font-weight: 600;
      line-height: 1.15;
      color: var(--deep-bark);
    }
    .flip-hint {
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--sage);
    }
    .flip-back {
      background: var(--forest);
      color: var(--cream);
      transform: rotateY(180deg);
      font-size: 15px;
      line-height: 1.6;
    }

    /* ===== FLIP CARD — THIRD STATE (calculator) ===== */
    .flip-card--calc[data-state="2"] .flip-inner { transform: rotateY(180deg); }
    .flip-card--calc[data-state="3"] { height: auto; }
    .flip-card--calc[data-state="3"] .flip-inner { display: none; }
    .flip-card--calc[data-state="3"] .flip-calc { display: flex; }

    .flip-cta {
      margin-top: 0.9rem;
      background: none;
      border: 1px solid rgba(245, 241, 236, 0.45);
      color: var(--cream);
      border-radius: 100px;
      padding: 0.4rem 0.95rem;
      font-family: var(--font-body);
      font-size: 11.5px;
      font-weight: 700;
      letter-spacing: 0.04em;
      cursor: pointer;
      transition: background 0.2s;
    }
    .flip-cta:hover { background: rgba(245, 241, 236, 0.12); }

    .flip-calc {
      display: none;
      flex-direction: column;
      gap: 0.6rem;
      text-align: left;
      background: var(--forest);
      color: var(--cream);
      border: 1px solid rgba(92, 74, 58, 0.14);
      border-radius: 16px;
      padding: 1.25rem;
    }
    .calc-head {
      font-family: var(--font-display);
      font-size: 1.2rem;
      font-weight: 600;
    }
    .calc-fields { display: flex; flex-direction: column; gap: 0.55rem; }
    .calc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.55rem; align-items: end; }
    .calc-fields label {
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--linen);
    }
    .calc-in {
      width: 100%;
      min-width: 0;
      height: 38px;
      font-family: var(--font-body);
      font-size: 14px;
      padding: 0.5rem 0.6rem;
      border-radius: 8px;
      border: 1px solid rgba(245, 241, 236, 0.3);
      background: rgba(255, 255, 255, 0.08);
      color: var(--cream);
    }
    .calc-in::placeholder { color: rgba(245, 241, 236, 0.5); }
    .calc-go {
      align-self: flex-start;
      background: var(--warm-sand);
      color: var(--deep-bark);
      border: none;
      border-radius: 100px;
      padding: 0.5rem 1.15rem;
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
      cursor: pointer;
    }
    .calc-out { min-height: 1.2em; font-size: 14px; line-height: 1.5; }
    .calc-out strong { color: var(--warm-sand); }
    .calc-tips {
      list-style: disc;
      padding-left: 1.1rem;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
      font-size: 12.5px;
      line-height: 1.5;
      color: var(--linen);
    }
    .flip-restart {
      align-self: flex-start;
      background: none;
      border: none;
      color: var(--linen);
      font-family: var(--font-body);
      font-size: 12px;
      cursor: pointer;
      padding: 0;
      text-decoration: underline;
    }

    /* ===== HOME — expanding panel cards ===== */
    .cards-header { text-align: center; }
    .flip-tagline {
      font-size: 12.5px;
      line-height: 1.4;
      color: var(--walnut);
      opacity: 0.85;
    }
    .flip-panel {
      display: none;
      flex-direction: column;
      gap: 0.6rem;
      text-align: left;
      background: var(--forest);
      color: var(--cream);
      border: 1px solid rgba(92, 74, 58, 0.14);
      border-radius: 16px;
      padding: 1.25rem;
    }
    .flip-panel p { font-size: 14px; line-height: 1.6; }
    .flip-panel-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }
    .flip-panel--text { text-align: center; align-items: center; }
    .flip-panel--text p { font-size: 15px; line-height: 1.6; }
    .flip-panel--text .flip-restart { align-self: center; }

    /* State machine (overrides body's rotate rules; must follow them) */
    .flip-card--panels[data-state="2"] { height: auto; }
    .flip-card--panels[data-state="2"] .flip-inner { display: none; }
    .flip-card--panels[data-state="2"] .flip-panel--back { display: flex; }
    .flip-card--panels[data-state="3"] { height: auto; }
    .flip-card--panels[data-state="3"] .flip-inner { display: none; }
    .flip-card--panels[data-state="3"] .flip-panel--back { display: none; }

    /* Range sliders (home mood card) */
    input[type="range"].calc-in {
      height: auto;
      padding: 0;
      border: none;
      background: transparent;
      accent-color: var(--warm-sand);
      cursor: pointer;
    }

    /* ===== PURPOSE — select-based calculators ===== */
    .calc-title {
      font-family: var(--font-display);
      font-size: 1.2rem;
      font-weight: 600;
    }
    .calc-row:has(.calc-label) { display: block; }
    .calc-label {
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--linen);
      margin-bottom: 0.3rem;
    }
    .calc-select,
    .calc-input {
      width: 100%;
      min-width: 0;
      height: 38px;
      font-family: var(--font-body);
      font-size: 14px;
      padding: 0.5rem 0.6rem;
      border-radius: 8px;
      border: 1px solid rgba(245, 241, 236, 0.3);
      background: rgba(255, 255, 255, 0.08);
      color: var(--cream);
    }
    .calc-input::placeholder { color: rgba(245, 241, 236, 0.5); }
    .calc-select option { color: var(--deep-bark); }
    .calc-btn {
      align-self: flex-start;
      background: var(--warm-sand);
      color: var(--deep-bark);
      border: none;
      border-radius: 100px;
      padding: 0.5rem 1.15rem;
      font-family: var(--font-body);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
      cursor: pointer;
    }
    .calc-result { min-height: 1.2em; font-size: 14px; line-height: 1.55; color: var(--warm-sand); }
    .calc-divider { height: 1px; background: rgba(245, 241, 236, 0.18); border: none; margin: 0.2rem 0; }
    input[type="range"].calc-input {
      height: auto;
      border: none;
      background: transparent;
      accent-color: var(--warm-sand);
      cursor: pointer;
    }

    /* ===== PURPOSE — philosophy section ===== */
    .philosophy { padding: 2.5rem 2rem; background: var(--cream); }
    .philosophy + .newsletter { border-top: 1px solid rgba(92, 74, 58, 0.18); }
    .philosophy-inner { max-width: 720px; margin: 0 auto; text-align: center; }
    .philosophy-grid {
      margin-top: 2.25rem;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      text-align: left;
    }
    .philosophy-card {
      background: #fff;
      border: 1px solid rgba(92, 74, 58, 0.12);
      border-radius: 14px;
      padding: 1.4rem 1.6rem;
    }
    .philosophy-card h3 {
      font-family: var(--font-body);
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--warm-sand);
      margin-bottom: 0.5rem;
    }
    .philosophy-card p {
      font-size: 15px;
      line-height: 1.7;
      color: var(--walnut);
      opacity: 0.85;
    }

    /* ===== Disclaimer (below cards grid) ===== */
    .disclaimer {
      max-width: 780px;
      margin: 2rem auto 0;
      padding: 1rem 1.5rem;
      background: rgba(92, 74, 58, 0.06);
      border-left: 3px solid var(--warm-sand);
      border-radius: 0 8px 8px 0;
      font-size: 12px;
      color: var(--walnut);
      line-height: 1.6;
      opacity: 0.85;
    }
    .disclaimer a {
      color: var(--forest);
      text-decoration: underline;
    }

    @media (max-width: 600px) {
      .page-hero { padding: 5rem 1.5rem 2rem; }
      .layer-section { padding: 2rem 1.25rem; }
      .flip-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 2rem; align-items: start; }
      .calc-row { grid-template-columns: 1fr; }

      /* Panels cards (layer pages) size to their content so long titles/taglines never overflow */
      .flip-card--panels { height: auto; }
      .flip-card--panels .flip-inner { position: static; height: auto; }
      .flip-card--panels .flip-front {
        position: relative;
        inset: auto;
        min-height: 172px;
        padding: 1.25rem 1rem;
      }
      .flip-icon { font-size: 30px; }
      .flip-title { font-size: 1.1rem; line-height: 1.12; }
      .flip-tagline { font-size: 11.5px; }

      /* Body.html rotate cards: a little more height, tighter padding, smaller back text */
      .flip-card:not(.flip-card--panels) { height: 185px; }
      .flip-card:not(.flip-card--panels) .flip-face { padding: 1.1rem 0.9rem; }
      .flip-back { font-size: 13.5px; line-height: 1.5; }
    }

    /* Phones — single column gives every card full width so nothing is cramped */
    @media (max-width: 480px) {
      .flip-grid { grid-template-columns: 1fr; gap: 0.85rem; }
      .flip-card--panels .flip-front { min-height: 150px; padding: 1.5rem; }
      .flip-title { font-size: 1.3rem; }
      .flip-icon { font-size: 34px; }
      .flip-card:not(.flip-card--panels) { height: 175px; }
      .flip-card:not(.flip-card--panels) .flip-face { padding: 1.5rem; }
      .flip-back { font-size: 15px; }
    }
