/*
Theme Name: The Five Within
Theme URI: https://thefivewithin.com/
Author: Cynthia
Author URI: https://thefivewithin.com/
Description: Custom WordPress theme for The Five Within
Version: 1.1
Text Domain: the-five-within
*/

:root{
  --ink:#0f0f0f;
  --ink-2:#151515;
  --gold:#c2a25d;
  --gold-2:#b89448;
  --seal:#6e1e1e;
  --paper:#ffffff;
  --paper-2:#fbfaf7;
  --text:#121212;
  --muted:#6b6b6b;
  --border:rgba(194,162,93,.28);
  --shadow:0 14px 32px rgba(0,0,0,.10);
  --radius:16px;
  --max:1680px;
}

*{
  box-sizing:border-box;
}

html,body{
  height:100%;
}

html{
  margin-top:0 !important;
}

body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--text);
  background:var(--paper);
  letter-spacing:.2px;
}

img{
  max-width:100%;
  height:auto;
}

a{
  color:inherit;
  text-decoration:none;
}

button,
input,
textarea,
select{
  font:inherit;
}

.site-main{
  display:block;
}

.homeFlowMain{
  position:relative;
  overflow:hidden;
}

.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(15,15,15,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(194,162,93,.18);
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:76px;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:210px;
}

.mark{
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid rgba(194,162,93,.70);
  display:grid;
  place-items:center;
  background:linear-gradient(145deg, rgba(194,162,93,.18), rgba(0,0,0,0));
  overflow:hidden;
}

.mark img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.brandText{
  line-height:1.05;
  color:#f3f0ea;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
}

.brandText b{
  display:block;
  font-weight:600;
  letter-spacing:.7px;
}

.brandText span{
  display:block;
  margin-top:5px;
  color:rgba(243,240,234,.72);
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size:12px;
  letter-spacing:.3px;
}

/* desktop nav */
nav{
  display:flex;
  align-items:center;
  gap:6px;
}

.navItem{
  position:relative;
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  color:rgba(243,240,234,.92);
  font-size:14px;
  cursor:pointer;
  user-select:none;
}

.navItem:hover{
  background:rgba(194,162,93,.10);
}

.navItem .dot{
  width:6px;
  height:6px;
  border-radius:99px;
  background:var(--seal);
  margin-left:8px;
  opacity:.85;
}

.caret{
  width:8px;
  height:8px;
  border-right:1.6px solid rgba(243,240,234,.70);
  border-bottom:1.6px solid rgba(243,240,234,.70);
  transform:rotate(45deg);
  margin-left:8px;
  margin-top:-2px;
}

.dropdown{
  position:absolute;
  top:46px;
  left:0;
  min-width:260px;
  padding:10px;
  background:rgba(15,15,15,.98);
  border:1px solid rgba(194,162,93,.22);
  border-radius:16px;
  box-shadow:0 18px 40px rgba(0,0,0,.35);
  display:none;
}

.navItem.hasDropdown:hover .dropdown{
  display:block;
}

.navItem.hasDropdown{
  position:relative;
}

.navLink{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:inherit;
  width:100%;
  height:100%;
}

.ddTitle{
  color:rgba(243,240,234,.70);
  font-size:12px;
  letter-spacing:.7px;
  text-transform:uppercase;
  padding:6px 10px 8px;
}

.dropdown--wide{
  min-width:720px;
  max-width:calc(100vw - 48px);
  left:50%;
  transform:translateX(-50%);
}

.ddGrid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
  padding:6px 6px 10px;
}

.ddCol{
  padding:10px;
  border-radius:14px;
}

.ddCol a{
  display:block;
  padding:8px 10px;
  border-radius:10px;
  font-size:13.5px;
  color:rgba(243,240,234,.78);
}

.ddCol a:hover{
  background:rgba(194,162,93,.12);
  color:rgba(243,240,234,.95);
}

.ddColHead{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(194,162,93,.22);
}

.ddColHead b{
  font-size:14px;
  letter-spacing:.2px;
  color:rgba(243,240,234,.95);
}

.miniIcon{
  width:26px;
  height:26px;
  border-radius:10px;
  border:1px solid rgba(194,162,93,.26);
  background:rgba(194,162,93,.10);
  display:grid;
  place-items:center;
  color:rgba(243,240,234,.90);
  flex:0 0 auto;
  font-size:12px;
}

.miniIcon--accent{
  border-color:rgba(110,30,30,.55) !important;
  background:rgba(110,30,30,.12) !important;
}

/* header right */
.headerRight{
  display:flex;
  align-items:center;
  gap:10px;
  color:rgba(243,240,234,.75);
  font-size:13px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(194,162,93,.22);
  background:rgba(194,162,93,.10);
  color:rgba(243,240,234,.92);
  cursor:pointer;
  white-space:nowrap;
}

.pill:hover{
  border-color:rgba(194,162,93,.45);
}

.pill .badge{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;

  background:#c2a25d;
  border:1px solid rgba(255,255,255,.12);

  color:#111;
  font-size:11px;
  font-weight:700;
  line-height:1;
  transition:all .18s ease;
  box-shadow:
    0 0 0 2px rgba(15,15,15,.35),
    0 4px 12px rgba(194,162,93,.35);
}

.pill:hover .badge{
  transform:scale(1.08);
}

/* mobile nav */
.burger{
  display:none;
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid rgba(194,162,93,.22);
  background:rgba(0,0,0,.22);
  cursor:pointer;
  place-items:center;
  color:rgba(243,240,234,.90);
}

.burger:hover{
  border-color:rgba(194,162,93,.45);
}

#navToggle{
  display:none;
}

.mobilePanel{
  display:none;
  padding:14px 0 20px;
  border-top:1px solid rgba(194,162,93,.14);
}

.mobileGrid{
  display:grid;
  gap:12px;
}

.mGroup{
  border:1px solid rgba(194,162,93,.16);
  border-radius:18px;
  overflow:hidden;
  background:rgba(8,8,8,.42);
  box-shadow:0 10px 24px rgba(0,0,0,.18);
}

.mHead{
  padding:14px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  color:rgba(243,240,234,.95);
  font-weight:700;
  letter-spacing:.2px;
  background:rgba(194,162,93,.06);
  border-bottom:1px solid rgba(194,162,93,.10);
}

.mLinks{
  padding:10px 12px 14px;
  display:grid;
  gap:8px;
  color:rgba(243,240,234,.84);
}

.mLinks a{
  display:block;
  padding:12px 12px;
  border-radius:14px;
  background:rgba(194,162,93,.06);
  border:1px solid rgba(194,162,93,.12);
  color:rgba(243,240,234,.90);
  text-decoration:none;
  line-height:1.45;
}

