@import url('https://fonts.googleapis.com/css2?family=DynaPuff:wght@500;600&display=swap');
:root{
  --navy:#082e63;
  --blue:#1174c8;
  --blue-2:#1f91db;
  --sky:#dff6ff;
  --cream:#fffaf0;
  --paper:#fffdf5;
  --gold:#ffb51b;
  --gold-2:#ffc83d;
  --brown:#6b2e1e;
  --green:#4b9b46;
  --ink:#102e55;
  --muted:#54708e;
  --white:#fff;
  --shadow:0 20px 50px rgba(16,46,85,.14);
  --radius:28px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font-family:ui-rounded,"Trebuchet MS",system-ui,sans-serif;background:var(--cream);line-height:1.55}
img{display:block;max-width:100%}
a{color:inherit}
button,input{font:inherit}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;left:12px;top:-60px;background:#fff;color:var(--navy);padding:10px 14px;border-radius:10px;z-index:999;font-weight:600}
.skip-link:focus{top:12px}
.section-inner{width:min(var(--max),calc(100% - 40px));margin-inline:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border-bottom:1px solid rgba(8,46,99,.08);transform:translateY(0);transition:transform .32s ease,box-shadow .32s ease;will-change:transform}.site-header.header-hidden{transform:translateY(-105%);box-shadow:none}
.header-inner{width:min(1280px,calc(100% - 40px));margin:auto;min-height:86px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;align-items:center;text-decoration:none;line-height:0;flex-shrink:0}
.brand img{display:block;width:235px;height:auto;max-height:78px;object-fit:contain;object-position:left center}
.primary-nav{display:flex;align-items:center;gap:26px;font-size:14px;font-weight:600}
.primary-nav a{text-decoration:none;position:relative;padding:30px 0;color:var(--navy)}
.primary-nav a:not(.nav-cta)::after{content:"";position:absolute;left:0;right:0;bottom:21px;height:3px;border-radius:4px;background:var(--blue);transform:scaleX(0);transition:.2s}
.primary-nav a:hover::after,.primary-nav a.active::after{transform:scaleX(1)}
.nav-cta{padding:13px 24px!important;background:var(--gold);border-radius:999px;box-shadow:0 8px 18px rgba(255,181,27,.25)}
.nav-cta:hover{transform:translateY(-1px)}
.menu-toggle{display:none;border:0;background:none;padding:10px}
.menu-toggle span:not(.sr-only){display:block;width:25px;height:3px;background:var(--navy);margin:4px;border-radius:4px}

