/* ============================================================
   AMICS Foundry — commercial systems, August 2026
   Loaded after home.css so the core AMICS navigation remains shared.
   ============================================================ */

@keyframes foundryLogoFlow{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(-50%,0,0)}
}
@keyframes foundryDialogIn{
  from{opacity:0;transform:translateY(18px) scale(.985)}
  to{opacity:1;transform:none}
}

.foundry-page{
  --foundry-night:#080a0a;
  --foundry-night-2:#0d1010;
  --foundry-ink:#171912;
  --foundry-paper:#eeece5;
  --foundry-paper-2:#e4dfd3;
  --foundry-brass:#b89555;
  --foundry-brass-light:#e2c88d;
  --foundry-line:rgba(27,28,22,.15);
  --foundry-light-line:rgba(247,246,241,.13);
  background:var(--foundry-night);
  color:var(--off);
}
.foundry-page main{display:block;overflow:clip}
.foundry-page :where(a,button,[tabindex]):focus-visible{
  outline:2px solid var(--foundry-brass-light);
  outline-offset:4px;
}

/* ---------- hero ---------- */
.foundry-hero{
  position:relative;
  min-height:100svh;
  overflow:hidden;
  isolation:isolate;
  background:
    radial-gradient(900px 540px at 50% 32%,rgba(184,149,85,.11),transparent 62%),
    radial-gradient(620px 420px at 9% 60%,rgba(51,116,86,.08),transparent 70%),
    var(--foundry-night);
}
.foundry-grid{
  position:absolute;
  z-index:-2;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px);
  background-size:28px 28px;
  mask-image:linear-gradient(to bottom,#000 8%,rgba(0,0,0,.7) 68%,transparent 100%);
  -webkit-mask-image:linear-gradient(to bottom,#000 8%,rgba(0,0,0,.7) 68%,transparent 100%);
}
.foundry-hero::after{
  content:"FOUNDRY";
  position:absolute;
  z-index:-1;
  left:50%;
  bottom:-.18em;
  transform:translateX(-50%);
  font-family:var(--serif);
  font-size:clamp(150px,24vw,410px);
  font-style:italic;
  line-height:.8;
  letter-spacing:-.04em;
  color:rgba(255,255,255,.018);
  pointer-events:none;
  white-space:nowrap;
}
.foundry-nav{position:relative;z-index:10}
.foundry-nav .nav-links a{color:rgba(244,244,242,.56)}
.foundry-nav .nav-links a:hover{color:var(--foundry-brass-light)}
.foundry-nav .btn-pill{transition:background .25s,transform .25s}
.foundry-nav .btn-pill:hover{background:var(--foundry-brass-light);transform:translateY(-1px)}
.foundry-hero-inner{
  width:min(1480px,100%);
  min-height:calc(100svh - 94px);
  margin:0 auto;
  padding:clamp(52px,8vh,104px) 28px 28px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.foundry-lockup{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:clamp(20px,3vw,44px);
  margin-bottom:26px;
  animation:fadeUp .72s both;
}
.foundry-brand{display:flex;align-items:center;justify-content:center}
.foundry-brand--amics img{
  display:block;
  width:clamp(48px,4.3vw,64px);
  height:clamp(48px,4.3vw,64px);
  object-fit:contain;
  filter:invert(1);
}
.foundry-brand--mtdr img{
  display:block;
  width:clamp(108px,10vw,154px);
  height:64px;
  object-fit:contain;
  filter:invert(1);
}
.foundry-x{
  font-family:var(--serif);
  font-size:clamp(31px,3vw,44px);
  line-height:1;
  font-style:italic;
  color:var(--foundry-brass);
}
.foundry-overline{
  font-family:var(--mono);
  font-size:10px;
  line-height:1.5;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:rgba(226,200,141,.69);
  animation:fadeUp .72s .06s both;
}
.foundry-hero h1{
  margin-top:18px;
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(62px,8.4vw,132px);
  line-height:.88;
  letter-spacing:-.045em;
  color:var(--off);
  white-space:nowrap;
  animation:fadeUp .78s .1s both;
}
.foundry-hero h1 em{font-weight:400;color:var(--foundry-brass-light)}
.foundry-deck{
  max-width:780px;
  margin-top:28px;
  font-size:clamp(16px,1.45vw,20px);
  line-height:1.62;
  color:rgba(244,244,242,.62);
  animation:fadeUp .78s .17s both;
}
.foundry-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:26px;
  margin-top:28px;
  animation:fadeUp .78s .23s both;
}
.foundry-button{
  min-height:52px;
  padding:0 28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid transparent;
  border-radius:999px;
  font-size:14px;
  font-weight:600;
  transition:transform .25s var(--ease),background .25s,color .25s,border-color .25s;
}
.foundry-button:hover{transform:translateY(-2px)}
.foundry-button--light{background:var(--off);color:#0a0c0b}
.foundry-button--light:hover{background:var(--foundry-brass-light)}
.foundry-button--dark{background:var(--foundry-ink);color:var(--off)}
.foundry-button--dark:hover{background:#2a2d24}
.foundry-button--line{border-color:rgba(244,244,242,.25);color:var(--off)}
.foundry-button--line:hover{border-color:var(--foundry-brass-light);color:var(--foundry-brass-light)}
.foundry-text-link{
  padding-bottom:5px;
  border-bottom:1px solid rgba(244,244,242,.25);
  font-family:var(--mono);
  font-size:10px;
  letter-spacing:.14em;
  color:rgba(244,244,242,.6);
  transition:color .2s,border-color .2s;
}
.foundry-text-link:hover{color:var(--foundry-brass-light);border-color:var(--foundry-brass-light)}

/* Press-and-hold logo reel. Playback rate is controlled by foundry.js. */
.foundry-logo-band{
  width:min(1460px,calc(100vw - 24px));
  margin-top:clamp(38px,6vh,72px);
  padding:14px 0 6px;
  cursor:grab;
  user-select:none;
  touch-action:pan-y;
  animation:fadeUp .78s .3s both;
}
.foundry-logo-band:active{cursor:grabbing}
.foundry-logo-window{
  position:relative;
  overflow:hidden;
  padding:10px 0;
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.foundry-logo-track{
  display:flex;
  align-items:center;
  width:max-content;
  will-change:transform;
  animation:foundryLogoFlow 62s linear infinite;
}
.foundry-logo-group{
  flex:none;
  display:flex;
  align-items:center;
  min-width:100vw;
  gap:clamp(50px,5vw,82px);
  padding-right:clamp(50px,5vw,82px);
}
.foundry-logo-group img{
  display:block;
  flex:none;
  width:auto;
  height:34px;
  max-width:160px;
  object-fit:contain;
  filter:grayscale(1) brightness(0) invert(1);
  opacity:.54;
  pointer-events:none;
  transition:opacity .2s;
}
.foundry-logo-band:hover .foundry-logo-group img{opacity:.72}
.foundry-logo-band-label{
  padding:0 22px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.foundry-logo-band-label>p{
  font-family:var(--mono);
  font-size:8px;
  line-height:1.5;
  letter-spacing:.2em;
  color:rgba(244,244,242,.39);
}

/* ---------- shared section language ---------- */
.foundry-section-label{
  width:min(1240px,100%);
  margin:0 auto 64px;
  display:flex;
  align-items:center;
  gap:14px;
  font-family:var(--mono);
  font-size:10px;
  line-height:1.4;
  letter-spacing:.22em;
  text-transform:uppercase;
}
.foundry-section-label::after{content:"";height:1px;flex:1;background:var(--foundry-line)}
.foundry-section-label span{color:#866729}
.foundry-section-label b{font-weight:500;color:#656257}
.foundry-section-label--dark::after{background:var(--foundry-light-line)}
.foundry-section-label--dark span{color:var(--foundry-brass)}
.foundry-section-label--dark b{color:rgba(244,244,242,.47)}

/* ---------- the unified offer ---------- */
.foundry-offer{
  position:relative;
  padding:clamp(94px,10vw,148px) 44px clamp(104px,11vw,158px);
  overflow:hidden;
  border-radius:44px 44px 0 0;
  background:
    linear-gradient(rgba(27,28,22,.027) 1px,transparent 1px),
    linear-gradient(90deg,rgba(27,28,22,.027) 1px,transparent 1px),
    radial-gradient(700px 420px at 88% 8%,rgba(184,149,85,.17),transparent 72%),
    linear-gradient(180deg,var(--foundry-paper),var(--foundry-paper-2));
  background-size:32px 32px,32px 32px,auto,auto;
  color:var(--foundry-ink);
}
.foundry-offer::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(255,255,255,.35),transparent 34%,transparent 68%,rgba(255,255,255,.18));
  pointer-events:none;
}
.foundry-offer-head{
  position:relative;
  width:min(1240px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.18fr) minmax(300px,.55fr);
  align-items:end;
  gap:clamp(42px,7vw,100px);
}
.foundry-offer-head h2{
  max-width:870px;
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(54px,6.1vw,92px);
  line-height:.92;
  letter-spacing:-.032em;
}
.foundry-offer-head h2 em{font-weight:400;color:#745a28}
.foundry-offer-intro{
  max-width:430px;
  padding:0 0 9px 24px;
  border-left:1px solid rgba(116,90,40,.3);
}
.foundry-offer-intro p{
  font-family:var(--serif);
  font-size:clamp(24px,2.2vw,32px);
  line-height:1.08;
  font-style:italic;
  color:#745a28;
}
.foundry-offer-intro span{
  display:block;
  margin-top:15px;
  font-size:15px;
  line-height:1.68;
  color:#625e52;
}
.foundry-menu{
  position:relative;
  width:min(1240px,100%);
  margin:clamp(62px,7vw,86px) auto 0;
  display:grid;
  grid-template-columns:minmax(350px,.78fr) minmax(0,1.28fr);
  min-height:730px;
  border:1px solid rgba(27,28,22,.16);
  border-radius:28px;
  overflow:hidden;
  background:rgba(248,246,239,.72);
  box-shadow:0 38px 100px rgba(67,58,39,.1);
  backdrop-filter:blur(8px);
}
.foundry-menu-list{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  padding:18px;
  border-right:1px solid rgba(27,28,22,.14);
  background:rgba(232,226,213,.68);
}
.foundry-menu-trigger{
  position:relative;
  min-height:112px;
  padding:22px 19px;
  display:flex;
  align-items:center;
  gap:16px;
  border:0;
  border-bottom:1px solid rgba(27,28,22,.12);
  border-radius:16px;
  background:transparent;
  color:#25271f;
  text-align:left;
  cursor:pointer;
  transition:background .22s,color .22s,transform .22s var(--ease),box-shadow .22s;
}
.foundry-menu-trigger:last-child{border-bottom-color:transparent}
.foundry-menu-trigger:hover:not(.is-active){background:rgba(255,255,255,.43);transform:translateX(3px)}
.foundry-menu-trigger.is-active{
  z-index:1;
  border-bottom-color:transparent;
  background:var(--foundry-ink);
  color:#f4f2eb;
  box-shadow:0 15px 36px rgba(35,34,27,.16);
}
.foundry-menu-trigger>span:first-child{
  align-self:flex-start;
  min-width:25px;
  padding-top:3px;
  font-family:var(--mono);
  font-size:9px;
  line-height:1.4;
  color:#876829;
}
.foundry-menu-trigger.is-active>span:first-child{color:var(--foundry-brass-light)}
.foundry-menu-trigger>span:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column;gap:7px}
.foundry-menu-trigger small{
  font-family:var(--mono);
  font-size:8px;
  line-height:1.4;
  letter-spacing:.13em;
  color:#827c6e;
}
.foundry-menu-trigger.is-active small{color:rgba(226,200,141,.65)}
.foundry-menu-trigger strong{
  font-family:var(--serif);
  font-size:clamp(21px,1.8vw,27px);
  line-height:1.02;
  font-weight:400;
  letter-spacing:-.015em;
}
.foundry-menu-trigger i{
  font-family:var(--mono);
  font-size:14px;
  font-style:normal;
  color:#8c8678;
  transition:transform .22s,color .22s;
}
.foundry-menu-trigger.is-active i{color:var(--foundry-brass-light);transform:rotate(45deg)}
.foundry-menu-stage{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(560px 420px at 100% 0,rgba(184,149,85,.16),transparent 64%),
    linear-gradient(145deg,#171912,#0c0f0d 72%);
}
.foundry-menu-panel{
  position:relative;
  isolation:isolate;
  min-height:100%;
  padding:clamp(40px,4.2vw,68px);
  display:flex;
  flex-direction:column;
  color:#f3f1e9;
}
.foundry-menu-panel::after{
  content:attr(data-index);
  position:absolute;
  z-index:-1;
  right:-.02em;
  top:-.18em;
  font-family:var(--serif);
  font-size:clamp(210px,24vw,380px);
  line-height:1;
  font-style:italic;
  color:rgba(255,255,255,.025);
  pointer-events:none;
}
.foundry-menu-panel.is-entering{animation:foundryMenuIn .24s var(--ease) both}
@keyframes foundryMenuIn{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}
.foundry-menu-panel-price{
  position:absolute;
  z-index:2;
  top:clamp(40px,4.2vw,68px);
  right:clamp(40px,4.2vw,68px);
  width:155px;
  text-align:right;
}
.foundry-menu-panel-price small,
.foundry-menu-panel-price span{
  display:block;
  font-family:var(--mono);
  font-size:7px;
  line-height:1.45;
  letter-spacing:.15em;
}
.foundry-menu-panel-price small{color:rgba(244,242,235,.45)}
.foundry-menu-panel-price strong{
  display:block;
  margin-top:7px;
  font-family:var(--serif);
  font-size:clamp(36px,3.2vw,50px);
  line-height:.8;
  letter-spacing:-.035em;
  font-weight:400;
  color:var(--foundry-brass-light);
  white-space:nowrap;
}
.foundry-menu-panel-price span{margin-top:10px;color:rgba(226,200,141,.58)}
.foundry-menu-panel-heading{position:relative;z-index:1;max-width:100%;padding:0 180px 31px 0;border-bottom:1px solid rgba(244,242,235,.12)}
.foundry-menu-panel-heading>p,
.foundry-menu-facts small,
.foundry-menu-services>small,
.foundry-menu-proof small{
  font-family:var(--mono);
  font-size:8px;
  line-height:1.5;
  letter-spacing:.16em;
  color:var(--foundry-brass-light);
}
.foundry-menu-panel-heading h3{
  max-width:690px;
  margin-top:15px;
  font-family:var(--serif);
  font-size:clamp(48px,5.2vw,78px);
  line-height:.92;
  font-weight:400;
  letter-spacing:-.032em;
}
.foundry-menu-panel-heading>span{
  display:block;
  max-width:620px;
  margin-top:21px;
  font-size:16px;
  line-height:1.6;
  color:rgba(244,242,235,.63);
}
.foundry-menu-facts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  margin-top:31px;
}
.foundry-menu-facts>div{padding-right:20px}
.foundry-menu-facts p{
  margin-top:9px;
  font-size:13px;
  line-height:1.56;
  color:rgba(244,242,235,.72);
}
.foundry-menu-services{margin-top:29px}
.foundry-menu-services ul{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.foundry-menu-services li{
  padding:7px 10px;
  border:1px solid rgba(244,242,235,.13);
  border-radius:999px;
  font-family:var(--mono);
  font-size:8px;
  line-height:1.3;
  letter-spacing:.04em;
  color:rgba(244,242,235,.68);
  background:rgba(255,255,255,.035);
}
.foundry-menu-proof{
  position:relative;
  margin-top:31px;
  padding:22px 24px;
  display:flex;
  align-items:center;
  gap:22px;
  border:1px solid rgba(226,200,141,.2);
  border-radius:16px;
  background:rgba(226,200,141,.08);
}
.foundry-menu-proof img{
  width:clamp(74px,8vw,120px);
  max-height:48px;
  object-fit:contain;
  filter:grayscale(1) brightness(0) invert(1);
  opacity:.8;
}
.foundry-menu-proof--mtdr img{max-height:36px}
.foundry-menu-proof>p{display:grid;grid-template-columns:auto 1fr;align-items:baseline;column-gap:13px;row-gap:4px;min-width:0}
.foundry-menu-proof small{grid-column:1/-1}
.foundry-menu-proof strong{
  font-family:var(--serif);
  font-size:clamp(25px,2.7vw,38px);
  line-height:1;
  font-weight:400;
  white-space:nowrap;
}
.foundry-menu-proof p>span{font-size:12px;line-height:1.45;color:rgba(244,242,235,.6)}
.foundry-menu-proof-monogram{
  width:56px;
  height:56px;
  flex:none;
  display:grid;
  place-items:center;
  border:1px solid rgba(226,200,141,.4);
  border-radius:50%;
  font-family:var(--serif);
  font-size:30px;
  color:var(--foundry-brass-light);
}
.foundry-menu-proof--centillion>span:first-child{
  font-family:var(--mono);
  font-size:12px;
  letter-spacing:.17em;
  color:rgba(244,242,235,.75);
}
.foundry-menu-cta{
  align-self:flex-end;
  margin-top:17px;
  padding-bottom:4px;
  border-bottom:1px solid rgba(226,200,141,.35);
  font-family:var(--mono);
  font-size:9px;
  line-height:1.4;
  letter-spacing:.1em;
  color:var(--foundry-brass-light);
}
.foundry-menu-cta span{display:inline-block;margin-left:7px;transition:transform .2s}
.foundry-menu-cta:hover span{transform:translate(3px,-3px)}
.foundry-menu-note{
  position:relative;
  width:min(1240px,100%);
  margin:22px auto 0;
  padding:24px 28px;
  display:grid;
  grid-template-columns:auto minmax(0,.8fr) minmax(310px,1fr);
  align-items:center;
  gap:25px;
  border:1px solid rgba(27,28,22,.15);
  border-radius:18px;
  background:rgba(248,246,239,.55);
}
.foundry-menu-note>span{font-family:var(--mono);font-size:8px;letter-spacing:.14em;color:#84672d}
.foundry-menu-note p{font-size:12px;line-height:1.55;color:#696457}
.foundry-menu-note a{font-family:var(--serif);font-size:21px;line-height:1.15;text-align:right;color:#282920}
.foundry-menu-note b{font-family:var(--mono);font-size:12px;font-weight:400;color:#84672d}
.foundry-menu-note a:hover{color:#745a28}
.foundry-menu:not(.is-enhanced) .foundry-menu-panel[hidden]{display:flex}
.foundry-menu:not(.is-enhanced){grid-template-columns:1fr}
.foundry-menu:not(.is-enhanced) .foundry-menu-list{display:none}
.foundry-menu:not(.is-enhanced) .foundry-menu-stage{display:grid;grid-template-columns:1fr 1fr;background:transparent}
.foundry-menu:not(.is-enhanced) .foundry-menu-panel{min-height:520px;background:linear-gradient(145deg,#171912,#0c0f0d 72%)}
.foundry-menu:not(.is-enhanced) .foundry-menu-proof{margin-top:28px}
.foundry-menu.is-enhanced .foundry-menu-panel[hidden]{display:none}
/* ---------- outcomes ---------- */
.foundry-outcomes{
  padding:28px 44px 40px;
  background:var(--foundry-paper-2);
  color:var(--foundry-ink);
}
.foundry-metric-grid{
  width:min(1240px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:1.45fr .8fr .75fr 1.15fr .75fr .75fr;
  align-items:start;
  gap:16px;
}
.foundry-metric{
  min-width:0;
  padding:20px 8px 22px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  border:0;
  background:transparent;
}
.foundry-metric+.foundry-metric{border-left:0}
.foundry-metric>span,
.foundry-metric>small{
  font-family:var(--mono);
  font-size:9px;
  line-height:1.5;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:#8d877a;
}
.foundry-metric strong{
  display:block;
  margin:0;
  font-family:var(--serif);
  font-size:clamp(25px,2.4vw,38px);
  line-height:.9;
  letter-spacing:-.045em;
  font-weight:400;
  color:#1b1d17;
  white-space:nowrap;
}
.foundry-metric:first-child strong,
.foundry-metric:nth-child(4) strong{font-size:clamp(23px,2.25vw,36px)}
.foundry-metric p{
  margin-top:10px;
  font-family:var(--mono);
  font-size:9px;
  line-height:1.45;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#6b675c;
}

/* ---------- straightforward pricing ---------- */
.foundry-pricing{
  position:relative;
  isolation:isolate;
  padding:clamp(58px,5.5vw,76px) 44px clamp(66px,6.5vw,88px);
  overflow:hidden;
  background:linear-gradient(180deg,var(--foundry-night-2) 0%,#0b0d0d 52%,var(--foundry-night) 100%);
  color:#f4f2eb;
}
.foundry-pricing-logos{
  position:absolute;
  z-index:-1;
  inset:0;
  overflow:hidden;
  pointer-events:none;
  mask-image:linear-gradient(to bottom,transparent 2%,#000 18%,#000 84%,transparent 100%);
  -webkit-mask-image:linear-gradient(to bottom,transparent 2%,#000 18%,#000 84%,transparent 100%);
}
.foundry-pricing-logo{
  position:absolute;
  height:auto;
  object-fit:contain;
  filter:brightness(0) invert(1);
  opacity:.055;
  user-select:none;
}
.foundry-pricing-logo--vanity{width:340px;left:-74px;top:19%;transform:rotate(-7deg)}
.foundry-pricing-logo--purecare{width:330px;right:-62px;top:11%;transform:rotate(6deg)}
.foundry-pricing-logo--mars{width:190px;left:6%;bottom:8%;transform:rotate(9deg)}
.foundry-pricing-logo--uta{width:108px;right:8%;bottom:4%;transform:rotate(-8deg)}
.foundry-pricing-logo--bullseye{width:92px;left:48%;top:8%;transform:rotate(8deg)}
.foundry-pricing-logo--shipyard{width:310px;right:29%;bottom:2%;transform:rotate(-5deg)}
.foundry-pricing-head{
  position:relative;
  z-index:1;
  width:min(1060px,100%);
  margin:0 auto;
  padding-bottom:clamp(24px,2.5vw,34px);
  display:grid;
  grid-template-columns:auto minmax(360px,1fr);
  align-items:end;
  gap:clamp(36px,6vw,80px);
  border-bottom:1px solid rgba(244,242,235,.14);
}
.foundry-pricing-head h2{
  font-family:var(--serif);
  font-size:clamp(52px,5.2vw,64px);
  line-height:.86;
  letter-spacing:-.045em;
  font-weight:400;
}
.foundry-pricing-head p{
  max-width:680px;
  padding-bottom:4px;
  font-size:clamp(14px,1.1vw,16px);
  line-height:1.65;
  color:rgba(244,242,235,.58);
}
.foundry-pricing-scale-label{
  position:relative;
  z-index:1;
  width:min(1060px,100%);
  margin:24px auto 0;
  font-family:var(--mono);
  font-size:8px;
  line-height:1.45;
  letter-spacing:.13em;
  color:rgba(244,242,235,.48);
}
.foundry-pricing-scale-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.foundry-pricing-scale-label>span{color:rgba(226,200,141,.78)}
.foundry-pricing-scale-label>small{
  font:inherit;
  letter-spacing:.06em;
  text-align:right;
  color:rgba(244,242,235,.38);
}
.foundry-pricing-switcher{
  position:relative;
  z-index:1;
  width:min(1060px,100%);
  margin:10px auto 0;
}
.foundry-pricing-tabs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  overflow:hidden;
  border:1px solid rgba(244,242,235,.14);
  border-radius:20px;
  background:rgba(8,10,10,.68);
  backdrop-filter:blur(12px);
}
.foundry-pricing-tab{
  position:relative;
  min-width:0;
  min-height:116px;
  padding:19px clamp(20px,2.2vw,28px);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
  border:0;
  border-radius:0;
  background:transparent;
  color:#f4f2eb;
  text-align:left;
  cursor:pointer;
  transition:background .22s,border-color .22s,color .22s,box-shadow .22s;
}
.foundry-pricing-tab+.foundry-pricing-tab{border-left:1px solid rgba(244,242,235,.12)}
.foundry-pricing-tab>span{
  font-family:var(--mono);
  font-size:8px;
  line-height:1.45;
  letter-spacing:.13em;
  color:rgba(244,242,235,.46);
}
.foundry-pricing-tab>strong{
  margin-top:8px;
  font-family:var(--serif);
  font-size:clamp(32px,3.1vw,42px);
  line-height:.9;
  letter-spacing:-.04em;
  font-weight:400;
  color:#f4f2eb;
  white-space:nowrap;
}
.foundry-pricing-tab>small{
  margin-top:8px;
  font-size:11px;
  line-height:1.4;
  color:rgba(244,242,235,.5);
}
.foundry-pricing-tab:hover{background:rgba(255,255,255,.035)}
.foundry-pricing-tab:focus-visible{
  z-index:2;
  outline:2px solid var(--foundry-brass-light);
  outline-offset:-4px;
}
.foundry-pricing-tab.is-active{
  background:linear-gradient(145deg,rgba(184,149,85,.17),rgba(184,149,85,.055));
  box-shadow:inset 0 0 0 1px rgba(226,200,141,.42);
}
.foundry-pricing-tab.is-active>span,
.foundry-pricing-tab.is-active>strong{color:var(--foundry-brass-light)}
.foundry-pricing-tab--core:not(.is-active){background:linear-gradient(145deg,rgba(184,149,85,.09),rgba(184,149,85,.025))}
.foundry-pricing-tab--core:not(.is-active)>span{color:rgba(226,200,141,.62)}
.foundry-pricing-tab--flagship.is-active{
  background:
    radial-gradient(240px 110px at 80% 0,rgba(226,200,141,.15),transparent 72%),
    linear-gradient(145deg,rgba(184,149,85,.19),rgba(88,67,31,.08));
}
.foundry-price-panel{margin-top:18px}
.foundry-price-panel[hidden]{display:none}
.foundry-price-panel.is-entering{animation:foundryPricePanelIn .26s var(--ease) both}
@keyframes foundryPricePanelIn{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}
.foundry-price-panel-head{
  min-height:24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  font-family:var(--mono);
  font-size:8px;
  line-height:1.45;
  letter-spacing:.12em;
}
.foundry-price-panel-head>span{color:rgba(226,200,141,.72)}
.foundry-price-panel-head>p{
  text-align:right;
  letter-spacing:.045em;
  color:rgba(244,242,235,.4);
}
.foundry-price-cards{
  position:relative;
  z-index:1;
  width:100%;
  margin:8px auto 0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.foundry-price-card{
  position:relative;
  min-width:0;
  min-height:316px;
  padding:30px clamp(20px,2vw,24px) 27px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  border:1px solid rgba(244,242,235,.14);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.025));
  transition:transform .25s var(--ease),border-color .25s,background .25s;
}
.foundry-price-card:hover{
  transform:translateY(-4px);
  border-color:rgba(226,200,141,.34);
  background:rgba(255,255,255,.058);
}
.foundry-price-card h3{
  min-height:2.2em;
  max-width:240px;
  font-family:var(--serif);
  font-size:clamp(24px,2vw,28px);
  line-height:1.04;
  letter-spacing:-.025em;
  font-weight:400;
}
.foundry-price{
  margin-top:22px;
  display:flex;
  align-items:flex-start;
  flex-direction:column;
  gap:9px;
}
.foundry-price small{
  font-family:var(--mono);
  font-size:8px;
  line-height:1.4;
  letter-spacing:.14em;
  color:rgba(226,200,141,.72);
}
.foundry-price strong{
  font-family:var(--serif);
  font-size:clamp(42px,3.7vw,50px);
  line-height:.82;
  letter-spacing:-.05em;
  font-weight:400;
  color:var(--foundry-brass-light);
  white-space:nowrap;
}
.foundry-price>span{
  font-family:var(--mono);
  font-size:10px;
  line-height:1.4;
  letter-spacing:.065em;
  color:rgba(244,242,235,.5);
}
.foundry-price-card>p{
  max-width:235px;
  margin-top:auto;
  padding-top:20px;
  font-size:13px;
  line-height:1.5;
  color:rgba(244,242,235,.61);
}

/* ---------- case studies ---------- */
.foundry-case-section{
  position:relative;
  padding:clamp(92px,9vw,140px) 0 clamp(104px,10vw,154px);
  overflow:hidden;
  background:
    linear-gradient(rgba(27,28,22,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(27,28,22,.035) 1px,transparent 1px),
    var(--foundry-paper-2);
  background-size:32px 32px,32px 32px,auto;
  color:var(--foundry-ink);
}
.foundry-case-frame{
  width:100%;
  margin:0 auto;
  padding:0;
  overflow:hidden;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.foundry-case-head{
  width:min(1240px,calc(100% - 120px));
  margin:0 auto 48px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
  gap:34px;
}
.foundry-case-head>div:first-child>p:first-child{
  display:block;
  margin-bottom:15px;
  font-family:var(--mono);
  font-size:9px;
  line-height:1.5;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:#806328;
}
.foundry-case-head h2{
  font-family:var(--serif);
  font-size:clamp(52px,5.4vw,82px);
  line-height:.94;
  letter-spacing:-.025em;
  font-weight:400;
}
.foundry-case-head>div:first-child>span{
  display:block;
  max-width:650px;
  margin-top:18px;
  font-size:16px;
  line-height:1.62;
  color:#6b675c;
}
.foundry-case-controls{display:flex;align-items:center;gap:10px;padding-bottom:5px}
.foundry-case-arrow{
  width:52px;
  height:52px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(27,28,22,.18);
  border-radius:50%;
  background:rgba(255,255,255,.55);
  color:#22241c;
  font-size:22px;
  line-height:1;
  transition:background .2s,border-color .2s,color .2s,transform .2s;
}
.foundry-case-arrow:hover:not(:disabled){background:#fff;border-color:rgba(116,90,40,.38);color:#745a28;transform:translateY(-2px)}
.foundry-case-arrow:disabled{opacity:.28;cursor:default}
.foundry-case-viewport{
  --case-gutter:max(60px,calc(50% - 620px));
  overflow-x:auto;
  overflow-y:hidden;
  margin-left:var(--case-gutter);
  padding:22px var(--case-gutter) 42px 0;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scroll-padding-inline-start:0;
  overscroll-behavior-inline:contain;
  scrollbar-width:none;
}
.foundry-case-viewport::-webkit-scrollbar{display:none}
.foundry-case-track{
  display:flex;
  gap:20px;
  width:max-content;
}
.foundry-case-card{
  --case-bg:#181922;
  --case-fg:#f7f6f2;
  --case-muted:rgba(247,246,242,.64);
  --case-accent:#b7a3e5;
  --case-line:rgba(247,246,242,.12);
  position:relative;
  isolation:isolate;
  flex:0 0 clamp(310px,26vw,390px);
  min-height:460px;
  padding:30px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  scroll-snap-align:start;
  border:1px solid var(--case-line);
  border-radius:20px;
  background:var(--case-bg);
  color:var(--case-fg);
  cursor:pointer;
  transition:transform .32s var(--ease),box-shadow .32s,border-color .32s;
}
.foundry-case-card:hover{
  transform:translateY(-7px);
  border-color:color-mix(in srgb,var(--case-accent) 55%,transparent);
  box-shadow:0 30px 70px rgba(0,0,0,.28);
}
.foundry-case-card::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:radial-gradient(380px 240px at 82% 95%,color-mix(in srgb,var(--case-accent) 18%,transparent),transparent 76%);
  pointer-events:none;
}
.foundry-case-card>:not(.foundry-case-art,.foundry-case-hitbox){position:relative;z-index:1}
.foundry-case-brand{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:600}
.foundry-case-brand--wordmark{
  min-height:58px;
  justify-content:flex-start;
}
.foundry-case-brand--wordmark>img{
  display:block;
  width:auto;
  height:auto;
  max-width:220px;
  max-height:54px;
  object-fit:contain;
}
.case--mars .foundry-case-brand--wordmark>img{max-width:165px;max-height:58px}
.foundry-case-brand--centillion{
  min-height:58px;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:8px;
}
.foundry-case-centillion-wordmark{
  display:block;
  font-family:Montserrat,Onest,sans-serif;
  font-size:19px;
  line-height:1;
  font-weight:650;
  letter-spacing:.18em;
  color:var(--case-fg);
}
.foundry-case-brand--centillion>span:last-child{
  font-family:var(--mono);
  font-size:8px;
  line-height:1.4;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--case-muted);
}
.foundry-case-icon{
  width:40px;
  height:40px;
  flex:none;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid var(--case-line);
  border-radius:11px;
  background:color-mix(in srgb,var(--case-accent) 14%,transparent);
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.foundry-case-icon img{display:block;width:72%;height:72%;object-fit:contain}
.foundry-case-icon--bullseye{background:#fff9f5;border-color:rgba(255,255,255,.22)}
.foundry-case-icon--bullseye img{width:80%;height:80%}
.foundry-case-card h3{
  max-width:320px;
  margin-top:30px;
  font-family:var(--serif);
  font-size:clamp(31px,2.45vw,39px);
  line-height:1.02;
  letter-spacing:-.018em;
  font-weight:400;
}
.foundry-case-card>p{
  margin-top:28px;
  font-family:var(--mono);
  font-size:8px;
  line-height:1.5;
  letter-spacing:.17em;
  text-transform:uppercase;
  color:var(--case-accent);
}
.foundry-case-card>span:not(.foundry-case-art){
  max-width:310px;
  margin-top:15px;
  font-size:14px;
  line-height:1.6;
  color:var(--case-muted);
}
.foundry-case-card>strong{
  align-self:flex-start;
  margin-top:auto;
  padding-top:22px;
  font-family:var(--serif);
  font-size:40px;
  line-height:.9;
  font-weight:400;
  color:var(--case-accent);
}
.foundry-case-art{
  position:absolute;
  z-index:0;
  right:-15%;
  bottom:-5%;
  width:76%;
  height:38%;
  object-fit:contain;
  object-position:center;
  filter:grayscale(1) brightness(2);
  transform:rotate(-7deg) scale(1.08);
  opacity:.055;
  pointer-events:none;
}
.foundry-case-art--letter{
  height:auto;
  bottom:-.19em;
  right:-.04em;
  font-family:var(--serif);
  font-size:250px;
  font-style:italic;
  line-height:.8;
  text-align:right;
  color:var(--case-accent);
  opacity:.1;
  filter:none;
  transform:none;
}
.foundry-case-art--centillion{
  right:-.08em;
  bottom:.12em;
  width:auto;
  height:auto;
  font-family:var(--mono);
  font-size:70px;
  line-height:1;
  letter-spacing:.08em;
  color:var(--case-accent);
  filter:none;
  transform:rotate(-9deg);
  opacity:.06;
}
.foundry-case-art--target{
  right:-76px;
  bottom:-76px;
  width:260px;
  height:260px;
  border:36px solid var(--case-accent);
  border-radius:50%;
  background:radial-gradient(circle,var(--case-accent) 0 14%,transparent 15% 32%,var(--case-accent) 33% 48%,transparent 49%);
  filter:none;
  transform:none;
  opacity:.055;
}
.foundry-case-hitbox{
  position:absolute;
  z-index:5;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  border-radius:inherit;
  background:transparent;
  cursor:pointer;
}
.foundry-case-card:has(.foundry-case-hitbox:focus-visible){outline:2px solid var(--case-accent);outline-offset:5px}
.foundry-case-status{
  width:min(1240px,calc(100% - 120px));
  min-height:1.6em;
  margin:5px auto 0;
  font-family:var(--mono);
  font-size:9px;
  line-height:1.6;
  letter-spacing:.14em;
  color:#827d71;
}

/* Case palettes */
.case--vanity{--case-bg:#201816;--case-fg:#fff7ef;--case-muted:rgba(255,247,239,.62);--case-accent:#e7af91;--case-line:rgba(255,220,200,.15)}
.case--purecare{--case-bg:#10243b;--case-fg:#ecf8ff;--case-muted:rgba(236,248,255,.62);--case-accent:#52c4df;--case-line:rgba(130,217,238,.18)}
.case--credo{--case-bg:#ece7dd;--case-fg:#162d2a;--case-muted:rgba(22,45,42,.66);--case-accent:#1d7166;--case-line:rgba(22,45,42,.15)}
.case--mars{--case-bg:#461714;--case-fg:#fff5ec;--case-muted:rgba(255,245,236,.63);--case-accent:#f47b43;--case-line:rgba(255,176,134,.18)}
.case--uta{--case-bg:#151618;--case-fg:#f7f7f4;--case-muted:rgba(247,247,244,.6);--case-accent:#bfc4ca;--case-line:rgba(247,247,244,.14)}
.case--centillion{--case-bg:#192126;--case-fg:#f0f5f4;--case-muted:rgba(240,245,244,.62);--case-accent:#8fb5ad;--case-line:rgba(173,209,201,.17)}
.case--bullseye{--case-bg:#2b1512;--case-fg:#fff6e9;--case-muted:rgba(255,246,233,.62);--case-accent:#e9ad58;--case-line:rgba(242,188,105,.19)}
.case--mtdr{--case-bg:#161812;--case-fg:#f7f4eb;--case-muted:rgba(247,244,235,.62);--case-accent:#d1ae67;--case-line:rgba(226,200,141,.17)}
.case--integration{--case-bg:#10241d;--case-fg:#effbf4;--case-muted:rgba(239,251,244,.62);--case-accent:#5fce99;--case-line:rgba(133,224,176,.17)}
.case--shipyard{--case-bg:#121b22;--case-fg:#f2f6f8;--case-muted:rgba(242,246,248,.62);--case-accent:#70b4cc;--case-line:rgba(134,199,222,.17)}
.case--more{--case-bg:#efe9dc;--case-fg:#171815;--case-muted:rgba(23,24,21,.6);--case-accent:#8f3e32;--case-line:rgba(23,24,21,.14)}
.foundry-case-icon--more{font-family:var(--serif);font-size:31px;line-height:1;color:var(--case-accent)}
.foundry-case-card.case--more>strong{font-size:58px;line-height:.7}
.foundry-case-card.case--more>strong{font-family:var(--mono);font-size:11px;line-height:1.3;letter-spacing:.13em}
.case--credo .foundry-case-icon img{filter:brightness(.3) sepia(1) hue-rotate(118deg) saturate(1.8)}
.case--credo .foundry-case-art{filter:none}
.case--mars .foundry-case-art{filter:grayscale(1) brightness(3)}
.foundry-case-card.case--bullseye>strong{font-size:30px;letter-spacing:-.02em}
.case--mtdr .foundry-case-brand--wordmark>img,
.case--integration .foundry-case-brand--wordmark>img{max-width:180px;filter:invert(1)}
.case--shipyard .foundry-case-brand--wordmark>img{max-width:180px;filter:none}
.case--mtdr .foundry-case-art,
.case--integration .foundry-case-art{filter:invert(1);opacity:.045}
.case--shipyard .foundry-case-art{filter:none;opacity:.045}
.case--shipyard .foundry-case-brand--wordmark>img{max-width:155px}
.foundry-case-card.case--shipyard>strong,
.foundry-case-card.case--integration>strong{font-size:31px;letter-spacing:-.02em}

/* Native dialog expansion */
.foundry-case-dialog{
  width:min(780px,calc(100vw - 36px));
  max-height:min(820px,calc(100dvh - 36px));
  margin:auto;
  padding:0;
  overflow:visible;
  border:1px solid rgba(255,255,255,.17);
  border-radius:24px;
  background:#101214;
  color:#f4f4f2;
  box-shadow:0 34px 120px rgba(0,0,0,.62);
}
.foundry-case-dialog::backdrop{background:rgba(4,5,6,.78);backdrop-filter:blur(10px)}
.foundry-case-dialog[open]{animation:foundryDialogIn .32s var(--ease) both}
.foundry-case-dialog-panel{
  position:relative;
  max-height:min(820px,calc(100dvh - 36px));
  padding:clamp(30px,5vw,58px);
  overflow:auto;
  border-radius:inherit;
  background:
    radial-gradient(560px 300px at 88% 0,color-mix(in srgb,var(--case-accent) 15%,transparent),transparent 68%),
    #101214;
}
.foundry-case-dialog-close{
  position:sticky;
  z-index:2;
  top:0;
  float:right;
  width:42px;
  height:42px;
  margin:-14px -14px 0 22px;
  display:grid;
  place-items:center;
  border:1px solid rgba(244,244,242,.16);
  border-radius:50%;
  background:rgba(16,18,20,.86);
  color:rgba(244,244,242,.76);
  font-size:20px;
  backdrop-filter:blur(8px);
  transition:background .2s,color .2s,transform .2s;
}
.foundry-case-dialog-close:hover{background:#f4f4f2;color:#111;transform:rotate(5deg)}
.foundry-case-dialog-body>span,
.foundry-case-dialog-body>p:first-child{
  font-family:var(--mono);
  font-size:9px;
  line-height:1.5;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--foundry-brass-light);
}
.foundry-case-dialog-panel>.foundry-case-brand{margin:4px 0 34px}
.foundry-case-dialog-panel>p{
  font-family:var(--mono);
  font-size:9px;
  line-height:1.5;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--case-accent);
}
.foundry-case-dialog-panel>h2{
  max-width:650px;
  margin-top:18px;
  font-family:var(--serif);
  font-size:clamp(42px,5vw,68px);
  line-height:.96;
  letter-spacing:-.025em;
  font-weight:400;
}
.foundry-case-dialog-body h2{
  max-width:620px;
  margin-top:18px;
  font-family:var(--serif);
  font-size:clamp(42px,5vw,68px);
  line-height:.96;
  letter-spacing:-.025em;
  font-weight:400;
}
.foundry-case-dialog-body>p:not(:first-child){
  max-width:650px;
  margin-top:20px;
  font-size:16px;
  line-height:1.72;
  color:rgba(244,244,242,.63);
}
.foundry-case-facts{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  margin-top:36px;
  border:1px solid rgba(244,244,242,.13);
  background:rgba(244,244,242,.13);
}
.foundry-case-facts>article,
.foundry-case-facts>div{
  min-height:172px;
  padding:20px;
  background:#151719;
}
.foundry-case-facts span,
.foundry-case-facts dt,
.foundry-case-facts h3{
  font-family:var(--mono);
  font-size:8px;
  line-height:1.5;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--foundry-brass-light);
}
.foundry-case-facts p,
.foundry-case-facts dd{
  margin-top:28px;
  font-size:13px;
  line-height:1.58;
  color:rgba(244,244,242,.7);
}
body.foundry-dialog-open{overflow:hidden}

/* ---------- full proof ledger ---------- */
.foundry-proof-library-dialog{
  width:min(1400px,calc(100vw - 24px));
  height:min(900px,calc(100dvh - 24px));
  max-width:none;
  max-height:none;
  margin:auto;
  padding:0;
  overflow:hidden;
  border:1px solid rgba(27,28,22,.2);
  border-radius:24px;
  background:var(--foundry-paper-2);
  color:var(--foundry-ink);
  box-shadow:0 42px 140px rgba(0,0,0,.52);
}
.foundry-proof-library-dialog::backdrop{background:rgba(5,6,5,.77);backdrop-filter:blur(11px)}
.foundry-proof-library-dialog[open]{animation:foundryDialogIn .3s var(--ease) both}
.foundry-proof-library-shell{
  height:100%;
  padding:clamp(26px,3.2vw,42px);
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto;
  background:
    linear-gradient(rgba(27,28,22,.032) 1px,transparent 1px),
    linear-gradient(90deg,rgba(27,28,22,.032) 1px,transparent 1px),
    var(--foundry-paper-2);
  background-size:32px 32px,32px 32px,auto;
}
.foundry-proof-header{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(260px,420px) 48px;
  align-items:end;
  gap:34px;
}
.foundry-proof-header>div>p{
  margin-bottom:16px;
  font-family:var(--mono);
  font-size:9px;
  line-height:1.5;
  letter-spacing:.2em;
  color:#806328;
}
.foundry-proof-header h2{
  font-family:var(--serif);
  font-size:clamp(50px,5.3vw,74px);
  line-height:.91;
  letter-spacing:-.03em;
  font-weight:400;
}
.foundry-proof-header>p{
  padding-bottom:5px;
  font-size:14px;
  line-height:1.58;
  color:#69655a;
}
.foundry-proof-library-close{
  align-self:start;
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border:1px solid rgba(27,28,22,.18);
  border-radius:50%;
  background:rgba(255,255,255,.55);
  color:#37372f;
  font-size:23px;
  transition:background .2s,color .2s,transform .2s;
}
.foundry-proof-library-close:hover{background:#1c211d;color:#f5f0e6;transform:rotate(5deg)}
.foundry-proof-filters{
  margin-top:24px;
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding-bottom:5px;
  scrollbar-width:none;
}
.foundry-proof-filters::-webkit-scrollbar{display:none}
.foundry-proof-filters button{
  min-height:42px;
  flex:none;
  padding:10px 14px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  border:1px solid rgba(27,28,22,.15);
  border-radius:999px;
  background:rgba(255,255,255,.35);
  font:500 10px/1 var(--sans);
  color:#504e47;
  transition:background .2s,color .2s,border-color .2s,transform .2s;
}
.foundry-proof-filters button span{font-family:var(--mono);font-size:8px;opacity:.65}
.foundry-proof-filters button:hover{transform:translateY(-1px);border-color:rgba(128,99,40,.45)}
.foundry-proof-filters button.is-active{border-color:#1c211d;background:#1c211d;color:#f4efe4}
.foundry-proof-groups{
  min-height:0;
  margin-top:18px;
  padding-right:10px;
  overflow-y:auto;
  overscroll-behavior:contain;
  border-top:1px solid rgba(27,28,22,.2);
  scrollbar-color:rgba(128,99,40,.38) transparent;
  scrollbar-width:thin;
}
.foundry-proof-card[hidden]{display:none}
.foundry-proof-grid{
  padding:18px 0 30px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.foundry-proof-card{
  position:relative;
  min-height:230px;
  border:1px solid rgba(27,28,22,.15);
  border-radius:16px;
  background:rgba(249,246,237,.62);
  overflow:hidden;
  transition:transform .25s var(--ease),border-color .25s,box-shadow .25s,background .25s;
}
.foundry-proof-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:#a58445;
  opacity:0;
  transition:opacity .2s;
}
.foundry-proof-card:hover{
  transform:translateY(-3px);
  border-color:rgba(128,99,40,.38);
  background:rgba(255,253,246,.9);
  box-shadow:0 22px 54px rgba(33,29,20,.09);
}
.foundry-proof-card:hover::before{opacity:1}
.foundry-proof-card>button{
  width:100%;
  min-height:230px;
  padding:21px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  border:0;
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
}
.foundry-proof-card-meta{width:100%;display:flex;justify-content:space-between;gap:16px}
.foundry-proof-card-meta b,.foundry-proof-card-meta i{
  font-family:var(--mono);
  font-size:7px;
  line-height:1.5;
  letter-spacing:.13em;
  text-transform:uppercase;
  font-style:normal;
}
.foundry-proof-card-meta b{color:#806328}
.foundry-proof-card-meta i{max-width:48%;text-align:right;color:#858074}
.foundry-proof-card-service{
  margin-top:24px;
  font-family:var(--mono);
  font-size:8px;
  line-height:1.5;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#6d695f;
}
.foundry-proof-card strong{
  max-width:510px;
  margin-top:11px;
  font-family:var(--serif);
  font-size:clamp(25px,2.2vw,34px);
  line-height:1.03;
  letter-spacing:-.015em;
  font-weight:400;
}
.foundry-proof-card-scale{margin-top:12px;font-size:12px;line-height:1.5;color:#817c70}
.foundry-proof-card-bottom{
  width:100%;
  margin-top:auto;
  padding-top:20px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:15px;
  font-size:11px;
  line-height:1.45;
  color:#666258;
}
.foundry-proof-card-bottom>b{flex:none;font-family:var(--serif);font-size:22px;line-height:1;color:#806328}
.foundry-proof-disclosure{
  max-width:980px;
  margin:18px 0 0;
  font-size:10px;
  line-height:1.65;
  color:#858075;
}
.foundry-proof-library-dialog :focus-visible{outline:2px solid #806328;outline-offset:3px}
.foundry-proof-dialog{
  width:min(920px,calc(100vw - 36px));
  max-height:calc(100dvh - 36px);
  margin:auto;
  padding:0;
  overflow:visible;
  border:1px solid rgba(255,255,255,.16);
  border-radius:24px;
  background:#101311;
  color:#f5f2e9;
  box-shadow:0 36px 130px rgba(0,0,0,.68);
}
.foundry-proof-dialog::backdrop{background:rgba(5,6,5,.81);backdrop-filter:blur(10px)}
.foundry-proof-dialog[open]{animation:foundryDialogIn .32s var(--ease) both}
.foundry-proof-dialog-panel{
  max-height:calc(100dvh - 36px);
  overflow:auto;
  padding:clamp(30px,5vw,58px);
  border-radius:inherit;
  background:
    radial-gradient(620px 360px at 90% 0,rgba(164,132,69,.16),transparent 70%),
    #101311;
}
.foundry-proof-dialog-topline{display:flex;align-items:center;justify-content:space-between;gap:20px}
.foundry-proof-dialog-topline>span,.foundry-proof-dialog-service,.foundry-proof-dialog-context{
  font-family:var(--mono);
  font-size:8px;
  line-height:1.5;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--foundry-brass-light);
}
.foundry-proof-dialog-topline .foundry-case-dialog-close{position:static;float:none;margin:0}
.foundry-proof-dialog-context{margin-top:30px;color:rgba(245,242,233,.48)}
.foundry-proof-dialog-service{margin-top:28px}
.foundry-proof-dialog h2{
  max-width:790px;
  margin-top:13px;
  font-family:var(--serif);
  font-size:clamp(42px,5.5vw,72px);
  line-height:.94;
  letter-spacing:-.025em;
  font-weight:400;
}
.foundry-proof-dialog-facts{
  margin-top:38px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:1px;
  border:1px solid rgba(245,242,233,.13);
  background:rgba(245,242,233,.13);
}
.foundry-proof-dialog-facts article{min-height:210px;padding:22px;background:#151815}
.foundry-proof-dialog-facts h3,.foundry-proof-dialog-evidence span{
  font-family:var(--mono);
  font-size:8px;
  line-height:1.5;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--foundry-brass-light);
}
.foundry-proof-dialog-facts p{margin-top:24px;font-size:13px;line-height:1.62;color:rgba(245,242,233,.7)}
.foundry-proof-dialog-evidence{display:grid;grid-template-columns:1.45fr .55fr;gap:1px;margin-top:1px;background:rgba(245,242,233,.13)}
.foundry-proof-dialog-evidence>div{padding:22px;background:#151815}
.foundry-proof-dialog-evidence p{margin-top:12px;font-size:13px;line-height:1.6;color:rgba(245,242,233,.68)}
.foundry-proof-dialog-note{margin-top:20px;font-size:10px;line-height:1.65;color:rgba(245,242,233,.43)}
.foundry-proof-dialog-nav{
  position:sticky;
  bottom:0;
  margin:30px -12px -12px;
  padding:12px;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:18px;
  border:1px solid rgba(245,242,233,.1);
  border-radius:14px;
  background:rgba(16,19,17,.9);
  backdrop-filter:blur(12px);
}
.foundry-proof-dialog-nav button{
  min-height:42px;
  padding:10px 14px;
  border:1px solid rgba(245,242,233,.14);
  border-radius:999px;
  color:rgba(245,242,233,.75);
  font:500 10px/1 var(--sans);
}
.foundry-proof-dialog-nav button:last-child{justify-self:end}
.foundry-proof-dialog-nav span{font-family:var(--mono);font-size:8px;letter-spacing:.12em;color:rgba(245,242,233,.44)}

/* ---------- close ---------- */
.foundry-contact{
  position:relative;
  isolation:isolate;
  padding:clamp(118px,14vw,220px) 28px clamp(92px,10vw,150px);
  overflow:hidden;
  text-align:center;
  background:
    radial-gradient(820px 480px at 50% 55%,rgba(184,149,85,.13),transparent 68%),
    var(--foundry-night);
}
.foundry-contact::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.022) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.022) 1px,transparent 1px);
  background-size:28px 28px;
  mask-image:radial-gradient(circle at center,#000,transparent 72%);
  -webkit-mask-image:radial-gradient(circle at center,#000,transparent 72%);
}
.foundry-contact-glow{
  position:absolute;
  z-index:-2;
  left:50%;
  top:52%;
  width:min(900px,90vw);
  height:min(520px,60vw);
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:radial-gradient(circle,rgba(184,149,85,.12),transparent 67%);
  filter:blur(10px);
  pointer-events:none;
}
.foundry-contact-inner{width:min(1040px,100%);margin:0 auto;display:flex;flex-direction:column;align-items:center}
.foundry-contact .foundry-overline{animation:none}
.foundry-contact>p{
  font-family:var(--mono);
  font-size:9px;
  line-height:1.5;
  letter-spacing:.22em;
  color:var(--foundry-brass-light);
}
.foundry-contact h2{
  margin-top:20px;
  font-family:var(--serif);
  font-size:clamp(58px,7.2vw,108px);
  line-height:.93;
  letter-spacing:-.035em;
  font-weight:400;
}
.foundry-contact h2 em{font-weight:400;color:var(--foundry-brass-light)}
.foundry-contact-copy,
.foundry-contact-inner>p:not(.foundry-overline),
.foundry-contact>span{
  display:block;
  max-width:680px;
  margin:28px auto 0;
  font-size:17px;
  line-height:1.7;
  color:rgba(244,244,242,.57);
}
.foundry-contact-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:18px;margin-top:34px}
.foundry-contact .foundry-button{min-width:168px}
.foundry-mail{
  padding-bottom:5px;
  border-bottom:1px solid rgba(244,244,242,.24);
  font-family:var(--mono);
  font-size:9px;
  line-height:1.4;
  letter-spacing:.12em;
  color:rgba(244,244,242,.5);
  transition:color .2s,border-color .2s;
}
.foundry-mail:hover{color:var(--foundry-brass-light);border-color:var(--foundry-brass-light)}
.foundry-footer{
  min-height:84px;
  padding:24px 44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  border-top:1px solid rgba(244,244,242,.09);
  background:#070808;
  color:rgba(244,244,242,.46);
}
.foundry-footer p{font-family:var(--mono);font-size:9px;line-height:1.6;letter-spacing:.12em}
.foundry-footer nav{display:flex;align-items:center;gap:24px;font-size:12px}
.foundry-footer a{transition:color .2s}
.foundry-footer a:hover{color:var(--foundry-brass-light)}
.foundry-footer .cr{font-family:var(--mono);font-size:9px;line-height:1.6;letter-spacing:.08em}

/* ---------- responsive ---------- */
@media (max-width:1100px){
  .foundry-offer-head{grid-template-columns:1fr;gap:30px}
  .foundry-offer-intro{max-width:680px}
  .foundry-menu{grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr)}
  .foundry-menu-trigger{min-height:108px;padding-inline:16px}
  .foundry-menu-panel{padding:38px}
  .foundry-menu-panel-heading h3{font-size:clamp(48px,6vw,66px)}
  .foundry-menu-note{grid-template-columns:auto 1fr}
  .foundry-menu-note a{grid-column:1/-1;text-align:left}
  .foundry-case-card{flex-basis:clamp(310px,39vw,380px)}
}

@media (max-width:1080px){
  .foundry-price-cards{
    width:auto;
    margin-right:-44px;
    padding-right:44px;
    display:flex;
    gap:14px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
  }
  .foundry-price-cards::-webkit-scrollbar{display:none}
  .foundry-price-card{flex:0 0 260px;min-height:316px;scroll-snap-align:start}
}

@media (max-width:920px){
  .foundry-menu{display:block;min-height:0;overflow:visible;background:transparent;box-shadow:none;border-radius:22px}
  .foundry-menu-list{padding:0;border:1px solid rgba(27,28,22,.15);border-radius:22px;background:rgba(240,236,226,.72);overflow:hidden}
  .foundry-menu-trigger{min-height:92px;border-radius:0;padding:18px 22px}
  .foundry-menu-trigger:hover:not(.is-active){transform:none}
  .foundry-menu-trigger.is-active{border-radius:0;box-shadow:none}
  .foundry-menu-stage{margin-top:14px;border-radius:22px}
  .foundry-menu-panel{min-height:680px;padding:clamp(30px,6vw,54px)}
  .foundry-menu-panel-heading h3{max-width:720px;font-size:clamp(48px,8vw,70px)}
  .foundry-menu:not(.is-enhanced) .foundry-menu-stage{grid-template-columns:1fr}
}

@media (max-width:900px){
  .foundry-outcomes{padding-block:28px 38px}
  .foundry-metric-grid{display:flex;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;scrollbar-width:none}
  .foundry-metric-grid::-webkit-scrollbar{display:none}
  .foundry-metric{flex:0 0 190px;min-height:0;padding:22px 18px;scroll-snap-align:start}
  .foundry-metric:first-child{flex-basis:230px}
  .foundry-metric:nth-child(4){flex-basis:210px}
  .foundry-proof-header{grid-template-columns:minmax(0,1fr) 48px;gap:20px}
  .foundry-proof-header>p{grid-column:1/-1;grid-row:2;max-width:660px}
  .foundry-proof-library-close{grid-column:2;grid-row:1}
  .foundry-proof-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .foundry-proof-card{min-height:240px}
  .foundry-proof-card>button{min-height:240px}
}

@media (max-width:760px){
  .foundry-hero-inner{min-height:calc(100svh - 82px);padding:46px 18px 24px}
  .foundry-lockup{gap:16px;margin-bottom:28px}
  .foundry-brand--amics img{width:43px;height:43px}
  .foundry-brand--mtdr img{width:98px;height:48px}
  .foundry-x{font-size:29px}
  .foundry-overline{font-size:8px;letter-spacing:.2em}
  .foundry-hero h1{font-size:clamp(50px,14vw,88px);line-height:.92;white-space:normal}
  .foundry-deck{max-width:560px;margin-top:22px;font-size:16px}
  .foundry-actions{margin-top:24px;gap:20px}
  .foundry-logo-band{margin-top:34px}
  .foundry-logo-track{animation-duration:48s}
  .foundry-logo-group{gap:42px;padding-right:42px}
  .foundry-logo-group img{height:28px;max-width:128px}
  .foundry-section-label{margin-bottom:44px;font-size:9px}
  .foundry-offer,.foundry-outcomes,.foundry-pricing{padding-left:20px;padding-right:20px}
  .foundry-offer{border-radius:30px 30px 0 0}
  .foundry-offer-head h2{font-size:clamp(48px,14vw,74px)}
  .foundry-offer-intro p{font-size:26px}
  .foundry-offer-intro span{font-size:15px}
  .foundry-menu{margin-top:48px}
  .foundry-menu-trigger strong{font-size:24px}
  .foundry-menu-panel-price{position:static;width:auto;align-self:flex-end;margin-bottom:26px;text-align:right}
  .foundry-menu-panel-price strong{font-size:46px}
  .foundry-menu-panel-heading{padding-right:0}
  .foundry-menu-facts{gap:20px}
  .foundry-menu-note{padding:22px;grid-template-columns:1fr;gap:12px}
  .foundry-menu-note a{grid-column:auto;font-size:20px}
  .foundry-pricing-head{grid-template-columns:1fr;gap:18px}
  .foundry-pricing-head h2{font-size:clamp(52px,14vw,64px)}
  .foundry-pricing-head p{max-width:560px;padding-bottom:0}
  .foundry-pricing-scale-label{align-items:flex-start;flex-direction:column;gap:6px}
  .foundry-pricing-scale-label>small{text-align:left}
  .foundry-pricing-logos{opacity:.65}
  .foundry-pricing-logo--bullseye,.foundry-pricing-logo--shipyard{display:none}
  .foundry-pricing-logo--vanity{width:250px;left:-105px;top:23%}
  .foundry-pricing-logo--purecare{width:250px;right:-105px;top:12%}
  .foundry-pricing-tabs{
    width:auto;
    margin-right:-20px;
    padding-right:20px;
    display:flex;
    gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    border:0;
    border-radius:0;
    background:transparent;
    backdrop-filter:none;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
  }
  .foundry-pricing-tabs::-webkit-scrollbar{display:none}
  .foundry-pricing-tab{
    flex:0 0 250px;
    min-height:112px;
    border:1px solid rgba(244,242,235,.14);
    border-radius:18px;
    background:rgba(8,10,10,.72);
    scroll-snap-align:start;
  }
  .foundry-pricing-tab+.foundry-pricing-tab{border-left:1px solid rgba(244,242,235,.14)}
  .foundry-pricing-tab--core:not(.is-active){background:linear-gradient(145deg,rgba(184,149,85,.09),rgba(184,149,85,.025))}
  .foundry-price-panel{margin-top:16px}
  .foundry-price-panel-head{align-items:flex-start;flex-direction:column;gap:5px}
  .foundry-price-panel-head>p{text-align:left}
  .foundry-price-cards{margin-top:9px;margin-right:-20px;padding-right:20px}
  .foundry-price-card{min-height:304px;padding:28px 21px 25px}
  .foundry-price-card h3{font-size:27px}
  .foundry-price strong{font-size:48px}
  .foundry-price-card>p{font-size:13px}
  .foundry-case-section{padding:84px 0 96px}
  .foundry-case-frame{border-radius:0}
  .foundry-case-head{width:calc(100% - 40px);grid-template-columns:1fr;gap:26px;margin-bottom:34px}
  .foundry-case-head h2{font-size:clamp(48px,13vw,70px)}
  .foundry-case-head>div:first-child>p:last-child{font-size:15px}
  .foundry-case-controls{justify-content:flex-start}
  .foundry-case-arrow{width:46px;height:46px}
  .foundry-case-viewport{--case-gutter:20px;margin-left:var(--case-gutter);padding:18px 20px 34px 0}
  .foundry-case-track{gap:14px}
  .foundry-case-card{flex-basis:min(82vw,350px);min-height:430px;padding:25px}
  .foundry-case-status{width:calc(100% - 40px)}
  .foundry-proof-header>p{display:none}
  .foundry-proof-grid{grid-template-columns:1fr;padding-bottom:28px}
  .foundry-proof-dialog-facts,.foundry-proof-dialog-evidence{grid-template-columns:1fr}
  .foundry-proof-dialog-facts article{min-height:0}
  .foundry-case-facts{grid-template-columns:1fr}
  .foundry-case-facts>article,.foundry-case-facts>div{min-height:0}
  .foundry-case-facts p,.foundry-case-facts dd{margin-top:14px}
  .foundry-contact h2{font-size:clamp(54px,15vw,84px)}
  .foundry-footer{align-items:flex-start;flex-direction:column;padding:28px 20px}
  .foundry-footer nav{flex-wrap:wrap}
}

@media (max-width:460px){
  .foundry-hero-inner{padding-inline:16px}
  .foundry-actions{width:100%;flex-direction:column}
  .foundry-actions .foundry-button{width:100%}
  .foundry-logo-band-label{align-items:flex-start;flex-direction:column;gap:6px;padding-inline:16px}
  .foundry-offer-head h2{font-size:clamp(45px,14vw,62px)}
  .foundry-offer-intro{padding-left:17px}
  .foundry-menu-trigger{min-height:82px;padding:15px 14px;gap:10px}
  .foundry-menu-trigger>span:first-child{min-width:21px}
  .foundry-menu-trigger small{font-size:7px}
  .foundry-menu-trigger strong{font-size:21px}
  .foundry-menu-panel{min-height:0;padding:30px 22px}
  .foundry-menu-panel-heading{padding-bottom:24px}
  .foundry-menu-panel-heading h3{font-size:clamp(42px,12vw,58px)}
  .foundry-menu-panel-heading>span{font-size:15px}
  .foundry-menu-facts{grid-template-columns:1fr;gap:19px;margin-top:25px}
  .foundry-menu-services{margin-top:24px}
  .foundry-menu-proof{margin-top:30px;padding:18px;align-items:flex-start;flex-direction:column;gap:13px}
  .foundry-menu-proof>p{display:block}
  .foundry-menu-proof small{display:block;margin-bottom:7px}
  .foundry-menu-proof p>span{display:block;margin-top:6px}
  .foundry-menu-proof--centillion>span:first-child{font-size:10px}
  .foundry-menu-cta{align-self:flex-start;margin-top:20px}
  .foundry-menu-note{padding:19px;border-radius:14px}
  .foundry-pricing-head h2{font-size:clamp(50px,16vw,62px)}
  .foundry-pricing-tab{flex-basis:min(76vw,245px)}
  .foundry-price-card{flex-basis:min(78vw,256px)}
  .foundry-price strong{font-size:46px}
  .foundry-case-card{flex-basis:calc(100vw - 64px)}
  .foundry-proof-library-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);border-radius:18px}
  .foundry-proof-library-shell{padding:20px 14px 14px}
  .foundry-proof-header{gap:12px}
  .foundry-proof-header>p{display:none}
  .foundry-proof-header>div>p{margin-bottom:10px;font-size:7px}
  .foundry-proof-header h2{font-size:clamp(52px,15vw,76px)}
  .foundry-proof-library-close{width:44px;height:44px}
  .foundry-proof-filters{margin-top:20px}
  .foundry-proof-filters{margin-right:-20px;padding-right:20px}
  .foundry-proof-groups{margin-top:17px;padding-right:4px}
  .foundry-proof-card{min-height:265px}
  .foundry-proof-card>button{min-height:265px;padding:20px}
  .foundry-proof-card strong{font-size:29px}
  .foundry-proof-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:18px}
  .foundry-proof-dialog-panel{max-height:calc(100dvh - 20px);padding:24px 18px}
  .foundry-proof-dialog h2{font-size:clamp(39px,11vw,56px)}
  .foundry-proof-dialog-nav{grid-template-columns:1fr 1fr}
  .foundry-proof-dialog-nav span{grid-column:1/-1;grid-row:1;text-align:center}
  .foundry-proof-dialog-nav button{grid-row:2}
  .foundry-case-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:18px}
  .foundry-case-dialog-panel{max-height:calc(100dvh - 20px);padding:26px 20px}
  .foundry-case-dialog-close{margin:-8px -4px 0 14px}
  .foundry-contact{padding-inline:20px}
  .foundry-contact-actions{width:100%;flex-direction:column}
  .foundry-contact .foundry-button{width:100%}
}

@media (hover:none){
  .foundry-menu-trigger:hover,.foundry-price-card:hover,.foundry-case-card:hover,.foundry-proof-card:hover,.foundry-proof-filters button:hover{transform:none}
}

@media (prefers-reduced-motion:reduce){
  .foundry-page{scroll-behavior:auto}
  .foundry-lockup,.foundry-overline,.foundry-hero h1,.foundry-deck,.foundry-actions,.foundry-logo-band,.foundry-case-dialog[open],.foundry-proof-dialog[open],.foundry-proof-library-dialog[open]{animation:none}
  .foundry-logo-track{animation:none;transform:none}
  .foundry-case-viewport{scroll-behavior:auto}
  .foundry-menu-panel.is-entering,.foundry-price-panel.is-entering{animation:none}
  .foundry-button,.foundry-menu-trigger,.foundry-pricing-tab,.foundry-price-card,.foundry-case-card,.foundry-case-arrow,.foundry-proof-card,.foundry-proof-filters button{transition:none}
}