.mLinks a:hover{
  border-color:rgba(194,162,93,.35);
  background:rgba(194,162,93,.10);
}

.mSmall{
  font-size:12.5px;
  color:rgba(243,240,234,.68);
  margin-top:6px;
  line-height:1.5;
}

@media (max-width:980px){
  nav,
  .headerRight{
    display:none;
  }

  .burger{
    display:grid;
  }

  #navToggle:checked ~ .mobilePanel{
    display:block;
  }
}

/* hero */
.hero{
  background:url("assets/images/bkg4.png") center / cover no-repeat;
  color:#3c3c3c;
  padding:100px 0 144px;
  min-height:500px;
}

.heroGrid{
  display:grid;
  grid-template-columns:1fr;
}

.hero .kicker{
  color:#6f6f6f;
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
  font-size:13px;
  text-transform:uppercase;
  letter-spacing:.9px;
}

.hero .kicker .line{
  width:48px;
  height:1px;
  background:rgba(194,162,93,.55);
  display:inline-block;
}

.hero h1{
  color:#1f1f1f;
  margin:0 0 16px;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:clamp(42px, 6vw, 76px);
  line-height:1.03;
  font-weight:650;
  max-width:720px;
}

.hero p{
  color:#4a4a4a;
  margin:0;
  max-width:620px;
  line-height:1.8;
  font-size:16px;
}

.heroCtas{
  margin-top:24px;
}

.ctaGhost{

  border-radius:14px;
  border:1px solid rgba(243,240,234,.22);
  background:rgba(0,0,0,.18);
  color:rgba(243,240,234,.90);
  cursor:pointer;
}

a.ctaGhost{
  display:inline-block;
  text-decoration:none;
}

.hero .ctaGhost{
  margin-top: 26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;

  min-height:48px;
  padding:0 22px;

  border-radius:999px;

  background:#c2a25d;
  border:1px solid rgba(194,162,93,.78);

  color:#151515;
  font-weight:700;

  transition:.22s ease;
}

.hero .ctaGhost:hover{
  background:#d2af68;
  border-color:#d2af68;
  transform:translateY(-2px);
  color:#151515;
}

.ctaGhost:hover{
  border-color:rgba(194,162,93,.45);
}

@media (max-width:920px){
  .heroGrid{
    grid-template-columns:1fr;
  }
}

/* trust bar */
.trustBar{
  background:#ffffff;
  padding:60px 0 70px;
}

.trustGrid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:34px;
  align-items:start;
}

.trustItem{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:20px;
  padding-top:6px;
}

.trustItem img{
  width:180px;
  height:180px;
  object-fit:contain;
  display:block;
  padding:10px;
}

.trustItem b{
  display:block;
  font-weight:600;
  font-size:16px;
  color:#1f1f1f;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing:.2px;
}

.trustItem .trustText{
  margin:5px;
  color:#4a4a4a;
  font-size:14px;
  line-height:1.55;
}

@media (max-width:900px){
  .trustGrid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:520px){
  .trustGrid{
    grid-template-columns:1fr;
  }
}

/* white sections */
.section{
  padding:46px 0;
  background:var(--paper);
}

.section.alt{
  background:var(--paper-2);
  border-top:1px solid rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.06);
}

.sectionHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:16px;
  margin-bottom:16px;
}

.sectionHead h2{
  margin:0;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing:.5px;
  font-weight:650;
  font-size:26px;
}

.sectionHead p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
  max-width:560px;
  font-size:14px;
}

.sectionHead.center{
  flex-direction:column;
  align-items:center;
  text-align:center;
  justify-content:center;
  gap:10px;
  margin-bottom:30px;
}

.sectionHead.center p{
  max-width:640px;
}

/* featured carousel */
.featuredWrap{
  position:relative;
}

.featuredTrack{
  display:flex;
  gap:16px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:8px 2px 18px;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
  cursor:grab;
  user-select:none;
  scrollbar-width:none;
}

.featuredTrack::-webkit-scrollbar{
  height:0;
}

.featuredTrack.is-dragging{
  cursor:grabbing;
}

.featuredCard{
  flex:0 0 calc((100% - 16px * 4) / 5);
  scroll-snap-align:start;
  background:transparent;
  border:none;
  box-shadow:none;
  overflow:visible;
  min-width:220px;
}

.featuredFrame{
  position:relative;
  display:block;
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  overflow:hidden;
  background:#f7f4ee;
  margin-bottom:18px;
}

.featuredImg{
  position:relative;
  height:270px;
  border-bottom:none;
  background:transparent;
  overflow:hidden;
}

.featuredImg img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  padding:0;
  transition:opacity .22s ease, transform .24s ease;
}

.featuredImg .imgMain{
  opacity:1;
}

.featuredImg .imgHover{
  opacity:0;
}

.featuredCard:hover .featuredImg .imgMain{
  opacity:0;
}

.featuredCard:hover .featuredImg .imgHover{
  opacity:1;
  transform:scale(1.02);
}

.badgeRow{
  position:absolute;
  top:10px;
  left:10px;
  display:flex;
  align-items:center;
  gap:8px;
  z-index:2;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(8px);
  line-height:1;
  white-space:nowrap;
  font-size:12px;
}

.badge--promo{
  background:#151515;
  color:#fff;
  border-color:rgba(15,15,15,.75);
  font-weight:700;
}

.badge--element{
  width:30px;
  height:30px;
  padding:4px;
  border-color:rgba(194,162,93,.32);
  background:rgba(255,255,255,.92);
}

.badge--element img{
  position:static;
  width:20px;
  height:20px;
  object-fit:contain;
  display:block;
  opacity:1;
  transform:none;
}

.featuredInfo{
  padding:0 2px;
}

.featuredName{
  display:block;
  font-weight:650;
  font-size:14px;
  line-height:1.35;
  margin-bottom:8px;
  color:#1a1a1a;
}

.featuredName:hover{
  color:#7a6a38;
}

.featuredPriceRow{
  display:flex;
  align-items:baseline;
  gap:10px;
}

.featuredPrice{
  font-weight:650;
  color:#1a1a1a;
  font-size:14px;
}

.featuredPrice del{
  color:#8a8a8a;
  margin-right:6px;
  font-size:12.5px;
}

.featuredPrice ins{
  text-decoration:none;
  color:#1a1a1a;
}

.featuredAllCard{
  display:flex;
}