.hero{position:relative;min-height:690px;overflow:hidden;background:linear-gradient(#7bc9f2,#d8f5ff 52%,#f7fbf1)}
.hero-landscape{position:absolute;inset:0;z-index:0}
.hero-landscape img{width:100%;height:100%;object-fit:cover;object-position:center center;filter:saturate(1.06)}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.84) 0%,rgba(255,255,255,.58) 30%,rgba(255,255,255,.18) 50%,rgba(255,255,255,0) 72%);z-index:1}
.hero-content{position:relative;z-index:4;width:min(var(--max),calc(100% - 40px));margin:auto;min-height:690px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center}
.hero-copy{max-width:570px;padding-top:35px}
.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:600;color:#fff;margin:0 0 10px}
.eyebrow.dark{color:var(--blue)}
h1,h2,h3{font-family:"Trebuchet MS",ui-rounded,system-ui,sans-serif;line-height:1.05;letter-spacing:-.045em;margin:0;font-weight:600}
h1{font-size:clamp(52px,7vw,88px);color:var(--navy);max-width:700px}
h1 span{display:block;color:#0b4c9b}
.hero-lede{font-size:19px;max-width:520px;color:#123e6b;font-weight:500;margin:22px 0 28px}
.hero-actions{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:0;text-decoration:none;font-weight:600;cursor:pointer;min-height:50px;padding:13px 23px;border-radius:999px;transition:transform .2s,box-shadow .2s,background .2s}
.button:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(8,46,99,.16)}
.button-primary{background:var(--gold);color:#101d31}
.button-blue{background:var(--blue);color:#fff}
.text-link{font-weight:600;color:var(--navy);text-decoration:none;border-bottom:2px solid rgba(8,46,99,.3)}
.hero-character{align-self:end;justify-self:center;width:min(520px,90%);filter:drop-shadow(0 25px 24px rgba(35,77,98,.2));padding-top:110px}
.hero-note{position:absolute;right:10px;top:125px;max-width:230px;color:#263e58;transform:rotate(-4deg);font-family:cursive;font-size:20px}
.hero-note span{color:#d9382b;font-size:34px}
.hero-cloud{position:absolute;z-index:2;opacity:.72;pointer-events:none}
.cloud-a{width:300px;left:1%;top:25px}
.cloud-b{width:220px;right:6%;top:45px}
.cloud-c{width:330px;left:38%;top:80px;opacity:.48}
.hero-foreground{position:absolute;z-index:5;bottom:-4px;left:0;right:0;line-height:0}
.hero-foreground img{width:100%;height:130px;object-fit:cover;object-position:center bottom}

.section-paper{background:var(--paper)}
.featured{position:relative;padding:85px 0 75px;overflow:hidden;background:
  radial-gradient(circle at 86% 26%,rgba(255,191,46,.28) 0 86px,transparent 87px),
  radial-gradient(circle at 8% 78%,rgba(65,176,125,.18) 0 120px,transparent 121px),
  linear-gradient(135deg,#e9faff 0%,#f7fff6 52%,#fff8e9 100%)}
.featured::before,.about::before{content:"";position:absolute;left:-2%;right:-2%;top:-38px;height:75px;background:transparent;border-radius:50% 50% 0 0/70% 70% 0 0}
.featured-grid{position:relative;display:grid;grid-template-columns:1.05fr 1.18fr .24fr;gap:32px;align-items:center}
.book-display{position:relative;display:grid;place-items:center;min-height:500px}
.book-grounded{width:min(620px,125%);position:relative;z-index:2;filter:drop-shadow(0 22px 22px rgba(43,52,60,.18));}

.featured-copy h2{font-size:clamp(40px,5vw,65px);color:var(--brown);max-width:700px}
.lead{font-size:18px;color:#204d79;max-width:650px}
.store-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:999px;transition:transform .2s,box-shadow .2s;background:#fff}
.store-button:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(8,46,99,.16)}
.store-amazon{background:#fff;padding:14px 24px;min-height:64px;min-width:290px;border:2px solid #f2b233;font-weight:600;color:#082e63}
.store-amazon span{display:block}
.platforms{display:flex;gap:12px;margin-top:12px;flex-wrap:wrap}
.platform{display:flex;align-items:center;gap:12px;border:2px solid #236bb1;border-radius:999px;padding:9px 18px;text-decoration:none;font-weight:600;background:#fff}
.platform.disabled{opacity:.88;cursor:default;background:rgba(255,255,255,.38);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border-color:rgba(35,107,177,.68);box-shadow:0 10px 24px rgba(16,46,85,.08)}
.platform-icon{width:30px;height:30px;display:grid;place-items:center;color:#fff;background:var(--navy);border-radius:7px;font-weight:600}
.platform-icon.kobo{background:#e41d3d}
.platform small{font-size:10px}
.kindness-board{align-self:center;justify-self:center;transform:rotate(3deg);margin-top:70px;margin-left:-18px}
.kindness-board img{width:min(190px,100%);filter:drop-shadow(0 16px 14px rgba(45,73,54,.22))}

.values{padding:88px 0;background:linear-gradient(180deg,#c9f1ff 0%,#eafaff 100%)}
.centered{text-align:center}
.section-heading h2{font-size:clamp(34px,4.5vw,56px);color:var(--navy);margin-top:8px}
.value-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:42px}
.value-card{text-align:center;padding:14px 20px 16px;background:rgba(255,253,245,.56);border:1px solid rgba(17,80,120,.10);border-radius:18px;box-shadow:0 12px 28px rgba(20,70,100,.08)}
.value-card img{width:150px;margin:0 auto 8px;filter:drop-shadow(0 10px 10px rgba(20,70,100,.12))}
.value-card h3{font-size:25px;color:var(--navy)}
.value-card p{color:#2b567f;margin:8px auto 0;max-width:210px}

.about{position:relative;padding:112px 0 92px;overflow:hidden;background:
  radial-gradient(circle at 86% 26%,rgba(255,191,46,.28) 0 86px,transparent 87px),
  radial-gradient(circle at 8% 78%,rgba(65,176,125,.18) 0 120px,transparent 121px),
  linear-gradient(135deg,#e9faff 0%,#f7fff6 52%,#fff8e9 100%)}
.about::after{content:"";position:absolute;width:390px;height:390px;right:-150px;bottom:-190px;border-radius:50%;background:rgba(255,181,27,.18);border:28px solid rgba(255,255,255,.48);box-shadow:0 0 0 18px rgba(17,116,200,.06);pointer-events:none}
.about-grid{position:relative;z-index:2;display:grid;grid-template-columns:1.05fr 1.15fr .48fr;align-items:center;gap:28px}
.about-copy{position:relative;padding:42px 44px 46px;background:rgba(255,253,245,.9);border:2px solid rgba(255,181,27,.42);border-radius:42px;box-shadow:0 24px 55px rgba(16,46,85,.12)}
.about-copy::before{content:"✦";position:absolute;right:28px;top:22px;color:var(--gold);font-size:28px;transform:rotate(12deg)}
.about-copy::after{content:"";position:absolute;left:24px;bottom:-12px;width:54px;height:24px;border-radius:50%;background:#74b85b;transform:rotate(-9deg);box-shadow:30px 5px 0 #9dd66e,58px 1px 0 #f4b52b}
.about-copy h2{font-size:clamp(40px,5vw,64px);color:var(--navy);max-width:590px}
.about-copy>p:not(.eyebrow){font-size:18px;color:#234f78;max-width:530px}
.about-art{position:relative;min-height:420px;display:grid;place-items:end center}
.about-art::before{content:"";position:absolute;left:7%;right:4%;bottom:30px;height:180px;border-radius:50%;background:rgba(89,171,76,.16);filter:blur(2px);transform:rotate(-4deg)}
.about-art::after{content:"";position:absolute;width:125px;height:125px;right:5%;top:32px;border-radius:50% 48% 55% 42%;background:rgba(255,199,61,.28);transform:rotate(18deg)}
.character-grounding{width:min(680px,125%);position:relative;z-index:2;filter:drop-shadow(0 24px 22px rgba(43,65,70,.2))}
.about-note{position:absolute;z-index:5;top:34px;right:2%;padding:10px;background:#fff;border-radius:22px;box-shadow:0 18px 35px rgba(16,46,85,.16);transform:rotate(5deg)}
.about-note img{width:245px;transform:rotate(-1deg)}

.castle{width:240px;left:13%;bottom:90px;z-index:2}
.tree{width:300px;left:-30px;bottom:40px;z-index:3}
.path{width:520px;max-width:none;right:-90px;bottom:10px;z-index:1}
.sign{width:260px;right:10px;bottom:25px;z-index:4;transform:rotate(-3deg)}

.newsletter{position:relative;padding:70px 0;background:linear-gradient(180deg,#c8f2ff,#a7e6f7);overflow:hidden}
.newsletter-inner{width:min(var(--max),calc(100% - 40px));margin:auto;display:grid;grid-template-columns:180px 1fr minmax(360px,500px);align-items:center;gap:28px}
.newsletter-inner>img{width:160px}
.newsletter h2{font-size:clamp(32px,4vw,48px);color:var(--navy)}
.newsletter p:not(.eyebrow){color:#27587c;margin:7px 0 0}
.subscribe-form{position:relative;display:flex;align-items:center;gap:0;background:#fff;padding:6px;border:2px solid transparent;border-radius:999px;box-shadow:0 10px 25px rgba(23,91,119,.12);transition:border-color .2s ease,box-shadow .2s ease;margin-bottom:0}
.subscribe-form input{min-width:0;flex:1;border:0;outline:0;padding:13px 16px;background:transparent;color:var(--ink)}
.subscribe-form input:focus{outline:none}
.subscribe-form .button{min-width:125px}
.newsletter-status{display:block;width:100%;margin:8px 0 0;text-align:left;font-size:14px;line-height:1.25;font-weight:600;color:#e04a4a}
.newsletter-status:empty{display:none}
.subscribe-form.is-error{border-color:transparent;box-shadow:0 10px 25px rgba(23,91,119,.12)}
.subscribe-form.is-error input{color:var(--ink);border:2px solid #e04a4a;border-radius:999px;box-sizing:border-box}
.subscribe-form.is-error input::placeholder{color:#71869a}
.subscribe-form.is-success{border-color:transparent}

.site-footer{background:#07528c;color:#fff;padding:38px 0 18px}
.footer-inner,.footer-bottom{width:min(1180px,calc(100% - 40px));margin:auto}
.footer-inner{display:grid;grid-template-columns:1fr 1fr auto;align-items:center;gap:35px}
.footer-brand{display:block;text-decoration:none;line-height:0}
.footer-brand img{display:block;width:280px;max-width:100%;height:auto}
.footer-brand-wrap{display:flex;align-items:center}
.footer-inner nav{display:flex;gap:20px;flex-wrap:wrap;justify-content:center}
.footer-inner nav a{text-decoration:none;font-weight:600;font-size:14px}
.socials{display:flex;gap:8px}
.socials a{width:38px;height:38px;border-radius:50%;background:#fff;color:#07528c;display:grid;place-items:center;text-decoration:none;font-weight:600}
.footer-bottom{border-top:1px solid rgba(255,255,255,.2);margin-top:28px;padding-top:15px;display:flex;justify-content:space-between;gap:20px;font-size:12px;color:#d5f2ff}
.trademark-note{width:min(1180px,calc(100% - 40px));margin:10px auto 0;text-align:center;font-size:10px;color:rgba(213,242,255,.8)}

@media (max-width: 980px){
  .primary-nav{gap:15px}
  .primary-nav a{font-size:13px}
  .hero-content{grid-template-columns:1fr .8fr}
  .hero-character{width:430px}
  .featured-grid{grid-template-columns:.95fr 1.15fr;gap:30px}
  .kindness-board{display:block}
  .about-grid{grid-template-columns:1fr 1fr}
  .about-copy{padding:34px 34px 38px}
  .about-note{display:none}
  .newsletter-inner{grid-template-columns:130px 1fr}
  .subscribe-form{grid-column:1/-1}
  .footer-inner{grid-template-columns:1fr;justify-items:center;text-align:center}
}
@media (max-width: 760px){
  .header-inner{min-height:72px}
  .menu-toggle{display:block}
  .primary-nav{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;padding:14px 20px 20px;box-shadow:0 20px 30px rgba(8,46,99,.12);flex-direction:column;align-items:stretch}
  .primary-nav.open{display:flex}
  .primary-nav a{padding:13px 4px}
  .primary-nav a:not(.nav-cta)::after{bottom:5px}
  .nav-cta{text-align:center}
  .hero{min-height:760px}
  .hero-content{grid-template-columns:1fr;align-content:center;min-height:760px}
  .hero-copy{padding-top:20px;text-align:center;margin:auto}
  .hero-lede{margin-inline:auto}
  .hero-actions{justify-content:center}
  .hero-character{width:330px;padding-top:0;margin-top:-20px}
  .hero-note{right:8px;top:105px;font-size:16px;max-width:165px}
  .cloud-a{width:200px}.cloud-b{width:140px}.cloud-c{width:220px}
  .hero-foreground img{height:95px}
  .featured{padding:70px 0 55px}
  .featured-grid{grid-template-columns:1fr;gap:30px;text-align:center}
  .book-grounded{width:min(430px,96%)}
  .book-decoration{right:3%;bottom:-20px;width:190px!important}
  .featured-copy .platforms,.featured-copy .button-row{justify-content:center}
  .featured-copy h2{font-size:42px}
  .values{padding:70px 0}
  .value-grid{grid-template-columns:1fr 1fr}
  .value-card img{width:120px}
  .about-grid,  .about{padding:78px 0 58px;text-align:center}
  .about-copy{padding:32px 24px 38px}
  .about-copy::before,.about-copy::after{display:none}
  .about-art::after{right:8%;top:15px}
  .character-grounding{width:min(620px,116%)}
  .character-grounding{width:min(520px,110%)}
  .about-copy>p:not(.eyebrow){margin-inline:auto}
  .about-art{min-height:290px}
  .about-flower{width:220px!important;right:0}
        .castle{width:170px;left:10%;bottom:75px}.tree{width:220px}.path{width:390px}.sign{width:200px}
  .news{padding:75px 0}
  .news-grid{grid-template-columns:1fr}
  .newsletter-inner{grid-template-columns:1fr;text-align:center}
  .newsletter-inner>img{margin:auto}
  .subscribe-form{width:100%}
  .footer-bottom{flex-direction:column;text-align:center}
}
@media (max-width: 450px){
  .section-inner,.newsletter-inner,.footer-inner,.footer-bottom{width:min(100% - 28px,1180px)}
  .brand strong{font-size:20px}.brand small{font-size:9px}
  h1{font-size:49px}
  .hero{min-height:730px}.hero-content{min-height:730px}
  .hero-character{width:285px}
  .value-grid{gap:8px}
  .value-card{padding:8px 4px}
  .value-card img{width:100px}
  .value-card h3{font-size:21px}
  .value-card p{font-size:13px}
  .subscribe-form{display:block;background:transparent;box-shadow:none}
  .subscribe-form input{background:#fff;border-radius:999px;width:100%;margin-bottom:8px}
  .subscribe-form .button{width:100%}
}

@media (max-width: 980px){
  .brand img{width:205px;max-height:70px}
  .footer-brand img{width:260px}
}
@media (max-width: 760px){
  .brand img{width:185px;max-height:62px}
  .footer-brand img{width:250px}
}
@media (max-width: 450px){
  .brand img{width:165px;max-height:56px}
}


/* Final hero artwork */
.hero-image-only{position:relative;min-height:clamp(560px, 46vw, 760px);height:clamp(560px, 46vw, 760px);overflow:hidden;padding:0;background:#bfeeff}
.hero-image-only .hero-landscape{position:absolute;inset:0}
.hero-image-only .hero-landscape img{display:block;width:100%;height:100%;object-fit:cover;object-position:center center;filter:none}
@media (max-width:760px){
  .book-grounded{
    --book-base-y:0px;
  }
  .subscribe-form.is-error{
    border:0;
    box-shadow:none;
    margin-bottom:34px;
    padding:0;
  }
  .subscribe-form.is-error input{
    border:2px solid #e04a4a;
    box-sizing:border-box;
  }
  .subscribe-form.is-error .newsletter-status{color:#e04a4a !important}

  .hero-image-only{min-height:520px;height:520px}
  .hero-image-only .hero-landscape img{object-position:center center}
}

/* Hero uses the supplied full-scene artwork; keep the existing HTML text overlay. */
.hero-character,.hero-foreground,.hero-cloud{display:none!important}

/* Supplied hero artwork is the complete hero scene. */
.hero-foreground{display:none}


/* Final supplied hero scene */
.hero{min-height:clamp(620px,46vw,760px);background:#bfeeff}
.hero-landscape img{object-position:center center;filter:none}
.hero::after{background:linear-gradient(90deg,rgba(255,255,255,.90) 0%,rgba(255,255,255,.72) 27%,rgba(255,255,255,.24) 50%,rgba(255,255,255,0) 70%)}
.hero-note{display:none}
@media (max-width:760px){
  .hero{min-height:700px}
  .hero-content{min-height:700px}
  .hero-copy{padding-top:30px}
  .hero::after{background:linear-gradient(180deg,rgba(255,255,255,.92) 0%,rgba(255,255,255,.70) 48%,rgba(255,255,255,.12) 100%)}
}


/* Supplied hero artwork: preserve the complete image without cropping or zooming. */
.hero{
  min-height:0;
  height:auto;
  aspect-ratio:1672 / 941;
  background:#bfeeff;
}
.hero-landscape img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center center;
  filter:none;
}
.hero::after{
  background:linear-gradient(90deg,rgba(255,255,255,.78) 0%,rgba(255,255,255,.48) 24%,rgba(255,255,255,.10) 48%,rgba(255,255,255,0) 70%);
}
.hero-content{
  min-height:0;
  height:100%;
}
@media (max-width:760px){
  .hero{
    min-height:0;
    height:auto;
    aspect-ratio:1672 / 941;
  }
  .hero-content{min-height:0;height:100%;}
  .hero::after{background:linear-gradient(90deg,rgba(255,255,255,.82) 0%,rgba(255,255,255,.46) 42%,rgba(255,255,255,0) 75%);}
}


/* Final visual refinements */
.hero-copy .eyebrow{color:var(--navy);text-shadow:none}
.featured{padding-bottom:115px}
.featured-grid{grid-template-columns:1.08fr 1fr;gap:44px;min-height:620px;align-items:center}
.book-display{z-index:3;min-height:590px;align-self:end;place-items:end center}
.book-grounded{width:min(760px,138%);max-width:none;margin-left:-15%;transform:translateY(8px);filter:drop-shadow(0 24px 24px rgba(43,52,60,.2))}
.featured-copy{position:relative;z-index:4;padding-bottom:78px}
.kindness-board{display:none}
.about-art{min-height:520px;overflow:visible}
.character-grounding{width:min(820px,145%);max-width:none;margin-left:0;transform:translateX(7%);filter:drop-shadow(0 26px 24px rgba(43,65,70,.2))}
.about-note{z-index:5;top:-8px;right:-9%}
@media (max-width:980px){
  .featured-grid{grid-template-columns:1fr 1fr;gap:24px;min-height:560px}
  .book-grounded{width:min(700px,150%);margin-left:-18%}
  .featured-copy{padding-bottom:50px}
  .about-art{min-height:440px}
  .character-grounding{width:min(700px,145%);margin-left:0;transform:translateX(5%)}
}
@media (max-width:760px){
  .featured{padding-bottom:70px}
  .featured-grid{grid-template-columns:1fr;gap:18px;min-height:0}
  .book-display{min-height:430px;place-items:center;z-index:3}
  .book-grounded{width:min(620px,118%);margin:0;transform:none}
  .featured-copy{padding-bottom:190px;z-index:4}
  .about-art{min-height:350px}
  .character-grounding{width:min(620px,125%);margin:0;transform:translateX(3%)}
}

/* Final requested typography + motion refinements */
html,body,
button,input,textarea,select{
  font-family:'DynaPuff', ui-rounded, 'Trebuchet MS', system-ui, sans-serif;
}
body{font-weight:500}
h1,h2,h3,h4,h5,h6,.eyebrow{
  font-family:'DynaPuff', ui-rounded, 'Trebuchet MS', system-ui, sans-serif;
  font-weight:600;
}
.button,.primary-nav,.nav-cta,.footer-inner nav a,.socials a{
  font-family:'DynaPuff', ui-rounded, 'Trebuchet MS', system-ui, sans-serif;
  font-weight:600;
}
.lead,.hero-lede,.about-copy>p:not(.eyebrow),.value-card p,.newsletter p:not(.eyebrow),.footer-bottom,.trademark-note{
  font-weight:500;
}
.platform{
  font-family:'DynaPuff', ui-rounded, 'Trebuchet MS', system-ui, sans-serif;
  font-weight:600;
}
.platform small{font-weight:500;}
.subscribe-form input{font-weight:500;}

/* Values: larger story badges + quick hover twitch */
.value-card img{
  width:178px;
  transition:transform .12s ease;
  transform-origin:center bottom;
}
.value-card:hover img{
  animation:valueTwitch .38s ease-out both;
}
@keyframes valueTwitch{
  0%{transform:translate(0,0) rotate(0deg)}
  25%{transform:translate(2px,-2px) rotate(2deg)}
  50%{transform:translate(-2px,1px) rotate(-2deg)}
  75%{transform:translate(1px,-1px) rotate(1deg)}
  100%{transform:translate(0,0) rotate(0deg)}
}

/* Featured book: extra soft decorative circles in open space */
.featured::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
  background:
    radial-gradient(circle at 78% 18%,rgba(255,199,61,.20) 0 48px,transparent 49px),
    radial-gradient(circle at 91% 44%,rgba(65,176,125,.12) 0 34px,transparent 35px),
    radial-gradient(circle at 72% 76%,rgba(17,116,200,.09) 0 24px,transparent 25px),
    radial-gradient(circle at 95% 76%,rgba(255,181,27,.14) 0 62px,transparent 63px);
}
.featured-grid{z-index:2}
.book-grounded{
  --book-base-y:8px;
  transition:rotate .12s ease;
}
.book-display:hover .book-grounded{
  animation:bookTwitch .4s ease-out both;
}
@keyframes bookTwitch{
  0%{rotate:0deg}
  20%{rotate:-1deg}
  40%{rotate:1.2deg}
  60%{rotate:-.8deg}
  80%{rotate:.4deg}
  100%{rotate:0deg}
}

/* Values eyebrow uses the same navy as the main heading */
.values .section-heading .eyebrow{color:var(--navy)}

/* Newsletter eyebrow uses the same navy as the main headline */
.newsletter .newsletter-eyebrow{color:var(--navy)}


@media (max-width:760px){
  .value-card img{width:145px}
}

/* Prevent accidental selection/dragging of visual and interactive UI elements.
   Keep meaningful written content selectable for copying and accessibility. */
img,
.logo,
.logo img,
button,
.nav-link,
.store-button,
.platform,
.value-card,
.value-card img,
.hero-character,
.hero-character img,
.hero-note,
.book-card,
.book-card img,
.decorative,
.footer-logo,
.footer-logo img,
.social-links a,
.menu-toggle {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

/* Written content remains selectable. */
p,
h1,
h2,
h3,
h4,
li,
.book-description,
.about-text,
.newsletter-copy,
.footer-copy,
small {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}


/* Newsletter form helpers */
.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Text-only social links */
.social-text{display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.social-text a{width:auto;height:auto;border-radius:0;background:transparent;color:#fff;display:inline-block;text-decoration:none;font-weight:600;font-size:13px;padding:0;transition:opacity .15s ease}
.social-text a:hover{opacity:.78;transform:none;box-shadow:none}
@media (max-width:760px){.social-text{justify-content:center;gap:10px 14px}}

/* Mobile-only fit pass — desktop layout remains unchanged. */
@media (max-width:760px){
  html,body{overflow-x:hidden}

  /* Mobile hero: keep the supplied artwork fully visible and restore the website text at a compact size. */
  .hero{width:100%;height:auto;min-height:0;aspect-ratio:1672 / 941}
  .hero-landscape{position:absolute;inset:0}
  .hero-landscape img{width:100%;height:100%;object-fit:contain;object-position:center}
  .hero::after{background:linear-gradient(90deg,rgba(255,255,255,.52) 0%,rgba(255,255,255,.18) 48%,rgba(255,255,255,0) 78%)}
  .hero-content{display:block;position:absolute;inset:0;width:100%;min-height:0;margin:0}
  /* Mobile hero copy: keep the website text visible, but compact so it does not overpower the supplied artwork. */
  .hero-copy{position:absolute;left:4.5%;top:9%;max-width:38%;padding:0;text-align:left;z-index:5}
  .hero-copy .eyebrow{font-size:5.5px;letter-spacing:.07em;line-height:1.15;margin:0 0 3px;color:var(--navy)}
  .hero-copy h1{font-size:clamp(13px,3.8vw,18px);line-height:1.02;letter-spacing:-.03em;max-width:145px;margin:0}
  .hero-copy h1 span{display:block}
  .hero-lede{font-size:6.2px;line-height:1.25;max-width:130px;margin:5px 0 6px;color:#123e6b}
  .hero-actions{gap:4px;flex-wrap:wrap;justify-content:flex-start}
  .hero-actions .button{min-height:22px;padding:4px 7px;font-size:6.2px;gap:3px}
  .hero-actions .text-link{font-size:6.2px;border-bottom-width:1px}
  .hero-note{right:4%;top:auto;bottom:8%;max-width:105px;font-size:9px;line-height:1.15}
  .hero-note span{font-size:16px}

  .header-inner{width:calc(100% - 24px);min-height:64px;gap:12px}
  .brand img{width:150px;max-height:52px}
  .menu-toggle{width:42px;height:42px}
  .primary-nav{top:64px}

  .featured{padding:44px 0 52px}
  .featured-grid{gap:10px}
  .book-display{min-height:0;padding:0 6px}
  .book-grounded{width:min(100%,340px);max-width:340px;margin:0 auto;transform:none}
  .featured-copy{padding:0 8px;text-align:center}
  .featured-copy .eyebrow{margin-bottom:4px}
  .featured-copy h2{font-size:clamp(31px,9vw,39px);line-height:1.02;margin:0 auto 12px;max-width:340px}
  .featured-copy .lead{font-size:14px;line-height:1.45;max-width:340px;margin:0 auto 18px}
  .featured-copy .button-row{margin:0;justify-content:center}
  .store-amazon{width:min(100%,290px);min-width:0;min-height:58px;padding:10px 16px}
  .featured-copy .platforms{justify-content:center;gap:8px;margin-top:9px}
  .platform{padding:7px 13px;font-size:12px;gap:7px}
  .platform-icon{width:25px;height:25px}
  .featured::after{opacity:.7}

  .values{padding:56px 0 62px}
  .section-inner{width:calc(100% - 28px)}
  .section-heading .eyebrow{font-size:11px;letter-spacing:.01em}
  .section-heading h2{font-size:clamp(31px,8vw,40px);line-height:1.05;margin:7px auto 0;max-width:330px}
  .value-grid{grid-template-columns:1fr 1fr;gap:20px 8px;margin-top:28px}
  .value-card{padding:0 2px}
  .value-card img{width:min(135px,100%);margin:0 auto 5px}
  .value-card h3{font-size:19px;line-height:1.05;margin:2px 0 0}
  .value-card p{font-size:11px;line-height:1.3;margin:5px auto 0;max-width:145px}

  .about{padding:58px 0 48px;text-align:center}
  .about-grid{grid-template-columns:1fr;gap:14px}
  .about-copy{padding:28px 20px 30px;border-radius:30px}
  .about-copy h2{font-size:clamp(34px,9vw,42px);line-height:1.03;margin:7px auto 12px;max-width:330px}
  .about-copy>p:not(.eyebrow){font-size:14px;line-height:1.45;max-width:320px;margin:0 auto 18px}
  .about-copy .button{font-size:13px;padding:11px 17px}
  .about-art{min-height:250px;margin-top:-2px}
  .character-grounding{width:min(100%,420px);max-width:420px;margin:0 auto;transform:none}

  .newsletter{padding:52px 0 46px}
  .newsletter-inner{width:calc(100% - 28px);grid-template-columns:1fr;gap:10px;text-align:center}
  .newsletter-inner>img{width:min(120px,35vw);margin:0 auto}
  .newsletter h2{font-size:clamp(30px,8.5vw,40px);line-height:1.05;margin:5px auto 0;max-width:340px}
  .newsletter p:not(.eyebrow){font-size:13px;line-height:1.4;max-width:300px;margin:7px auto 0}
  .subscribe-form{width:100%;max-width:380px;margin:10px auto 0;display:block;background:transparent;box-shadow:none;padding:0}
  .subscribe-form input{width:100%;height:42px;background:#fff;border-radius:999px;margin-bottom:7px;padding:10px 14px}
  .subscribe-form .button{width:100%;min-height:42px}

  .site-footer{padding:30px 0 16px}
  .footer-inner{width:calc(100% - 28px);gap:18px}
  .footer-brand img{width:min(220px,75vw);margin:0 auto}
  .footer-inner nav{gap:8px 14px}
  .footer-inner nav a{font-size:11px}
  .social-text{gap:7px 12px}
  .social-text a{font-size:10px}
  .footer-bottom{width:calc(100% - 28px);margin-top:18px;padding-top:12px;gap:5px;font-size:9px;line-height:1.4}
  .trademark-note{width:calc(100% - 28px);font-size:8px;line-height:1.35;margin-top:8px}
}

@media (max-width:450px){
  .brand img{width:142px;max-height:48px}
  .featured{padding-top:38px}
  .book-grounded{width:min(100%,320px)}
  .featured-copy h2{font-size:34px}
  .featured-copy .lead{font-size:13px;max-width:320px}
  .store-amazon{width:100%;max-width:280px}
  .platforms{flex-direction:column;align-items:center}
  .platform{justify-content:center;min-width:150px}
  .value-grid{gap:18px 6px}
  .value-card img{width:125px}
  .value-card h3{font-size:18px}
  .value-card p{font-size:10px;max-width:135px}
  .about-art{min-height:220px}
  .character-grounding{width:min(100%,380px)}
}

/* Mobile-only hero typography refinement — desktop remains unchanged. */
@media (max-width:760px){
  .hero-copy{
    width:min(72%, 390px);
    max-width:390px;
    margin-left:7%;
    margin-right:auto;
    padding-top:10px;
    text-align:left;
  }
  .hero-copy .eyebrow{
    font-size:8px;
    letter-spacing:.12em;
    margin-bottom:5px;
  }
  .hero-copy h1{
    font-size:clamp(28px,7.2vw,42px);
    line-height:1.02;
    max-width:360px;
  }
  .hero-copy h1 span{display:inline;}
  .hero-lede{
    font-size:11px;
    line-height:1.35;
    max-width:300px;
    margin:9px 0 12px;
  }
  .hero-actions{
    gap:8px;
    justify-content:flex-start;
  }
  .hero-actions .button{
    min-height:34px;
    padding:8px 13px;
    font-size:10px;
  }
  .hero-actions .text-link{
    font-size:9px;
  }
}

@media (max-width:450px){
  .hero-copy{
    width:min(74%, 330px);
    margin-left:6%;
    padding-top:6px;
  }
  .hero-copy .eyebrow{font-size:7px;}
  .hero-copy h1{font-size:clamp(24px,7vw,32px);}
  .hero-lede{font-size:9px;max-width:250px;margin:7px 0 9px;}
  .hero-actions .button{min-height:30px;padding:7px 11px;font-size:9px;}
  .hero-actions .text-link{font-size:8px;}
}

/* Final mobile hero readability adjustment: desktop remains unchanged. */
@media (max-width:760px){
  .hero-copy{width:min(58%,300px);max-width:300px;margin-left:5%;padding-top:4px;}
  .hero-copy .eyebrow{font-size:6px;margin-bottom:3px;}
  .hero-copy h1{font-size:clamp(19px,5.4vw,27px);line-height:1.02;max-width:270px;}
  .hero-lede{font-size:7.5px;line-height:1.25;max-width:220px;margin:5px 0 7px;}
  .hero-actions{gap:5px;}
  .hero-actions .button{min-height:26px;padding:6px 9px;font-size:7.5px;}
  .hero-actions .text-link{font-size:7px;}
}
@media (max-width:450px){
  .hero-copy{width:min(58%,240px);max-width:240px;margin-left:5%;padding-top:2px;}
  .hero-copy .eyebrow{font-size:5px;}
  .hero-copy h1{font-size:clamp(17px,5vw,23px);max-width:220px;}
  .hero-lede{font-size:6.5px;max-width:185px;margin:4px 0 6px;}
  .hero-actions .button{min-height:23px;padding:5px 7px;font-size:6.5px;}
  .hero-actions .text-link{font-size:6px;}
}

/* Latest mobile hero adjustment — desktop unchanged. */
@media (max-width:760px){
  .hero-copy{
    width:min(48%,230px);
    max-width:230px;
    margin-left:5%;
    padding-top:2px;
  }
  .hero-copy .eyebrow{
    font-size:4.5px;
    margin-bottom:2px;
  }
  .hero-copy h1{
    font-size:clamp(15px,4vw,21px);
    line-height:1.02;
    max-width:210px;
  }
  .hero-lede{
    font-size:6px;
    line-height:1.22;
    max-width:175px;
    margin:4px 0 6px;
  }
  .hero-actions{gap:4px;}
  .hero-actions .button{
    min-height:22px;
    padding:5px 8px;
    font-size:6px;
  }
  .hero-actions .text-link{
    position:absolute;
    left:5%;
    bottom:6%;
    font-size:6px;
    white-space:nowrap;
  }
}
@media (max-width:450px){
  .hero-copy{
    width:min(48%,205px);
    max-width:205px;
    margin-left:5%;
  }
  .hero-copy .eyebrow{font-size:4px;}
  .hero-copy h1{font-size:clamp(14px,4vw,18px);max-width:185px;}
  .hero-lede{font-size:5.5px;max-width:160px;margin:3px 0 5px;}
  .hero-actions .button{min-height:20px;padding:4px 7px;font-size:5.5px;}
  .hero-actions .text-link{font-size:5.5px;bottom:5%;}
}

/* Mobile hero final collision-proof layout — desktop unchanged. */
@media (max-width:760px){
  .hero-content{
    position:relative;
    display:block;
    min-height:760px;
  }
  .hero-copy{
    position:absolute;
    z-index:6;
    left:4%;
    top:11%;
    width:44%;
    max-width:44%;
    margin:0;
    padding:0;
    text-align:left;
  }
  .hero-copy .eyebrow{
    font-size:6px;
    line-height:1.15;
    margin:0 0 4px;
    white-space:nowrap;
  }
  .hero-copy h1{
    font-size:clamp(17px,4.7vw,24px);
    line-height:1.02;
    max-width:100%;
    margin:0;
  }
  .hero-copy h1 span{display:inline;}
  .hero-lede{
    font-size:7px;
    line-height:1.25;
    max-width:100%;
    margin:6px 0 9px;
  }
  .hero-actions{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:flex-start;
    gap:7px;
  }
  .hero-actions .button{
    min-height:24px;
    padding:5px 8px;
    font-size:6.5px;
    white-space:nowrap;
  }
  .hero-actions .text-link{
    position:static;
    display:inline-block;
    margin-top:2px;
    font-size:6.5px;
    line-height:1.2;
    white-space:nowrap;
  }
}

@media (max-width:450px){
  .hero-copy{
    left:4%;
    top:11%;
    width:43%;
    max-width:43%;
  }
  .hero-copy .eyebrow{font-size:5px;margin-bottom:3px;}
  .hero-copy h1{font-size:clamp(15px,4.4vw,20px);}
  .hero-lede{font-size:6px;margin:5px 0 8px;}
  .hero-actions{gap:6px;}
  .hero-actions .button{min-height:22px;padding:4px 7px;font-size:5.8px;}
  .hero-actions .text-link{font-size:5.8px;}
}


/* Final mobile hero layout: compact, left-contained copy with no overlap. Desktop unchanged. */
.hero-lede-mobile{display:none}
@media (max-width:760px){
  .hero-content{position:relative;display:block;min-height:0}
  .hero-copy{
    position:absolute;
    z-index:6;
    left:4%;
    top:10%;
    width:37%;
    max-width:37%;
    margin:0;
    padding:0;
    text-align:left;
  }
  .hero-copy .eyebrow{font-size:5.5px;line-height:1.15;margin:0 0 3px;white-space:nowrap}
  .hero-copy h1{font-size:clamp(16px,4.4vw,22px);line-height:1.03;max-width:100%;margin:0}
  .hero-copy h1 span{display:block}
  .hero-lede-desktop{display:none}
  .hero-lede-mobile{display:block;font-size:6.2px;line-height:1.22;max-width:100%;margin:5px 0 7px}
  .hero-actions{display:flex;flex-direction:column;align-items:flex-start;gap:6px;justify-content:flex-start}
  .hero-actions .button{min-height:22px;padding:5px 8px;font-size:6px;white-space:nowrap}
  .hero-actions .text-link{position:static;display:inline-block;margin:0;font-size:6px;line-height:1.2;white-space:nowrap}
}
@media (max-width:450px){
  .hero-copy{left:4%;top:10%;width:37%;max-width:37%}
  .hero-copy .eyebrow{font-size:4.5px}
  .hero-copy h1{font-size:clamp(14px,4vw,19px)}
  .hero-lede-mobile{font-size:5.7px;line-height:1.22;margin:4px 0 6px}
  .hero-actions{gap:5px}
  .hero-actions .button{min-height:20px;padding:4px 7px;font-size:5.5px}
  .hero-actions .text-link{font-size:5.5px}
}


/* Requested final hero polish: white text shadow on all hero copy except the primary button. */
.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-lede,
.hero-copy .text-link{
  text-shadow:0 1px 3px rgba(255,255,255,.95), 0 0 7px rgba(255,255,255,.72);
}
.hero-copy .button-primary{text-shadow:none;}

/* Landscape phones/tablets: make the mobile hero behave more like the desktop composition. */
@media (orientation:landscape) and (max-width:900px){
  .hero-copy{
    position:absolute;
    left:5%;
    top:12%;
    width:42%;
    max-width:430px;
    padding:0;
    margin:0;
    text-align:left;
    z-index:6;
  }
  .hero-copy .eyebrow{
    font-size:clamp(8px,1.15vw,12px);
    line-height:1.15;
    margin:0 0 5px;
  }
  .hero-copy h1{
    font-size:clamp(24px,4.2vw,40px);
    line-height:1.02;
    max-width:420px;
    margin:0;
  }
  .hero-copy h1 span{display:block;}
  .hero-lede-desktop{display:block;font-size:clamp(9px,1.35vw,14px);line-height:1.3;max-width:360px;margin:10px 0 13px;}
  .hero-lede-mobile{display:none;}
  .hero-actions{display:flex;flex-direction:row;align-items:center;gap:12px;flex-wrap:wrap;}
  .hero-actions .button{min-height:30px;padding:7px 12px;font-size:clamp(8px,1.05vw,11px);}
  .hero-actions .text-link{position:static;font-size:clamp(8px,1.05vw,11px);white-space:nowrap;}
}

/* Desktop hero copy requested line break. */
@media (min-width:901px){
  .hero-lede-desktop{max-width:560px;}
}

/* Stanley video story section */
.story-video{
  position:relative;
  overflow:hidden;
  padding:96px 0 88px;
  background:
    radial-gradient(circle at 8% 18%,rgba(255,181,27,.18) 0 72px,transparent 73px),
    radial-gradient(circle at 92% 26%,rgba(17,116,200,.12) 0 98px,transparent 99px),
    radial-gradient(circle at 78% 88%,rgba(75,155,70,.14) 0 70px,transparent 71px),
    linear-gradient(180deg,#fffaf0 0%,#eefaff 52%,#f8fff1 100%);
}
.story-video::before,
.story-video::after{
  content:"";
  position:absolute;
  border-radius:50%;
  pointer-events:none;
}
.story-video::before{
  width:190px;height:190px;left:-95px;bottom:60px;
  border:24px solid rgba(255,255,255,.72);
  box-shadow:0 0 0 16px rgba(17,116,200,.055);
}
.story-video::after{
  width:110px;height:110px;right:-42px;top:105px;
  background:rgba(255,199,61,.17);
  border:14px solid rgba(255,255,255,.55);
}
.story-video-inner{position:relative;z-index:2}
.story-video-heading{max-width:760px;margin:0 auto}
.story-video-heading .eyebrow{color:var(--navy);margin-bottom:8px}
.story-video-heading h2{font-size:clamp(38px,5vw,62px);color:var(--navy)}
.story-video-heading>p:not(.eyebrow){font-size:17px;line-height:1.55;color:#2b567f;max-width:650px;margin:15px auto 0}
.story-video-art{
  position:relative;
  width:min(1180px,100%);
  margin:30px auto 0;
  line-height:0;
  filter:drop-shadow(0 28px 28px rgba(16,46,85,.15));
}
.story-video-art picture,
.story-video-art picture img{display:block;width:100%;height:auto}
.tablet-screen{
  position:absolute;
  left:42.9%;
  top:34.5%;
  width:47.7%;
  height:37.7%;
  overflow:hidden;
  border-radius:1.5%;
  background:#000;
}
.tablet-screen iframe{display:block;width:100%;height:100%;border:0;margin:0;padding:0;background:#000}
.story-video-cta{display:flex;width:max-content;margin:22px auto 0}

/* The entire site uses the selected DynaPuff family, with the existing medium/semibold weights. */
body{font-family:"DynaPuff",ui-rounded,"Trebuchet MS",system-ui,sans-serif}
h1,h2,h3,.primary-nav,.button,.platform,.store-button,.eyebrow,.text-link,.footer-inner nav a,.social-text a{font-family:"DynaPuff",ui-rounded,"Trebuchet MS",system-ui,sans-serif}

@media (max-width:760px){
  .story-video{padding:64px 0 58px}
  .story-video::before{width:125px;height:125px;left:-74px;bottom:30px;border-width:17px}
  .story-video::after{width:78px;height:78px;right:-34px;top:90px;border-width:10px}
  .story-video-heading{padding-inline:8px}
  .story-video-heading .eyebrow{font-size:10px;letter-spacing:.06em}
  .story-video-heading h2{font-size:clamp(30px,8.5vw,42px);line-height:1.06;max-width:350px;margin-inline:auto}
  .story-video-heading>p:not(.eyebrow){font-size:13px;line-height:1.45;max-width:330px;margin-top:10px}
  .story-video-art{width:100%;margin-top:18px;filter:drop-shadow(0 18px 18px rgba(16,46,85,.13))}
  .tablet-screen{
    left:20.6%;
    top:40.4%;
    width:64.5%;
    height:18.7%;
    border-radius:1.2%;
  }
  .story-video-cta{font-size:13px;min-height:44px;padding:10px 17px;margin-top:15px}
}

@media (max-width:450px){
  .story-video{padding:54px 0 50px}
  .story-video-heading>p:not(.eyebrow){font-size:12px;max-width:300px}
  .story-video-art{margin-top:14px}
  .story-video-cta{font-size:12px;min-height:42px}
}

/* Mobile-only refinement for the Stanley video section.
   Desktop styles remain unchanged. */
@media (max-width:760px){
  .story-video-art{
    width:116vw;
    max-width:none;
    margin-left:-8vw;
    margin-right:-8vw;
    margin-top:22px;
  }
  .story-video-cta{
    position:relative;
    z-index:3;
    margin-top:18px;
  }
}

@media (max-width:450px){
  .story-video-art{
    width:120vw;
    margin-left:-10vw;
    margin-right:-10vw;
    margin-top:20px;
  }
}

/* Final newsletter feedback states
   The outline belongs to the entire subscribe form only.
   The status text uses the exact same state color.
*/
.subscribe-form{
  border:2px solid transparent;
  box-sizing:border-box;
}

.subscribe-form.is-error{
  border-color:#e04a4a;
}

.subscribe-form.is-success{
  border-color:#4b9b46;
}

.subscribe-form.is-error input,
.subscribe-form.is-success input{
  border:0 !important;
  outline:0 !important;
  box-shadow:none !important;
}

.newsletter-status{
  display:block;
  width:100%;
  box-sizing:border-box;
  margin:8px 0 0;
  text-align:left;
  font-size:14px;
  line-height:1.35;
  font-weight:600;
}

.newsletter-status:empty{
  display:none;
}

.newsletter-status.is-error{
  color:#e04a4a !important;
}

.newsletter-status.is-success{
  color:#4b9b46 !important;
}

.newsletter-privacy-note{
  grid-column:1/-1;
  margin:8px 0 0;
  font-size:12px;
  line-height:1.5;
  color:#71869a;
  text-align:left;
}
.newsletter-privacy-note a{
  color:#174b73;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
}

@media(max-width:760px){
  .newsletter-signup{
    width:100%;
    max-width:380px;
    margin:0 auto;
  }

  .subscribe-form{
    width:100%;
    display:block;
    background:#fff;
    box-shadow:none;
    padding:6px;
    border-radius:24px;
    margin:10px auto 0;
  }

  .subscribe-form input{
    width:100%;
    height:42px;
    background:transparent;
    border:0 !important;
    outline:0 !important;
    box-shadow:none !important;
    border-radius:999px;
    margin:0 0 7px;
    padding:10px 14px;
    box-sizing:border-box;
  }

  .subscribe-form .button{
    width:100%;
    min-height:42px;
  }

  .newsletter-status{
    width:100%;
    margin:8px 0 0;
    text-align:left;
    font-size:13px;
    line-height:1.35;
  }

  .newsletter-privacy-note{
    margin-top:14px;
    text-align:center;
  }
}

/* HunioUnoMedia policy pages */
.policy-page{background:#fffdf7;color:var(--ink)}
.policy-main{width:min(980px,calc(100% - 40px));margin:0 auto;padding:150px 0 90px}
.policy-kicker{font-size:14px;letter-spacing:.08em;text-transform:uppercase;font-weight:700;color:#4b9b46;margin:0 0 12px}
.policy-title{font-size:clamp(40px,6vw,64px);line-height:1.05;color:#174b73;margin:0 0 14px}
.policy-updated{font-size:14px;color:#71869a;margin:0 0 44px}
.policy-card{background:#fff;border:1px solid #e8e3d9;border-radius:24px;padding:38px 42px;box-shadow:0 10px 30px rgba(23,75,115,.06)}
.policy-card h2{font-size:25px;line-height:1.2;color:#174b73;margin:30px 0 10px}
.policy-card h2:first-child{margin-top:0}
.policy-card p,.policy-card li{font-size:16px;line-height:1.75;color:#42566a}
.policy-card ul{padding-left:22px;margin:8px 0 18px}
.policy-card a{color:#174b73;font-weight:700}
.policy-note{background:#eef5df;border-radius:16px;padding:18px 20px;margin:22px 0;color:#42566a}
.policy-nav{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}
.policy-nav a{display:inline-block;padding:11px 16px;border-radius:20px;background:#174b73;color:#fff;text-decoration:none}
.policy-nav a.secondary{background:#eef5df;color:#174b73}
@media(max-width:760px){
  .policy-main{padding:115px 0 55px}
  .policy-card{padding:26px 22px;border-radius:20px}
  .policy-card p,.policy-card li{font-size:15px;line-height:1.7}
}


/* Warm HunioUnoMedia circle/arc background for policy pages */
body.policy-page-bg{
  background:
    radial-gradient(circle at 5% 8%, transparent 0 150px, #f3df9c 151px 215px, transparent 216px),
    radial-gradient(circle at 96% 91%, transparent 0 155px, #dbe9c6 156px 225px, transparent 226px),
    radial-gradient(circle at 101% 42%, transparent 0 95px, #dbe9c6 96px 135px, transparent 136px),
    #f6eddd;
  background-attachment: fixed;
}
body.policy-page-bg::before,
body.policy-page-bg::after{
  content:"";
  position:fixed;
  pointer-events:none;
  z-index:0;
  border-radius:50%;
}
body.policy-page-bg::before{
  width:260px;height:260px;
  left:-170px;top:28%;
  border:46px solid rgba(247,148,29,.13);
}
body.policy-page-bg::after{
  width:300px;height:300px;
  right:-205px;top:32%;
  border:54px solid rgba(75,127,82,.10);
}
body.policy-page-bg .policy-main{
  position:relative;
  z-index:1;
}
body.policy-page-bg .site-footer{
  position:relative;
  z-index:1;
}
@media(max-width:760px){
  body.policy-page-bg{
    background:
      radial-gradient(circle at -5% 7%, transparent 0 95px, #f3df9c 96px 145px, transparent 146px),
      radial-gradient(circle at 105% 93%, transparent 0 105px, #dbe9c6 106px 155px, transparent 156px),
      #f6eddd;
    background-attachment:scroll;
  }
  body.policy-page-bg::before{
    width:180px;height:180px;
    left:-135px;top:34%;
    border-width:32px;
  }
  body.policy-page-bg::after{
    width:210px;height:210px;
    right:-150px;top:48%;
    border-width:38px;
  }
}

.newsletter-privacy-note{grid-column:1/-1;margin:8px 0 0;font-size:12px;line-height:1.5;color:#71869a;text-align:left}.newsletter-privacy-note a{color:#174b73;font-weight:700;text-decoration:underline;text-underline-offset:2px}@media(max-width:760px){.newsletter-privacy-note{margin-top:8px;text-align:center}}

/* Newsletter feedback layout: status sits below the pill form and above the privacy note. */
.newsletter-signup .newsletter-status{position:static;display:block;width:100%;box-sizing:border-box;margin:8px 0 0;text-align:left;}
.newsletter-signup .newsletter-status:empty{display:none;}
@media(max-width:760px){
  .newsletter-signup .newsletter-status{margin-top:8px;text-align:left;}
  .newsletter-privacy-note{margin-top:14px;}
}


/* Chrome autofill: keep the email field visually contained inside the
   rounded Story Club form instead of showing Chrome's rectangular fill. */
.subscribe-form input:-webkit-autofill,
.subscribe-form input:-webkit-autofill:hover,
.subscribe-form input:-webkit-autofill:focus,
.subscribe-form input:-webkit-autofill:active{
  -webkit-box-shadow:0 0 0 1000px #fff inset !important;
  box-shadow:0 0 0 1000px #fff inset !important;
  -webkit-text-fill-color:#17324d !important;
  border-radius:999px !important;
  transition:background-color 9999s ease-out 0s !important;
}

.subscribe-form input{
  overflow:hidden;
}


/* HunioUnoMedia optional dark mode */
.theme-toggle{position:relative;flex:0 0 auto;width:64px;height:36px;padding:0;margin:0;border:0;background:transparent;cursor:pointer;-webkit-tap-highlight-color:transparent;z-index:3}
.theme-toggle-track{position:relative;display:block;width:64px;height:36px;box-sizing:border-box;border-radius:999px;background:#fff4cf;border:1px solid rgba(8,46,99,.12);box-shadow:0 5px 14px rgba(8,46,99,.10);overflow:hidden;transition:background .35s ease,border-color .35s ease,box-shadow .35s ease}
.theme-toggle-icon{position:absolute;top:50%;transform:translateY(-50%);width:20px;height:20px;display:grid;place-items:center;font-size:16px;line-height:1;transition:opacity .3s ease,transform .4s cubic-bezier(.2,.8,.2,1);pointer-events:none}
.theme-toggle-sun{left:7px;color:#d68b00;opacity:1}.theme-toggle-moon{right:7px;color:#dce9ff;opacity:.45}
.theme-toggle-knob{position:absolute;left:4px;top:4px;width:28px;height:28px;border-radius:50%;background:#ffb51b;box-shadow:0 3px 8px rgba(8,46,99,.18);transition:transform .45s cubic-bezier(.2,.8,.2,1),background .35s ease,box-shadow .35s ease}
.theme-toggle:hover .theme-toggle-knob{box-shadow:0 4px 12px rgba(8,46,99,.24)}
.theme-toggle:focus-visible{outline:3px solid rgba(17,116,200,.28);outline-offset:4px;border-radius:999px}
.theme-toggle.is-dark .theme-toggle-track{background:#10284b;border-color:rgba(255,255,255,.14);box-shadow:0 5px 16px rgba(0,0,0,.25)}
.theme-toggle.is-dark .theme-toggle-knob{transform:translateX(28px);background:#dfe9ff;box-shadow:0 3px 10px rgba(0,0,0,.3)}
.theme-toggle.is-dark .theme-toggle-sun{opacity:.35;transform:translate(-3px,-50%) rotate(-45deg)}
.theme-toggle.is-dark .theme-toggle-moon{opacity:1;transform:translate(0,-50%) rotate(360deg);color:#fff3bd}
html,body{transition:background-color .35s ease,color .35s ease}
html.dark-mode body{background:#0b1b31;color:#edf4fb}
html.dark-mode .site-header{background:rgba(9,27,49,.94);border-bottom-color:rgba(255,255,255,.09)}
html.dark-mode .primary-nav a{color:#f2f6fb}
html.dark-mode .primary-nav a:not(.nav-cta)::after{background:#74b9f2}
html.dark-mode .menu-toggle span:not(.sr-only){background:#edf4fb}
html.dark-mode h1,html.dark-mode h2,html.dark-mode h3,html.dark-mode .section-heading h2,html.dark-mode .about-copy h2,html.dark-mode .newsletter h2,html.dark-mode .error-code{color:#f6e7bd}
html.dark-mode .hero-copy .eyebrow,html.dark-mode .values .section-heading .eyebrow,html.dark-mode .newsletter .newsletter-eyebrow{color:#f6e7bd}
html.dark-mode .hero-lede,html.dark-mode .lead,html.dark-mode .about-copy>p:not(.eyebrow),html.dark-mode .value-card p,html.dark-mode .newsletter p:not(.eyebrow),html.dark-mode .error-copy{color:#c6d9ea}
html.dark-mode .text-link,html.dark-mode .error-help a{color:#b9ddff}
html.dark-mode .value-card,html.dark-mode .book-card,html.dark-mode .about-card,html.dark-mode .contact-card{background:#102b49;border-color:rgba(255,255,255,.09);box-shadow:0 18px 42px rgba(0,0,0,.22)}
html.dark-mode .platform-icon{background:#f6e7bd;color:#0b1b31}
html.dark-mode .newsletter{background:linear-gradient(180deg,#183d5d,#102d4a)}
html.dark-mode .newsletter p:not(.eyebrow){color:#c6d9ea}
html.dark-mode .subscribe-form{background:#fdfdfb;box-shadow:0 10px 25px rgba(0,0,0,.25)}
html.dark-mode .subscribe-form input{color:#17324d}
html.dark-mode .subscribe-form.is-error{border-color:#e04a4a}
html.dark-mode .subscribe-form.is-success{border-color:#4b9b46}
html.dark-mode .site-footer{background:#071728;color:#d8e5f0}
html.dark-mode .footer-inner nav a,html.dark-mode .socials a{color:#d8e5f0}
html.dark-mode .footer-bottom,html.dark-mode .trademark-note{color:#9fb7ca}
html.dark-mode .policy-page-bg{background:linear-gradient(180deg,#08182a,#0d2742);color:#eaf2f8}
html.dark-mode .policy-card{background:#102b49;border-color:rgba(255,255,255,.10);box-shadow:0 24px 60px rgba(0,0,0,.28)}
html.dark-mode .policy-title,html.dark-mode .policy-card h2,html.dark-mode .policy-card h3{color:#f6e7bd}
html.dark-mode .policy-card p,html.dark-mode .policy-card li{color:#c8d9e8}
html.dark-mode .policy-card a{color:#a9d8ff}
html.dark-mode .policy-updated,html.dark-mode .policy-note{color:#b7ccdc}
html.dark-mode .error-page{background:linear-gradient(180deg,#0b2743 0%,#102f4b 48%,#142a39 100%)}
html.dark-mode .error-card{background:rgba(16,43,73,.94);border-color:rgba(255,181,27,.34);box-shadow:0 28px 70px rgba(0,0,0,.28)}
html.dark-mode .error-title{color:#f6e7bd}
html.dark-mode .error-eyebrow{color:#9fd3ff}
html.dark-mode .error-help{color:#9fb7ca}
html.dark-mode .skip-link{background:#fdfdfb;color:#082e63}
@media(max-width:760px){.header-inner>.theme-toggle{margin-left:auto;margin-right:0}.theme-toggle{width:58px;height:34px}.theme-toggle-track{width:58px;height:34px}.theme-toggle-knob{width:26px;height:26px;left:3px;top:3px}.theme-toggle.is-dark .theme-toggle-knob{transform:translateX(24px)}.theme-toggle-sun{left:6px}.theme-toggle-moon{right:6px}}

/* Final HunioUnoMedia dark-mode refinement */

/* Final HunioUnoMedia dark-mode refinement */

/* Header placement: the toggle stays visible and sits immediately beside the nav CTA. */
.header-inner > .theme-toggle{
  order:3;
  margin-left:0;
  flex:0 0 auto;
}
.header-inner > .primary-nav{order:2}
.header-inner > .brand{order:1}
.header-inner > .menu-toggle{order:4}

/* Warm, storybook dark palette — no pure black. */
html.dark-mode{
  color-scheme:dark;
  --dark-bg:#0b2036;
  --dark-bg-2:#102b45;
  --dark-bg-3:#153852;
  --dark-panel:#173c59;
  --dark-panel-2:#1b4563;
  --dark-cream:#f6e7bd;
  --dark-text:#e8f1f7;
  --dark-muted:#b9ccda;
  --dark-gold:#f6c85f;
  --dark-green:#83b98c;
  --dark-blue:#75b8e8;
}

html.dark-mode body{
  background:var(--dark-bg);
  color:var(--dark-text);
}

/* Header */
html.dark-mode .site-header{
  background:rgba(7,24,42,.96);
  border-bottom-color:rgba(246,200,95,.14);
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
html.dark-mode .primary-nav a{color:#f3f7fa}
html.dark-mode .primary-nav a:not(.nav-cta)::after{background:var(--dark-gold)}
html.dark-mode .nav-cta{color:#17243a;background:var(--dark-gold);box-shadow:0 8px 20px rgba(246,200,95,.18)}
html.dark-mode .menu-toggle span:not(.sr-only){background:#eef5f8}

/* Hero remains the supplied artwork, but dark mode adds a restrained nighttime veil. */
html.dark-mode .hero{background:#0b2036}
html.dark-mode .hero::after{
  background:linear-gradient(90deg,rgba(6,24,42,.68) 0%,rgba(6,24,42,.40) 27%,rgba(6,24,42,.08) 55%,rgba(6,24,42,0) 76%);
}
html.dark-mode .hero-copy .eyebrow,
html.dark-mode .hero-copy h1,
html.dark-mode .hero-copy .hero-lede,
html.dark-mode .hero-copy .text-link{
  color:#fff4d1;
  text-shadow:0 2px 7px rgba(0,0,0,.55),0 0 12px rgba(0,0,0,.28);
}
html.dark-mode .hero-copy h1 span{color:#ffe09a}
html.dark-mode .hero-copy .text-link{border-bottom-color:rgba(255,244,209,.48)}

/* Featured Book */
html.dark-mode .featured{
  background:
    radial-gradient(circle at 86% 26%,rgba(246,200,95,.20) 0 86px,transparent 87px),
    radial-gradient(circle at 8% 78%,rgba(113,177,132,.13) 0 120px,transparent 121px),
    linear-gradient(135deg,#102a43 0%,#12334c 52%,#19364a 100%);
}
html.dark-mode .featured::after{
  background:
    radial-gradient(circle at 78% 18%,rgba(246,200,95,.15) 0 48px,transparent 49px),
    radial-gradient(circle at 91% 44%,rgba(113,177,132,.12) 0 34px,transparent 35px),
    radial-gradient(circle at 72% 76%,rgba(105,166,214,.10) 0 24px,transparent 25px),
    radial-gradient(circle at 95% 76%,rgba(246,200,95,.11) 0 62px,transparent 63px);
}
html.dark-mode .featured-copy h2{color:var(--dark-cream)}
html.dark-mode .featured-copy .eyebrow.dark{color:var(--dark-gold)}
html.dark-mode .lead{color:var(--dark-muted)}
html.dark-mode .store-amazon{background:#fffaf0;color:#17385b;border-color:#f2c55d}
html.dark-mode .platform{background:#edf3f6;color:#17385b;border-color:#73a9d0}
html.dark-mode .platform.disabled{background:rgba(237,243,246,.12);color:#d8e6ee;border-color:rgba(115,169,208,.58)}
html.dark-mode .platform-icon{background:#17385b;color:#fff5d6}

/* Values */
html.dark-mode .values{
  background:linear-gradient(180deg,#163b56 0%,#102d46 100%);
}
html.dark-mode .values .section-heading .eyebrow{color:var(--dark-gold)}
html.dark-mode .section-heading h2{color:var(--dark-cream)}
html.dark-mode .value-card{
  background:#122f49;
  border:1px solid rgba(246,200,95,.10);
  border-radius:18px;
  padding-top:14px;
  padding-bottom:16px;
  box-shadow:0 16px 30px rgba(0,0,0,.20);
}
html.dark-mode .value-card h3{color:#f7e8bd}
html.dark-mode .value-card p{color:#c2d4df}

/* About */
html.dark-mode .about{
  background:
    radial-gradient(circle at 86% 26%,rgba(246,200,95,.15) 0 86px,transparent 87px),
    radial-gradient(circle at 8% 78%,rgba(113,177,132,.10) 0 120px,transparent 121px),
    linear-gradient(135deg,#0e283f 0%,#12334c 52%,#17354b 100%);
}
html.dark-mode .about::after{
  background:rgba(246,200,95,.12);
  border-color:rgba(246,200,95,.13);
  box-shadow:0 0 0 18px rgba(104,159,202,.06);
}
html.dark-mode .about-copy{
  background:rgba(20,53,78,.96);
  border-color:rgba(246,200,95,.30);
  box-shadow:0 24px 55px rgba(0,0,0,.24);
}
html.dark-mode .about-copy h2{color:var(--dark-cream)}
html.dark-mode .about-copy .eyebrow.dark{color:var(--dark-gold)}
html.dark-mode .about-copy>p:not(.eyebrow){color:#c5d8e4}
html.dark-mode .about-copy::after{background:#6fa56f;box-shadow:30px 5px 0 #89b97b,58px 1px 0 #d6a847}
html.dark-mode .about-art::before{background:rgba(105,170,112,.12)}
html.dark-mode .about-art::after{background:rgba(246,200,95,.16)}
html.dark-mode .about-note{background:#f7eed2;box-shadow:0 18px 35px rgba(0,0,0,.25)}

/* Story video */
html.dark-mode .story-video{
  background:
    radial-gradient(circle at 8% 18%,rgba(246,200,95,.13) 0 72px,transparent 73px),
    radial-gradient(circle at 92% 26%,rgba(105,166,214,.12) 0 98px,transparent 99px),
    radial-gradient(circle at 78% 88%,rgba(113,177,132,.11) 0 70px,transparent 71px),
    linear-gradient(180deg,#102b44 0%,#0f3048 52%,#12344a 100%);
}
html.dark-mode .story-video::before{
  border-color:rgba(255,255,255,.10);
  box-shadow:0 0 0 16px rgba(105,166,214,.05);
}
html.dark-mode .story-video::after{
  background:rgba(246,200,95,.12);
  border-color:rgba(255,255,255,.10);
}
html.dark-mode .story-video-heading .eyebrow{color:var(--dark-gold)}
html.dark-mode .story-video-heading h2{color:var(--dark-cream)}
html.dark-mode .story-video-heading>p:not(.eyebrow){color:#c4d7e3}

/* Newsletter */
html.dark-mode .newsletter{
  background:linear-gradient(180deg,#173e5b 0%,#12334d 100%);
}
html.dark-mode .newsletter .newsletter-eyebrow{color:var(--dark-gold)}
html.dark-mode .newsletter h2{color:var(--dark-cream)}
html.dark-mode .newsletter p:not(.eyebrow){color:#c6d8e3}
html.dark-mode .newsletter-privacy-note{color:#aebfcd}
html.dark-mode .newsletter-privacy-note a{color:#bfe0f6}

/* Footer */
html.dark-mode .site-footer{background:#071a2d;color:#e8f1f7}
html.dark-mode .footer-inner nav a,html.dark-mode .socials a{color:#dce8ef}
html.dark-mode .footer-bottom{border-top-color:rgba(255,255,255,.13);color:#a9bfce}
html.dark-mode .trademark-note{color:#8fa8ba}

/* Error / 404 */
html.dark-mode .error-page{
  background:linear-gradient(180deg,#0b2036 0%,#102f49 48%,#11283a 100%);
}
html.dark-mode .error-main::before{
  background:rgba(246,200,95,.10);
  border-color:rgba(246,200,95,.12);
  box-shadow:0 0 0 18px rgba(105,166,214,.05);
}
html.dark-mode .error-main::after{
  background:rgba(113,177,132,.10);
  border-color:rgba(255,255,255,.09);
}
html.dark-mode .error-card{
  background:rgba(18,48,73,.96);
  border-color:rgba(246,200,95,.28);
}
html.dark-mode .error-code{color:var(--dark-cream)}
html.dark-mode .error-title{color:#f7e8bd}
html.dark-mode .error-eyebrow{color:#a9d7f4}
html.dark-mode .error-copy{color:#c5d8e3}
html.dark-mode .error-help{color:#a8bdcb}
html.dark-mode .error-help a{color:#bfe0f6}

/* Policy pages: dark surfaces, warm circles, and no toggle. */
html.dark-mode body.policy-page-bg{
  background:
    radial-gradient(circle at 5% 8%,transparent 0 150px,rgba(246,200,95,.16) 151px 215px,transparent 216px),
    radial-gradient(circle at 96% 91%,transparent 0 155px,rgba(113,177,132,.13) 156px 225px,transparent 226px),
    radial-gradient(circle at 101% 42%,transparent 0 95px,rgba(105,166,214,.10) 96px 135px,transparent 136px),
    linear-gradient(180deg,#081b2e 0%,#0d2942 100%);
}
html.dark-mode body.policy-page-bg::before{border-color:rgba(246,200,95,.10)}
html.dark-mode body.policy-page-bg::after{border-color:rgba(113,177,132,.09)}
html.dark-mode .policy-kicker{color:#91c39a}
html.dark-mode .policy-title{color:var(--dark-cream)}
html.dark-mode .policy-updated{
  display:block;
  width:100%;
  padding:14px 18px;
  margin:0 0 30px;
  background:#f3e8c4;
  color:#23415e;
  border-radius:18px;
  box-shadow:0 10px 24px rgba(0,0,0,.16);
}
html.dark-mode .policy-card{
  background:#122f49;
  border-color:rgba(246,200,95,.13);
  box-shadow:0 24px 60px rgba(0,0,0,.28);
}
html.dark-mode .policy-card h2,html.dark-mode .policy-card h3{color:var(--dark-cream)}
html.dark-mode .policy-card p,html.dark-mode .policy-card li{color:#c6d8e3}
html.dark-mode .policy-card a{color:#bfe0f6}
html.dark-mode .policy-note{background:#183d42;color:#d2e5d7;border:1px solid rgba(131,185,140,.18)}
html.dark-mode .policy-nav a{background:#1d5b85;color:#f2f7fa}
html.dark-mode .policy-nav a.secondary{background:#f3e8c4;color:#23415e}

/* Circle palette on policy pages in light mode too: softer and coordinated. */
body.policy-page-bg{
  background:
    radial-gradient(circle at 5% 8%,transparent 0 150px,#f0dca2 151px 215px,transparent 216px),
    radial-gradient(circle at 96% 91%,transparent 0 155px,#cfe0cf 156px 225px,transparent 226px),
    radial-gradient(circle at 101% 42%,transparent 0 95px,#cfe1ee 96px 135px,transparent 136px),
    #f6eddd;
}

/* Keep the toggle compact and visible on phones. */
@media(max-width:760px){
  .header-inner > .theme-toggle{order:3;margin-left:auto}
  .header-inner > .menu-toggle{order:4}
  .primary-nav{top:64px}
  html.dark-mode .primary-nav{background:#0d2740;box-shadow:0 20px 30px rgba(0,0,0,.28)}
  html.dark-mode .primary-nav a{color:#eef5f8}
  .theme-toggle{width:58px;height:34px}
  .theme-toggle-track{width:58px;height:34px}
  .theme-toggle-knob{width:26px;height:26px;left:3px;top:3px}
  .theme-toggle.is-dark .theme-toggle-knob{transform:translateX(24px)}
  .theme-toggle-sun{left:6px}.theme-toggle-moon{right:6px}
}

@media(max-width:450px){
  .header-inner > .theme-toggle{margin-left:auto}
}

/* Dark-mode toggle V3: compact, polished Sun ↔ Moon control. */
.theme-toggle{
  width:70px;
  height:38px;
  padding:0;
  margin:0 0 0 14px;
  flex:0 0 70px;
}
.theme-toggle-track{
  width:70px;
  height:38px;
  border:1px solid rgba(8,46,99,.16);
  border-radius:999px;
  background:#eef5fa;
  box-shadow:inset 0 1px 2px rgba(8,46,99,.08),0 5px 14px rgba(8,46,99,.10);
}
.theme-toggle-icon{
  width:22px;
  height:22px;
  font-size:15px;
  z-index:1;
}
.theme-toggle-sun{left:8px;color:#d98a00;opacity:1}
.theme-toggle-moon{right:8px;color:#17385b;opacity:.32}
.theme-toggle-knob{
  left:4px;
  top:4px;
  width:30px;
  height:30px;
  background:#ffb51b;
  box-shadow:0 3px 9px rgba(8,46,99,.20),inset 0 1px 0 rgba(255,255,255,.35);
  z-index:2;
}
.theme-toggle:hover .theme-toggle-track{box-shadow:inset 0 1px 2px rgba(8,46,99,.08),0 7px 18px rgba(8,46,99,.14)}
.theme-toggle:hover .theme-toggle-knob{box-shadow:0 4px 12px rgba(8,46,99,.24),inset 0 1px 0 rgba(255,255,255,.35)}
.theme-toggle:active .theme-toggle-knob{transform:scale(.94)}
.theme-toggle.is-dark .theme-toggle-track{
  background:#162f49;
  border-color:rgba(255,255,255,.16);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.20),0 6px 16px rgba(0,0,0,.24);
}
.theme-toggle.is-dark .theme-toggle-knob{
  transform:translateX(32px);
  background:#f7e8bd;
  box-shadow:0 3px 10px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.65);
}
.theme-toggle.is-dark .theme-toggle-sun{opacity:.24;transform:translate(-2px,-50%) rotate(-25deg)}
.theme-toggle.is-dark .theme-toggle-moon{opacity:1;transform:translate(0,-50%) rotate(0deg);color:#fff1b8}

/* Keep the navigation and theme control grouped on the right of the header. */
.header-inner{justify-content:flex-start}
.header-inner > .brand{margin-right:auto}
.header-inner > .primary-nav{order:2}
.header-inner > .theme-toggle{order:3;margin-left:14px}
.header-inner > .menu-toggle{order:4}

/* 404 uses the same right-side header grouping. */
.error-page .header-inner{justify-content:flex-start}

@media(max-width:1100px) and (min-width:761px){
  .header-inner{gap:14px}
  .primary-nav{gap:17px}
  .primary-nav a{font-size:12px}
  .theme-toggle{margin-left:8px}
}

@media(max-width:760px){
  .header-inner{justify-content:flex-start;gap:10px}
  .header-inner > .brand{margin-right:auto}
  .header-inner > .menu-toggle{order:2}
  .header-inner > .theme-toggle{order:3;margin-left:0;width:62px;height:36px;flex-basis:62px}
  .theme-toggle-track{width:62px;height:36px}
  .theme-toggle-knob{width:28px;height:28px;left:4px;top:4px}
  .theme-toggle.is-dark .theme-toggle-knob{transform:translateX(26px)}
  .theme-toggle-sun{left:7px}
  .theme-toggle-moon{right:7px}
}

/* FINAL V4 — header grouping + refined Sun/Moon control */
.header-inner{
  justify-content:flex-start;
}
.header-inner > .brand{
  margin-right:auto;
}
.header-inner > .primary-nav{
  margin-left:auto;
}
.header-inner > .theme-toggle{
  margin-left:10px;
}

/* Clean, compact animated Sun ↔ Moon theme control */
.theme-toggle{
  width:70px;
  height:38px;
  padding:0;
  border:0;
  background:transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.theme-toggle-track{
  position:relative;
  display:block;
  width:70px;
  height:38px;
  border-radius:999px;
  background:#edf4f8;
  border:1px solid #c8d9e5;
  box-shadow:inset 0 1px 2px rgba(8,46,99,.08),0 4px 12px rgba(8,46,99,.10);
  overflow:hidden;
  transition:background .35s ease,border-color .35s ease,box-shadow .35s ease;
}
.theme-toggle-knob{
  position:absolute;
  left:4px;
  top:4px;
  width:30px;
  height:30px;
  border-radius:50%;
  background:#ffb51b;
  box-shadow:0 3px 8px rgba(8,46,99,.22);
  transition:transform .42s cubic-bezier(.2,.8,.2,1),background .3s ease,box-shadow .3s ease;
}
/* Light mode: sun uses the same navy as the site's navigation/contact text. */
.theme-toggle-knob::after{
  content:'☀';
  position:absolute;
  inset:0;
  display:grid;
  place-items:center;
  color:#082e63;
  font-size:15px;
  line-height:1;
  font-family:Arial,sans-serif;
}
.theme-toggle:hover .theme-toggle-knob{
  box-shadow:0 4px 12px rgba(8,46,99,.28);
  transform:scale(1.04);
}
.theme-toggle:focus-visible{
  outline:3px solid rgba(17,116,200,.25);
  outline-offset:4px;
  border-radius:999px;
}
/* Dark mode: the knob becomes the exact dark-mode CTA gold. */
.theme-toggle.is-dark .theme-toggle-track{
  background:#102a43;
  border-color:rgba(184,211,232,.30);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.24),0 5px 14px rgba(0,0,0,.22);
}
.theme-toggle.is-dark .theme-toggle-knob{
  transform:translateX(32px);
  background:#f6c85f;
  box-shadow:0 3px 10px rgba(0,0,0,.30);
}
/* Filled crescent: only the moon is the dark-mode background color.
   The cream mask cuts the circle into a crescent, so no circular moon outline appears. */
.theme-toggle.is-dark .theme-toggle-knob::after{
  content:'';
  position:absolute;
  inset:auto;
  left:8px;
  top:8px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#0b2036;
  box-shadow:none;
}
.theme-toggle.is-dark .theme-toggle-knob::before{
  content:'';
  position:absolute;
  left:13px;
  top:6px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#f6c85f;
  z-index:1;
}
.theme-toggle.is-dark:hover .theme-toggle-knob{
  transform:translateX(32px) scale(1.04);
}

/* On dark mode the CTA text uses the same deep site/header background, not white. */
html.dark-mode .nav-cta{
  color:#07182a !important;
}

@media(max-width:980px) and (min-width:761px){
  .header-inner{gap:14px}
  .primary-nav{gap:14px}
  .primary-nav a{font-size:12px}
  .theme-toggle{width:66px;height:36px}
  .theme-toggle-track{width:66px;height:36px}
  .theme-toggle-knob{width:28px;height:28px}
  .theme-toggle.is-dark .theme-toggle-knob{transform:translateX(30px)}
  .theme-toggle.is-dark:hover .theme-toggle-knob{transform:translateX(30px) scale(1.04)}
}

@media(max-width:760px){
  .header-inner > .brand{margin-right:auto}
  .header-inner > .theme-toggle{order:3;margin-left:8px;margin-right:0}
  .header-inner > .menu-toggle{order:4}
  .theme-toggle{width:62px;height:34px}
  .theme-toggle-track{width:62px;height:34px}
  .theme-toggle-knob{width:26px;height:26px;left:3px;top:3px}
  .theme-toggle-knob::after{font-size:13px}
  .theme-toggle.is-dark .theme-toggle-knob{transform:translateX(28px)}
  .theme-toggle.is-dark .theme-toggle-knob::after{font-size:14px}
  .theme-toggle.is-dark:hover .theme-toggle-knob{transform:translateX(28px) scale(1.04)}
}


/* Final theme-control color refinement */
.theme-toggle-knob::after{color:#082e63}
html.dark-mode .theme-toggle.is-dark .theme-toggle-knob{background:var(--dark-gold)}
html.dark-mode .theme-toggle.is-dark .theme-toggle-knob::after{background:#0b2036;color:transparent}
html.dark-mode .theme-toggle.is-dark .theme-toggle-knob::before{background:var(--dark-gold)}

/* V5 reference: show the active icon only inside the moving knob.
   Remove the inactive sun/moon icons from the sides of the track. */
.theme-toggle .theme-toggle-icon,
.theme-toggle-sun,
.theme-toggle-moon{
  display:none !important;
}