.featuredAllInner{
  min-height:270px;
  width:100%;
  border-radius:18px;
  border:1px solid rgba(194,162,93,.24);
  background:
    radial-gradient(circle at 30% 20%, rgba(194,162,93,.22), transparent 32%),
    linear-gradient(180deg, #fffdfa, #f3eadc);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  color:#151515;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:22px;
  font-weight:650;
  text-align:center;
  transition:.2s ease;
}

.featuredAllInner:hover{
  transform:translateY(-2px);
  border-color:rgba(194,162,93,.55);
}

.featuredAllInner i{
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.16);
  position:relative;
}

.featuredAllInner i::before{
  content:"";
  position:absolute;
  left:11px;
  top:10px;
  width:9px;
  height:9px;
  border-right:2px solid #151515;
  border-bottom:2px solid #151515;
  transform:rotate(-45deg);
}

@media (max-width:1100px){
  .featuredCard{
    flex-basis:calc((100% - 16px * 2) / 3);
  }
}

@media (max-width:720px){
  .featuredCard{
    flex-basis:calc((100% - 16px) / 2);
  }

  .featuredImg,
  .featuredAllInner{
    min-height:240px;
    height:240px;
  }
}

@media (max-width:440px){
  .featuredCard{
    flex-basis:84%;
  }

  .featuredImg,
  .featuredAllInner{
    min-height:250px;
    height:250px;
  }
}

/* ===== DIY builder ===== */

.diyBuilderSection{
  padding:72px 0;
  background:#f5f1ea;
}

.diyBuilderCard{
  position:relative;
  overflow:hidden;

  min-height:520px;

  display:flex;
  align-items:center;

  padding:72px;

  border-radius:32px;

  background-image:url("assets/images/frontpage_diy.png");
  background-size:cover;
  background-position:center;

  border:1px solid rgba(194,162,93,.18);

  box-shadow:
    0 30px 60px rgba(0,0,0,.10),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.diyBuilderCard::before{
  content:'';

  position:absolute;
  inset:0;

  background:
    linear-gradient(
      90deg,
      rgba(15,15,15,.72) 0%,
      rgba(15,15,15,.48) 24%,
      rgba(15,15,15,.18) 42%,
      rgba(15,15,15,0) 64%
    );

  z-index:1;
}

.diyBuilderText{
  position:relative;
  z-index:2;
  max-width:520px;
}

.diyBuilderText .sectionKicker{
  margin-bottom:18px;
  color:rgba(243,240,234,.74);
}

.diyBuilderText h2{
  margin:0 0 18px;

  color:#fff;

  font-family:ui-serif, Georgia, serif;
  font-size:clamp(36px,4.2vw,58px);
  line-height:1.02;
  font-weight:650;
}

.diyBuilderText p{
  margin:0;

  color:rgba(243,240,234,.84);

  font-size:16px;
  line-height:1.9;
}

.diyBuilderActions{
  display:flex;
  gap:16px;
  flex-wrap:wrap;

  margin-top:34px;
}

/* 主按钮 */

.diyBuilderActions .testLink{
  background:#c2a25d;
  color:#151515;
  border:none;
  font-weight:700;
}

.diyBuilderActions .testLink:hover{
  background:#d4b06a;
  transform:translateY(-2px);
}

/* 次按钮 */

.diyBuilderActions .learnLink{
  background:rgba(255,255,255,.14);
  backdrop-filter:blur(10px);

  border:1px solid rgba(255,255,255,.24);

  color:#fff;

  font-weight:650;
}

.diyBuilderActions .learnLink:hover{
  background:rgba(255,255,255,.22);
  border-color:rgba(255,255,255,.36);
}

/* 已不再需要 */

.diyBuilderImage{
  display:none;
}

/* ===== mobile ===== */

@media (max-width:900px){

  .diyBuilderSection{
    padding:54px 0;
  }

  .diyBuilderCard{
    min-height:auto;

    padding:
      42px
      26px
      46px;

    background-position:68% center;

    border-radius:28px;
  }

  .diyBuilderText{
    max-width:none;
  }

  .diyBuilderText h2{
    font-size:46px;
    line-height:1.02;
  }

  .diyBuilderActions{
    flex-direction:column;
  }

  .diyBuilderActions .testLink,
  .diyBuilderActions .learnLink{
    width:100%;
  }
}


/* elements */
.elementsArchSection{
  background:var(--paper);
  padding:56px 0 34px;
  border-top:1px solid rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.06);
}

.elementsArchHead{
  text-align:center;
  margin-bottom:22px;
}

.elementsArchHead h2{
  margin:0 0 10px;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:26px;
  letter-spacing:.3px;
  font-weight:650;
}

.elementsArchHead p{
  margin:0 auto;
  max-width:680px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}

.elementsArch{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  padding:20px 8px 6px;
}

.elementNode{
  flex:1 1 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  text-decoration:none;
  color:inherit;
  min-width:140px;
}

.elementCircle{
  width:150px;
  height:150px;
  border-radius:999px;
  background:rgba(194,162,93,.10);
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow:0 10px 22px rgba(0,0,0,.08);
}

.elementCircle img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.elementGlyph{
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:30px;
  color:#1a1a1a;
}

.elementLabel{
  margin-top:12px;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:14px;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:#1a1a1a;
}

.elementHint{
  margin-top:6px;
  font-size:13px;
  line-height:1.45;
  color:var(--muted);
  max-width:180px;
}

.elementNode[data-level="1"]{
  transform:translateY(18px);
}

.elementNode[data-level="2"]{
  transform:translateY(8px);
}

.elementNode[data-level="3"]{
  transform:translateY(-10px);
}

.elementNode[data-level="2b"]{
  transform:translateY(8px);
}

.elementNode[data-level="1b"]{
  transform:translateY(18px);
}

.elementNode:hover .elementCircle{
  border-color:rgba(194,162,93,.55);
  box-shadow:0 14px 30px rgba(0,0,0,.12);
}

.elementNode:hover .elementLabel{
  color:#000;
}

@media (max-width:900px){
  .elementsArch{
    flex-wrap:wrap;
    justify-content:center;
  }

  .elementNode{
    flex:0 1 200px;
    transform:none !important;
  }
}

@media (max-width:520px){
  .elementNode{
    flex:1 1 100%;
  }

  .elementHint{
    max-width:420px;
  }
}

/* learn section */
.learnSection{
  padding:72px 0 56px;
  background:var(--paper);
}

.learnIntro{
  text-align:center;
  margin-bottom:34px;
}

.learnIntro h2{
  margin:0 0 12px;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  letter-spacing:.4px;
  font-weight:650;
  font-size:26px;
  color:#1f1f1f;
}

.learnIntro p{
  margin:0 auto;
  max-width:700px;
  color:var(--muted);
  line-height:1.7;
  font-size:15px;
}

.learnTestWrap{
  display:grid;
  grid-template-columns:1fr 1.1fr;
  gap:22px;
  align-items:stretch;
}

@media (max-width:920px){
  .learnTestWrap{
    grid-template-columns:1fr;
  }
}

/* ===== front blog section ===== */

.frontBlogSection{
  padding:74px 0 60px;
  background:#fff;
  border-top:1px solid rgba(0,0,0,.06);
}

.frontBlogHead{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:28px;
}

.frontBlogHead h2{
  margin:0;
  font-family:ui-serif, Georgia, serif;
  font-size:clamp(30px, 3vw, 46px);
  line-height:1.08;
  font-weight:650;
  color:#151515;
}

.frontBlogAll{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fbfaf7;
  color:#151515;
  font-size:14px;
  font-weight:600;
  transition:.2s ease;
}

.frontBlogAll:hover{
  border-color:rgba(194,162,93,.45);
  background:rgba(194,162,93,.08);
}

.frontBlogGrid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}

.frontBlogCard{
  border-radius:24px;
  overflow:hidden;
  background:#fbfaf7;
  border:1px solid rgba(0,0,0,.08);
  transition:.22s ease;
}

.frontBlogCard:hover{
  transform:translateY(-4px);
  border-color:rgba(194,162,93,.28);
  box-shadow:0 20px 40px rgba(0,0,0,.08);
}

.frontBlogCard img{
  width:100%;
  height:240px;
  object-fit:cover;
  display:block;
}

.frontBlogBody{
  padding:22px;
}

.frontBlogBody span{
  display:block;
  margin-bottom:10px;
  font-size:11px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#7a6a38;
  font-weight:700;
}

.frontBlogBody h3{
  margin:0 0 12px;
  font-family:ui-serif, Georgia, serif;
  font-size:24px;
  line-height:1.2;
  font-weight:650;
  color:#151515;
}

.frontBlogBody p{
  margin:0;
  color:#666;
  line-height:1.7;
  font-size:14px;
}

/* ===== self test CTA ===== */

.frontTestCtaSection{
  padding:28px 0 15px;
  background:#fff;
}

.frontTestCta{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  padding:52px;

  background:
    linear-gradient(
      90deg,
      rgba(15,15,15,.72) 0%,
      rgba(15,15,15,.48) 38%,
      rgba(15,15,15,.16) 68%,
      rgba(15,15,15,.04) 100%
    ),
    url("assets/images/frontpage-testbkg.png") center / cover no-repeat;

  border:1px solid rgba(194,162,93,.22);
  box-shadow:0 24px 60px rgba(0,0,0,.08);
}

.frontTestCtaText{
  position:relative;
  z-index:2;
}

.frontTestCtaText h2{
  margin:0 0 14px;
  color:#fff;
  font-family:ui-serif, Georgia, serif;
  font-size:clamp(34px,4vw,56px);
  line-height:1.04;
  font-weight:650;
}

.frontTestCtaText p{
  margin:0;
  max-width:760px;
  color:rgba(243,240,234,.84);
  line-height:1.8;
  font-size:15px;
}

.frontTestCtaActions{
  position:relative;
  z-index:2;
  margin-top:28px;
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.frontTestCta .testLink{
  color:#151515;
  background:#c2a25d;
  border:1px solid rgba(194,162,93,.75);
  border-radius:999px;
}

.frontTestCta .testLink:hover{
  background:#d4b06a;
  transform:translateY(-2px);
}

.frontTestCta .learnLink{
  color:#fff;
  background:rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.28);
  backdrop-filter:blur(10px);
  border-radius:999px;
}

.frontTestCta .learnLink:hover{
  background:rgba(255,255,255,.20);
}

@media (max-width:900px){
  .frontTestCta{
    padding:34px 24px;
    background:
      linear-gradient(
        180deg,
        rgba(15,15,15,.72) 0%,
        rgba(15,15,15,.52) 52%,
        rgba(15,15,15,.24) 100%
      ),
      url("assets/images/frontpage-testbkg.png") center / cover no-repeat;
  }

  .frontTestCtaActions{
    flex-direction:column;
  }

  .frontTestCta .testLink,
  .frontTestCta .learnLink{
    width:100%;
  }
}

.testLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:999px;
  background:#fff;
  color:#151515;
  font-weight:700;
  transition:.2s ease;
}

.testLink:hover{
  transform:translateY(-2px);
}

.learnLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 22px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  color:#fff;
  font-weight:700;
  transition:.2s ease;
}

.learnLink:hover{
  background:rgba(255,255,255,.06);
}

/* ===== mobile ===== */

@media (max-width:900px){

  .frontBlogGrid{
    grid-template-columns:1fr;
  }

  .frontBlogHead{
    flex-direction:column;
    align-items:flex-start;
  }

  .frontBlogAll{
    width:100%;
  }

  .testLink,
  .learnLink{
    width:100%;
  }
}

.testLink{
  color:#fff;
  padding:13px 16px;
  border-radius:999px;
  border:1px solid rgba(15,15,15,.85);
  background:var(--ink);
}

.testLink:hover{
  border-color:rgba(194,162,93,.65);
  background:#171717;
}

.link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  color:#1a1a1a;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.02);
  cursor:pointer;
}

.link:hover{
  border-color:rgba(194,162,93,.45);
  background:rgba(194,162,93,.10);
}

.arrow{
  width:8px;
  height:8px;
  border-right:1.8px solid #1a1a1a;
  border-bottom:1.8px solid #1a1a1a;
  transform:rotate(-45deg);
  margin-top:1px;
}

.arrow-white{
  border-right-color:#fff;
  border-bottom-color:#fff;
}

/* delivery trust */
.deliveryTrust{
  margin-top:0px;
  padding:22px 0 10px;
}

.deliveryGrid{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:18px;
  align-items:start;
}

.deliveryItem{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
  padding:10px 8px;
}

.deliveryItem img{
  width:100px;
  height:100px;
  object-fit:contain;
  display:block;
  opacity:.95;
}

.deliveryItem p{
  margin:0;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:16px;
  line-height:1.25;
  color:#1f1f1f;
  letter-spacing:.2px;
}

@media (max-width:1100px){
  .deliveryGrid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:680px){
  .deliveryGrid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:420px){
  .deliveryGrid{
    grid-template-columns:1fr;
  }
}

/* subscribe */
.subscribeSection{
  margin-top:22px;
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
}

.subscribeInner{
  background:url("assets/images/subscribe-background.png") center / 100% 100% no-repeat;
  padding:64px 18px;
  text-align:center;
}

.subscribeInner h3{
  margin:0 0 10px;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:28px;
  letter-spacing:.3px;
  font-weight:650;
  color:#1f1f1f;
}

.subscribeInner p{
  margin:0 auto 22px;
  max-width:620px;
  color:rgba(0,0,0,.65);
  font-size:13px;
  line-height:1.6;
}

.subscribeForm{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.subscribeForm input{
  width:min(520px, 92vw);
  max-width:520px;
  padding:14px 14px;
  border-radius:0;
  border:1px solid rgba(0,0,0,.22);
  outline:none;
  background:rgba(255,255,255,.75);
}

.subscribeForm input:focus{
  border-color:rgba(194,162,93,.70);
  box-shadow:0 0 0 4px rgba(194,162,93,.15);
  background:#fff;
}

.subscribeForm button{
  padding:14px 22px;
  border-radius:999px;
  border:1px solid rgba(15,15,15,.85);
  background:var(--ink);
  color:rgba(243,240,234,.95);
  font-weight:700;
  cursor:pointer;
  letter-spacing:.4px;
}

.subscribeForm button:hover{
  border-color:rgba(194,162,93,.65);
}

.subscribeFine{
  margin-top:14px;
  font-size:12px;
  color:rgba(0,0,0,.55);
}

.subscribeFine a{
  text-decoration:underline;
  color:rgba(0,0,0,.65);
}

/* ===== infinite gemstone scroll ===== */

.iconScrollSection{
  position:relative;
  background:#fff;
  border-top:1px solid rgba(0,0,0,.06);
  border-bottom:1px solid rgba(0,0,0,.06);
  padding:18px 0;
  overflow:hidden;
}

.iconScrollSection .container{
  max-width:none;
  width:100%;
  padding:0;
}

.marquee{
  width:100%;
  overflow:hidden;
}

.marqueeTrack{
  display:flex;
  align-items:center;
  width:max-content;
  animation:marqueeScroll 38s linear infinite;
  will-change:transform;
}

.marqueeGroup{
  display:flex;
  align-items:center;
  gap:34px;
  padding-right:34px;
  flex:0 0 auto;
}

.marquee img{
  display:block;
  width:auto;
  height:52px;
  object-fit:contain;
  opacity:.96;
  flex:0 0 auto;
  transform:translateZ(0);
}

@keyframes marqueeScroll{
  0%{
    transform:translate3d(0,0,0);
  }

  100%{
    transform:translate3d(-25%,0,0);
  }
}

@media (max-width:768px){
  .iconScrollSection{
    padding:14px 0;
  }

  .marqueeGroup{
    gap:22px;
    padding-right:22px;
  }

  .marquee img{
    height:40px;
  }

  .marqueeTrack{
    animation-duration:28s;
  }
}

/* footer */
.site-footer{
  background:var(--ink);
  color:rgba(243,240,234,.78);
  padding:28px 0 34px;
  margin-top:0;
  border-top:1px solid rgba(194,162,93,.16);
}

.footGrid{
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
}

.footGrid a{
  color:rgba(243,240,234,.78);
}

.footGrid a:hover{
  color:rgba(243,240,234,.95);
}

.fineprint{
  margin-top:12px;
  color:rgba(243,240,234,.62);
  line-height:1.6;
  font-size:12.5px;
  max-width:880px;
}

/* wp basics */
.aligncenter{
  display:block;
  margin-left:auto;
  margin-right:auto;
}

.screen-reader-text{
  position:absolute;
  left:-9999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* prevent admin bar weird offset on frontend if needed */
body.admin-bar .site-header{
  top:32px;
}

@media screen and (max-width:782px){
  body.admin-bar .site-header{
    top:46px;
  }
}



/* Contact page */

.tfw-contact-page {
  background: #fbfaf7;
  color: var(--ink);
}

.contact-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(251,250,247,.96) 0%, rgba(251,250,247,.82) 42%, rgba(251,250,247,.25) 100%),
    url("assets/images/contact/contact-hero.png") center right / cover no-repeat;
  border-bottom: 1px solid rgba(194,162,93,.18);
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 38%, rgba(194,162,93,.22), transparent 32%),
    linear-gradient(180deg, transparent, rgba(255,255,255,.5));
  pointer-events: none;
}

.contact-hero__inner {
  margin: 0;              /* 关键：去掉可能的居中 */
  text-align: left;       /* 强制左对齐 */
  max-width: 680px;   
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 72px 0 72px 54px;  
}

.contact-hero h1 {
  margin: 14px 0 14px;
  max-width: 640px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: #181818;
}

.contact-hero p {
  max-width: 520px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(15,15,15,.64);
}

.contact-main {
  padding: 90px 0 110px;
}

.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 34px;
  align-items: start;
}

.contact-card {
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(194,162,93,.22);
  border-radius: 32px;
  box-shadow: 0 24px 80px rgba(15,15,15,.07);
  backdrop-filter: blur(8px);
}

.contact-info {
  padding: 42px;
}

.contact-info h2,
.contact-form-card h2 {
  margin: 14px 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.contact-info > p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(15,15,15,.65);
}

.contact-methods {
  margin: 34px 0;
  display: grid;
  gap: 18px;
}

.contact-method {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid rgba(194,162,93,.18);
}

.contact-method:last-child {
  border-bottom: 1px solid rgba(194,162,93,.18);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--gold);
  background: rgba(194,162,93,.1);
  border: 1px solid rgba(194,162,93,.25);
  font-size: 18px;
}

.contact-method h3 {
  margin: 0 0 6px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(15,15,15,.72);
}

.contact-method p {
  margin: 0;
  color: rgba(15,15,15,.62);
  line-height: 1.65;
}

.contact-method a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(194,162,93,.55);
}

.contact-test-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  color: #191919;
  text-decoration: none;
  border: 1px solid rgba(194,162,93,.45);
  background: rgba(194,162,93,.1);
  transition: all .25s ease;
}

.contact-test-link:hover {
  transform: translateY(-2px);
  background: rgba(194,162,93,.18);
}

.contact-form-card {
  padding: 42px;
}

.contact-form-card .wpforms-container {
  margin: 26px 0 0 !important;
}

.contact-form-card .wpforms-field {
  padding: 10px 0 !important;
}

.contact-form-card .wpforms-field-label {
  margin-bottom: 8px !important;
  font-size: 13px !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(15,15,15,.68) !important;
}

.contact-form-card input[type="text"],
.contact-form-card input[type="email"],
.contact-form-card textarea {
  border-radius: 18px !important;
  border: 1px solid rgba(194,162,93,.25) !important;
  background: rgba(251,250,247,.78) !important;
  min-height: 52px !important;
  box-shadow: none !important;
  color: #151515 !important;
}

.contact-form-card textarea {
  min-height: 160px !important;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
  border-color: rgba(194,162,93,.7) !important;
  box-shadow: 0 0 0 3px rgba(194,162,93,.12) !important;
}

.contact-form-card .wpforms-submit {
  min-height: 52px !important;
  padding: 0 28px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(194,162,93,.45) !important;
  background: #1d1b18 !important;
  color: #fff !important;
  font-size: 15px !important;
  letter-spacing: .02em;
}

.contact-form-card .wpforms-submit:hover {
  background: #2a251d !important;
}

@media (max-width: 900px) {
  .contact-hero {
    min-height: 360px;
    background:
      linear-gradient(180deg, rgba(251,250,247,.94), rgba(251,250,247,.78)),
      url("assets/images/contact/contact-hero.png") center / cover no-repeat;
  }

  .contact-hero__inner {
    padding: 70px 0 70px 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-main {
    padding: 56px 0 76px;
  }
}

@media (max-width: 560px) {
  .contact-hero h1 {
    font-size: 46px;
  }

  .contact-info,
  .contact-form-card {
    padding: 28px 22px;
    border-radius: 24px;
  }

  .contact-method {
    grid-template-columns: 38px 1fr;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }
}

/* ===== restored featured heading + shared kicker ===== */

.sectionKicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
  font-size:12px;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#7a6a38;
  font-weight:700;
}

.sectionKicker::before{
  content:"";
  width:36px;
  height:1px;
  background:rgba(194,162,93,.70);
}

.featuredElementSection{
  background:
    radial-gradient(900px 260px at 80% 0%, rgba(194,162,93,.12), transparent 44%),
    var(--paper-2);
  padding:64px 0 58px;
}

.featuredIntro{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:24px;
  margin-bottom:26px;
}

.featuredIntro h2{
  margin:0 0 10px;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:clamp(30px, 3.3vw, 46px);
  line-height:1.06;
  font-weight:650;
  color:#151515;
}

.featuredIntro p{
  margin:0;
  max-width:680px;
  color:var(--muted);
  line-height:1.7;
  font-size:15px;
}

.featuredViewAll{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:#151515;
  font-weight:700;
  font-size:14px;
  text-decoration:none;
  transition:.18s ease;
}

.featuredViewAll:hover{
  border-color:rgba(194,162,93,.48);
  background:rgba(194,162,93,.08);
}

/* blog heading restore */
.frontBlogHead .sectionKicker{
  margin-bottom:10px;
}

@media (max-width:900px){
  .featuredIntro{
    flex-direction:column;
    align-items:flex-start;
  }

  .featuredViewAll{
    width:100%;
    justify-content:center;
  }
}


/* ===== compact mobile layout: trust, elements, delivery ===== */

@media (max-width: 680px){

  /* trust bar: icon + text 横向小卡片 */
  .trustBar{
    padding:28px 0 32px;
  }

  .trustGrid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .trustItem{
    flex-direction:row;
    align-items:center;
    text-align:left;
    gap:14px;
    padding:10px 4px;
  }

  .trustItem img{
    width:58px;
    height:58px;
    padding:4px;
    flex:0 0 58px;
  }

  .trustItem b{
    font-size:15px;
    line-height:1.25;
  }

  .trustItem .trustText{
    margin:3px 0 0;
    font-size:12.5px;
    line-height:1.4;
  }



/* ===== shop by five elements mobile layout ===== */

@media (max-width: 680px){

  .elementsArchSection{
    padding:34px 0 28px;
  }

  .elementsArchHead{
    margin-bottom:18px;
  }

  .elementsArchHead h2{
    font-size:24px;
    margin-bottom:8px;
  }

  .elementsArchHead p{
    font-size:13px;
    line-height:1.5;
    padding:0 4px;
  }

  .elementsArch{
    display:grid;
    grid-template-columns:repeat(6, 1fr);
    gap:18px 10px;

    justify-items:center;
    align-items:start;
  }

  .elementNode{
    width:100%;
    min-width:0;
    transform:none !important;
  }
  
   /* 第一排三个 */
  .elementNode:nth-child(1),
  .elementNode:nth-child(2),
  .elementNode:nth-child(3){
    grid-column:span 2;
  }

  /* 第二排两个居中 */
  .elementNode:nth-child(4){
    grid-column:2 / span 2;
  }

  .elementNode:nth-child(5){
    grid-column:4 / span 2;
  }

  .elementCircle{
    width:72px;
    height:72px;

    margin:0 auto;
  }

  .elementLabel{
    margin-top:8px;

    font-size:11px;
    letter-spacing:1px;
    line-height:1.25;
  }

  .elementHint{
    margin-top:4px;

    max-width:110px;

    font-size:11px;
    line-height:1.35;
  }
}


/* 超小屏 */

@media (max-width: 390px){

  .elementsArch{
    gap:16px 8px;
  }

  .elementCircle{
    width:66px;
    height:66px;
  }

  .elementLabel{
    font-size:10.5px;
  }

  .elementHint{
    font-size:10.5px;
    max-width:100px;
  }
}


  /* delivery trust: 六个压缩成 2 列小图标卡 */
  .deliveryTrust{
    padding:14px 0 6px;
  }

  .deliveryGrid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:8px 12px;
  }

  .deliveryItem{
    flex-direction:row;
    align-items:center;
    text-align:left;
    gap:10px;
    padding:8px 4px;
  }

  .deliveryItem img{
    width:42px;
    height:42px;
    flex:0 0 42px;
  }

  .deliveryItem p{
    font-size:13px;
    line-height:1.25;
    font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  }

}


/* 特小屏再压一点 */
@media (max-width: 390px){

  .trustItem img{
    width:50px;
    height:50px;
    flex-basis:50px;
  }

  .elementNode{
    flex-basis:104px;
    min-width:104px;
  }

  .elementCircle{
    width:74px;
    height:74px;
  }

  .deliveryItem img{
    width:36px;
    height:36px;
    flex-basis:36px;
  }

  .deliveryItem p{
    font-size:12.5px;
  }
}

/* ===== home elemental flow redesign ===== */

.elementFlowBand{
  display:grid;
  gap:18px;
  padding:0;
  background:transparent;
  box-shadow:none;
}

.elementFlowTabs{
  display:grid;
  grid-template-columns:repeat(6, minmax(0, 1fr));
  gap:10px;
  border-bottom:1px solid rgba(0,0,0,.10);
}

.elementFlowTab{
  position:relative;
  min-width:0;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:4px 8px 12px;
  border:0;
  border-radius:0;
  background:transparent;
  color:#2a2a2a;
  cursor:pointer;
  font-weight:750;
  transition:border-color .18s ease, color .18s ease;
}

.elementFlowTab::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:-1px;
  width:min(86px, 58%);
  height:2px;
  background:rgba(194,162,93,.9);
  transform:translateX(-50%) scaleX(0);
  transform-origin:center;
  transition:transform .18s ease;
}

.elementFlowTab img{
  width:21px;
  height:21px;
  object-fit:contain;
  display:block;
}

.elementFlowTab:hover,
.elementFlowTab.is-active{
  color:#151515;
}

.elementFlowTab:hover::after,
.elementFlowTab.is-active::after{
  transform:translateX(-50%) scaleX(1);
}

.elementFlowPanes{
  min-width:0;
}

.elementFlowPanel{
  --element-accent:#c2a25d;
  position:relative;
  display:none;
  grid-template-columns:minmax(190px, 220px) minmax(0, 1fr);
  gap:22px;
  align-items:center;
  padding:18px 20px 14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:20px;
  background:#fffdf8;
  background:
    linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.68)),
    radial-gradient(460px 180px at 0% 0%, color-mix(in srgb, var(--element-accent) 18%, transparent), transparent 70%),
    #fffdf8;
  box-shadow:0 18px 38px rgba(0,0,0,.06);
  overflow:hidden;
}

.elementFlowPanel.is-active{
  display:grid;
}

.elementFlowPanel--wood{ --element-accent:#5c7f55; }
.elementFlowPanel--fire{ --element-accent:#b85343; }
.elementFlowPanel--earth{ --element-accent:#9a7b3f; }
.elementFlowPanel--metal{ --element-accent:#8b8b83; }
.elementFlowPanel--water{ --element-accent:#4f90bd; }

.elementFlowPanel__head{
  display:flex;
  gap:14px;
  align-items:center;
  min-width:0;
  max-width:100%;
  padding:0;
  overflow-wrap:anywhere;
}

.elementFlowPanel__symbol{
  width:48px;
  height:48px;
  flex:0 0 48px;
  border-radius:999px;
  display:grid;
  place-items:center;
  border:1px solid rgba(194,162,93,.32);
  background:#fbfaf7;
  border:1px solid color-mix(in srgb, var(--element-accent) 50%, transparent);
  background:color-mix(in srgb, var(--element-accent) 12%, #fff);
}

.elementFlowPanel__symbol--all span{
  color:#7a6a38;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:22px;
  font-weight:800;
}

.elementFlowPanel__symbol img{
  width:30px;
  height:30px;
  object-fit:contain;
  display:block;
}

.elementFlowPanel__head span{
  display:block;
  margin-bottom:5px;
  color:var(--element-accent);
  font-size:11px;
  letter-spacing:1.1px;
  text-transform:uppercase;
  font-weight:800;
}

.elementFlowPanel__head h3{
  margin:0 0 5px;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:clamp(22px, 2.4vw, 24px);
  line-height:1;
  font-weight:650;
  color:#151515;
  white-space:nowrap;
}

.elementFlowPanel--all .elementFlowPanel__head h3{
  max-width:150px;
  white-space:normal;
  line-height:.92;
}

.elementFlowPanel__head p{
  margin:0;
  max-width:190px;
  color:#5d5d5d;
  font-size:13px;
  line-height:1.55;
}

.elementFlowProducts{
  min-width:0;
  padding:0 4px 8px;
}

.elementFlowProducts .featuredCard{
  flex-basis:190px;
  min-width:190px;
}

.elementFlowProducts .featuredFrame{
  border-color:rgba(194,162,93,.22);
  background:#f7f4ee;
  border-color:color-mix(in srgb, var(--element-accent) 26%, rgba(0,0,0,.08));
  background:color-mix(in srgb, var(--element-accent) 8%, #f7f4ee);
}

.elementFlowProducts .featuredImg{
  height:218px;
}

.featuredMetaLine{
  margin:-2px 0 7px;
  color:#777;
  font-size:11px;
  letter-spacing:.7px;
  text-transform:uppercase;
  font-weight:700;
}

.elementFlowEmpty{
  min-width:220px;
  min-height:218px;
  display:grid;
  place-items:center;
  padding:22px;
  border:1px dashed rgba(194,162,93,.42);
  border-radius:18px;
  background:rgba(255,255,255,.64);
  color:#666;
  text-align:center;
}

.elementFlowEmpty p{
  margin:0;
  line-height:1.55;
}

.elementFlowAllCard .featuredAllInner{
  background:
    radial-gradient(circle at 30% 20%, rgba(194,162,93,.18), transparent 32%),
    linear-gradient(180deg, #fffdfa, #f3eadc);
  min-height:218px;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--element-accent) 20%, transparent), transparent 32%),
    linear-gradient(180deg, #fffdfa, #f3eadc);
}

.elementsArchSection{
  background:
    radial-gradient(700px 260px at 50% 0%, rgba(194,162,93,.11), transparent 60%),
    #fff;
  padding:72px 0 60px;
}

.elementsArchHead .sectionKicker{
  justify-content:center;
}

.elementsCycle{
  position:relative;
  width:min(620px, 100%);
  height:620px;
  margin:26px auto 0;
}

.elementsCyclePath{
  position:absolute;
  left:50%;
  top:50%;
  width:420px;
  height:420px;
  transform:translate(-50%, -50%);
  border:2px dashed rgba(194,162,93,.42);
  border-radius:50%;
  pointer-events:none;
  filter:drop-shadow(0 0 7px rgba(194,162,93,.18));
  animation:tfwCycleSpin 42s linear infinite;
}

.elementsCyclePath path{
  display:none;
}

@keyframes tfwCycleSpin{
  to{
    transform:translate(-50%, -50%) rotate(360deg);
  }
}

.elementsCycleCenter{
  position:absolute;
  left:50%;
  top:50%;
  width:210px;
  min-height:108px;
  transform:translate(-50%, -50%);
  display:grid;
  place-items:center;
  align-content:center;
  gap:9px;
  padding:20px;
  border-radius:0;
  border:0;
  background:transparent;
  box-shadow:none;
  text-align:center;
}

.elementsCycleCenter span{
  color:#7a6a38;
  font-size:11px;
  letter-spacing:1px;
  text-transform:uppercase;
  font-weight:800;
}

.elementsCycleCenter strong{
  color:#1a1a1a;
  font-family:ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size:24px;
  line-height:1.35;
  font-weight:650;
}

.elementsCycle .elementNode{
  position:absolute;
  width:144px;
  min-width:0;
  z-index:2;
}

.elementsCycle .elementNode[data-position="top-left"]{
  left:50%;
  top:50%;
  transform:translate(-50%, -50%) rotate(-90deg) translate(210px) rotate(90deg) !important;
}

.elementsCycle .elementNode[data-position="top-right"]{
  left:50%;
  top:50%;
  transform:translate(-50%, -50%) rotate(-18deg) translate(210px) rotate(18deg) !important;
}

.elementsCycle .elementNode[data-position="right"]{
  left:50%;
  top:50%;
  transform:translate(-50%, -50%) rotate(54deg) translate(210px) rotate(-54deg) !important;
}

.elementsCycle .elementNode[data-position="bottom-left"]{
  left:50%;
  top:50%;
  transform:translate(-50%, -50%) rotate(126deg) translate(210px) rotate(-126deg) !important;
}

.elementsCycle .elementNode[data-position="left"]{
  left:50%;
  top:50%;
  transform:translate(-50%, -50%) rotate(198deg) translate(210px) rotate(-198deg) !important;
}

.elementsCycle .elementCircle{
  width:116px;
  height:116px;
  border:1px solid rgba(194,162,93,.26);
  background:rgba(255,255,255,.72);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.elementsCycle .elementNode:hover .elementCircle{
  transform:translateY(-3px) scale(1.03);
  border-color:rgba(194,162,93,.68);
  box-shadow:0 18px 34px rgba(0,0,0,.13);
}

@media (max-width:980px){
  .elementFlowPanel{
    grid-template-columns:1fr;
  }

  .elementFlowPanel__head p{
    max-width:none;
  }
}

@media (max-width:680px){
  .elementFlowBand{
    gap:12px;
  }

  .elementFlowTabs{
    display:grid;
    grid-template-columns:repeat(6, minmax(0, 1fr));
    gap:3px;
  }

  .elementFlowTab{
    min-height:36px;
    gap:3px;
    padding:2px 0 8px;
    font-size:10px;
    line-height:1.1;
    white-space:nowrap;
  }

  .elementFlowTab::after{
    width:48%;
  }

  .elementFlowTab img{
    width:15px;
    height:15px;
  }

  .elementFlowPanel{
    padding:14px 16px 12px;
    border-radius:20px;
    gap:16px;
  }

  .elementFlowPanel__head{
    align-items:center;
    max-width:100%;
  }

  .elementFlowPanel__symbol{
    width:42px;
    height:42px;
    flex-basis:42px;
  }

  .elementFlowPanel__symbol img{
    width:25px;
    height:25px;
  }

  .elementFlowPanel__head span{
    margin-bottom:4px;
    font-size:10px;
  }

  .elementFlowPanel__head h3{
    font-size:24px;
    margin-bottom:3px;
  }

  .elementFlowPanel--all .elementFlowPanel__head h3{
    max-width:none;
    white-space:nowrap;
    line-height:1;
  }

  .elementFlowPanel__head p{
    font-size:12.5px;
  }

  .elementFlowProducts{
    gap:12px;
    padding-left:0;
    padding-right:0;
  }

  .elementFlowProducts .featuredCard{
    flex-basis:70%;
    min-width:70%;
  }

  .elementFlowProducts .featuredImg,
  .elementFlowProducts .featuredAllInner,
  .elementFlowEmpty{
    height:220px;
    min-height:220px;
  }

  .elementsArchSection{
    padding:44px 0 38px;
  }

  .elementsCycle{
    width:min(360px, 100%);
    height:360px;
    margin-top:20px;
    padding:0;
  }

  .elementsCyclePath{
    display:block;
    left:50%;
    top:50%;
    width:248px;
    height:248px;
    transform:translate(-50%, -50%);
    border:1.5px dashed rgba(194,162,93,.38);
    border-radius:50%;
    pointer-events:none;
    animation:tfwCycleSpin 42s linear infinite;
  }

  .elementsCycleCenter{
    width:118px;
    min-height:70px;
    padding:12px;
    gap:5px;
  }

  .elementsCycleCenter span{
    font-size:9px;
    letter-spacing:.7px;
  }

  .elementsCycleCenter strong{
    font-size:11px;
    line-height:1.25;
  }

  .elementsCycle .elementNode{
    position:absolute;
    left:50% !important;
    top:50% !important;
    width:74px;
    min-width:0;
    z-index:2;
  }

  .elementsCycle .elementNode[data-position="top-left"]{
    transform:translate(-50%, -50%) rotate(-90deg) translate(124px) rotate(90deg) !important;
  }

  .elementsCycle .elementNode[data-position="top-right"]{
    transform:translate(-50%, -50%) rotate(-18deg) translate(124px) rotate(18deg) !important;
  }

  .elementsCycle .elementNode[data-position="right"]{
    transform:translate(-50%, -50%) rotate(54deg) translate(124px) rotate(-54deg) !important;
  }

  .elementsCycle .elementNode[data-position="bottom-left"]{
    transform:translate(-50%, -50%) rotate(126deg) translate(124px) rotate(-126deg) !important;
  }

  .elementsCycle .elementNode[data-position="left"]{
    transform:translate(-50%, -50%) rotate(198deg) translate(124px) rotate(-198deg) !important;
  }

  .elementsCycle .elementCircle{
    width:62px;
    height:62px;
    margin:0 auto;
  }

  .elementsCycle .elementLabel{
    margin-top:7px;
    font-size:10px;
    letter-spacing:.6px;
  }

  .elementsCycle .elementHint{
    display:none;
  }
}

@media (max-width:390px){
  .elementFlowTab{
    font-size:9px;
    gap:2px;
  }

  .elementFlowTab:first-child{
    font-size:8.6px;
  }

  .elementFlowTab img{
    width:13px;
    height:13px;
  }

  .elementsCycle{
    width:320px;
    height:320px;
  }

  .elementsCycle .elementCircle{
    width:56px;
    height:56px;
  }

  .elementsCycle .elementLabel{
    font-size:9.8px;
    letter-spacing:.5px;
  }

  .elementsCyclePath{
    width:220px;
    height:220px;
  }

  .elementsCycle .elementNode{
    width:68px;
  }

  .elementsCycle .elementNode[data-position="top-left"]{
    transform:translate(-50%, -50%) rotate(-90deg) translate(110px) rotate(90deg) !important;
  }

  .elementsCycle .elementNode[data-position="top-right"]{
    transform:translate(-50%, -50%) rotate(-18deg) translate(110px) rotate(18deg) !important;
  }

  .elementsCycle .elementNode[data-position="right"]{
    transform:translate(-50%, -50%) rotate(54deg) translate(110px) rotate(-54deg) !important;
  }

  .elementsCycle .elementNode[data-position="bottom-left"]{
    transform:translate(-50%, -50%) rotate(126deg) translate(110px) rotate(-126deg) !important;
  }

  .elementsCycle .elementNode[data-position="left"]{
    transform:translate(-50%, -50%) rotate(198deg) translate(110px) rotate(-198deg) !important;
  }
}

